seqmachines commited on
Commit
fcaf4bb
·
verified ·
1 Parent(s): 5fd58dc

Deploy Seqcolyte Studio

Browse files
studio/src/components/chat/chat.tsx CHANGED
@@ -151,6 +151,7 @@ export function Chat({
151
  railOpen,
152
  onToggleRail,
153
  onExtractDone,
 
154
  traceRunId,
155
  onRunDone,
156
  }: {
@@ -159,6 +160,8 @@ export function Chat({
159
  onToggleRail: () => void;
160
  /** Called after an uploaded protocol finishes extraction (opens the Spec viewer). */
161
  onExtractDone?: () => void;
 
 
162
  /** When set, the QC run's workflow trace renders in the chat stream. */
163
  traceRunId?: string | null;
164
  /** Fires when the traced run reaches a terminal status (`live` = finished while watching). */
@@ -258,6 +261,7 @@ export function Chat({
258
  return;
259
  }
260
  await hydrate();
 
261
  if (data.extract) streamExtract(data.filename ?? file.name);
262
  } catch {
263
  toast.error("Upload failed");
 
151
  railOpen,
152
  onToggleRail,
153
  onExtractDone,
154
+ onInputsChanged,
155
  traceRunId,
156
  onRunDone,
157
  }: {
 
160
  onToggleRail: () => void;
161
  /** Called after an uploaded protocol finishes extraction (opens the Spec viewer). */
162
  onExtractDone?: () => void;
163
+ /** Called after any upload changes the project inputs (so the Files panel refreshes). */
164
+ onInputsChanged?: () => void;
165
  /** When set, the QC run's workflow trace renders in the chat stream. */
166
  traceRunId?: string | null;
167
  /** Fires when the traced run reaches a terminal status (`live` = finished while watching). */
 
261
  return;
262
  }
263
  await hydrate();
264
+ onInputsChanged?.(); // refresh the Files panel (new reads/doc/table appear immediately)
265
  if (data.extract) streamExtract(data.filename ?? file.name);
266
  } catch {
267
  toast.error("Upload failed");
studio/src/components/files/files-panel.tsx CHANGED
@@ -1,6 +1,7 @@
1
  "use client";
2
 
3
  import {
 
4
  Download,
5
  Eye,
6
  FileJson,
@@ -93,6 +94,19 @@ export function FilesPanel({
93
  downloadHref: `${fileHref(t)}?download`,
94
  });
95
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  if (project.inputs.notesPath && hasNotes) {
97
  const rel = project.inputs.notesPath;
98
  rows.push({
 
1
  "use client";
2
 
3
  import {
4
+ Dna,
5
  Download,
6
  Eye,
7
  FileJson,
 
94
  downloadHref: `${fileHref(t)}?download`,
95
  });
96
  }
97
+ const fq = project.inputs.fastq;
98
+ if (fq?.source === "upload") {
99
+ for (const mate of ["r1", "r2"] as const) {
100
+ const rel = fq[mate];
101
+ if (!rel) continue;
102
+ rows.push({
103
+ icon: Dna,
104
+ label: `Reads (${mate.toUpperCase()})`,
105
+ sub: rel.split("/").pop(),
106
+ downloadHref: `${fileHref(rel)}?download`,
107
+ });
108
+ }
109
+ }
110
  if (project.inputs.notesPath && hasNotes) {
111
  const rel = project.inputs.notesPath;
112
  rows.push({
studio/src/components/workspace.tsx CHANGED
@@ -276,6 +276,7 @@ export function Workspace({
276
  railOpen={railOpen}
277
  onToggleRail={toggleRail}
278
  onExtractDone={onExtractDone}
 
279
  traceRunId={traceRunId}
280
  onRunDone={onRunDone}
281
  />
 
276
  railOpen={railOpen}
277
  onToggleRail={toggleRail}
278
  onExtractDone={onExtractDone}
279
+ onInputsChanged={() => router.refresh()}
280
  traceRunId={traceRunId}
281
  onRunDone={onRunDone}
282
  />
studio/tsconfig.tsbuildinfo CHANGED
The diff for this file is too large to render. See raw diff