@burdenoff/microfe-cosmicintersection 2026.1101.3 → 2026.1102.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.
- package/dist/cosmicintersection/api/cosmicApi.d.ts +33 -0
- package/dist/cosmicintersection/api/cosmicApi.d.ts.map +1 -1
- package/dist/cosmicintersection/api/cosmicApi.js +118 -71
- package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
- package/dist/cosmicintersection/lib/useTrackRecentItem.d.ts +22 -0
- package/dist/cosmicintersection/lib/useTrackRecentItem.d.ts.map +1 -0
- package/dist/cosmicintersection/lib/useTrackRecentItem.js +28 -0
- package/dist/cosmicintersection/lib/useTrackRecentItem.js.map +1 -0
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +245 -237
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js +101 -93
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +82 -74
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +66 -58
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js +126 -118
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/releases/ReleasesPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js +211 -203
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js +92 -84
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.js +101 -93
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/services/recentItems.d.ts +40 -0
- package/dist/services/recentItems.d.ts.map +1 -0
- package/dist/services/recentItems.js +128 -0
- package/dist/services/recentItems.js.map +1 -0
- package/package.json +5 -1
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import { useCosmicIntersection as e } from "../../context/CosmicIntersectionContext.js";
|
|
2
2
|
import { notify as t } from "../../lib/toast.js";
|
|
3
|
-
import { useCosAnalysesQuery as n,
|
|
4
|
-
import { useTr as
|
|
5
|
-
import { ActionMenu as
|
|
6
|
-
import { EmptyState as
|
|
7
|
-
import { ErrorState as
|
|
8
|
-
import { LoadingState as
|
|
9
|
-
import { FileUploadField as
|
|
10
|
-
import { PageLayout as
|
|
11
|
-
import { ScienceCanvas as
|
|
12
|
-
import { StatusBadge as
|
|
3
|
+
import { useCosAnalysesQuery as n, useCosAnalysisQuery as r, useCosCompleteAnalysisMutation as i, useCosDatasetsQuery as a, useCosNotebooksQuery as o, useCosRunAnalysisMutation as s } from "../../api/cosmicApi.js";
|
|
4
|
+
import { useTr as c } from "../../../shared/hooks/useTr.js";
|
|
5
|
+
import { ActionMenu as l } from "../../components/ActionMenu.js";
|
|
6
|
+
import { EmptyState as u } from "../../components/EmptyState.js";
|
|
7
|
+
import { ErrorState as d } from "../../components/ErrorState.js";
|
|
8
|
+
import { LoadingState as f } from "../../components/LoadingState.js";
|
|
9
|
+
import { FileUploadField as p, useFileDownloadUrl as m } from "../../components/FileUploadField.js";
|
|
10
|
+
import { PageLayout as h } from "../../components/PageLayout.js";
|
|
11
|
+
import { ScienceCanvas as g } from "../../components/ScienceCanvas.js";
|
|
12
|
+
import { StatusBadge as _ } from "../../components/StatusBadge.js";
|
|
13
13
|
import "../../components/index.js";
|
|
14
|
-
import { useSelectedRecord as
|
|
15
|
-
import { ASSISTANT_AWARE_DIALOG_CONTENT_PROPS as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
14
|
+
import { useSelectedRecord as v } from "../../lib/useSelectedRecord.js";
|
|
15
|
+
import { ASSISTANT_AWARE_DIALOG_CONTENT_PROPS as y, ASSISTANT_AWARE_DIALOG_ROOT_PROPS as b } from "../../lib/assistantAwareDialog.js";
|
|
16
|
+
import { useTrackRecentItem as ee } from "../../lib/useTrackRecentItem.js";
|
|
17
|
+
import { useMemo as x, useState as S } from "react";
|
|
18
|
+
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
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
21
|
//#region src/cosmicintersection/pages/analyses/AnalysesPage.tsx
|
|
21
|
-
function
|
|
22
|
+
function Y(e) {
|
|
22
23
|
return !!e.outputFile?.id || !!(e.results && Object.keys(e.results).length > 0);
|
|
23
24
|
}
|
|
24
|
-
var
|
|
25
|
+
var ce = [
|
|
25
26
|
{
|
|
26
27
|
value: "PENDING",
|
|
27
28
|
label: "Pending"
|
|
@@ -38,8 +39,8 @@ var ae = [
|
|
|
38
39
|
value: "FAILED",
|
|
39
40
|
label: "Failed"
|
|
40
41
|
}
|
|
41
|
-
],
|
|
42
|
-
function
|
|
42
|
+
], X = "ALL";
|
|
43
|
+
function Z(e) {
|
|
43
44
|
if (!e) return "—";
|
|
44
45
|
let t = new Date(e);
|
|
45
46
|
return Number.isNaN(t.getTime()) ? "—" : t.toLocaleString(void 0, {
|
|
@@ -50,70 +51,70 @@ function Q(e) {
|
|
|
50
51
|
minute: "2-digit"
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
-
let { data: t, loading: n } =
|
|
55
|
-
return n ? /* @__PURE__ */
|
|
54
|
+
function Q({ fileId: e }) {
|
|
55
|
+
let { data: t, loading: n } = m(e), [r, i] = S(!1), a = t?.getFileDownloadUrl ?? null;
|
|
56
|
+
return n ? /* @__PURE__ */ w("span", {
|
|
56
57
|
className: "text-xs text-text-secondary",
|
|
57
58
|
children: "Resolving link…"
|
|
58
|
-
}) : a ? /* @__PURE__ */
|
|
59
|
+
}) : a ? /* @__PURE__ */ T("div", {
|
|
59
60
|
className: "space-y-2",
|
|
60
|
-
children: [r ? null : /* @__PURE__ */
|
|
61
|
+
children: [r ? null : /* @__PURE__ */ w("img", {
|
|
61
62
|
src: a,
|
|
62
63
|
alt: "Analysis output preview",
|
|
63
64
|
onError: () => i(!0),
|
|
64
65
|
className: "max-h-72 w-full rounded-card border border-border-default bg-bg-sunken object-contain"
|
|
65
|
-
}), /* @__PURE__ */
|
|
66
|
+
}), /* @__PURE__ */ T("a", {
|
|
66
67
|
href: a,
|
|
67
68
|
target: "_blank",
|
|
68
69
|
rel: "noopener noreferrer",
|
|
69
70
|
className: "inline-flex items-center gap-1 text-sm text-text-primary underline-offset-2 hover:underline",
|
|
70
|
-
children: [/* @__PURE__ */
|
|
71
|
+
children: [/* @__PURE__ */ w(O, {
|
|
71
72
|
className: "size-3.5",
|
|
72
73
|
"aria-hidden": "true"
|
|
73
74
|
}), "Download output"]
|
|
74
75
|
})]
|
|
75
|
-
}) : /* @__PURE__ */
|
|
76
|
+
}) : /* @__PURE__ */ T("span", {
|
|
76
77
|
className: "text-xs text-text-secondary",
|
|
77
78
|
children: ["File ", e]
|
|
78
79
|
});
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
+
function le({ analysis: e, onOpenChange: t }) {
|
|
81
82
|
let n = e?.results ?? null, r = !!(n && Object.keys(n).length > 0), i = !!e?.outputFile?.id;
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
-
...
|
|
83
|
+
return /* @__PURE__ */ w(M, {
|
|
84
|
+
...b,
|
|
84
85
|
open: !!e,
|
|
85
86
|
onOpenChange: t,
|
|
86
|
-
children: /* @__PURE__ */
|
|
87
|
-
...
|
|
87
|
+
children: /* @__PURE__ */ w(N, {
|
|
88
|
+
...y,
|
|
88
89
|
className: "max-h-[85vh] max-w-2xl overflow-y-auto",
|
|
89
|
-
children: e ? /* @__PURE__ */
|
|
90
|
-
/* @__PURE__ */
|
|
90
|
+
children: e ? /* @__PURE__ */ T(C, { children: [
|
|
91
|
+
/* @__PURE__ */ T(I, { children: [/* @__PURE__ */ T(L, {
|
|
91
92
|
className: "flex items-center gap-2",
|
|
92
|
-
children: [/* @__PURE__ */
|
|
93
|
+
children: [/* @__PURE__ */ w(E, {
|
|
93
94
|
className: "size-5 text-text-secondary",
|
|
94
95
|
"aria-hidden": "true"
|
|
95
96
|
}), "Analysis results"]
|
|
96
|
-
}), /* @__PURE__ */
|
|
97
|
-
/* @__PURE__ */
|
|
97
|
+
}), /* @__PURE__ */ T(P, { children: [e.title, e.method ? ` · ${e.method}` : ""] })] }),
|
|
98
|
+
/* @__PURE__ */ T("div", {
|
|
98
99
|
className: "space-y-5",
|
|
99
100
|
children: [
|
|
100
|
-
r && n ? /* @__PURE__ */
|
|
101
|
-
i && e.outputFile ? /* @__PURE__ */
|
|
101
|
+
r && n ? /* @__PURE__ */ w(g, { results: n }) : null,
|
|
102
|
+
i && e.outputFile ? /* @__PURE__ */ T("div", {
|
|
102
103
|
className: "space-y-2",
|
|
103
|
-
children: [/* @__PURE__ */
|
|
104
|
+
children: [/* @__PURE__ */ w("p", {
|
|
104
105
|
className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
|
|
105
106
|
children: "Output artifact"
|
|
106
|
-
}), /* @__PURE__ */
|
|
107
|
+
}), /* @__PURE__ */ w(Q, { fileId: e.outputFile.id })]
|
|
107
108
|
}) : null,
|
|
108
|
-
!r && !i ? /* @__PURE__ */
|
|
109
|
+
!r && !i ? /* @__PURE__ */ w("p", {
|
|
109
110
|
className: "rounded-card border border-border-default bg-bg-sunken px-4 py-6 text-center text-sm text-text-secondary",
|
|
110
111
|
children: "No results or output artifact has been recorded for this analysis yet."
|
|
111
112
|
}) : null
|
|
112
113
|
]
|
|
113
114
|
}),
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
+
/* @__PURE__ */ w(F, { children: /* @__PURE__ */ w(re, {
|
|
115
116
|
asChild: !0,
|
|
116
|
-
children: /* @__PURE__ */
|
|
117
|
+
children: /* @__PURE__ */ w(j, {
|
|
117
118
|
type: "button",
|
|
118
119
|
variant: "outline",
|
|
119
120
|
children: "Close"
|
|
@@ -145,50 +146,50 @@ function $(e, t) {
|
|
|
145
146
|
};
|
|
146
147
|
}
|
|
147
148
|
}
|
|
148
|
-
function
|
|
149
|
-
let
|
|
149
|
+
function ue({ open: e, onOpenChange: n, onCompleted: r }) {
|
|
150
|
+
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: {
|
|
150
151
|
limit: 100,
|
|
151
152
|
offset: 0
|
|
152
|
-
} }), { data:
|
|
153
|
+
} }), { data: ee, loading: x } = a({ pagination: {
|
|
153
154
|
limit: 100,
|
|
154
155
|
offset: 0
|
|
155
|
-
} }), [
|
|
156
|
+
} }), [C, { loading: E }] = s(), D = y?.cosListNotebooks.items ?? [], O = ee?.cosListDatasets.items ?? [], k = () => {
|
|
156
157
|
u(""), f(""), m(!1), g("NOTEBOOK"), v("");
|
|
157
158
|
};
|
|
158
|
-
return /* @__PURE__ */
|
|
159
|
+
return /* @__PURE__ */ w(M, {
|
|
159
160
|
open: e,
|
|
160
161
|
onOpenChange: (e) => {
|
|
161
|
-
|
|
162
|
+
E || n(e);
|
|
162
163
|
},
|
|
163
|
-
children: /* @__PURE__ */
|
|
164
|
+
children: /* @__PURE__ */ w(N, { children: /* @__PURE__ */ T("form", {
|
|
164
165
|
onSubmit: async (e) => {
|
|
165
166
|
e.preventDefault();
|
|
166
|
-
let
|
|
167
|
-
if (!
|
|
168
|
-
t.error(
|
|
167
|
+
let a = l.trim();
|
|
168
|
+
if (!a) {
|
|
169
|
+
t.error(i("cosmicintersection.pages.analyses.titleRequired", "Title is required"), i("cosmicintersection.pages.analyses.titleRequiredDescription", "Give the analysis a descriptive title."));
|
|
169
170
|
return;
|
|
170
171
|
}
|
|
171
172
|
if (!_) {
|
|
172
|
-
t.error(
|
|
173
|
+
t.error(i("cosmicintersection.pages.analyses.selectSource", "Select a source"), i("cosmicintersection.pages.analyses.selectSourceDescription", "Choose a {{kind}} to analyse.", { kind: h === "NOTEBOOK" ? i("nav.notebooks", "notebook").toLowerCase() : i("nav.datasets", "dataset").toLowerCase() }));
|
|
173
174
|
return;
|
|
174
175
|
}
|
|
175
|
-
let
|
|
176
|
-
title:
|
|
176
|
+
let o = await C({ variables: { input: {
|
|
177
|
+
title: a,
|
|
177
178
|
method: d.trim() || void 0,
|
|
178
179
|
aiAssisted: p,
|
|
179
180
|
...h === "NOTEBOOK" ? { notebookId: _ } : { datasetId: _ }
|
|
180
181
|
} } });
|
|
181
|
-
|
|
182
|
+
o.error || !o.data?.cosRunAnalysis?.id || (t.success(i("cosmicintersection.pages.analyses.analysisStarted", "Analysis started"), i("cosmicintersection.pages.analyses.analysisStartedDescription", "“{{name}}” is now running.", { name: a })), k(), n(!1), r());
|
|
182
183
|
},
|
|
183
184
|
className: "space-y-4",
|
|
184
185
|
children: [
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
/* @__PURE__ */
|
|
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." })] }),
|
|
187
|
+
/* @__PURE__ */ T("div", {
|
|
187
188
|
className: "space-y-1.5",
|
|
188
|
-
children: [/* @__PURE__ */
|
|
189
|
+
children: [/* @__PURE__ */ w(z, {
|
|
189
190
|
htmlFor: "run-title",
|
|
190
191
|
children: "Title"
|
|
191
|
-
}), /* @__PURE__ */
|
|
192
|
+
}), /* @__PURE__ */ w(R, {
|
|
192
193
|
id: "run-title",
|
|
193
194
|
value: l,
|
|
194
195
|
onChange: (e) => u(e.target.value),
|
|
@@ -196,176 +197,176 @@ function ce({ open: e, onOpenChange: n, onCompleted: r }) {
|
|
|
196
197
|
required: !0
|
|
197
198
|
})]
|
|
198
199
|
}),
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ T("div", {
|
|
200
201
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
201
|
-
children: [/* @__PURE__ */
|
|
202
|
+
children: [/* @__PURE__ */ T("div", {
|
|
202
203
|
className: "space-y-1.5",
|
|
203
|
-
children: [/* @__PURE__ */
|
|
204
|
+
children: [/* @__PURE__ */ w(z, {
|
|
204
205
|
htmlFor: "run-source-kind",
|
|
205
206
|
children: "Source type"
|
|
206
|
-
}), /* @__PURE__ */
|
|
207
|
+
}), /* @__PURE__ */ T(B, {
|
|
207
208
|
value: h,
|
|
208
209
|
onValueChange: (e) => {
|
|
209
210
|
g(e), v("");
|
|
210
211
|
},
|
|
211
|
-
children: [/* @__PURE__ */
|
|
212
|
+
children: [/* @__PURE__ */ w(U, {
|
|
212
213
|
id: "run-source-kind",
|
|
213
214
|
"aria-label": "Source type",
|
|
214
|
-
children: /* @__PURE__ */
|
|
215
|
-
}), /* @__PURE__ */
|
|
215
|
+
children: /* @__PURE__ */ w(W, {})
|
|
216
|
+
}), /* @__PURE__ */ T(V, { children: [/* @__PURE__ */ w(H, {
|
|
216
217
|
value: "NOTEBOOK",
|
|
217
218
|
children: "Notebook"
|
|
218
|
-
}), /* @__PURE__ */
|
|
219
|
+
}), /* @__PURE__ */ w(H, {
|
|
219
220
|
value: "DATASET",
|
|
220
221
|
children: "Dataset"
|
|
221
222
|
})] })]
|
|
222
223
|
})]
|
|
223
|
-
}), /* @__PURE__ */
|
|
224
|
+
}), /* @__PURE__ */ T("div", {
|
|
224
225
|
className: "space-y-1.5",
|
|
225
|
-
children: [/* @__PURE__ */
|
|
226
|
+
children: [/* @__PURE__ */ w(z, {
|
|
226
227
|
htmlFor: "run-source-id",
|
|
227
228
|
children: h === "NOTEBOOK" ? "Notebook" : "Dataset"
|
|
228
|
-
}), /* @__PURE__ */
|
|
229
|
+
}), /* @__PURE__ */ T(B, {
|
|
229
230
|
value: _,
|
|
230
231
|
onValueChange: (e) => v(e),
|
|
231
|
-
children: [/* @__PURE__ */
|
|
232
|
+
children: [/* @__PURE__ */ w(U, {
|
|
232
233
|
id: "run-source-id",
|
|
233
234
|
"aria-label": "Analysis source",
|
|
234
|
-
children: /* @__PURE__ */
|
|
235
|
-
}), /* @__PURE__ */
|
|
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, {
|
|
236
237
|
value: e.id,
|
|
237
238
|
children: e.title
|
|
238
|
-
}, e.id)) :
|
|
239
|
+
}, e.id)) : O.map((e) => /* @__PURE__ */ w(H, {
|
|
239
240
|
value: e.id,
|
|
240
241
|
children: e.name
|
|
241
242
|
}, e.id)) })]
|
|
242
243
|
})]
|
|
243
244
|
})]
|
|
244
245
|
}),
|
|
245
|
-
/* @__PURE__ */
|
|
246
|
+
/* @__PURE__ */ T("div", {
|
|
246
247
|
className: "space-y-1.5",
|
|
247
|
-
children: [/* @__PURE__ */
|
|
248
|
+
children: [/* @__PURE__ */ w(z, {
|
|
248
249
|
htmlFor: "run-method",
|
|
249
250
|
children: "Method"
|
|
250
|
-
}), /* @__PURE__ */
|
|
251
|
+
}), /* @__PURE__ */ w(R, {
|
|
251
252
|
id: "run-method",
|
|
252
253
|
value: d,
|
|
253
254
|
onChange: (e) => f(e.target.value),
|
|
254
255
|
placeholder: "e.g. gaussian-fit"
|
|
255
256
|
})]
|
|
256
257
|
}),
|
|
257
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ T("div", {
|
|
258
259
|
className: "flex items-center gap-3",
|
|
259
|
-
children: [/* @__PURE__ */
|
|
260
|
+
children: [/* @__PURE__ */ w(G, {
|
|
260
261
|
id: "run-ai",
|
|
261
262
|
checked: p,
|
|
262
263
|
onCheckedChange: (e) => m(e)
|
|
263
|
-
}), /* @__PURE__ */
|
|
264
|
+
}), /* @__PURE__ */ w(z, {
|
|
264
265
|
htmlFor: "run-ai",
|
|
265
266
|
className: "cursor-pointer",
|
|
266
267
|
children: "AI-assisted analysis"
|
|
267
268
|
})]
|
|
268
269
|
}),
|
|
269
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ T(F, { children: [/* @__PURE__ */ w(j, {
|
|
270
271
|
type: "button",
|
|
271
272
|
variant: "outline",
|
|
272
273
|
onClick: () => n(!1),
|
|
273
|
-
disabled:
|
|
274
|
+
disabled: E,
|
|
274
275
|
children: "Cancel"
|
|
275
|
-
}), /* @__PURE__ */
|
|
276
|
+
}), /* @__PURE__ */ T(j, {
|
|
276
277
|
type: "submit",
|
|
277
|
-
disabled:
|
|
278
|
-
children: [/* @__PURE__ */
|
|
278
|
+
disabled: E,
|
|
279
|
+
children: [/* @__PURE__ */ w(A, { className: "size-4" }), E ? "Starting…" : "Run analysis"]
|
|
279
280
|
})] })
|
|
280
281
|
]
|
|
281
282
|
}) })
|
|
282
283
|
});
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
-
let [a, o] =
|
|
286
|
-
return /* @__PURE__ */
|
|
285
|
+
function de({ analysis: e, onOpenChange: n, onCompleted: r }) {
|
|
286
|
+
let [a, o] = S("COMPLETED"), [s, l] = S(""), [u, d] = S(""), [f, { loading: m }] = i(), h = c();
|
|
287
|
+
return /* @__PURE__ */ w(M, {
|
|
287
288
|
open: !!e,
|
|
288
289
|
onOpenChange: (e) => {
|
|
289
290
|
m || n(e);
|
|
290
291
|
},
|
|
291
|
-
children: /* @__PURE__ */
|
|
292
|
-
onSubmit: async (
|
|
293
|
-
if (
|
|
294
|
-
let o = $(
|
|
292
|
+
children: /* @__PURE__ */ w(N, { children: /* @__PURE__ */ T("form", {
|
|
293
|
+
onSubmit: async (i) => {
|
|
294
|
+
if (i.preventDefault(), !e) return;
|
|
295
|
+
let o = $(s, h);
|
|
295
296
|
if (!o.ok) {
|
|
296
297
|
t.error(h("cosmicintersection.pages.analyses.invalidResults", "Invalid results"), o.error);
|
|
297
298
|
return;
|
|
298
299
|
}
|
|
299
|
-
let
|
|
300
|
+
let c = await f({ variables: {
|
|
300
301
|
id: e.id,
|
|
301
302
|
status: a,
|
|
302
303
|
results: o.value,
|
|
303
304
|
outputFileId: u || void 0
|
|
304
305
|
} });
|
|
305
|
-
|
|
306
|
+
c.error || !c.data?.cosCompleteAnalysis || (t.success(a === "COMPLETED" ? h("cosmicintersection.pages.analyses.analysisCompleted", "Analysis completed") : h("cosmicintersection.pages.analyses.analysisMarkedFailed", "Analysis marked failed"), h("cosmicintersection.pages.analyses.analysisUpdatedDescription", "“{{name}}” was updated.", { name: e.title })), n(!1), r());
|
|
306
307
|
},
|
|
307
308
|
className: "space-y-4",
|
|
308
309
|
children: [
|
|
309
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ T(I, { children: [/* @__PURE__ */ w(L, { children: "Complete analysis" }), /* @__PURE__ */ T(P, { children: [
|
|
310
311
|
"Record the outcome for ",
|
|
311
312
|
e ? `“${e.title}”` : "this analysis",
|
|
312
313
|
". Attach results or an output artifact if you have them."
|
|
313
314
|
] })] }),
|
|
314
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ T("div", {
|
|
315
316
|
className: "space-y-1.5",
|
|
316
|
-
children: [/* @__PURE__ */
|
|
317
|
+
children: [/* @__PURE__ */ w(z, {
|
|
317
318
|
htmlFor: "complete-status",
|
|
318
319
|
children: "Outcome"
|
|
319
|
-
}), /* @__PURE__ */
|
|
320
|
+
}), /* @__PURE__ */ T(B, {
|
|
320
321
|
value: a,
|
|
321
322
|
onValueChange: (e) => o(e),
|
|
322
|
-
children: [/* @__PURE__ */
|
|
323
|
+
children: [/* @__PURE__ */ w(U, {
|
|
323
324
|
id: "complete-status",
|
|
324
325
|
"aria-label": "Outcome",
|
|
325
|
-
children: /* @__PURE__ */
|
|
326
|
-
}), /* @__PURE__ */
|
|
326
|
+
children: /* @__PURE__ */ w(W, {})
|
|
327
|
+
}), /* @__PURE__ */ T(V, { children: [/* @__PURE__ */ w(H, {
|
|
327
328
|
value: "COMPLETED",
|
|
328
329
|
children: "Completed"
|
|
329
|
-
}), /* @__PURE__ */
|
|
330
|
+
}), /* @__PURE__ */ w(H, {
|
|
330
331
|
value: "FAILED",
|
|
331
332
|
children: "Failed"
|
|
332
333
|
})] })]
|
|
333
334
|
})]
|
|
334
335
|
}),
|
|
335
|
-
/* @__PURE__ */
|
|
336
|
+
/* @__PURE__ */ T("div", {
|
|
336
337
|
className: "space-y-1.5",
|
|
337
338
|
children: [
|
|
338
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ w(z, {
|
|
339
340
|
htmlFor: "complete-results",
|
|
340
341
|
children: "Results (JSON)"
|
|
341
342
|
}),
|
|
342
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ w(J, {
|
|
343
344
|
id: "complete-results",
|
|
344
|
-
value:
|
|
345
|
+
value: s,
|
|
345
346
|
onChange: (e) => l(e.target.value),
|
|
346
347
|
rows: 4,
|
|
347
348
|
className: "font-mono text-xs",
|
|
348
349
|
placeholder: "{ \"snr\": 12.4, \"detections\": 3 }"
|
|
349
350
|
}),
|
|
350
|
-
/* @__PURE__ */
|
|
351
|
+
/* @__PURE__ */ w("p", {
|
|
351
352
|
className: "text-xs text-text-secondary",
|
|
352
353
|
children: "Optional structured results as a JSON object."
|
|
353
354
|
})
|
|
354
355
|
]
|
|
355
356
|
}),
|
|
356
|
-
/* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ w(p, {
|
|
357
358
|
value: u,
|
|
358
359
|
onChange: (e) => d(e),
|
|
359
360
|
label: "Attach output file",
|
|
360
361
|
hint: "Optional output artifact (plots, tables, exports). Stored in workspace files."
|
|
361
362
|
}),
|
|
362
|
-
/* @__PURE__ */
|
|
363
|
+
/* @__PURE__ */ T(F, { children: [/* @__PURE__ */ w(j, {
|
|
363
364
|
type: "button",
|
|
364
365
|
variant: "outline",
|
|
365
366
|
onClick: () => n(!1),
|
|
366
367
|
disabled: m,
|
|
367
368
|
children: "Cancel"
|
|
368
|
-
}), /* @__PURE__ */
|
|
369
|
+
}), /* @__PURE__ */ w(j, {
|
|
369
370
|
type: "submit",
|
|
370
371
|
disabled: m,
|
|
371
372
|
children: m ? "Saving…" : "Save outcome"
|
|
@@ -374,247 +375,254 @@ function le({ analysis: e, onOpenChange: n, onCompleted: i }) {
|
|
|
374
375
|
}) })
|
|
375
376
|
});
|
|
376
377
|
}
|
|
377
|
-
function
|
|
378
|
-
let { navigate: t } = e(),
|
|
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: {
|
|
379
380
|
limit: 100,
|
|
380
381
|
offset: 0
|
|
381
|
-
} }), { data:
|
|
382
|
+
} }), { data: F } = a({ pagination: {
|
|
382
383
|
limit: 100,
|
|
383
384
|
offset: 0
|
|
384
|
-
} }),
|
|
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);
|
|
386
|
+
ee(Q ? {
|
|
387
|
+
type: "analysis",
|
|
388
|
+
id: Q.id,
|
|
389
|
+
name: Q.title,
|
|
390
|
+
path: `analyses?id=${encodeURIComponent(Q.id)}`
|
|
391
|
+
} : null);
|
|
392
|
+
let fe = x(() => {
|
|
385
393
|
let e = /* @__PURE__ */ new Map();
|
|
386
|
-
for (let t of
|
|
394
|
+
for (let t of P?.cosListNotebooks.items ?? []) e.set(t.id, t.title);
|
|
387
395
|
return e;
|
|
388
|
-
}, [
|
|
396
|
+
}, [P]), pe = x(() => {
|
|
389
397
|
let e = /* @__PURE__ */ new Map();
|
|
390
|
-
for (let t of
|
|
398
|
+
for (let t of F?.cosListDatasets.items ?? []) e.set(t.id, t.name);
|
|
391
399
|
return e;
|
|
392
|
-
}, [
|
|
393
|
-
label:
|
|
400
|
+
}, [F]), me = (e) => e.notebookId ? {
|
|
401
|
+
label: fe.get(e.notebookId) ?? "Notebook",
|
|
394
402
|
path: `notebooks/${e.notebookId}`
|
|
395
403
|
} : e.datasetId ? {
|
|
396
|
-
label:
|
|
404
|
+
label: pe.get(e.datasetId) ?? "Dataset",
|
|
397
405
|
path: `datasets/${e.datasetId}`
|
|
398
|
-
} : null,
|
|
406
|
+
} : null, he = (e) => {
|
|
399
407
|
let t = e.status === "PENDING" || e.status === "RUNNING";
|
|
400
|
-
return [...
|
|
408
|
+
return [...Y(e) ? [{
|
|
401
409
|
key: "view-results",
|
|
402
410
|
label: "View results",
|
|
403
|
-
icon:
|
|
404
|
-
onSelect: () =>
|
|
411
|
+
icon: E,
|
|
412
|
+
onSelect: () => $(e)
|
|
405
413
|
}] : [], ...t ? [{
|
|
406
414
|
key: "complete",
|
|
407
415
|
label: "Complete…",
|
|
408
|
-
icon:
|
|
409
|
-
onSelect: () =>
|
|
416
|
+
icon: D,
|
|
417
|
+
onSelect: () => b(e)
|
|
410
418
|
}] : []];
|
|
411
|
-
},
|
|
419
|
+
}, ge = /* @__PURE__ */ T(j, {
|
|
412
420
|
type: "button",
|
|
413
|
-
onClick: () =>
|
|
414
|
-
children: [/* @__PURE__ */
|
|
421
|
+
onClick: () => g(!0),
|
|
422
|
+
children: [/* @__PURE__ */ w(A, { className: "size-4" }), i("cosmicintersection.pages.analyses.create", "Run analysis")]
|
|
415
423
|
});
|
|
416
|
-
return /* @__PURE__ */
|
|
417
|
-
title:
|
|
418
|
-
description:
|
|
419
|
-
actions:
|
|
424
|
+
return /* @__PURE__ */ T(h, {
|
|
425
|
+
title: i("cosmicintersection.pages.analyses.title", "Analyses"),
|
|
426
|
+
description: i("cosmicintersection.pages.analyses.description", "Analysis runs executed over notebooks and federated datasets."),
|
|
427
|
+
actions: ge,
|
|
420
428
|
children: [
|
|
421
|
-
/* @__PURE__ */
|
|
429
|
+
/* @__PURE__ */ T("div", {
|
|
422
430
|
className: "space-y-4",
|
|
423
|
-
children: [/* @__PURE__ */
|
|
431
|
+
children: [/* @__PURE__ */ T("div", {
|
|
424
432
|
className: "flex flex-wrap items-center gap-3",
|
|
425
|
-
children: [/* @__PURE__ */
|
|
433
|
+
children: [/* @__PURE__ */ w("label", {
|
|
426
434
|
className: "text-sm text-text-secondary",
|
|
427
435
|
htmlFor: "analysis-status-filter",
|
|
428
436
|
children: "Status"
|
|
429
|
-
}), /* @__PURE__ */
|
|
430
|
-
value:
|
|
431
|
-
onValueChange: (e) =>
|
|
432
|
-
children: [/* @__PURE__ */
|
|
437
|
+
}), /* @__PURE__ */ T(B, {
|
|
438
|
+
value: s ?? X,
|
|
439
|
+
onValueChange: (e) => p(e === X ? void 0 : e),
|
|
440
|
+
children: [/* @__PURE__ */ w(U, {
|
|
433
441
|
id: "analysis-status-filter",
|
|
434
442
|
className: "w-48",
|
|
435
443
|
"aria-label": "Filter by status",
|
|
436
|
-
children: /* @__PURE__ */
|
|
437
|
-
}), /* @__PURE__ */
|
|
438
|
-
value:
|
|
444
|
+
children: /* @__PURE__ */ w(W, {})
|
|
445
|
+
}), /* @__PURE__ */ T(V, { children: [/* @__PURE__ */ w(H, {
|
|
446
|
+
value: X,
|
|
439
447
|
children: "All statuses"
|
|
440
|
-
}),
|
|
448
|
+
}), ce.map((e) => /* @__PURE__ */ w(H, {
|
|
441
449
|
value: e.value,
|
|
442
450
|
children: e.label
|
|
443
451
|
}, e.value))] })]
|
|
444
452
|
})]
|
|
445
|
-
}),
|
|
453
|
+
}), M ? /* @__PURE__ */ w(f, {
|
|
446
454
|
variant: "rows",
|
|
447
455
|
rows: 6,
|
|
448
|
-
label:
|
|
449
|
-
}) :
|
|
450
|
-
message:
|
|
451
|
-
onRetry: () => void
|
|
452
|
-
}) :
|
|
453
|
-
icon:
|
|
454
|
-
title:
|
|
455
|
-
description:
|
|
456
|
-
action:
|
|
456
|
+
label: i("cosmicintersection.pages.analyses.loading", "Loading analyses…")
|
|
457
|
+
}) : re ? /* @__PURE__ */ w(d, {
|
|
458
|
+
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, {
|
|
461
|
+
icon: D,
|
|
462
|
+
title: s ? i("cosmicintersection.pages.analyses.emptyFilterTitle", "No analyses match this filter.") : i("cosmicintersection.pages.analyses.emptyTitle", "No analyses yet."),
|
|
463
|
+
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, {
|
|
457
465
|
type: "button",
|
|
458
|
-
onClick: () =>
|
|
459
|
-
children: [/* @__PURE__ */
|
|
466
|
+
onClick: () => g(!0),
|
|
467
|
+
children: [/* @__PURE__ */ w(A, { className: "size-4" }), i("cosmicintersection.pages.analyses.create", "Run analysis")]
|
|
460
468
|
})
|
|
461
|
-
}) : /* @__PURE__ */
|
|
469
|
+
}) : /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w("div", {
|
|
462
470
|
className: "hidden rounded-card border border-border-default bg-bg-elevated md:block",
|
|
463
|
-
children: /* @__PURE__ */
|
|
464
|
-
/* @__PURE__ */
|
|
465
|
-
/* @__PURE__ */
|
|
466
|
-
/* @__PURE__ */
|
|
467
|
-
/* @__PURE__ */
|
|
468
|
-
/* @__PURE__ */
|
|
469
|
-
/* @__PURE__ */
|
|
470
|
-
/* @__PURE__ */
|
|
471
|
-
/* @__PURE__ */
|
|
472
|
-
/* @__PURE__ */
|
|
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, {
|
|
473
481
|
className: "w-12 text-right",
|
|
474
482
|
children: "Actions"
|
|
475
483
|
})
|
|
476
|
-
] }) }), /* @__PURE__ */
|
|
477
|
-
let n =
|
|
478
|
-
return /* @__PURE__ */
|
|
479
|
-
/* @__PURE__ */
|
|
484
|
+
] }) }), /* @__PURE__ */ w(ae, { children: I.map((e) => {
|
|
485
|
+
let n = me(e);
|
|
486
|
+
return /* @__PURE__ */ T(se, { children: [
|
|
487
|
+
/* @__PURE__ */ w(K, {
|
|
480
488
|
className: "font-medium text-text-primary",
|
|
481
489
|
children: e.title
|
|
482
490
|
}),
|
|
483
|
-
/* @__PURE__ */
|
|
491
|
+
/* @__PURE__ */ w(K, {
|
|
484
492
|
className: "text-text-secondary",
|
|
485
493
|
children: e.method ?? "—"
|
|
486
494
|
}),
|
|
487
|
-
/* @__PURE__ */
|
|
495
|
+
/* @__PURE__ */ w(K, { children: e.aiAssisted ? /* @__PURE__ */ T(ne, {
|
|
488
496
|
variant: "secondary",
|
|
489
497
|
className: "gap-1",
|
|
490
|
-
children: [/* @__PURE__ */
|
|
498
|
+
children: [/* @__PURE__ */ w(te, {
|
|
491
499
|
className: "size-3",
|
|
492
500
|
"aria-hidden": "true"
|
|
493
501
|
}), "AI"]
|
|
494
|
-
}) : /* @__PURE__ */
|
|
502
|
+
}) : /* @__PURE__ */ w("span", {
|
|
495
503
|
className: "text-text-secondary",
|
|
496
504
|
children: "—"
|
|
497
505
|
}) }),
|
|
498
|
-
/* @__PURE__ */
|
|
499
|
-
/* @__PURE__ */
|
|
506
|
+
/* @__PURE__ */ w(K, { children: /* @__PURE__ */ w(_, { status: e.status }) }),
|
|
507
|
+
/* @__PURE__ */ w(K, { children: n ? /* @__PURE__ */ T("button", {
|
|
500
508
|
type: "button",
|
|
501
509
|
onClick: () => t(n.path),
|
|
502
510
|
className: "inline-flex max-w-[12rem] items-center gap-1 truncate text-sm text-text-primary underline-offset-2 hover:underline",
|
|
503
|
-
children: [/* @__PURE__ */
|
|
511
|
+
children: [/* @__PURE__ */ w(k, {
|
|
504
512
|
className: "size-3.5 shrink-0",
|
|
505
513
|
"aria-hidden": "true"
|
|
506
|
-
}), /* @__PURE__ */
|
|
514
|
+
}), /* @__PURE__ */ w("span", {
|
|
507
515
|
className: "truncate",
|
|
508
516
|
children: n.label
|
|
509
517
|
})]
|
|
510
|
-
}) : /* @__PURE__ */
|
|
518
|
+
}) : /* @__PURE__ */ w("span", {
|
|
511
519
|
className: "text-text-secondary",
|
|
512
520
|
children: "—"
|
|
513
521
|
}) }),
|
|
514
|
-
/* @__PURE__ */
|
|
522
|
+
/* @__PURE__ */ w(K, {
|
|
515
523
|
className: "whitespace-nowrap text-text-secondary",
|
|
516
|
-
children:
|
|
524
|
+
children: Z(e.startedAt)
|
|
517
525
|
}),
|
|
518
|
-
/* @__PURE__ */
|
|
526
|
+
/* @__PURE__ */ w(K, {
|
|
519
527
|
className: "whitespace-nowrap text-text-secondary",
|
|
520
|
-
children:
|
|
528
|
+
children: Z(e.finishedAt)
|
|
521
529
|
}),
|
|
522
|
-
/* @__PURE__ */
|
|
530
|
+
/* @__PURE__ */ w(K, { children: Y(e) ? /* @__PURE__ */ T(j, {
|
|
523
531
|
type: "button",
|
|
524
532
|
variant: "outline",
|
|
525
533
|
size: "sm",
|
|
526
534
|
className: "h-auto gap-1 px-2 py-1",
|
|
527
|
-
onClick: () =>
|
|
528
|
-
children: [/* @__PURE__ */
|
|
535
|
+
onClick: () => $(e),
|
|
536
|
+
children: [/* @__PURE__ */ w(E, {
|
|
529
537
|
className: "size-3.5",
|
|
530
538
|
"aria-hidden": "true"
|
|
531
539
|
}), "View"]
|
|
532
|
-
}) : /* @__PURE__ */
|
|
540
|
+
}) : /* @__PURE__ */ w("span", {
|
|
533
541
|
className: "text-text-secondary",
|
|
534
542
|
children: "—"
|
|
535
543
|
}) }),
|
|
536
|
-
/* @__PURE__ */
|
|
544
|
+
/* @__PURE__ */ w(K, {
|
|
537
545
|
className: "text-right",
|
|
538
|
-
children: /* @__PURE__ */
|
|
546
|
+
children: /* @__PURE__ */ w(l, {
|
|
539
547
|
ariaLabel: `Actions for ${e.title}`,
|
|
540
548
|
onView: n ? () => t(n.path) : void 0,
|
|
541
|
-
extraItems:
|
|
549
|
+
extraItems: he(e)
|
|
542
550
|
})
|
|
543
551
|
})
|
|
544
552
|
] }, e.id);
|
|
545
553
|
}) })] })
|
|
546
|
-
}), /* @__PURE__ */
|
|
554
|
+
}), /* @__PURE__ */ w("ul", {
|
|
547
555
|
className: "space-y-3 md:hidden",
|
|
548
|
-
children:
|
|
549
|
-
let n =
|
|
550
|
-
return /* @__PURE__ */
|
|
556
|
+
children: I.map((e) => {
|
|
557
|
+
let n = me(e), r = e.status === "PENDING" || e.status === "RUNNING";
|
|
558
|
+
return /* @__PURE__ */ T("li", {
|
|
551
559
|
className: "space-y-3 rounded-card border border-border-default bg-bg-elevated p-4",
|
|
552
560
|
children: [
|
|
553
|
-
/* @__PURE__ */
|
|
561
|
+
/* @__PURE__ */ T("div", {
|
|
554
562
|
className: "flex items-start justify-between gap-3",
|
|
555
|
-
children: [/* @__PURE__ */
|
|
563
|
+
children: [/* @__PURE__ */ T("div", {
|
|
556
564
|
className: "min-w-0",
|
|
557
|
-
children: [/* @__PURE__ */
|
|
565
|
+
children: [/* @__PURE__ */ w("p", {
|
|
558
566
|
className: "truncate font-medium text-text-primary",
|
|
559
567
|
children: e.title
|
|
560
|
-
}), e.method ? /* @__PURE__ */
|
|
568
|
+
}), e.method ? /* @__PURE__ */ w("p", {
|
|
561
569
|
className: "truncate text-xs text-text-secondary",
|
|
562
570
|
children: e.method
|
|
563
571
|
}) : null]
|
|
564
|
-
}), /* @__PURE__ */
|
|
572
|
+
}), /* @__PURE__ */ w(_, { status: e.status })]
|
|
565
573
|
}),
|
|
566
|
-
/* @__PURE__ */
|
|
574
|
+
/* @__PURE__ */ T("div", {
|
|
567
575
|
className: "flex flex-wrap items-center gap-2",
|
|
568
|
-
children: [e.aiAssisted ? /* @__PURE__ */
|
|
576
|
+
children: [e.aiAssisted ? /* @__PURE__ */ T(ne, {
|
|
569
577
|
variant: "secondary",
|
|
570
578
|
className: "gap-1",
|
|
571
|
-
children: [/* @__PURE__ */
|
|
579
|
+
children: [/* @__PURE__ */ w(te, {
|
|
572
580
|
className: "size-3",
|
|
573
581
|
"aria-hidden": "true"
|
|
574
582
|
}), "AI"]
|
|
575
|
-
}) : null, n ? /* @__PURE__ */
|
|
583
|
+
}) : null, n ? /* @__PURE__ */ T("button", {
|
|
576
584
|
type: "button",
|
|
577
585
|
onClick: () => t(n.path),
|
|
578
586
|
className: "inline-flex max-w-full items-center gap-1 truncate text-sm text-text-primary underline-offset-2 hover:underline",
|
|
579
|
-
children: [/* @__PURE__ */
|
|
587
|
+
children: [/* @__PURE__ */ w(k, {
|
|
580
588
|
className: "size-3.5 shrink-0",
|
|
581
589
|
"aria-hidden": "true"
|
|
582
|
-
}), /* @__PURE__ */
|
|
590
|
+
}), /* @__PURE__ */ w("span", {
|
|
583
591
|
className: "truncate",
|
|
584
592
|
children: n.label
|
|
585
593
|
})]
|
|
586
594
|
}) : null]
|
|
587
595
|
}),
|
|
588
|
-
/* @__PURE__ */
|
|
596
|
+
/* @__PURE__ */ T("dl", {
|
|
589
597
|
className: "grid grid-cols-2 gap-2 text-xs",
|
|
590
|
-
children: [/* @__PURE__ */
|
|
598
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("dt", {
|
|
591
599
|
className: "text-text-secondary",
|
|
592
600
|
children: "Started"
|
|
593
|
-
}), /* @__PURE__ */
|
|
601
|
+
}), /* @__PURE__ */ w("dd", {
|
|
594
602
|
className: "text-text-primary",
|
|
595
|
-
children:
|
|
596
|
-
})] }), /* @__PURE__ */
|
|
603
|
+
children: Z(e.startedAt)
|
|
604
|
+
})] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("dt", {
|
|
597
605
|
className: "text-text-secondary",
|
|
598
606
|
children: "Finished"
|
|
599
|
-
}), /* @__PURE__ */
|
|
607
|
+
}), /* @__PURE__ */ w("dd", {
|
|
600
608
|
className: "text-text-primary",
|
|
601
|
-
children:
|
|
609
|
+
children: Z(e.finishedAt)
|
|
602
610
|
})] })]
|
|
603
611
|
}),
|
|
604
|
-
|
|
612
|
+
Y(e) || r ? /* @__PURE__ */ T("div", {
|
|
605
613
|
className: "flex flex-wrap gap-2",
|
|
606
|
-
children: [
|
|
614
|
+
children: [Y(e) ? /* @__PURE__ */ T(j, {
|
|
607
615
|
type: "button",
|
|
608
616
|
variant: "outline",
|
|
609
617
|
size: "sm",
|
|
610
|
-
onClick: () =>
|
|
611
|
-
children: [/* @__PURE__ */
|
|
612
|
-
}) : null, r ? /* @__PURE__ */
|
|
618
|
+
onClick: () => $(e),
|
|
619
|
+
children: [/* @__PURE__ */ w(E, { className: "size-4" }), "View results"]
|
|
620
|
+
}) : null, r ? /* @__PURE__ */ T(j, {
|
|
613
621
|
type: "button",
|
|
614
622
|
variant: "outline",
|
|
615
623
|
size: "sm",
|
|
616
|
-
onClick: () =>
|
|
617
|
-
children: [/* @__PURE__ */
|
|
624
|
+
onClick: () => b(e),
|
|
625
|
+
children: [/* @__PURE__ */ w(D, { className: "size-4" }), "Complete"]
|
|
618
626
|
}) : null]
|
|
619
627
|
}) : null
|
|
620
628
|
]
|
|
@@ -622,28 +630,28 @@ function ue() {
|
|
|
622
630
|
})
|
|
623
631
|
})] })]
|
|
624
632
|
}),
|
|
625
|
-
/* @__PURE__ */
|
|
626
|
-
open:
|
|
627
|
-
onOpenChange:
|
|
628
|
-
onCompleted: () => void
|
|
633
|
+
/* @__PURE__ */ w(ue, {
|
|
634
|
+
open: m,
|
|
635
|
+
onOpenChange: g,
|
|
636
|
+
onCompleted: () => void N()
|
|
629
637
|
}),
|
|
630
|
-
/* @__PURE__ */
|
|
631
|
-
analysis:
|
|
638
|
+
/* @__PURE__ */ w(de, {
|
|
639
|
+
analysis: y,
|
|
632
640
|
onOpenChange: (e) => {
|
|
633
|
-
e ||
|
|
641
|
+
e || b(null);
|
|
634
642
|
},
|
|
635
|
-
onCompleted: () => void
|
|
636
|
-
},
|
|
637
|
-
/* @__PURE__ */
|
|
638
|
-
analysis:
|
|
643
|
+
onCompleted: () => void N()
|
|
644
|
+
}, y?.id ?? "none"),
|
|
645
|
+
/* @__PURE__ */ w(le, {
|
|
646
|
+
analysis: Q,
|
|
639
647
|
onOpenChange: (e) => {
|
|
640
|
-
e ||
|
|
648
|
+
e || $(null);
|
|
641
649
|
}
|
|
642
650
|
})
|
|
643
651
|
]
|
|
644
652
|
});
|
|
645
653
|
}
|
|
646
654
|
//#endregion
|
|
647
|
-
export {
|
|
655
|
+
export { fe as default };
|
|
648
656
|
|
|
649
657
|
//# sourceMappingURL=AnalysesPage.js.map
|