@burdenoff/microfe-cosmicintersection 2026.704.1 → 2026.704.3
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/CosmicIntersectionRoutes.js +45 -25
- package/dist/cosmicintersection/CosmicIntersectionRoutes.js.map +1 -1
- package/dist/cosmicintersection/api/cosmicApi.js +137 -66
- package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
- package/dist/cosmicintersection/components/ActivityFeedPanel.js +68 -0
- package/dist/cosmicintersection/components/ActivityFeedPanel.js.map +1 -0
- package/dist/cosmicintersection/components/DiscussionPanel.js +57 -0
- package/dist/cosmicintersection/components/DiscussionPanel.js.map +1 -0
- package/dist/cosmicintersection/components/FacetPanel.js +66 -0
- package/dist/cosmicintersection/components/FacetPanel.js.map +1 -0
- package/dist/cosmicintersection/components/LineageGraph.js +388 -0
- package/dist/cosmicintersection/components/LineageGraph.js.map +1 -0
- package/dist/cosmicintersection/components/ResultsChart.js +329 -0
- package/dist/cosmicintersection/components/ResultsChart.js.map +1 -0
- package/dist/cosmicintersection/components/StepDAG.js +104 -0
- package/dist/cosmicintersection/components/StepDAG.js.map +1 -0
- package/dist/cosmicintersection/components/index.js +5 -3
- package/dist/cosmicintersection/pages/access/AccessPage.js +220 -161
- package/dist/cosmicintersection/pages/access/AccessPage.js.map +1 -1
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +332 -172
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js +167 -109
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionFormPage.js +87 -61
- package/dist/cosmicintersection/pages/collections/CollectionFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionsPage.js +51 -42
- package/dist/cosmicintersection/pages/collections/CollectionsPage.js.map +1 -1
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.js +31 -18
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.js.map +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +330 -184
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetFormPage.js +7 -7
- package/dist/cosmicintersection/pages/datasets/DatasetsPage.js +321 -163
- package/dist/cosmicintersection/pages/datasets/DatasetsPage.js.map +1 -1
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js +358 -0
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js.map +1 -0
- package/dist/cosmicintersection/pages/lineage/LineagePage.js +171 -0
- package/dist/cosmicintersection/pages/lineage/LineagePage.js.map +1 -0
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +339 -260
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebooksPage.js +143 -82
- package/dist/cosmicintersection/pages/notebooks/NotebooksPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js +286 -142
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js +305 -103
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js +183 -79
- package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js +346 -204
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js +184 -136
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunsPage.js +182 -120
- package/dist/cosmicintersection/pages/runs/RunsPage.js.map +1 -1
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.js +234 -0
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.js.map +1 -0
- package/dist/cosmicintersection/pages/sources/SourcesPage.js +250 -133
- package/dist/cosmicintersection/pages/sources/SourcesPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
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, useCosArchiveNotebookMutation as r,
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useFileDownloadUrl as l } from "../../components/FileUploadField.js";
|
|
3
|
+
import { useCosAnalysesQuery as n, useCosArchiveNotebookMutation as r, useCosDatasetsQuery as i, useCosNotebookQuery as a, useCosRunAnalysisMutation as o } from "../../api/cosmicApi.js";
|
|
4
|
+
import s from "../../components/ActionMenu.js";
|
|
5
|
+
import c from "../../components/EmptyState.js";
|
|
6
|
+
import l from "../../components/ErrorState.js";
|
|
8
7
|
import u from "../../components/LoadingState.js";
|
|
9
|
-
import d from "../../components/
|
|
10
|
-
import f from "../../components/
|
|
11
|
-
import p from "../../components/
|
|
8
|
+
import d from "../../components/DiscussionPanel.js";
|
|
9
|
+
import { useFileDownloadUrl as f } from "../../components/FileUploadField.js";
|
|
10
|
+
import p from "../../components/PageLayout.js";
|
|
11
|
+
import m from "../../components/StatusBadge.js";
|
|
12
12
|
import "../../components/index.js";
|
|
13
|
-
import { useState as
|
|
14
|
-
import { jsx as
|
|
15
|
-
import { useParams as
|
|
16
|
-
import { Beaker as
|
|
17
|
-
import { Badge as
|
|
13
|
+
import { useMemo as h, useState as g } from "react";
|
|
14
|
+
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
15
|
+
import { useParams as b } from "react-router-dom";
|
|
16
|
+
import { Beaker as x, Database as S, Download as C, FileCode2 as w, MessageSquare as T, Pencil as E, Play as D, Share2 as O, Sparkles as k } from "lucide-react";
|
|
17
|
+
import { Badge as A, Button as j, Dialog as M, DialogContent as N, DialogDescription as P, DialogFooter as F, DialogHeader as I, DialogTitle as L, Input as R, Label as z, Switch as B, Table as ee, TableBody as V, TableCell as H, TableHead as U, TableHeader as W, TableRow as G } from "@burdenoff/fe-libs/ui";
|
|
18
18
|
//#region src/cosmicintersection/pages/notebooks/NotebookDetailPage.tsx
|
|
19
|
-
function
|
|
19
|
+
function K(e) {
|
|
20
20
|
if (!e) return "—";
|
|
21
21
|
let t = new Date(e);
|
|
22
22
|
return Number.isNaN(t.getTime()) ? "—" : t.toLocaleString(void 0, {
|
|
@@ -27,367 +27,446 @@ function U(e) {
|
|
|
27
27
|
minute: "2-digit"
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
let { data: n, loading: r } =
|
|
32
|
-
return r ? /* @__PURE__ */
|
|
30
|
+
function q({ fileId: e, label: t }) {
|
|
31
|
+
let { data: n, loading: r } = f(e), i = n?.getFileDownloadUrl ?? null;
|
|
32
|
+
return r ? /* @__PURE__ */ v("span", {
|
|
33
33
|
className: "text-xs text-text-secondary",
|
|
34
34
|
children: "Resolving link…"
|
|
35
|
-
}) : i ? /* @__PURE__ */
|
|
35
|
+
}) : i ? /* @__PURE__ */ y("a", {
|
|
36
36
|
href: i,
|
|
37
37
|
target: "_blank",
|
|
38
38
|
rel: "noopener noreferrer",
|
|
39
39
|
className: "inline-flex items-center gap-1 text-sm text-text-primary underline-offset-2 hover:underline",
|
|
40
|
-
children: [/* @__PURE__ */
|
|
40
|
+
children: [/* @__PURE__ */ v(C, {
|
|
41
41
|
className: "size-3.5",
|
|
42
42
|
"aria-hidden": "true"
|
|
43
43
|
}), t]
|
|
44
|
-
}) : /* @__PURE__ */
|
|
44
|
+
}) : /* @__PURE__ */ y("span", {
|
|
45
45
|
className: "text-xs text-text-secondary",
|
|
46
46
|
children: ["File ", e]
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
let [
|
|
49
|
+
function J({ notebookId: e, open: n, onOpenChange: r, onCompleted: i }) {
|
|
50
|
+
let [a, s] = g(""), [c, l] = g(""), [u, d] = g(!1), [f, { loading: p }] = o(), m = () => {
|
|
51
51
|
s(""), l(""), d(!1);
|
|
52
52
|
};
|
|
53
|
-
return /* @__PURE__ */
|
|
53
|
+
return /* @__PURE__ */ v(M, {
|
|
54
54
|
open: n,
|
|
55
55
|
onOpenChange: (e) => {
|
|
56
56
|
p || r(e);
|
|
57
57
|
},
|
|
58
|
-
children: /* @__PURE__ */
|
|
58
|
+
children: /* @__PURE__ */ v(N, { children: /* @__PURE__ */ y("form", {
|
|
59
59
|
onSubmit: async (n) => {
|
|
60
60
|
n.preventDefault();
|
|
61
|
-
let
|
|
62
|
-
if (!
|
|
61
|
+
let o = a.trim();
|
|
62
|
+
if (!o) {
|
|
63
63
|
t.error("Title is required", "Give the analysis a descriptive title.");
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
let s = await f({ variables: { input: {
|
|
67
67
|
notebookId: e,
|
|
68
|
-
title:
|
|
68
|
+
title: o,
|
|
69
69
|
method: c.trim() || void 0,
|
|
70
70
|
aiAssisted: u
|
|
71
71
|
} } });
|
|
72
|
-
s.error || !s.data?.cosRunAnalysis?.id || (t.success("Analysis started", `“${
|
|
72
|
+
s.error || !s.data?.cosRunAnalysis?.id || (t.success("Analysis started", `“${o}” is now running.`), m(), r(!1), i());
|
|
73
73
|
},
|
|
74
74
|
className: "space-y-4",
|
|
75
75
|
children: [
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ y(I, { children: [/* @__PURE__ */ v(L, { children: "Run analysis" }), /* @__PURE__ */ v(P, { children: "Launch a new analysis run against this notebook. It starts in the running state and can be completed later with results." })] }),
|
|
77
|
+
/* @__PURE__ */ y("div", {
|
|
78
78
|
className: "space-y-1.5",
|
|
79
|
-
children: [/* @__PURE__ */
|
|
79
|
+
children: [/* @__PURE__ */ v(z, {
|
|
80
80
|
htmlFor: "run-analysis-title",
|
|
81
81
|
children: "Title"
|
|
82
|
-
}), /* @__PURE__ */
|
|
82
|
+
}), /* @__PURE__ */ v(R, {
|
|
83
83
|
id: "run-analysis-title",
|
|
84
|
-
value:
|
|
84
|
+
value: a,
|
|
85
85
|
onChange: (e) => s(e.target.value),
|
|
86
86
|
placeholder: "e.g. Period-folding search",
|
|
87
87
|
required: !0
|
|
88
88
|
})]
|
|
89
89
|
}),
|
|
90
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ y("div", {
|
|
91
91
|
className: "space-y-1.5",
|
|
92
|
-
children: [/* @__PURE__ */
|
|
92
|
+
children: [/* @__PURE__ */ v(z, {
|
|
93
93
|
htmlFor: "run-analysis-method",
|
|
94
94
|
children: "Method"
|
|
95
|
-
}), /* @__PURE__ */
|
|
95
|
+
}), /* @__PURE__ */ v(R, {
|
|
96
96
|
id: "run-analysis-method",
|
|
97
97
|
value: c,
|
|
98
98
|
onChange: (e) => l(e.target.value),
|
|
99
99
|
placeholder: "e.g. box-least-squares"
|
|
100
100
|
})]
|
|
101
101
|
}),
|
|
102
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ y("div", {
|
|
103
103
|
className: "flex items-center gap-3",
|
|
104
|
-
children: [/* @__PURE__ */
|
|
104
|
+
children: [/* @__PURE__ */ v(B, {
|
|
105
105
|
id: "run-analysis-ai",
|
|
106
106
|
checked: u,
|
|
107
107
|
onCheckedChange: (e) => d(e)
|
|
108
|
-
}), /* @__PURE__ */
|
|
108
|
+
}), /* @__PURE__ */ v(z, {
|
|
109
109
|
htmlFor: "run-analysis-ai",
|
|
110
110
|
className: "cursor-pointer",
|
|
111
111
|
children: "AI-assisted analysis"
|
|
112
112
|
})]
|
|
113
113
|
}),
|
|
114
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ y(F, { children: [/* @__PURE__ */ v(j, {
|
|
115
115
|
type: "button",
|
|
116
116
|
variant: "outline",
|
|
117
117
|
onClick: () => r(!1),
|
|
118
118
|
disabled: p,
|
|
119
119
|
children: "Cancel"
|
|
120
|
-
}), /* @__PURE__ */
|
|
120
|
+
}), /* @__PURE__ */ y(j, {
|
|
121
121
|
type: "submit",
|
|
122
122
|
disabled: p,
|
|
123
|
-
children: [/* @__PURE__ */
|
|
123
|
+
children: [/* @__PURE__ */ v(D, { className: "size-4" }), p ? "Starting…" : "Run analysis"]
|
|
124
124
|
})] })
|
|
125
125
|
]
|
|
126
126
|
}) })
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
let { id:
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
function Y() {
|
|
130
|
+
let { id: o = "" } = b(), { navigate: f } = e(), [C, M] = g(!1), { data: N, loading: P, error: F, refetch: I } = a(o), { data: L, loading: R, error: z, refetch: B } = n({ notebookId: o }), { data: Y } = i({ pagination: {
|
|
131
|
+
limit: 100,
|
|
132
|
+
offset: 0
|
|
133
|
+
} }), [X] = r(), Z = N?.cosNotebook ?? null, Q = L?.cosListAnalyses ?? [], te = h(() => {
|
|
134
|
+
let e = /* @__PURE__ */ new Map();
|
|
135
|
+
for (let t of Y?.cosListDatasets.items ?? []) e.set(t.id, t.name);
|
|
136
|
+
return e;
|
|
137
|
+
}, [Y]), ne = async () => {
|
|
138
|
+
if (!Z) return;
|
|
139
|
+
let e = await X({ variables: { id: Z.id } });
|
|
133
140
|
if (e.error) throw Error(e.error.message);
|
|
134
141
|
if (!e.data?.cosArchiveNotebook) throw t.error("Could not archive notebook", "The server did not confirm the change."), Error("Archive not confirmed");
|
|
135
|
-
await
|
|
142
|
+
await I(), t.success("Notebook archived", `“${Z.title}” was archived.`);
|
|
136
143
|
};
|
|
137
|
-
if (
|
|
144
|
+
if (P) return /* @__PURE__ */ v(p, {
|
|
138
145
|
title: "Notebook",
|
|
139
146
|
backPath: "notebooks",
|
|
140
|
-
children: /* @__PURE__ */
|
|
147
|
+
children: /* @__PURE__ */ v(u, { label: "Loading notebook…" })
|
|
141
148
|
});
|
|
142
|
-
if (
|
|
149
|
+
if (F) return /* @__PURE__ */ v(p, {
|
|
143
150
|
title: "Notebook",
|
|
144
151
|
backPath: "notebooks",
|
|
145
|
-
children: /* @__PURE__ */
|
|
152
|
+
children: /* @__PURE__ */ v(l, {
|
|
146
153
|
message: "We could not load this notebook. Please try again.",
|
|
147
|
-
onRetry: () => void
|
|
154
|
+
onRetry: () => void I()
|
|
148
155
|
})
|
|
149
156
|
});
|
|
150
|
-
if (!
|
|
157
|
+
if (!Z) return /* @__PURE__ */ v(p, {
|
|
151
158
|
title: "Notebook",
|
|
152
159
|
backPath: "notebooks",
|
|
153
|
-
children: /* @__PURE__ */
|
|
154
|
-
icon:
|
|
160
|
+
children: /* @__PURE__ */ v(c, {
|
|
161
|
+
icon: w,
|
|
155
162
|
title: "Notebook not found.",
|
|
156
163
|
description: "This notebook may have been removed or is outside your current scope.",
|
|
157
|
-
action: /* @__PURE__ */
|
|
164
|
+
action: /* @__PURE__ */ v(j, {
|
|
158
165
|
type: "button",
|
|
159
|
-
onClick: () =>
|
|
166
|
+
onClick: () => f("notebooks"),
|
|
160
167
|
children: "Back to notebooks"
|
|
161
168
|
})
|
|
162
169
|
})
|
|
163
170
|
});
|
|
164
|
-
let
|
|
171
|
+
let $ = Z.environment && Object.keys(Z.environment).length > 0 ? JSON.stringify(Z.environment, null, 2) : null, re = /* @__PURE__ */ y("div", {
|
|
165
172
|
className: "flex items-center gap-2",
|
|
166
173
|
children: [
|
|
167
|
-
/* @__PURE__ */
|
|
174
|
+
/* @__PURE__ */ y(j, {
|
|
168
175
|
type: "button",
|
|
169
|
-
onClick: () =>
|
|
170
|
-
children: [/* @__PURE__ */
|
|
176
|
+
onClick: () => M(!0),
|
|
177
|
+
children: [/* @__PURE__ */ v(D, { className: "size-4" }), "Run analysis"]
|
|
171
178
|
}),
|
|
172
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ y(j, {
|
|
173
180
|
type: "button",
|
|
174
181
|
variant: "outline",
|
|
175
|
-
onClick: () =>
|
|
176
|
-
children: [/* @__PURE__ */
|
|
182
|
+
onClick: () => f(`notebooks/${Z.id}/edit`),
|
|
183
|
+
children: [/* @__PURE__ */ v(E, { className: "size-4" }), "Edit"]
|
|
177
184
|
}),
|
|
178
|
-
/* @__PURE__ */
|
|
179
|
-
ariaLabel: `Actions for ${
|
|
180
|
-
entityName:
|
|
181
|
-
|
|
182
|
-
onDelete: q.status === "ARCHIVED" ? void 0 : Y,
|
|
185
|
+
/* @__PURE__ */ v(s, {
|
|
186
|
+
ariaLabel: `Actions for ${Z.title}`,
|
|
187
|
+
entityName: Z.title,
|
|
188
|
+
onDelete: Z.status === "ARCHIVED" ? void 0 : ne,
|
|
183
189
|
deleteLabel: "Archive notebook"
|
|
184
190
|
})
|
|
185
191
|
]
|
|
186
192
|
});
|
|
187
|
-
return /* @__PURE__ */
|
|
188
|
-
title:
|
|
193
|
+
return /* @__PURE__ */ y(p, {
|
|
194
|
+
title: Z.title,
|
|
189
195
|
description: "Notebook detail",
|
|
190
196
|
backPath: "notebooks",
|
|
191
|
-
actions:
|
|
192
|
-
children: [/* @__PURE__ */
|
|
197
|
+
actions: re,
|
|
198
|
+
children: [/* @__PURE__ */ y("div", {
|
|
193
199
|
className: "space-y-6",
|
|
194
|
-
children: [
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
200
|
+
children: [
|
|
201
|
+
/* @__PURE__ */ y("section", {
|
|
202
|
+
className: "rounded-card border border-border-default bg-bg-elevated p-6",
|
|
203
|
+
children: [
|
|
204
|
+
/* @__PURE__ */ y("div", {
|
|
205
|
+
className: "flex flex-wrap items-center gap-3",
|
|
206
|
+
children: [
|
|
207
|
+
/* @__PURE__ */ v(m, { status: Z.status }),
|
|
208
|
+
Z.runtime ? /* @__PURE__ */ y(A, {
|
|
209
|
+
variant: "outline",
|
|
210
|
+
children: ["Runtime: ", Z.runtime]
|
|
211
|
+
}) : null,
|
|
212
|
+
Z.isShared ? /* @__PURE__ */ y(A, {
|
|
213
|
+
variant: "secondary",
|
|
214
|
+
className: "gap-1",
|
|
215
|
+
children: [
|
|
216
|
+
/* @__PURE__ */ v(O, {
|
|
217
|
+
className: "size-3",
|
|
218
|
+
"aria-hidden": "true"
|
|
219
|
+
}),
|
|
220
|
+
"Shared",
|
|
221
|
+
Z.shareSlug ? `: ${Z.shareSlug}` : ""
|
|
222
|
+
]
|
|
223
|
+
}) : /* @__PURE__ */ v(A, {
|
|
224
|
+
variant: "outline",
|
|
225
|
+
children: "Private"
|
|
226
|
+
})
|
|
227
|
+
]
|
|
228
|
+
}),
|
|
229
|
+
Z.description ? /* @__PURE__ */ v("p", {
|
|
230
|
+
className: "mt-4 text-sm text-text-secondary",
|
|
231
|
+
children: Z.description
|
|
232
|
+
}) : /* @__PURE__ */ v("p", {
|
|
233
|
+
className: "mt-4 text-sm text-text-secondary",
|
|
234
|
+
children: "No description provided."
|
|
235
|
+
}),
|
|
236
|
+
/* @__PURE__ */ y("div", {
|
|
237
|
+
className: "mt-6",
|
|
238
|
+
children: [/* @__PURE__ */ v("p", {
|
|
233
239
|
className: "text-xs uppercase tracking-wide text-text-secondary",
|
|
234
240
|
children: "Linked datasets"
|
|
235
|
-
}), /* @__PURE__ */
|
|
236
|
-
className: "mt-
|
|
237
|
-
children:
|
|
238
|
-
})
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
241
|
+
}), Z.datasetIds.length === 0 ? /* @__PURE__ */ v("p", {
|
|
242
|
+
className: "mt-2 text-sm text-text-secondary",
|
|
243
|
+
children: "No datasets linked."
|
|
244
|
+
}) : /* @__PURE__ */ v("div", {
|
|
245
|
+
className: "mt-2 flex flex-wrap gap-2",
|
|
246
|
+
children: Z.datasetIds.map((e) => {
|
|
247
|
+
let t = te.get(e);
|
|
248
|
+
return /* @__PURE__ */ y(j, {
|
|
249
|
+
type: "button",
|
|
250
|
+
variant: "outline",
|
|
251
|
+
size: "sm",
|
|
252
|
+
className: "h-auto gap-1.5 px-2.5 py-1",
|
|
253
|
+
onClick: () => f(`datasets/${e}`),
|
|
254
|
+
children: [/* @__PURE__ */ v(S, {
|
|
255
|
+
className: "size-3.5 shrink-0",
|
|
256
|
+
"aria-hidden": "true"
|
|
257
|
+
}), /* @__PURE__ */ v("span", {
|
|
258
|
+
className: t ? "max-w-[16rem] truncate" : "font-mono text-xs",
|
|
259
|
+
children: t ?? e
|
|
260
|
+
})]
|
|
261
|
+
}, e);
|
|
262
|
+
})
|
|
263
|
+
})]
|
|
264
|
+
}),
|
|
265
|
+
/* @__PURE__ */ y("dl", {
|
|
266
|
+
className: "mt-6 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
267
|
+
children: [
|
|
268
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
269
|
+
className: "text-xs uppercase tracking-wide text-text-secondary",
|
|
270
|
+
children: "Created"
|
|
271
|
+
}), /* @__PURE__ */ v("dd", {
|
|
272
|
+
className: "mt-1 text-sm text-text-primary",
|
|
273
|
+
children: K(Z.createdAt)
|
|
274
|
+
})] }),
|
|
275
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
276
|
+
className: "text-xs uppercase tracking-wide text-text-secondary",
|
|
277
|
+
children: "Updated"
|
|
278
|
+
}), /* @__PURE__ */ v("dd", {
|
|
279
|
+
className: "mt-1 text-sm text-text-primary",
|
|
280
|
+
children: K(Z.updatedAt)
|
|
281
|
+
})] }),
|
|
282
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
283
|
+
className: "text-xs uppercase tracking-wide text-text-secondary",
|
|
284
|
+
children: "Notebook file"
|
|
285
|
+
}), /* @__PURE__ */ v("dd", {
|
|
286
|
+
className: "mt-1 text-sm text-text-primary",
|
|
287
|
+
children: Z.file?.id ? /* @__PURE__ */ v(q, {
|
|
288
|
+
fileId: Z.file.id,
|
|
289
|
+
label: "Download notebook"
|
|
290
|
+
}) : /* @__PURE__ */ v("span", {
|
|
291
|
+
className: "text-text-secondary",
|
|
292
|
+
children: "No file attached"
|
|
293
|
+
})
|
|
294
|
+
})] })
|
|
295
|
+
]
|
|
296
|
+
}),
|
|
297
|
+
Z.tags.length > 0 ? /* @__PURE__ */ y("div", {
|
|
298
|
+
className: "mt-6",
|
|
299
|
+
children: [/* @__PURE__ */ v("p", {
|
|
247
300
|
className: "text-xs uppercase tracking-wide text-text-secondary",
|
|
248
|
-
children: "
|
|
249
|
-
}), /* @__PURE__ */
|
|
250
|
-
className: "mt-
|
|
251
|
-
children:
|
|
252
|
-
|
|
253
|
-
|
|
301
|
+
children: "Tags"
|
|
302
|
+
}), /* @__PURE__ */ v("div", {
|
|
303
|
+
className: "mt-2 flex flex-wrap gap-2",
|
|
304
|
+
children: Z.tags.map((e) => /* @__PURE__ */ v(A, {
|
|
305
|
+
variant: "outline",
|
|
306
|
+
children: e
|
|
307
|
+
}, e))
|
|
308
|
+
})]
|
|
309
|
+
}) : null,
|
|
310
|
+
$ ? /* @__PURE__ */ y("div", {
|
|
311
|
+
className: "mt-6",
|
|
312
|
+
children: [/* @__PURE__ */ v("p", {
|
|
254
313
|
className: "text-xs uppercase tracking-wide text-text-secondary",
|
|
255
|
-
children: "
|
|
256
|
-
}), /* @__PURE__ */
|
|
257
|
-
className: "mt-
|
|
258
|
-
children:
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
className: "text-
|
|
272
|
-
children: "
|
|
273
|
-
}), /* @__PURE__ */ h("div", {
|
|
274
|
-
className: "mt-2 flex flex-wrap gap-2",
|
|
275
|
-
children: q.tags.map((e) => /* @__PURE__ */ h(E, {
|
|
276
|
-
variant: "outline",
|
|
277
|
-
children: e
|
|
278
|
-
}, e))
|
|
314
|
+
children: "Environment"
|
|
315
|
+
}), /* @__PURE__ */ v("pre", {
|
|
316
|
+
className: "mt-2 max-h-64 overflow-auto rounded-card border border-border-default bg-bg-sunken p-4 font-mono text-xs text-text-primary",
|
|
317
|
+
children: $
|
|
318
|
+
})]
|
|
319
|
+
}) : null
|
|
320
|
+
]
|
|
321
|
+
}),
|
|
322
|
+
/* @__PURE__ */ y("section", {
|
|
323
|
+
className: "space-y-4",
|
|
324
|
+
children: [/* @__PURE__ */ y("div", {
|
|
325
|
+
className: "flex items-center gap-2",
|
|
326
|
+
children: [/* @__PURE__ */ v(T, {
|
|
327
|
+
className: "size-5 text-text-secondary",
|
|
328
|
+
"aria-hidden": "true"
|
|
329
|
+
}), /* @__PURE__ */ v("h2", {
|
|
330
|
+
className: "text-lg font-semibold text-text-primary",
|
|
331
|
+
children: "Discussion"
|
|
279
332
|
})]
|
|
280
|
-
})
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
333
|
+
}), /* @__PURE__ */ v(d, {
|
|
334
|
+
entityType: "cosmicintersection-notebook",
|
|
335
|
+
entityId: Z.id,
|
|
336
|
+
title: Z.title,
|
|
337
|
+
widgetKey: "notebook-discussion"
|
|
338
|
+
})]
|
|
339
|
+
}),
|
|
340
|
+
/* @__PURE__ */ y("section", {
|
|
341
|
+
className: "space-y-4",
|
|
342
|
+
children: [/* @__PURE__ */ y("div", {
|
|
343
|
+
className: "flex flex-wrap items-center justify-between gap-3",
|
|
344
|
+
children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("h2", {
|
|
345
|
+
className: "text-lg font-semibold text-text-primary",
|
|
346
|
+
children: "Analyses"
|
|
347
|
+
}), /* @__PURE__ */ v("p", {
|
|
348
|
+
className: "text-sm text-text-secondary",
|
|
349
|
+
children: "Analysis runs executed against this notebook."
|
|
350
|
+
})] }), /* @__PURE__ */ y(j, {
|
|
351
|
+
type: "button",
|
|
352
|
+
variant: "outline",
|
|
353
|
+
onClick: () => M(!0),
|
|
354
|
+
children: [/* @__PURE__ */ v(D, { className: "size-4" }), "Run analysis"]
|
|
289
355
|
})]
|
|
290
|
-
})
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
356
|
+
}), R ? /* @__PURE__ */ v(u, {
|
|
357
|
+
variant: "rows",
|
|
358
|
+
rows: 3,
|
|
359
|
+
label: "Loading analyses…"
|
|
360
|
+
}) : z ? /* @__PURE__ */ v(l, {
|
|
361
|
+
message: "We could not load analyses for this notebook.",
|
|
362
|
+
onRetry: () => void B()
|
|
363
|
+
}) : Q.length === 0 ? /* @__PURE__ */ v(c, {
|
|
364
|
+
icon: x,
|
|
365
|
+
title: "No analyses yet.",
|
|
366
|
+
description: "Run an analysis to generate results and artifacts from this notebook.",
|
|
367
|
+
action: /* @__PURE__ */ y(j, {
|
|
368
|
+
type: "button",
|
|
369
|
+
onClick: () => M(!0),
|
|
370
|
+
children: [/* @__PURE__ */ v(D, { className: "size-4" }), "Run analysis"]
|
|
300
371
|
})
|
|
301
|
-
})
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
372
|
+
}) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("div", {
|
|
373
|
+
className: "hidden rounded-card border border-border-default bg-bg-elevated md:block",
|
|
374
|
+
children: /* @__PURE__ */ y(ee, { children: [/* @__PURE__ */ v(W, { children: /* @__PURE__ */ y(G, { children: [
|
|
375
|
+
/* @__PURE__ */ v(U, { children: "Title" }),
|
|
376
|
+
/* @__PURE__ */ v(U, { children: "Method" }),
|
|
377
|
+
/* @__PURE__ */ v(U, { children: "AI" }),
|
|
378
|
+
/* @__PURE__ */ v(U, { children: "Status" }),
|
|
379
|
+
/* @__PURE__ */ v(U, { children: "Started" }),
|
|
380
|
+
/* @__PURE__ */ v(U, { children: "Output" })
|
|
381
|
+
] }) }), /* @__PURE__ */ v(V, { children: Q.map((e) => /* @__PURE__ */ y(G, { children: [
|
|
382
|
+
/* @__PURE__ */ v(H, {
|
|
383
|
+
className: "font-medium text-text-primary",
|
|
384
|
+
children: e.title
|
|
385
|
+
}),
|
|
386
|
+
/* @__PURE__ */ v(H, {
|
|
387
|
+
className: "text-text-secondary",
|
|
388
|
+
children: e.method ?? "—"
|
|
389
|
+
}),
|
|
390
|
+
/* @__PURE__ */ v(H, { children: e.aiAssisted ? /* @__PURE__ */ y(A, {
|
|
391
|
+
variant: "secondary",
|
|
392
|
+
className: "gap-1",
|
|
393
|
+
children: [/* @__PURE__ */ v(k, {
|
|
394
|
+
className: "size-3",
|
|
395
|
+
"aria-hidden": "true"
|
|
396
|
+
}), "AI"]
|
|
397
|
+
}) : /* @__PURE__ */ v("span", {
|
|
398
|
+
className: "text-text-secondary",
|
|
399
|
+
children: "—"
|
|
400
|
+
}) }),
|
|
401
|
+
/* @__PURE__ */ v(H, { children: /* @__PURE__ */ v(m, { status: e.status }) }),
|
|
402
|
+
/* @__PURE__ */ v(H, {
|
|
403
|
+
className: "whitespace-nowrap text-text-secondary",
|
|
404
|
+
children: K(e.startedAt)
|
|
405
|
+
}),
|
|
406
|
+
/* @__PURE__ */ v(H, { children: e.outputFile?.id ? /* @__PURE__ */ v(q, {
|
|
407
|
+
fileId: e.outputFile.id,
|
|
408
|
+
label: "Download"
|
|
409
|
+
}) : e.results && Object.keys(e.results).length > 0 ? /* @__PURE__ */ v("span", {
|
|
410
|
+
className: "text-xs text-text-secondary",
|
|
411
|
+
children: "Results recorded"
|
|
412
|
+
}) : /* @__PURE__ */ v("span", {
|
|
413
|
+
className: "text-text-secondary",
|
|
414
|
+
children: "—"
|
|
415
|
+
}) })
|
|
416
|
+
] }, e.id)) })] })
|
|
417
|
+
}), /* @__PURE__ */ v("ul", {
|
|
418
|
+
className: "space-y-3 md:hidden",
|
|
419
|
+
children: Q.map((e) => /* @__PURE__ */ y("li", {
|
|
420
|
+
className: "space-y-2 rounded-card border border-border-default bg-bg-elevated p-4",
|
|
421
|
+
children: [
|
|
422
|
+
/* @__PURE__ */ y("div", {
|
|
423
|
+
className: "flex items-start justify-between gap-3",
|
|
424
|
+
children: [/* @__PURE__ */ y("div", {
|
|
425
|
+
className: "min-w-0",
|
|
426
|
+
children: [/* @__PURE__ */ v("p", {
|
|
427
|
+
className: "truncate font-medium text-text-primary",
|
|
428
|
+
children: e.title
|
|
429
|
+
}), e.method ? /* @__PURE__ */ v("p", {
|
|
430
|
+
className: "truncate text-xs text-text-secondary",
|
|
431
|
+
children: e.method
|
|
432
|
+
}) : null]
|
|
433
|
+
}), /* @__PURE__ */ v(m, { status: e.status })]
|
|
434
|
+
}),
|
|
435
|
+
/* @__PURE__ */ y("div", {
|
|
436
|
+
className: "flex flex-wrap items-center gap-2 text-xs text-text-secondary",
|
|
437
|
+
children: [e.aiAssisted ? /* @__PURE__ */ y(A, {
|
|
438
|
+
variant: "secondary",
|
|
439
|
+
className: "gap-1",
|
|
440
|
+
children: [/* @__PURE__ */ v(k, {
|
|
441
|
+
className: "size-3",
|
|
442
|
+
"aria-hidden": "true"
|
|
443
|
+
}), "AI"]
|
|
444
|
+
}) : null, /* @__PURE__ */ y("span", { children: ["Started ", K(e.startedAt)] })]
|
|
445
|
+
}),
|
|
446
|
+
/* @__PURE__ */ v("div", { children: e.outputFile?.id ? /* @__PURE__ */ v(q, {
|
|
447
|
+
fileId: e.outputFile.id,
|
|
448
|
+
label: "Download"
|
|
449
|
+
}) : e.results && Object.keys(e.results).length > 0 ? /* @__PURE__ */ v("span", {
|
|
450
|
+
className: "text-xs text-text-secondary",
|
|
451
|
+
children: "Results recorded"
|
|
452
|
+
}) : /* @__PURE__ */ v("span", {
|
|
453
|
+
className: "text-xs text-text-secondary",
|
|
454
|
+
children: "No output"
|
|
455
|
+
}) })
|
|
456
|
+
]
|
|
457
|
+
}, e.id))
|
|
458
|
+
})] })]
|
|
459
|
+
})
|
|
460
|
+
]
|
|
461
|
+
}), /* @__PURE__ */ v(J, {
|
|
462
|
+
notebookId: Z.id,
|
|
463
|
+
open: C,
|
|
464
|
+
onOpenChange: M,
|
|
465
|
+
onCompleted: () => void B()
|
|
387
466
|
})]
|
|
388
467
|
});
|
|
389
468
|
}
|
|
390
469
|
//#endregion
|
|
391
|
-
export {
|
|
470
|
+
export { Y as default };
|
|
392
471
|
|
|
393
472
|
//# sourceMappingURL=NotebookDetailPage.js.map
|