@burdenoff/microfe-cosmicintersection 2026.704.2 → 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 +39 -27
- package/dist/cosmicintersection/CosmicIntersectionRoutes.js.map +1 -1
- package/dist/cosmicintersection/api/cosmicApi.js +6 -0
- package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
- 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/pages/access/AccessPage.js +207 -155
- package/dist/cosmicintersection/pages/access/AccessPage.js.map +1 -1
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +325 -165
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js +138 -93
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.js +26 -15
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.js.map +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +345 -219
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js.map +1 -1
- 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 +232 -162
- 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 +262 -170
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js +179 -136
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunsPage.js +124 -47
- package/dist/cosmicintersection/pages/runs/RunsPage.js.map +1 -1
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.js +114 -85
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/sources/SourcesPage.js +263 -152
- 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
|
|
8
|
-
import
|
|
9
|
-
import { useFileDownloadUrl as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
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";
|
|
7
|
+
import u from "../../components/LoadingState.js";
|
|
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,376 +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
|
-
onDelete:
|
|
185
|
+
/* @__PURE__ */ v(s, {
|
|
186
|
+
ariaLabel: `Actions for ${Z.title}`,
|
|
187
|
+
entityName: Z.title,
|
|
188
|
+
onDelete: Z.status === "ARCHIVED" ? void 0 : ne,
|
|
182
189
|
deleteLabel: "Archive notebook"
|
|
183
190
|
})
|
|
184
191
|
]
|
|
185
192
|
});
|
|
186
|
-
return /* @__PURE__ */
|
|
187
|
-
title:
|
|
193
|
+
return /* @__PURE__ */ y(p, {
|
|
194
|
+
title: Z.title,
|
|
188
195
|
description: "Notebook detail",
|
|
189
196
|
backPath: "notebooks",
|
|
190
|
-
actions:
|
|
191
|
-
children: [/* @__PURE__ */
|
|
197
|
+
actions: re,
|
|
198
|
+
children: [/* @__PURE__ */ y("div", {
|
|
192
199
|
className: "space-y-6",
|
|
193
200
|
children: [
|
|
194
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ y("section", {
|
|
195
202
|
className: "rounded-card border border-border-default bg-bg-elevated p-6",
|
|
196
203
|
children: [
|
|
197
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ y("div", {
|
|
198
205
|
className: "flex flex-wrap items-center gap-3",
|
|
199
206
|
children: [
|
|
200
|
-
/* @__PURE__ */
|
|
201
|
-
|
|
207
|
+
/* @__PURE__ */ v(m, { status: Z.status }),
|
|
208
|
+
Z.runtime ? /* @__PURE__ */ y(A, {
|
|
202
209
|
variant: "outline",
|
|
203
|
-
children: ["Runtime: ",
|
|
210
|
+
children: ["Runtime: ", Z.runtime]
|
|
204
211
|
}) : null,
|
|
205
|
-
|
|
212
|
+
Z.isShared ? /* @__PURE__ */ y(A, {
|
|
206
213
|
variant: "secondary",
|
|
207
214
|
className: "gap-1",
|
|
208
215
|
children: [
|
|
209
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ v(O, {
|
|
210
217
|
className: "size-3",
|
|
211
218
|
"aria-hidden": "true"
|
|
212
219
|
}),
|
|
213
220
|
"Shared",
|
|
214
|
-
|
|
221
|
+
Z.shareSlug ? `: ${Z.shareSlug}` : ""
|
|
215
222
|
]
|
|
216
|
-
}) : /* @__PURE__ */
|
|
223
|
+
}) : /* @__PURE__ */ v(A, {
|
|
217
224
|
variant: "outline",
|
|
218
225
|
children: "Private"
|
|
219
226
|
})
|
|
220
227
|
]
|
|
221
228
|
}),
|
|
222
|
-
|
|
229
|
+
Z.description ? /* @__PURE__ */ v("p", {
|
|
223
230
|
className: "mt-4 text-sm text-text-secondary",
|
|
224
|
-
children:
|
|
225
|
-
}) : /* @__PURE__ */
|
|
231
|
+
children: Z.description
|
|
232
|
+
}) : /* @__PURE__ */ v("p", {
|
|
226
233
|
className: "mt-4 text-sm text-text-secondary",
|
|
227
234
|
children: "No description provided."
|
|
228
235
|
}),
|
|
229
|
-
/* @__PURE__ */
|
|
236
|
+
/* @__PURE__ */ y("div", {
|
|
237
|
+
className: "mt-6",
|
|
238
|
+
children: [/* @__PURE__ */ v("p", {
|
|
239
|
+
className: "text-xs uppercase tracking-wide text-text-secondary",
|
|
240
|
+
children: "Linked datasets"
|
|
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", {
|
|
230
266
|
className: "mt-6 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
231
267
|
children: [
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
-
className: "text-xs uppercase tracking-wide text-text-secondary",
|
|
234
|
-
children: "Linked datasets"
|
|
235
|
-
}), /* @__PURE__ */ h("dd", {
|
|
236
|
-
className: "mt-1 text-sm tabular-nums text-text-primary",
|
|
237
|
-
children: q.datasetIds.length
|
|
238
|
-
})] }),
|
|
239
|
-
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("dt", {
|
|
268
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
240
269
|
className: "text-xs uppercase tracking-wide text-text-secondary",
|
|
241
270
|
children: "Created"
|
|
242
|
-
}), /* @__PURE__ */
|
|
271
|
+
}), /* @__PURE__ */ v("dd", {
|
|
243
272
|
className: "mt-1 text-sm text-text-primary",
|
|
244
|
-
children:
|
|
273
|
+
children: K(Z.createdAt)
|
|
245
274
|
})] }),
|
|
246
|
-
/* @__PURE__ */
|
|
275
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
247
276
|
className: "text-xs uppercase tracking-wide text-text-secondary",
|
|
248
277
|
children: "Updated"
|
|
249
|
-
}), /* @__PURE__ */
|
|
278
|
+
}), /* @__PURE__ */ v("dd", {
|
|
250
279
|
className: "mt-1 text-sm text-text-primary",
|
|
251
|
-
children:
|
|
280
|
+
children: K(Z.updatedAt)
|
|
252
281
|
})] }),
|
|
253
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
|
|
254
283
|
className: "text-xs uppercase tracking-wide text-text-secondary",
|
|
255
284
|
children: "Notebook file"
|
|
256
|
-
}), /* @__PURE__ */
|
|
285
|
+
}), /* @__PURE__ */ v("dd", {
|
|
257
286
|
className: "mt-1 text-sm text-text-primary",
|
|
258
|
-
children:
|
|
259
|
-
fileId:
|
|
287
|
+
children: Z.file?.id ? /* @__PURE__ */ v(q, {
|
|
288
|
+
fileId: Z.file.id,
|
|
260
289
|
label: "Download notebook"
|
|
261
|
-
}) : /* @__PURE__ */
|
|
290
|
+
}) : /* @__PURE__ */ v("span", {
|
|
262
291
|
className: "text-text-secondary",
|
|
263
292
|
children: "No file attached"
|
|
264
293
|
})
|
|
265
294
|
})] })
|
|
266
295
|
]
|
|
267
296
|
}),
|
|
268
|
-
|
|
297
|
+
Z.tags.length > 0 ? /* @__PURE__ */ y("div", {
|
|
269
298
|
className: "mt-6",
|
|
270
|
-
children: [/* @__PURE__ */
|
|
299
|
+
children: [/* @__PURE__ */ v("p", {
|
|
271
300
|
className: "text-xs uppercase tracking-wide text-text-secondary",
|
|
272
301
|
children: "Tags"
|
|
273
|
-
}), /* @__PURE__ */
|
|
302
|
+
}), /* @__PURE__ */ v("div", {
|
|
274
303
|
className: "mt-2 flex flex-wrap gap-2",
|
|
275
|
-
children:
|
|
304
|
+
children: Z.tags.map((e) => /* @__PURE__ */ v(A, {
|
|
276
305
|
variant: "outline",
|
|
277
306
|
children: e
|
|
278
307
|
}, e))
|
|
279
308
|
})]
|
|
280
309
|
}) : null,
|
|
281
|
-
|
|
310
|
+
$ ? /* @__PURE__ */ y("div", {
|
|
282
311
|
className: "mt-6",
|
|
283
|
-
children: [/* @__PURE__ */
|
|
312
|
+
children: [/* @__PURE__ */ v("p", {
|
|
284
313
|
className: "text-xs uppercase tracking-wide text-text-secondary",
|
|
285
314
|
children: "Environment"
|
|
286
|
-
}), /* @__PURE__ */
|
|
315
|
+
}), /* @__PURE__ */ v("pre", {
|
|
287
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",
|
|
288
|
-
children:
|
|
317
|
+
children: $
|
|
289
318
|
})]
|
|
290
319
|
}) : null
|
|
291
320
|
]
|
|
292
321
|
}),
|
|
293
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ y("section", {
|
|
294
323
|
className: "space-y-4",
|
|
295
|
-
children: [/* @__PURE__ */
|
|
324
|
+
children: [/* @__PURE__ */ y("div", {
|
|
296
325
|
className: "flex items-center gap-2",
|
|
297
|
-
children: [/* @__PURE__ */
|
|
326
|
+
children: [/* @__PURE__ */ v(T, {
|
|
298
327
|
className: "size-5 text-text-secondary",
|
|
299
328
|
"aria-hidden": "true"
|
|
300
|
-
}), /* @__PURE__ */
|
|
329
|
+
}), /* @__PURE__ */ v("h2", {
|
|
301
330
|
className: "text-lg font-semibold text-text-primary",
|
|
302
331
|
children: "Discussion"
|
|
303
332
|
})]
|
|
304
|
-
}), /* @__PURE__ */
|
|
333
|
+
}), /* @__PURE__ */ v(d, {
|
|
305
334
|
entityType: "cosmicintersection-notebook",
|
|
306
|
-
entityId:
|
|
307
|
-
title:
|
|
335
|
+
entityId: Z.id,
|
|
336
|
+
title: Z.title,
|
|
308
337
|
widgetKey: "notebook-discussion"
|
|
309
338
|
})]
|
|
310
339
|
}),
|
|
311
|
-
/* @__PURE__ */
|
|
340
|
+
/* @__PURE__ */ y("section", {
|
|
312
341
|
className: "space-y-4",
|
|
313
|
-
children: [/* @__PURE__ */
|
|
342
|
+
children: [/* @__PURE__ */ y("div", {
|
|
314
343
|
className: "flex flex-wrap items-center justify-between gap-3",
|
|
315
|
-
children: [/* @__PURE__ */
|
|
344
|
+
children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("h2", {
|
|
316
345
|
className: "text-lg font-semibold text-text-primary",
|
|
317
346
|
children: "Analyses"
|
|
318
|
-
}), /* @__PURE__ */
|
|
347
|
+
}), /* @__PURE__ */ v("p", {
|
|
319
348
|
className: "text-sm text-text-secondary",
|
|
320
349
|
children: "Analysis runs executed against this notebook."
|
|
321
|
-
})] }), /* @__PURE__ */
|
|
350
|
+
})] }), /* @__PURE__ */ y(j, {
|
|
322
351
|
type: "button",
|
|
323
352
|
variant: "outline",
|
|
324
|
-
onClick: () =>
|
|
325
|
-
children: [/* @__PURE__ */
|
|
353
|
+
onClick: () => M(!0),
|
|
354
|
+
children: [/* @__PURE__ */ v(D, { className: "size-4" }), "Run analysis"]
|
|
326
355
|
})]
|
|
327
|
-
}),
|
|
356
|
+
}), R ? /* @__PURE__ */ v(u, {
|
|
328
357
|
variant: "rows",
|
|
329
358
|
rows: 3,
|
|
330
359
|
label: "Loading analyses…"
|
|
331
|
-
}) :
|
|
360
|
+
}) : z ? /* @__PURE__ */ v(l, {
|
|
332
361
|
message: "We could not load analyses for this notebook.",
|
|
333
|
-
onRetry: () => void
|
|
334
|
-
}) :
|
|
335
|
-
icon:
|
|
362
|
+
onRetry: () => void B()
|
|
363
|
+
}) : Q.length === 0 ? /* @__PURE__ */ v(c, {
|
|
364
|
+
icon: x,
|
|
336
365
|
title: "No analyses yet.",
|
|
337
366
|
description: "Run an analysis to generate results and artifacts from this notebook.",
|
|
338
|
-
action: /* @__PURE__ */
|
|
367
|
+
action: /* @__PURE__ */ y(j, {
|
|
339
368
|
type: "button",
|
|
340
|
-
onClick: () =>
|
|
341
|
-
children: [/* @__PURE__ */
|
|
369
|
+
onClick: () => M(!0),
|
|
370
|
+
children: [/* @__PURE__ */ v(D, { className: "size-4" }), "Run analysis"]
|
|
342
371
|
})
|
|
343
|
-
}) : /* @__PURE__ */
|
|
344
|
-
className: "rounded-card border border-border-default bg-bg-elevated",
|
|
345
|
-
children: /* @__PURE__ */
|
|
346
|
-
/* @__PURE__ */
|
|
347
|
-
/* @__PURE__ */
|
|
348
|
-
/* @__PURE__ */
|
|
349
|
-
/* @__PURE__ */
|
|
350
|
-
/* @__PURE__ */
|
|
351
|
-
/* @__PURE__ */
|
|
352
|
-
] }) }), /* @__PURE__ */
|
|
353
|
-
/* @__PURE__ */
|
|
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, {
|
|
354
383
|
className: "font-medium text-text-primary",
|
|
355
384
|
children: e.title
|
|
356
385
|
}),
|
|
357
|
-
/* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ v(H, {
|
|
358
387
|
className: "text-text-secondary",
|
|
359
388
|
children: e.method ?? "—"
|
|
360
389
|
}),
|
|
361
|
-
/* @__PURE__ */
|
|
390
|
+
/* @__PURE__ */ v(H, { children: e.aiAssisted ? /* @__PURE__ */ y(A, {
|
|
362
391
|
variant: "secondary",
|
|
363
392
|
className: "gap-1",
|
|
364
|
-
children: [/* @__PURE__ */
|
|
393
|
+
children: [/* @__PURE__ */ v(k, {
|
|
365
394
|
className: "size-3",
|
|
366
395
|
"aria-hidden": "true"
|
|
367
396
|
}), "AI"]
|
|
368
|
-
}) : /* @__PURE__ */
|
|
397
|
+
}) : /* @__PURE__ */ v("span", {
|
|
369
398
|
className: "text-text-secondary",
|
|
370
399
|
children: "—"
|
|
371
400
|
}) }),
|
|
372
|
-
/* @__PURE__ */
|
|
373
|
-
/* @__PURE__ */
|
|
401
|
+
/* @__PURE__ */ v(H, { children: /* @__PURE__ */ v(m, { status: e.status }) }),
|
|
402
|
+
/* @__PURE__ */ v(H, {
|
|
374
403
|
className: "whitespace-nowrap text-text-secondary",
|
|
375
|
-
children:
|
|
404
|
+
children: K(e.startedAt)
|
|
376
405
|
}),
|
|
377
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ v(H, { children: e.outputFile?.id ? /* @__PURE__ */ v(q, {
|
|
378
407
|
fileId: e.outputFile.id,
|
|
379
408
|
label: "Download"
|
|
380
|
-
}) : e.results && Object.keys(e.results).length > 0 ? /* @__PURE__ */
|
|
409
|
+
}) : e.results && Object.keys(e.results).length > 0 ? /* @__PURE__ */ v("span", {
|
|
381
410
|
className: "text-xs text-text-secondary",
|
|
382
411
|
children: "Results recorded"
|
|
383
|
-
}) : /* @__PURE__ */
|
|
412
|
+
}) : /* @__PURE__ */ v("span", {
|
|
384
413
|
className: "text-text-secondary",
|
|
385
414
|
children: "—"
|
|
386
415
|
}) })
|
|
387
416
|
] }, e.id)) })] })
|
|
388
|
-
})
|
|
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
|
+
})] })]
|
|
389
459
|
})
|
|
390
460
|
]
|
|
391
|
-
}), /* @__PURE__ */
|
|
392
|
-
notebookId:
|
|
393
|
-
open:
|
|
394
|
-
onOpenChange:
|
|
395
|
-
onCompleted: () => void
|
|
461
|
+
}), /* @__PURE__ */ v(J, {
|
|
462
|
+
notebookId: Z.id,
|
|
463
|
+
open: C,
|
|
464
|
+
onOpenChange: M,
|
|
465
|
+
onCompleted: () => void B()
|
|
396
466
|
})]
|
|
397
467
|
});
|
|
398
468
|
}
|
|
399
469
|
//#endregion
|
|
400
|
-
export {
|
|
470
|
+
export { Y as default };
|
|
401
471
|
|
|
402
472
|
//# sourceMappingURL=NotebookDetailPage.js.map
|