@burdenoff/microfe-cosmicintersection 2026.1102.1 → 2026.1108.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/cosmicintersection/api/cosmicApi.d.ts +208 -1
  2. package/dist/cosmicintersection/api/cosmicApi.d.ts.map +1 -1
  3. package/dist/cosmicintersection/api/cosmicApi.js +291 -107
  4. package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
  5. package/dist/cosmicintersection/components/AiRunAttribution.d.ts +18 -0
  6. package/dist/cosmicintersection/components/AiRunAttribution.d.ts.map +1 -0
  7. package/dist/cosmicintersection/components/AiRunAttribution.js +39 -0
  8. package/dist/cosmicintersection/components/AiRunAttribution.js.map +1 -0
  9. package/dist/cosmicintersection/components/ReleaseDraftDialog.d.ts +15 -0
  10. package/dist/cosmicintersection/components/ReleaseDraftDialog.d.ts.map +1 -0
  11. package/dist/cosmicintersection/components/ReleaseDraftDialog.js +193 -0
  12. package/dist/cosmicintersection/components/ReleaseDraftDialog.js.map +1 -0
  13. package/dist/cosmicintersection/components/RunTriageCard.d.ts +15 -0
  14. package/dist/cosmicintersection/components/RunTriageCard.d.ts.map +1 -0
  15. package/dist/cosmicintersection/components/RunTriageCard.js +282 -0
  16. package/dist/cosmicintersection/components/RunTriageCard.js.map +1 -0
  17. package/dist/cosmicintersection/components/SchemaProposalPanel.d.ts +18 -0
  18. package/dist/cosmicintersection/components/SchemaProposalPanel.d.ts.map +1 -0
  19. package/dist/cosmicintersection/components/SchemaProposalPanel.js +277 -0
  20. package/dist/cosmicintersection/components/SchemaProposalPanel.js.map +1 -0
  21. package/dist/cosmicintersection/components/ScienceCanvas.d.ts.map +1 -1
  22. package/dist/cosmicintersection/components/ScienceCanvas.js +9 -2
  23. package/dist/cosmicintersection/components/ScienceCanvas.js.map +1 -1
  24. package/dist/cosmicintersection/components/index.d.ts +4 -0
  25. package/dist/cosmicintersection/components/index.d.ts.map +1 -1
  26. package/dist/cosmicintersection/components/index.js +5 -1
  27. package/dist/cosmicintersection/pages/access/AccessPage.d.ts.map +1 -1
  28. package/dist/cosmicintersection/pages/access/AccessPage.js +348 -326
  29. package/dist/cosmicintersection/pages/access/AccessPage.js.map +1 -1
  30. package/dist/cosmicintersection/pages/analyses/AnalysesPage.d.ts.map +1 -1
  31. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +190 -162
  32. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
  33. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.d.ts.map +1 -1
  34. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +732 -543
  35. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js.map +1 -1
  36. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.d.ts.map +1 -1
  37. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js +268 -119
  38. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js.map +1 -1
  39. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.d.ts.map +1 -1
  40. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +322 -307
  41. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
  42. package/dist/cosmicintersection/pages/releases/ReleasesPage.d.ts.map +1 -1
  43. package/dist/cosmicintersection/pages/releases/ReleasesPage.js +5 -2
  44. package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
  45. package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +1 -1
  46. package/dist/cosmicintersection/pages/runs/RunDetailPage.js +190 -185
  47. package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
  48. package/package.json +1 -1
@@ -17,7 +17,7 @@ import { useTrackRecentItem as ee } from "../../lib/useTrackRecentItem.js";
17
17
  import { useMemo as x, useState as S } from "react";
18
18
  import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
19
19
  import { BarChart3 as E, Beaker as D, Download as O, ExternalLink as k, Play as A, Sparkles as te } from "lucide-react";
20
- import { Badge as ne, Button as j, Dialog as M, DialogClose as re, DialogContent as N, DialogDescription as P, DialogFooter as F, DialogHeader as I, DialogTitle as L, Input as R, Label as z, Select as B, SelectContent as V, SelectItem as H, SelectTrigger as U, SelectValue as W, Switch as G, Table as ie, TableBody as ae, TableCell as K, TableHead as q, TableHeader as oe, TableRow as se, Textarea as J } from "@burdenoff/fe-libs/ui";
20
+ import { Badge as j, Button as M, Dialog as N, DialogClose as ne, DialogContent as P, DialogDescription as F, DialogFooter as I, DialogHeader as L, DialogTitle as R, Input as z, Label as B, Select as V, SelectContent as H, SelectItem as U, SelectTrigger as W, SelectValue as G, Switch as re, Table as ie, TableBody as ae, TableCell as K, TableHead as q, TableHeader as oe, TableRow as se, Textarea as J } from "@burdenoff/fe-libs/ui";
21
21
  //#region src/cosmicintersection/pages/analyses/AnalysesPage.tsx
22
22
  function Y(e) {
23
23
  return !!e.outputFile?.id || !!(e.results && Object.keys(e.results).length > 0);
@@ -40,6 +40,30 @@ var ce = [
40
40
  label: "Failed"
41
41
  }
42
42
  ], X = "ALL";
43
+ function le({ value: e }) {
44
+ let t = Z(e);
45
+ if (!e || t === "—") return /* @__PURE__ */ w("span", { children: "—" });
46
+ let n = new Date(e);
47
+ return /* @__PURE__ */ T("time", {
48
+ dateTime: n.toISOString(),
49
+ title: t,
50
+ className: "flex flex-col leading-tight",
51
+ children: [/* @__PURE__ */ w("span", {
52
+ className: "whitespace-nowrap",
53
+ children: n.toLocaleDateString(void 0, {
54
+ year: "numeric",
55
+ month: "short",
56
+ day: "numeric"
57
+ })
58
+ }), /* @__PURE__ */ w("span", {
59
+ className: "whitespace-nowrap text-xs text-text-muted",
60
+ children: n.toLocaleTimeString(void 0, {
61
+ hour: "2-digit",
62
+ minute: "2-digit"
63
+ })
64
+ })]
65
+ });
66
+ }
43
67
  function Z(e) {
44
68
  if (!e) return "—";
45
69
  let t = new Date(e);
@@ -78,23 +102,23 @@ function Q({ fileId: e }) {
78
102
  children: ["File ", e]
79
103
  });
80
104
  }
81
- function le({ analysis: e, onOpenChange: t }) {
105
+ function ue({ analysis: e, onOpenChange: t }) {
82
106
  let n = e?.results ?? null, r = !!(n && Object.keys(n).length > 0), i = !!e?.outputFile?.id;
83
- return /* @__PURE__ */ w(M, {
107
+ return /* @__PURE__ */ w(N, {
84
108
  ...b,
85
109
  open: !!e,
86
110
  onOpenChange: t,
87
- children: /* @__PURE__ */ w(N, {
111
+ children: /* @__PURE__ */ w(P, {
88
112
  ...y,
89
113
  className: "max-h-[85vh] max-w-2xl overflow-y-auto",
90
114
  children: e ? /* @__PURE__ */ T(C, { children: [
91
- /* @__PURE__ */ T(I, { children: [/* @__PURE__ */ T(L, {
115
+ /* @__PURE__ */ T(L, { children: [/* @__PURE__ */ T(R, {
92
116
  className: "flex items-center gap-2",
93
117
  children: [/* @__PURE__ */ w(E, {
94
118
  className: "size-5 text-text-secondary",
95
119
  "aria-hidden": "true"
96
120
  }), "Analysis results"]
97
- }), /* @__PURE__ */ T(P, { children: [e.title, e.method ? ` · ${e.method}` : ""] })] }),
121
+ }), /* @__PURE__ */ T(F, { children: [e.title, e.method ? ` · ${e.method}` : ""] })] }),
98
122
  /* @__PURE__ */ T("div", {
99
123
  className: "space-y-5",
100
124
  children: [
@@ -112,9 +136,9 @@ function le({ analysis: e, onOpenChange: t }) {
112
136
  }) : null
113
137
  ]
114
138
  }),
115
- /* @__PURE__ */ w(F, { children: /* @__PURE__ */ w(re, {
139
+ /* @__PURE__ */ w(I, { children: /* @__PURE__ */ w(ne, {
116
140
  asChild: !0,
117
- children: /* @__PURE__ */ w(j, {
141
+ children: /* @__PURE__ */ w(M, {
118
142
  type: "button",
119
143
  variant: "outline",
120
144
  children: "Close"
@@ -146,7 +170,7 @@ function $(e, t) {
146
170
  };
147
171
  }
148
172
  }
149
- function ue({ open: e, onOpenChange: n, onCompleted: r }) {
173
+ function de({ open: e, onOpenChange: n, onCompleted: r }) {
150
174
  let i = c(), [l, u] = S(""), [d, f] = S(""), [p, m] = S(!1), [h, g] = S("NOTEBOOK"), [_, v] = S(""), { data: y, loading: b } = o({ pagination: {
151
175
  limit: 100,
152
176
  offset: 0
@@ -156,12 +180,12 @@ function ue({ open: e, onOpenChange: n, onCompleted: r }) {
156
180
  } }), [C, { loading: E }] = s(), D = y?.cosListNotebooks.items ?? [], O = ee?.cosListDatasets.items ?? [], k = () => {
157
181
  u(""), f(""), m(!1), g("NOTEBOOK"), v("");
158
182
  };
159
- return /* @__PURE__ */ w(M, {
183
+ return /* @__PURE__ */ w(N, {
160
184
  open: e,
161
185
  onOpenChange: (e) => {
162
186
  E || n(e);
163
187
  },
164
- children: /* @__PURE__ */ w(N, { children: /* @__PURE__ */ T("form", {
188
+ children: /* @__PURE__ */ w(P, { children: /* @__PURE__ */ T("form", {
165
189
  onSubmit: async (e) => {
166
190
  e.preventDefault();
167
191
  let a = l.trim();
@@ -183,13 +207,13 @@ function ue({ open: e, onOpenChange: n, onCompleted: r }) {
183
207
  },
184
208
  className: "space-y-4",
185
209
  children: [
186
- /* @__PURE__ */ T(I, { children: [/* @__PURE__ */ w(L, { children: "Run analysis" }), /* @__PURE__ */ w(P, { children: "Launch a new analysis against a notebook or a dataset. Exactly one source is required." })] }),
210
+ /* @__PURE__ */ T(L, { children: [/* @__PURE__ */ w(R, { children: "Run analysis" }), /* @__PURE__ */ w(F, { children: "Launch a new analysis against a notebook or a dataset. Exactly one source is required." })] }),
187
211
  /* @__PURE__ */ T("div", {
188
212
  className: "space-y-1.5",
189
- children: [/* @__PURE__ */ w(z, {
213
+ children: [/* @__PURE__ */ w(B, {
190
214
  htmlFor: "run-title",
191
215
  children: "Title"
192
- }), /* @__PURE__ */ w(R, {
216
+ }), /* @__PURE__ */ w(z, {
193
217
  id: "run-title",
194
218
  value: l,
195
219
  onChange: (e) => u(e.target.value),
@@ -201,42 +225,42 @@ function ue({ open: e, onOpenChange: n, onCompleted: r }) {
201
225
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
202
226
  children: [/* @__PURE__ */ T("div", {
203
227
  className: "space-y-1.5",
204
- children: [/* @__PURE__ */ w(z, {
228
+ children: [/* @__PURE__ */ w(B, {
205
229
  htmlFor: "run-source-kind",
206
230
  children: "Source type"
207
- }), /* @__PURE__ */ T(B, {
231
+ }), /* @__PURE__ */ T(V, {
208
232
  value: h,
209
233
  onValueChange: (e) => {
210
234
  g(e), v("");
211
235
  },
212
- children: [/* @__PURE__ */ w(U, {
236
+ children: [/* @__PURE__ */ w(W, {
213
237
  id: "run-source-kind",
214
238
  "aria-label": "Source type",
215
- children: /* @__PURE__ */ w(W, {})
216
- }), /* @__PURE__ */ T(V, { children: [/* @__PURE__ */ w(H, {
239
+ children: /* @__PURE__ */ w(G, {})
240
+ }), /* @__PURE__ */ T(H, { children: [/* @__PURE__ */ w(U, {
217
241
  value: "NOTEBOOK",
218
242
  children: "Notebook"
219
- }), /* @__PURE__ */ w(H, {
243
+ }), /* @__PURE__ */ w(U, {
220
244
  value: "DATASET",
221
245
  children: "Dataset"
222
246
  })] })]
223
247
  })]
224
248
  }), /* @__PURE__ */ T("div", {
225
249
  className: "space-y-1.5",
226
- children: [/* @__PURE__ */ w(z, {
250
+ children: [/* @__PURE__ */ w(B, {
227
251
  htmlFor: "run-source-id",
228
252
  children: h === "NOTEBOOK" ? "Notebook" : "Dataset"
229
- }), /* @__PURE__ */ T(B, {
253
+ }), /* @__PURE__ */ T(V, {
230
254
  value: _,
231
255
  onValueChange: (e) => v(e),
232
- children: [/* @__PURE__ */ w(U, {
256
+ children: [/* @__PURE__ */ w(W, {
233
257
  id: "run-source-id",
234
258
  "aria-label": "Analysis source",
235
- children: /* @__PURE__ */ w(W, { placeholder: (h === "NOTEBOOK" ? b : x) ? "Loading…" : `Select a ${h === "NOTEBOOK" ? "notebook" : "dataset"}` })
236
- }), /* @__PURE__ */ w(V, { children: h === "NOTEBOOK" ? D.map((e) => /* @__PURE__ */ w(H, {
259
+ children: /* @__PURE__ */ w(G, { placeholder: (h === "NOTEBOOK" ? b : x) ? "Loading…" : `Select a ${h === "NOTEBOOK" ? "notebook" : "dataset"}` })
260
+ }), /* @__PURE__ */ w(H, { children: h === "NOTEBOOK" ? D.map((e) => /* @__PURE__ */ w(U, {
237
261
  value: e.id,
238
262
  children: e.title
239
- }, e.id)) : O.map((e) => /* @__PURE__ */ w(H, {
263
+ }, e.id)) : O.map((e) => /* @__PURE__ */ w(U, {
240
264
  value: e.id,
241
265
  children: e.name
242
266
  }, e.id)) })]
@@ -245,10 +269,10 @@ function ue({ open: e, onOpenChange: n, onCompleted: r }) {
245
269
  }),
246
270
  /* @__PURE__ */ T("div", {
247
271
  className: "space-y-1.5",
248
- children: [/* @__PURE__ */ w(z, {
272
+ children: [/* @__PURE__ */ w(B, {
249
273
  htmlFor: "run-method",
250
274
  children: "Method"
251
- }), /* @__PURE__ */ w(R, {
275
+ }), /* @__PURE__ */ w(z, {
252
276
  id: "run-method",
253
277
  value: d,
254
278
  onChange: (e) => f(e.target.value),
@@ -257,23 +281,23 @@ function ue({ open: e, onOpenChange: n, onCompleted: r }) {
257
281
  }),
258
282
  /* @__PURE__ */ T("div", {
259
283
  className: "flex items-center gap-3",
260
- children: [/* @__PURE__ */ w(G, {
284
+ children: [/* @__PURE__ */ w(re, {
261
285
  id: "run-ai",
262
286
  checked: p,
263
287
  onCheckedChange: (e) => m(e)
264
- }), /* @__PURE__ */ w(z, {
288
+ }), /* @__PURE__ */ w(B, {
265
289
  htmlFor: "run-ai",
266
290
  className: "cursor-pointer",
267
291
  children: "AI-assisted analysis"
268
292
  })]
269
293
  }),
270
- /* @__PURE__ */ T(F, { children: [/* @__PURE__ */ w(j, {
294
+ /* @__PURE__ */ T(I, { children: [/* @__PURE__ */ w(M, {
271
295
  type: "button",
272
296
  variant: "outline",
273
297
  onClick: () => n(!1),
274
298
  disabled: E,
275
299
  children: "Cancel"
276
- }), /* @__PURE__ */ T(j, {
300
+ }), /* @__PURE__ */ T(M, {
277
301
  type: "submit",
278
302
  disabled: E,
279
303
  children: [/* @__PURE__ */ w(A, { className: "size-4" }), E ? "Starting…" : "Run analysis"]
@@ -282,14 +306,14 @@ function ue({ open: e, onOpenChange: n, onCompleted: r }) {
282
306
  }) })
283
307
  });
284
308
  }
285
- function de({ analysis: e, onOpenChange: n, onCompleted: r }) {
309
+ function fe({ analysis: e, onOpenChange: n, onCompleted: r }) {
286
310
  let [a, o] = S("COMPLETED"), [s, l] = S(""), [u, d] = S(""), [f, { loading: m }] = i(), h = c();
287
- return /* @__PURE__ */ w(M, {
311
+ return /* @__PURE__ */ w(N, {
288
312
  open: !!e,
289
313
  onOpenChange: (e) => {
290
314
  m || n(e);
291
315
  },
292
- children: /* @__PURE__ */ w(N, { children: /* @__PURE__ */ T("form", {
316
+ children: /* @__PURE__ */ w(P, { children: /* @__PURE__ */ T("form", {
293
317
  onSubmit: async (i) => {
294
318
  if (i.preventDefault(), !e) return;
295
319
  let o = $(s, h);
@@ -307,27 +331,27 @@ function de({ analysis: e, onOpenChange: n, onCompleted: r }) {
307
331
  },
308
332
  className: "space-y-4",
309
333
  children: [
310
- /* @__PURE__ */ T(I, { children: [/* @__PURE__ */ w(L, { children: "Complete analysis" }), /* @__PURE__ */ T(P, { children: [
334
+ /* @__PURE__ */ T(L, { children: [/* @__PURE__ */ w(R, { children: "Complete analysis" }), /* @__PURE__ */ T(F, { children: [
311
335
  "Record the outcome for ",
312
336
  e ? `“${e.title}”` : "this analysis",
313
337
  ". Attach results or an output artifact if you have them."
314
338
  ] })] }),
315
339
  /* @__PURE__ */ T("div", {
316
340
  className: "space-y-1.5",
317
- children: [/* @__PURE__ */ w(z, {
341
+ children: [/* @__PURE__ */ w(B, {
318
342
  htmlFor: "complete-status",
319
343
  children: "Outcome"
320
- }), /* @__PURE__ */ T(B, {
344
+ }), /* @__PURE__ */ T(V, {
321
345
  value: a,
322
346
  onValueChange: (e) => o(e),
323
- children: [/* @__PURE__ */ w(U, {
347
+ children: [/* @__PURE__ */ w(W, {
324
348
  id: "complete-status",
325
349
  "aria-label": "Outcome",
326
- children: /* @__PURE__ */ w(W, {})
327
- }), /* @__PURE__ */ T(V, { children: [/* @__PURE__ */ w(H, {
350
+ children: /* @__PURE__ */ w(G, {})
351
+ }), /* @__PURE__ */ T(H, { children: [/* @__PURE__ */ w(U, {
328
352
  value: "COMPLETED",
329
353
  children: "Completed"
330
- }), /* @__PURE__ */ w(H, {
354
+ }), /* @__PURE__ */ w(U, {
331
355
  value: "FAILED",
332
356
  children: "Failed"
333
357
  })] })]
@@ -336,7 +360,7 @@ function de({ analysis: e, onOpenChange: n, onCompleted: r }) {
336
360
  /* @__PURE__ */ T("div", {
337
361
  className: "space-y-1.5",
338
362
  children: [
339
- /* @__PURE__ */ w(z, {
363
+ /* @__PURE__ */ w(B, {
340
364
  htmlFor: "complete-results",
341
365
  children: "Results (JSON)"
342
366
  }),
@@ -360,13 +384,13 @@ function de({ analysis: e, onOpenChange: n, onCompleted: r }) {
360
384
  label: "Attach output file",
361
385
  hint: "Optional output artifact (plots, tables, exports). Stored in workspace files."
362
386
  }),
363
- /* @__PURE__ */ T(F, { children: [/* @__PURE__ */ w(j, {
387
+ /* @__PURE__ */ T(I, { children: [/* @__PURE__ */ w(M, {
364
388
  type: "button",
365
389
  variant: "outline",
366
390
  onClick: () => n(!1),
367
391
  disabled: m,
368
392
  children: "Cancel"
369
- }), /* @__PURE__ */ w(j, {
393
+ }), /* @__PURE__ */ w(M, {
370
394
  type: "submit",
371
395
  disabled: m,
372
396
  children: m ? "Saving…" : "Save outcome"
@@ -375,35 +399,35 @@ function de({ analysis: e, onOpenChange: n, onCompleted: r }) {
375
399
  }) })
376
400
  });
377
401
  }
378
- function fe() {
379
- let { navigate: t } = e(), i = c(), [s, p] = S(void 0), [m, g] = S(!1), [y, b] = S(null), { data: O, loading: M, error: re, refetch: N } = n({ status: s }), { data: P } = o({ pagination: {
402
+ function pe() {
403
+ let { navigate: t } = e(), i = c(), [s, p] = S(void 0), [m, g] = S(!1), [y, b] = S(null), { data: O, loading: N, error: ne, refetch: P } = n({ status: s }), { data: F } = o({ pagination: {
380
404
  limit: 100,
381
405
  offset: 0
382
- } }), { data: F } = a({ pagination: {
406
+ } }), { data: I } = a({ pagination: {
383
407
  limit: 100,
384
408
  offset: 0
385
- } }), I = O?.cosListAnalyses ?? [], { selectedId: L, select: R } = v(), z = L ? I.find((e) => e.id === L) ?? null : null, { data: G } = r(L, { skip: z !== null || M || !O }), J = G?.cosAnalysis ?? null, Q = z ?? (J && J.id === L ? J : null), $ = (e) => R(e ? e.id : null);
409
+ } }), L = O?.cosListAnalyses ?? [], { selectedId: R, select: z } = v(), B = R ? L.find((e) => e.id === R) ?? null : null, { data: re } = r(R, { skip: B !== null || N || !O }), J = re?.cosAnalysis ?? null, Q = B ?? (J && J.id === R ? J : null), $ = (e) => z(e ? e.id : null);
386
410
  ee(Q ? {
387
411
  type: "analysis",
388
412
  id: Q.id,
389
413
  name: Q.title,
390
414
  path: `analyses?id=${encodeURIComponent(Q.id)}`
391
415
  } : null);
392
- let fe = x(() => {
416
+ let pe = x(() => {
393
417
  let e = /* @__PURE__ */ new Map();
394
- for (let t of P?.cosListNotebooks.items ?? []) e.set(t.id, t.title);
418
+ for (let t of F?.cosListNotebooks.items ?? []) e.set(t.id, t.title);
395
419
  return e;
396
- }, [P]), pe = x(() => {
420
+ }, [F]), me = x(() => {
397
421
  let e = /* @__PURE__ */ new Map();
398
- for (let t of F?.cosListDatasets.items ?? []) e.set(t.id, t.name);
422
+ for (let t of I?.cosListDatasets.items ?? []) e.set(t.id, t.name);
399
423
  return e;
400
- }, [F]), me = (e) => e.notebookId ? {
401
- label: fe.get(e.notebookId) ?? "Notebook",
424
+ }, [I]), he = (e) => e.notebookId ? {
425
+ label: pe.get(e.notebookId) ?? "Notebook",
402
426
  path: `notebooks/${e.notebookId}`
403
427
  } : e.datasetId ? {
404
- label: pe.get(e.datasetId) ?? "Dataset",
428
+ label: me.get(e.datasetId) ?? "Dataset",
405
429
  path: `datasets/${e.datasetId}`
406
- } : null, he = (e) => {
430
+ } : null, ge = (e) => {
407
431
  let t = e.status === "PENDING" || e.status === "RUNNING";
408
432
  return [...Y(e) ? [{
409
433
  key: "view-results",
@@ -416,7 +440,7 @@ function fe() {
416
440
  icon: D,
417
441
  onSelect: () => b(e)
418
442
  }] : []];
419
- }, ge = /* @__PURE__ */ T(j, {
443
+ }, _e = /* @__PURE__ */ T(M, {
420
444
  type: "button",
421
445
  onClick: () => g(!0),
422
446
  children: [/* @__PURE__ */ w(A, { className: "size-4" }), i("cosmicintersection.pages.analyses.create", "Run analysis")]
@@ -424,7 +448,7 @@ function fe() {
424
448
  return /* @__PURE__ */ T(h, {
425
449
  title: i("cosmicintersection.pages.analyses.title", "Analyses"),
426
450
  description: i("cosmicintersection.pages.analyses.description", "Analysis runs executed over notebooks and federated datasets."),
427
- actions: ge,
451
+ actions: _e,
428
452
  children: [
429
453
  /* @__PURE__ */ T("div", {
430
454
  className: "space-y-4",
@@ -434,127 +458,131 @@ function fe() {
434
458
  className: "text-sm text-text-secondary",
435
459
  htmlFor: "analysis-status-filter",
436
460
  children: "Status"
437
- }), /* @__PURE__ */ T(B, {
461
+ }), /* @__PURE__ */ T(V, {
438
462
  value: s ?? X,
439
463
  onValueChange: (e) => p(e === X ? void 0 : e),
440
- children: [/* @__PURE__ */ w(U, {
464
+ children: [/* @__PURE__ */ w(W, {
441
465
  id: "analysis-status-filter",
442
466
  className: "w-48",
443
467
  "aria-label": "Filter by status",
444
- children: /* @__PURE__ */ w(W, {})
445
- }), /* @__PURE__ */ T(V, { children: [/* @__PURE__ */ w(H, {
468
+ children: /* @__PURE__ */ w(G, {})
469
+ }), /* @__PURE__ */ T(H, { children: [/* @__PURE__ */ w(U, {
446
470
  value: X,
447
471
  children: "All statuses"
448
- }), ce.map((e) => /* @__PURE__ */ w(H, {
472
+ }), ce.map((e) => /* @__PURE__ */ w(U, {
449
473
  value: e.value,
450
474
  children: e.label
451
475
  }, e.value))] })]
452
476
  })]
453
- }), M ? /* @__PURE__ */ w(f, {
477
+ }), N ? /* @__PURE__ */ w(f, {
454
478
  variant: "rows",
455
479
  rows: 6,
456
480
  label: i("cosmicintersection.pages.analyses.loading", "Loading analyses…")
457
- }) : re ? /* @__PURE__ */ w(d, {
481
+ }) : ne ? /* @__PURE__ */ w(d, {
458
482
  message: i("cosmicintersection.pages.analyses.error", "We could not load analyses. Please try again."),
459
- onRetry: () => void N()
460
- }) : I.length === 0 ? /* @__PURE__ */ w(u, {
483
+ onRetry: () => void P()
484
+ }) : L.length === 0 ? /* @__PURE__ */ w(u, {
461
485
  icon: D,
462
486
  title: s ? i("cosmicintersection.pages.analyses.emptyFilterTitle", "No analyses match this filter.") : i("cosmicintersection.pages.analyses.emptyTitle", "No analyses yet."),
463
487
  description: s ? i("cosmicintersection.pages.analyses.emptyFilterDescription", "Try a different status filter.") : i("cosmicintersection.pages.analyses.emptyDescription", "Run an analysis against a notebook or dataset to see results here."),
464
- action: s ? void 0 : /* @__PURE__ */ T(j, {
488
+ action: s ? void 0 : /* @__PURE__ */ T(M, {
465
489
  type: "button",
466
490
  onClick: () => g(!0),
467
491
  children: [/* @__PURE__ */ w(A, { className: "size-4" }), i("cosmicintersection.pages.analyses.create", "Run analysis")]
468
492
  })
469
493
  }) : /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w("div", {
470
494
  className: "hidden rounded-card border border-border-default bg-bg-elevated md:block",
471
- children: /* @__PURE__ */ T(ie, { children: [/* @__PURE__ */ w(oe, { children: /* @__PURE__ */ T(se, { children: [
472
- /* @__PURE__ */ w(q, { children: "Title" }),
473
- /* @__PURE__ */ w(q, { children: "Method" }),
474
- /* @__PURE__ */ w(q, { children: "AI" }),
475
- /* @__PURE__ */ w(q, { children: "Status" }),
476
- /* @__PURE__ */ w(q, { children: "Source" }),
477
- /* @__PURE__ */ w(q, { children: "Started" }),
478
- /* @__PURE__ */ w(q, { children: "Finished" }),
479
- /* @__PURE__ */ w(q, { children: "Output" }),
480
- /* @__PURE__ */ w(q, {
481
- className: "w-12 text-right",
482
- children: "Actions"
483
- })
484
- ] }) }), /* @__PURE__ */ w(ae, { children: I.map((e) => {
485
- let n = me(e);
486
- return /* @__PURE__ */ T(se, { children: [
487
- /* @__PURE__ */ w(K, {
488
- className: "font-medium text-text-primary",
489
- children: e.title
490
- }),
491
- /* @__PURE__ */ w(K, {
492
- className: "text-text-secondary",
493
- children: e.method ?? "—"
494
- }),
495
- /* @__PURE__ */ w(K, { children: e.aiAssisted ? /* @__PURE__ */ T(ne, {
496
- variant: "secondary",
497
- className: "gap-1",
498
- children: [/* @__PURE__ */ w(te, {
499
- className: "size-3",
500
- "aria-hidden": "true"
501
- }), "AI"]
502
- }) : /* @__PURE__ */ w("span", {
503
- className: "text-text-secondary",
504
- children: "—"
505
- }) }),
506
- /* @__PURE__ */ w(K, { children: /* @__PURE__ */ w(_, { status: e.status }) }),
507
- /* @__PURE__ */ w(K, { children: n ? /* @__PURE__ */ T("button", {
508
- type: "button",
509
- onClick: () => t(n.path),
510
- className: "inline-flex max-w-[12rem] items-center gap-1 truncate text-sm text-text-primary underline-offset-2 hover:underline",
511
- children: [/* @__PURE__ */ w(k, {
512
- className: "size-3.5 shrink-0",
513
- "aria-hidden": "true"
514
- }), /* @__PURE__ */ w("span", {
515
- className: "truncate",
516
- children: n.label
517
- })]
518
- }) : /* @__PURE__ */ w("span", {
519
- className: "text-text-secondary",
520
- children: "—"
521
- }) }),
522
- /* @__PURE__ */ w(K, {
523
- className: "whitespace-nowrap text-text-secondary",
524
- children: Z(e.startedAt)
525
- }),
526
- /* @__PURE__ */ w(K, {
527
- className: "whitespace-nowrap text-text-secondary",
528
- children: Z(e.finishedAt)
529
- }),
530
- /* @__PURE__ */ w(K, { children: Y(e) ? /* @__PURE__ */ T(j, {
531
- type: "button",
532
- variant: "outline",
533
- size: "sm",
534
- className: "h-auto gap-1 px-2 py-1",
535
- onClick: () => $(e),
536
- children: [/* @__PURE__ */ w(E, {
537
- className: "size-3.5",
538
- "aria-hidden": "true"
539
- }), "View"]
540
- }) : /* @__PURE__ */ w("span", {
541
- className: "text-text-secondary",
542
- children: "—"
543
- }) }),
544
- /* @__PURE__ */ w(K, {
545
- className: "text-right",
546
- children: /* @__PURE__ */ w(l, {
547
- ariaLabel: `Actions for ${e.title}`,
548
- onView: n ? () => t(n.path) : void 0,
549
- extraItems: he(e)
550
- })
495
+ children: /* @__PURE__ */ T(ie, {
496
+ className: "table-auto",
497
+ "data-testid": "analyses-table",
498
+ children: [/* @__PURE__ */ w(oe, { children: /* @__PURE__ */ T(se, { children: [
499
+ /* @__PURE__ */ w(q, { children: "Title" }),
500
+ /* @__PURE__ */ w(q, { children: "Method" }),
501
+ /* @__PURE__ */ w(q, { children: "AI" }),
502
+ /* @__PURE__ */ w(q, { children: "Status" }),
503
+ /* @__PURE__ */ w(q, { children: "Source" }),
504
+ /* @__PURE__ */ w(q, { children: "Started" }),
505
+ /* @__PURE__ */ w(q, { children: "Finished" }),
506
+ /* @__PURE__ */ w(q, { children: "Output" }),
507
+ /* @__PURE__ */ w(q, {
508
+ className: "w-12 text-right",
509
+ children: "Actions"
551
510
  })
552
- ] }, e.id);
553
- }) })] })
511
+ ] }) }), /* @__PURE__ */ w(ae, { children: L.map((e) => {
512
+ let n = he(e);
513
+ return /* @__PURE__ */ T(se, { children: [
514
+ /* @__PURE__ */ w(K, {
515
+ className: "font-medium text-text-primary",
516
+ children: e.title
517
+ }),
518
+ /* @__PURE__ */ w(K, {
519
+ className: "text-text-secondary",
520
+ children: e.method ?? "—"
521
+ }),
522
+ /* @__PURE__ */ w(K, { children: e.aiAssisted ? /* @__PURE__ */ T(j, {
523
+ variant: "secondary",
524
+ className: "gap-1",
525
+ children: [/* @__PURE__ */ w(te, {
526
+ className: "size-3",
527
+ "aria-hidden": "true"
528
+ }), "AI"]
529
+ }) : /* @__PURE__ */ w("span", {
530
+ className: "text-text-secondary",
531
+ children: "—"
532
+ }) }),
533
+ /* @__PURE__ */ w(K, { children: /* @__PURE__ */ w(_, { status: e.status }) }),
534
+ /* @__PURE__ */ w(K, { children: n ? /* @__PURE__ */ T("button", {
535
+ type: "button",
536
+ onClick: () => t(n.path),
537
+ className: "inline-flex max-w-[12rem] items-center gap-1 truncate text-sm text-text-primary underline-offset-2 hover:underline",
538
+ children: [/* @__PURE__ */ w(k, {
539
+ className: "size-3.5 shrink-0",
540
+ "aria-hidden": "true"
541
+ }), /* @__PURE__ */ w("span", {
542
+ className: "truncate",
543
+ children: n.label
544
+ })]
545
+ }) : /* @__PURE__ */ w("span", {
546
+ className: "text-text-secondary",
547
+ children: "—"
548
+ }) }),
549
+ /* @__PURE__ */ w(K, {
550
+ className: "text-text-secondary",
551
+ children: /* @__PURE__ */ w(le, { value: e.startedAt })
552
+ }),
553
+ /* @__PURE__ */ w(K, {
554
+ className: "text-text-secondary",
555
+ children: /* @__PURE__ */ w(le, { value: e.finishedAt })
556
+ }),
557
+ /* @__PURE__ */ w(K, { children: Y(e) ? /* @__PURE__ */ T(M, {
558
+ type: "button",
559
+ variant: "outline",
560
+ size: "sm",
561
+ className: "h-auto gap-1 px-2 py-1",
562
+ onClick: () => $(e),
563
+ children: [/* @__PURE__ */ w(E, {
564
+ className: "size-3.5",
565
+ "aria-hidden": "true"
566
+ }), "View"]
567
+ }) : /* @__PURE__ */ w("span", {
568
+ className: "text-text-secondary",
569
+ children: "—"
570
+ }) }),
571
+ /* @__PURE__ */ w(K, {
572
+ className: "text-right",
573
+ children: /* @__PURE__ */ w(l, {
574
+ ariaLabel: `Actions for ${e.title}`,
575
+ onView: n ? () => t(n.path) : void 0,
576
+ extraItems: ge(e)
577
+ })
578
+ })
579
+ ] }, e.id);
580
+ }) })]
581
+ })
554
582
  }), /* @__PURE__ */ w("ul", {
555
583
  className: "space-y-3 md:hidden",
556
- children: I.map((e) => {
557
- let n = me(e), r = e.status === "PENDING" || e.status === "RUNNING";
584
+ children: L.map((e) => {
585
+ let n = he(e), r = e.status === "PENDING" || e.status === "RUNNING";
558
586
  return /* @__PURE__ */ T("li", {
559
587
  className: "space-y-3 rounded-card border border-border-default bg-bg-elevated p-4",
560
588
  children: [
@@ -573,7 +601,7 @@ function fe() {
573
601
  }),
574
602
  /* @__PURE__ */ T("div", {
575
603
  className: "flex flex-wrap items-center gap-2",
576
- children: [e.aiAssisted ? /* @__PURE__ */ T(ne, {
604
+ children: [e.aiAssisted ? /* @__PURE__ */ T(j, {
577
605
  variant: "secondary",
578
606
  className: "gap-1",
579
607
  children: [/* @__PURE__ */ w(te, {
@@ -611,13 +639,13 @@ function fe() {
611
639
  }),
612
640
  Y(e) || r ? /* @__PURE__ */ T("div", {
613
641
  className: "flex flex-wrap gap-2",
614
- children: [Y(e) ? /* @__PURE__ */ T(j, {
642
+ children: [Y(e) ? /* @__PURE__ */ T(M, {
615
643
  type: "button",
616
644
  variant: "outline",
617
645
  size: "sm",
618
646
  onClick: () => $(e),
619
647
  children: [/* @__PURE__ */ w(E, { className: "size-4" }), "View results"]
620
- }) : null, r ? /* @__PURE__ */ T(j, {
648
+ }) : null, r ? /* @__PURE__ */ T(M, {
621
649
  type: "button",
622
650
  variant: "outline",
623
651
  size: "sm",
@@ -630,19 +658,19 @@ function fe() {
630
658
  })
631
659
  })] })]
632
660
  }),
633
- /* @__PURE__ */ w(ue, {
661
+ /* @__PURE__ */ w(de, {
634
662
  open: m,
635
663
  onOpenChange: g,
636
- onCompleted: () => void N()
664
+ onCompleted: () => void P()
637
665
  }),
638
- /* @__PURE__ */ w(de, {
666
+ /* @__PURE__ */ w(fe, {
639
667
  analysis: y,
640
668
  onOpenChange: (e) => {
641
669
  e || b(null);
642
670
  },
643
- onCompleted: () => void N()
671
+ onCompleted: () => void P()
644
672
  }, y?.id ?? "none"),
645
- /* @__PURE__ */ w(le, {
673
+ /* @__PURE__ */ w(ue, {
646
674
  analysis: Q,
647
675
  onOpenChange: (e) => {
648
676
  e || $(null);
@@ -652,6 +680,6 @@ function fe() {
652
680
  });
653
681
  }
654
682
  //#endregion
655
- export { fe as default };
683
+ export { pe as default };
656
684
 
657
685
  //# sourceMappingURL=AnalysesPage.js.map