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