@burdenoff/microfe-cosmicintersection 2026.1108.2 → 2026.1109.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cosmicintersection/api/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
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { useCosmicIntersection as e } from "../../context/CosmicIntersectionContext.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { SafeLink as t } from "../../components/SafeLink.js";
|
|
3
|
+
import { notify as n } from "../../lib/toast.js";
|
|
4
|
+
import { useCosAddRunStepMutation as r, useCosDatasetSummaryQuery as i, useCosPipelineFailedRunsQuery as ee, useCosRunQuery as te, useCosRunStepsQuery as ne, useCosTransitionRunMutation as re } from "../../api/cosmicApi.js";
|
|
4
5
|
import { EmptyState as a } from "../../components/EmptyState.js";
|
|
5
6
|
import { ErrorState as o } from "../../components/ErrorState.js";
|
|
6
7
|
import { LoadingState as s } from "../../components/LoadingState.js";
|
|
7
|
-
import { ActivityFeedPanel as
|
|
8
|
-
import { SafeLink as ie } from "../../components/SafeLink.js";
|
|
8
|
+
import { ActivityFeedPanel as ie } from "../../components/ActivityFeedPanel.js";
|
|
9
9
|
import { PageLayout as c } from "../../components/PageLayout.js";
|
|
10
10
|
import { StatusBadge as l, formatEnumLabel as u } from "../../components/StatusBadge.js";
|
|
11
11
|
import { RunTriageCard as ae } from "../../components/RunTriageCard.js";
|
|
12
12
|
import "../../components/index.js";
|
|
13
13
|
import { useTrackRecentItem as oe } from "../../lib/useTrackRecentItem.js";
|
|
14
|
-
import { describeError as se, mutationSucceeded as
|
|
15
|
-
import { useMemo as
|
|
16
|
-
import { Fragment as
|
|
17
|
-
import { useParams as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
14
|
+
import { describeError as se, mutationSucceeded as d } from "../../lib/mutationResult.js";
|
|
15
|
+
import { Suspense as f, lazy as p, useMemo as m, useState as h } from "react";
|
|
16
|
+
import { Fragment as ce, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
17
|
+
import { useParams as le } from "react-router";
|
|
18
|
+
import { Badge as ue, Button as v, Card as y, CardContent as b, CardHeader as x, CardTitle as S, Dialog as de, DialogContent as fe, DialogDescription as pe, DialogFooter as me, DialogHeader as he, DialogTitle as ge, Input as C, Label as w, Select as _e, SelectContent as ve, SelectItem as ye, SelectTrigger as be, SelectValue as xe, Table as Se, TableBody as Ce, TableCell as T, TableHead as E, TableHeader as we, TableRow as D, Textarea as Te } from "@burdenoff/fe-libs/ui";
|
|
19
|
+
import { Check as O, Circle as k, ListTree as Ee, Loader2 as A, Plus as j, SearchX as De, X as M } from "lucide-react";
|
|
20
20
|
//#region src/cosmicintersection/pages/runs/RunDetailPage.tsx
|
|
21
|
-
var Oe = [
|
|
21
|
+
var N = p(() => import("../../components/DatabricksRunPanel.js")), Oe = [
|
|
22
22
|
"INGEST",
|
|
23
23
|
"CALIBRATE",
|
|
24
24
|
"TRANSFORM",
|
|
@@ -35,510 +35,522 @@ var Oe = [
|
|
|
35
35
|
SUCCEEDED: [],
|
|
36
36
|
FAILED: [],
|
|
37
37
|
CANCELLED: []
|
|
38
|
-
},
|
|
38
|
+
}, P = {
|
|
39
39
|
SUCCEEDED: {
|
|
40
|
-
icon:
|
|
40
|
+
icon: O,
|
|
41
41
|
spin: !1,
|
|
42
42
|
wrap: "border-status-success-border bg-status-success-bg-subtle text-status-success-text"
|
|
43
43
|
},
|
|
44
44
|
RUNNING: {
|
|
45
|
-
icon:
|
|
45
|
+
icon: A,
|
|
46
46
|
spin: !0,
|
|
47
47
|
wrap: "border-status-warning-border bg-status-warning-bg-subtle text-status-warning-text"
|
|
48
48
|
},
|
|
49
49
|
FAILED: {
|
|
50
|
-
icon:
|
|
50
|
+
icon: M,
|
|
51
51
|
spin: !1,
|
|
52
52
|
wrap: "border-status-error-border bg-status-error-bg-subtle text-status-error-text"
|
|
53
53
|
},
|
|
54
54
|
QUEUED: {
|
|
55
|
-
icon:
|
|
55
|
+
icon: k,
|
|
56
56
|
spin: !1,
|
|
57
57
|
wrap: "border-status-info-border bg-status-info-bg-subtle text-status-info-text"
|
|
58
58
|
},
|
|
59
59
|
CANCELLED: {
|
|
60
|
-
icon:
|
|
60
|
+
icon: M,
|
|
61
61
|
spin: !1,
|
|
62
62
|
wrap: "border-border-default bg-bg-sunken text-text-secondary"
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
-
function
|
|
65
|
+
function F(e) {
|
|
66
66
|
if (!e) return "—";
|
|
67
67
|
let t = new Date(e);
|
|
68
68
|
return Number.isNaN(t.getTime()) ? "—" : t.toLocaleString();
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function I(e) {
|
|
71
71
|
if (e == null) return "—";
|
|
72
72
|
if (e < 1e3) return `${e} ms`;
|
|
73
73
|
let t = e / 1e3;
|
|
74
74
|
return t < 60 ? `${t.toFixed(1)} s` : `${Math.floor(t / 60)}m ${Math.round(t % 60)}s`;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function L(e) {
|
|
77
77
|
let t = (e ?? []).filter((e) => e.status === "FAILED");
|
|
78
78
|
return t.length === 0 ? null : t.reduce((e, t) => t.position < e.position ? t : e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return /* @__PURE__ */
|
|
80
|
+
function R({ label: e, children: t }) {
|
|
81
|
+
return /* @__PURE__ */ _("div", {
|
|
82
82
|
className: "flex flex-col gap-1 border-b border-border-seam py-3 last:border-0 sm:flex-row sm:items-start sm:gap-4",
|
|
83
|
-
children: [/* @__PURE__ */
|
|
83
|
+
children: [/* @__PURE__ */ g("span", {
|
|
84
84
|
className: "w-40 shrink-0 text-sm font-medium text-text-secondary",
|
|
85
85
|
children: e
|
|
86
|
-
}), /* @__PURE__ */
|
|
86
|
+
}), /* @__PURE__ */ g("span", {
|
|
87
87
|
className: "min-w-0 text-sm text-text-primary",
|
|
88
88
|
children: t
|
|
89
89
|
})]
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
return !e || Object.keys(e).length === 0 ? /* @__PURE__ */
|
|
92
|
+
function z({ value: e }) {
|
|
93
|
+
return !e || Object.keys(e).length === 0 ? /* @__PURE__ */ g("span", {
|
|
94
94
|
className: "text-sm text-text-secondary",
|
|
95
95
|
children: "—"
|
|
96
|
-
}) : /* @__PURE__ */
|
|
96
|
+
}) : /* @__PURE__ */ g("pre", {
|
|
97
97
|
className: "overflow-x-auto rounded-card border border-border-default bg-bg-sunken p-3 font-mono text-xs text-text-primary",
|
|
98
98
|
children: JSON.stringify(e, null, 2)
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
let { id:
|
|
103
|
-
oe(
|
|
101
|
+
function B() {
|
|
102
|
+
let { id: f = "" } = le(), { navigate: p } = e(), { data: O, loading: k, error: A, refetch: M } = te(f), { data: N, loading: B, error: je, refetch: V } = ne(f), [Me, { loading: Ne }] = re(), [Pe, { loading: H }] = r(), [Fe, U] = h(!1), [W, G] = h(""), [K, Ie] = h("INGEST"), [q, Le] = h(""), [J, Re] = h(""), Y = O?.cosRun;
|
|
103
|
+
oe(Y ? {
|
|
104
104
|
type: "run",
|
|
105
|
-
id:
|
|
106
|
-
name:
|
|
107
|
-
path: `runs/${encodeURIComponent(
|
|
105
|
+
id: Y.id,
|
|
106
|
+
name: Y.pipeline ? `${Y.pipeline.name} #${Y.runNumber}` : `#${Y.runNumber}`,
|
|
107
|
+
path: `runs/${encodeURIComponent(Y.id)}`
|
|
108
108
|
} : null);
|
|
109
|
-
let
|
|
110
|
-
let t =
|
|
109
|
+
let X = m(() => [...N?.cosListRunSteps ?? []].sort((e, t) => e.position - t.position), [N]), { data: ze } = i(Y?.datasetId), Be = ze?.cosDataset?.name ?? null, Ve = Y?.status === "FAILED", { data: He, loading: Ue, error: We, refetch: Ge } = ee(Y?.pipelineId, { skip: !Ve }), Z = m(() => L(X), [X]), Q = m(() => (He?.cosListRuns.items ?? []).filter((e) => e.id !== Y?.id).map((e) => {
|
|
110
|
+
let t = L(e.steps);
|
|
111
111
|
return {
|
|
112
112
|
id: e.id,
|
|
113
113
|
runNumber: e.runNumber,
|
|
114
114
|
step: t,
|
|
115
115
|
error: t?.errorMessage ?? e.errorMessage ?? null,
|
|
116
116
|
when: e.finishedAt ?? e.startedAt ?? e.createdAt,
|
|
117
|
-
sameStep:
|
|
117
|
+
sameStep: Z !== null && t !== null && t.name === Z.name
|
|
118
118
|
};
|
|
119
119
|
}).slice(0, 8), [
|
|
120
120
|
He,
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
Y?.id,
|
|
122
|
+
Z
|
|
123
123
|
]), Ke = async (e) => {
|
|
124
|
-
if (!
|
|
125
|
-
let
|
|
126
|
-
id:
|
|
124
|
+
if (!Y) return;
|
|
125
|
+
let t = await Me({ variables: {
|
|
126
|
+
id: Y.id,
|
|
127
127
|
status: e
|
|
128
128
|
} });
|
|
129
|
-
|
|
130
|
-
},
|
|
131
|
-
|
|
129
|
+
d(t, t.data?.cosTransitionRun?.id, "Could not update the run") && (n.success("Run updated", `Run #${Y.runNumber} moved to ${u(e)}.`), await Promise.all([M(), V()]));
|
|
130
|
+
}, $ = () => {
|
|
131
|
+
G(""), Ie("INGEST"), Le(""), Re("");
|
|
132
132
|
}, qe = async () => {
|
|
133
|
-
if (!
|
|
134
|
-
if (!
|
|
135
|
-
|
|
133
|
+
if (!Y) return;
|
|
134
|
+
if (!W.trim()) {
|
|
135
|
+
n.error("Step name is required", "Give the step a name before adding it.");
|
|
136
136
|
return;
|
|
137
137
|
}
|
|
138
138
|
let e;
|
|
139
|
-
if (
|
|
140
|
-
let t = JSON.parse(
|
|
139
|
+
if (J.trim()) try {
|
|
140
|
+
let t = JSON.parse(J.trim());
|
|
141
141
|
if (typeof t != "object" || !t || Array.isArray(t)) throw Error("Inputs must be a JSON object.");
|
|
142
142
|
e = t;
|
|
143
143
|
} catch (e) {
|
|
144
|
-
|
|
144
|
+
n.error("Invalid inputs JSON", se(e) ?? "Please provide valid JSON.");
|
|
145
145
|
return;
|
|
146
146
|
}
|
|
147
|
-
let
|
|
148
|
-
if (
|
|
149
|
-
|
|
147
|
+
let t = q.trim() ? Number(q.trim()) : void 0;
|
|
148
|
+
if (t !== void 0 && (Number.isNaN(t) || t < 0)) {
|
|
149
|
+
n.error("Invalid position", "Position must be a non-negative number.");
|
|
150
150
|
return;
|
|
151
151
|
}
|
|
152
152
|
let r = await Pe({ variables: { input: {
|
|
153
|
-
runId:
|
|
154
|
-
name:
|
|
155
|
-
kind:
|
|
153
|
+
runId: Y.id,
|
|
154
|
+
name: W.trim(),
|
|
155
|
+
kind: K,
|
|
156
156
|
inputs: e,
|
|
157
|
-
position:
|
|
157
|
+
position: t
|
|
158
158
|
} } });
|
|
159
|
-
|
|
159
|
+
d(r, r.data?.cosAddRunStep?.id, "Could not add the step") && (n.success("Step added", `“${W.trim()}” was added to the run.`), U(!1), $(), await V());
|
|
160
160
|
};
|
|
161
|
-
if (
|
|
161
|
+
if (k && !Y) return /* @__PURE__ */ g(c, {
|
|
162
162
|
title: "Run",
|
|
163
163
|
backPath: "runs",
|
|
164
|
-
children: /* @__PURE__ */
|
|
164
|
+
children: /* @__PURE__ */ g(s, { label: "Loading run…" })
|
|
165
165
|
});
|
|
166
|
-
if (
|
|
166
|
+
if (A && !Y) return /* @__PURE__ */ g(c, {
|
|
167
167
|
title: "Run",
|
|
168
168
|
backPath: "runs",
|
|
169
|
-
children: /* @__PURE__ */
|
|
169
|
+
children: /* @__PURE__ */ g(o, { onRetry: () => void M() })
|
|
170
170
|
});
|
|
171
|
-
if (!
|
|
171
|
+
if (!Y) return /* @__PURE__ */ g(c, {
|
|
172
172
|
title: "Run",
|
|
173
173
|
backPath: "runs",
|
|
174
|
-
children: /* @__PURE__ */
|
|
174
|
+
children: /* @__PURE__ */ g(a, {
|
|
175
175
|
title: "Run not found",
|
|
176
176
|
description: "This run may have been removed or you may not have access to it.",
|
|
177
|
-
action: /* @__PURE__ */
|
|
177
|
+
action: /* @__PURE__ */ g(v, {
|
|
178
178
|
type: "button",
|
|
179
179
|
variant: "outline",
|
|
180
|
-
onClick: () =>
|
|
180
|
+
onClick: () => p("runs"),
|
|
181
181
|
children: "Back to runs"
|
|
182
182
|
})
|
|
183
183
|
})
|
|
184
184
|
});
|
|
185
|
-
let
|
|
186
|
-
return /* @__PURE__ */
|
|
187
|
-
title: `Run #${
|
|
188
|
-
description:
|
|
185
|
+
let Je = ke[Y.status] ?? [];
|
|
186
|
+
return /* @__PURE__ */ _(c, {
|
|
187
|
+
title: `Run #${Y.runNumber}`,
|
|
188
|
+
description: Y.pipeline ? `Pipeline: ${Y.pipeline.name}` : void 0,
|
|
189
189
|
backPath: "runs",
|
|
190
|
-
actions: /* @__PURE__ */
|
|
190
|
+
actions: /* @__PURE__ */ _("div", {
|
|
191
191
|
className: "flex flex-wrap items-center gap-2",
|
|
192
|
-
children: [
|
|
192
|
+
children: [Je.map((e) => /* @__PURE__ */ g(v, {
|
|
193
193
|
type: "button",
|
|
194
194
|
variant: e === "CANCELLED" || e === "FAILED" ? "outline" : "default",
|
|
195
195
|
onClick: () => void Ke(e),
|
|
196
196
|
disabled: Ne,
|
|
197
197
|
children: `Mark ${u(e)}`
|
|
198
|
-
}, e)), /* @__PURE__ */
|
|
198
|
+
}, e)), /* @__PURE__ */ _(v, {
|
|
199
199
|
type: "button",
|
|
200
200
|
variant: "outline",
|
|
201
|
-
onClick: () =>
|
|
202
|
-
children: [/* @__PURE__ */
|
|
201
|
+
onClick: () => U(!0),
|
|
202
|
+
children: [/* @__PURE__ */ g(j, { className: "size-4" }), "Add step"]
|
|
203
203
|
})]
|
|
204
204
|
}),
|
|
205
|
-
children: [/* @__PURE__ */
|
|
205
|
+
children: [/* @__PURE__ */ _("div", {
|
|
206
206
|
className: "space-y-6",
|
|
207
207
|
children: [
|
|
208
|
-
/* @__PURE__ */
|
|
209
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ _(y, { children: [/* @__PURE__ */ g(x, { children: /* @__PURE__ */ g(S, { children: "Overview" }) }), /* @__PURE__ */ _(b, { children: [
|
|
209
|
+
/* @__PURE__ */ g(R, {
|
|
210
210
|
label: "Status",
|
|
211
|
-
children: /* @__PURE__ */
|
|
211
|
+
children: /* @__PURE__ */ g(l, { status: Y.status })
|
|
212
212
|
}),
|
|
213
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ g(R, {
|
|
214
214
|
label: "Pipeline",
|
|
215
|
-
children:
|
|
215
|
+
children: Y.pipeline ? /* @__PURE__ */ g("button", {
|
|
216
216
|
type: "button",
|
|
217
217
|
className: "text-text-primary underline-offset-2 hover:underline",
|
|
218
|
-
onClick: () =>
|
|
219
|
-
children:
|
|
220
|
-
}) : /* @__PURE__ */
|
|
218
|
+
onClick: () => p(`pipelines/${Y.pipelineId}`),
|
|
219
|
+
children: Y.pipeline.name
|
|
220
|
+
}) : /* @__PURE__ */ g("span", {
|
|
221
221
|
className: "font-mono text-xs",
|
|
222
|
-
children:
|
|
222
|
+
children: Y.pipelineId
|
|
223
223
|
})
|
|
224
224
|
}),
|
|
225
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ g(R, {
|
|
226
226
|
label: "Dataset",
|
|
227
|
-
children:
|
|
227
|
+
children: Y.datasetId ? /* @__PURE__ */ g("button", {
|
|
228
228
|
type: "button",
|
|
229
229
|
className: "text-text-primary underline-offset-2 hover:underline",
|
|
230
|
-
onClick: () =>
|
|
231
|
-
children:
|
|
230
|
+
onClick: () => p(`datasets/${Y.datasetId}`),
|
|
231
|
+
children: Be ?? /* @__PURE__ */ g("span", {
|
|
232
232
|
className: "font-mono text-xs",
|
|
233
|
-
children:
|
|
233
|
+
children: Y.datasetId
|
|
234
234
|
})
|
|
235
235
|
}) : "—"
|
|
236
236
|
}),
|
|
237
|
-
|
|
237
|
+
Y.pipeline ? /* @__PURE__ */ g(R, {
|
|
238
238
|
label: "Pipeline trigger",
|
|
239
|
-
children: /* @__PURE__ */
|
|
239
|
+
children: /* @__PURE__ */ _("span", {
|
|
240
240
|
className: "inline-flex flex-wrap items-center gap-2",
|
|
241
|
-
children: [/* @__PURE__ */
|
|
242
|
-
status:
|
|
241
|
+
children: [/* @__PURE__ */ g(l, {
|
|
242
|
+
status: Y.pipeline.trigger,
|
|
243
243
|
tone: "neutral"
|
|
244
|
-
}),
|
|
244
|
+
}), Y.pipeline.trigger === "SCHEDULED" && Y.pipeline.schedule ? /* @__PURE__ */ g("span", {
|
|
245
245
|
className: "font-mono text-xs text-text-secondary",
|
|
246
|
-
children:
|
|
246
|
+
children: Y.pipeline.schedule
|
|
247
247
|
}) : null]
|
|
248
248
|
})
|
|
249
249
|
}) : null,
|
|
250
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ g(R, {
|
|
251
251
|
label: "Triggered by",
|
|
252
|
-
children:
|
|
252
|
+
children: Y.triggeredBy || "—"
|
|
253
253
|
}),
|
|
254
|
-
/* @__PURE__ */
|
|
254
|
+
/* @__PURE__ */ g(R, {
|
|
255
255
|
label: "Started",
|
|
256
|
-
children:
|
|
256
|
+
children: F(Y.startedAt)
|
|
257
257
|
}),
|
|
258
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ g(R, {
|
|
259
259
|
label: "Finished",
|
|
260
|
-
children:
|
|
260
|
+
children: F(Y.finishedAt)
|
|
261
261
|
}),
|
|
262
|
-
/* @__PURE__ */
|
|
262
|
+
/* @__PURE__ */ g(R, {
|
|
263
263
|
label: "Duration",
|
|
264
|
-
children:
|
|
264
|
+
children: I(Y.durationMs)
|
|
265
265
|
}),
|
|
266
|
-
|
|
266
|
+
Y.errorMessage ? /* @__PURE__ */ g(R, {
|
|
267
267
|
label: "Error",
|
|
268
|
-
children: /* @__PURE__ */
|
|
268
|
+
children: /* @__PURE__ */ g("span", {
|
|
269
269
|
className: "text-status-error-text",
|
|
270
|
-
children:
|
|
270
|
+
children: Y.errorMessage
|
|
271
271
|
})
|
|
272
272
|
}) : null,
|
|
273
|
-
|
|
273
|
+
Je.length === 0 ? /* @__PURE__ */ g(R, {
|
|
274
274
|
label: "Discuss",
|
|
275
|
-
children: /* @__PURE__ */
|
|
275
|
+
children: /* @__PURE__ */ g(t, {
|
|
276
276
|
href: "/conversations",
|
|
277
277
|
className: "text-text-primary underline-offset-2 hover:underline",
|
|
278
278
|
children: "Open discussions"
|
|
279
279
|
})
|
|
280
280
|
}) : null
|
|
281
281
|
] })] }),
|
|
282
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ _("div", {
|
|
283
283
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
|
|
284
|
-
children: [/* @__PURE__ */
|
|
284
|
+
children: [/* @__PURE__ */ _(y, { children: [/* @__PURE__ */ g(x, { children: /* @__PURE__ */ g(S, { children: "Parameters" }) }), /* @__PURE__ */ g(b, { children: /* @__PURE__ */ g(z, { value: Y.params }) })] }), /* @__PURE__ */ _(y, { children: [/* @__PURE__ */ g(x, { children: /* @__PURE__ */ g(S, { children: "Metrics" }) }), /* @__PURE__ */ g(b, { children: /* @__PURE__ */ g(z, { value: Y.metrics }) })] })]
|
|
285
285
|
}),
|
|
286
|
-
/* @__PURE__ */ p
|
|
287
|
-
|
|
288
|
-
|
|
286
|
+
A ? /* @__PURE__ */ g("p", {
|
|
287
|
+
role: "alert",
|
|
288
|
+
className: "text-sm text-status-error-text",
|
|
289
|
+
children: "The run could not be refreshed. Previously loaded details remain visible; retry the read."
|
|
290
|
+
}) : null,
|
|
291
|
+
/* @__PURE__ */ g(ae, {
|
|
292
|
+
run: Y,
|
|
293
|
+
onChanged: () => void Promise.all([M(), V()])
|
|
289
294
|
}),
|
|
290
|
-
/* @__PURE__ */
|
|
295
|
+
/* @__PURE__ */ g(Ae, {
|
|
296
|
+
runId: Y.id,
|
|
297
|
+
canQueue: Y.status === "RUNNING",
|
|
298
|
+
onRunChanged: async () => {
|
|
299
|
+
await Promise.all([M(), V()]);
|
|
300
|
+
}
|
|
301
|
+
}, Y.id),
|
|
302
|
+
/* @__PURE__ */ _(y, { children: [/* @__PURE__ */ g(x, { children: /* @__PURE__ */ g(S, { children: "Steps" }) }), /* @__PURE__ */ g(b, { children: B ? /* @__PURE__ */ g(s, {
|
|
291
303
|
variant: "rows",
|
|
292
304
|
rows: 4,
|
|
293
305
|
label: "Loading steps…"
|
|
294
|
-
}) : je ? /* @__PURE__ */
|
|
306
|
+
}) : je ? /* @__PURE__ */ g(o, {
|
|
295
307
|
message: "Could not load steps.",
|
|
296
|
-
onRetry: () => void
|
|
297
|
-
}) :
|
|
298
|
-
icon:
|
|
308
|
+
onRetry: () => void V()
|
|
309
|
+
}) : X.length === 0 ? /* @__PURE__ */ g(a, {
|
|
310
|
+
icon: Ee,
|
|
299
311
|
title: "No steps yet",
|
|
300
312
|
description: "Add steps to record the ingest, calibration, transform, analyze or export stages of this run.",
|
|
301
|
-
action: /* @__PURE__ */
|
|
313
|
+
action: /* @__PURE__ */ _(v, {
|
|
302
314
|
type: "button",
|
|
303
|
-
onClick: () =>
|
|
304
|
-
children: [/* @__PURE__ */
|
|
315
|
+
onClick: () => U(!0),
|
|
316
|
+
children: [/* @__PURE__ */ g(j, { className: "size-4" }), "Add step"]
|
|
305
317
|
})
|
|
306
|
-
}) : /* @__PURE__ */
|
|
318
|
+
}) : /* @__PURE__ */ g("ol", {
|
|
307
319
|
className: "flex flex-col",
|
|
308
|
-
children:
|
|
309
|
-
let n =
|
|
310
|
-
return /* @__PURE__ */
|
|
320
|
+
children: X.map((e, t) => {
|
|
321
|
+
let n = P[e.status] ?? P.QUEUED, r = n.icon, i = t === X.length - 1;
|
|
322
|
+
return /* @__PURE__ */ _("li", {
|
|
311
323
|
className: "flex gap-4",
|
|
312
|
-
children: [/* @__PURE__ */
|
|
324
|
+
children: [/* @__PURE__ */ _("div", {
|
|
313
325
|
className: "flex flex-col items-center",
|
|
314
|
-
children: [/* @__PURE__ */
|
|
326
|
+
children: [/* @__PURE__ */ g("span", {
|
|
315
327
|
className: `flex size-8 shrink-0 items-center justify-center rounded-full border ${n.wrap}`,
|
|
316
|
-
children: /* @__PURE__ */
|
|
328
|
+
children: /* @__PURE__ */ g(r, {
|
|
317
329
|
className: `size-4 ${n.spin ? "animate-spin" : ""}`,
|
|
318
330
|
"aria-hidden": "true"
|
|
319
331
|
})
|
|
320
|
-
}), i ? null : /* @__PURE__ */
|
|
332
|
+
}), i ? null : /* @__PURE__ */ g("span", {
|
|
321
333
|
className: "w-px flex-1 bg-border-default",
|
|
322
334
|
"aria-hidden": "true"
|
|
323
335
|
})]
|
|
324
|
-
}), /* @__PURE__ */
|
|
336
|
+
}), /* @__PURE__ */ _("div", {
|
|
325
337
|
className: `min-w-0 flex-1 rounded-card border border-border-default bg-bg-elevated p-4 ${i ? "" : "mb-4"}`,
|
|
326
338
|
children: [
|
|
327
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ _("div", {
|
|
328
340
|
className: "flex flex-wrap items-center gap-2",
|
|
329
341
|
children: [
|
|
330
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ _("span", {
|
|
331
343
|
className: "text-xs font-semibold tabular-nums text-text-secondary",
|
|
332
344
|
children: [t + 1, "."]
|
|
333
345
|
}),
|
|
334
|
-
/* @__PURE__ */
|
|
346
|
+
/* @__PURE__ */ g("span", {
|
|
335
347
|
className: "min-w-0 truncate font-medium text-text-primary",
|
|
336
348
|
children: e.name
|
|
337
349
|
}),
|
|
338
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ g(l, {
|
|
339
351
|
status: e.kind,
|
|
340
352
|
tone: "neutral"
|
|
341
353
|
}),
|
|
342
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ g(l, {
|
|
343
355
|
status: e.status,
|
|
344
356
|
className: "ml-auto"
|
|
345
357
|
})
|
|
346
358
|
]
|
|
347
359
|
}),
|
|
348
|
-
e.errorMessage ? /* @__PURE__ */
|
|
360
|
+
e.errorMessage ? /* @__PURE__ */ g("p", {
|
|
349
361
|
className: "mt-1.5 text-xs text-status-error-text",
|
|
350
362
|
children: e.errorMessage
|
|
351
363
|
}) : null,
|
|
352
|
-
/* @__PURE__ */
|
|
364
|
+
/* @__PURE__ */ _("p", {
|
|
353
365
|
className: "mt-1.5 text-xs text-text-secondary",
|
|
354
|
-
children: ["Duration: ",
|
|
366
|
+
children: ["Duration: ", I(e.durationMs)]
|
|
355
367
|
})
|
|
356
368
|
]
|
|
357
369
|
})]
|
|
358
370
|
}, e.id);
|
|
359
371
|
})
|
|
360
372
|
}) })] }),
|
|
361
|
-
|
|
373
|
+
Ve ? /* @__PURE__ */ _(y, { children: [/* @__PURE__ */ _(x, { children: [/* @__PURE__ */ g(S, { children: "Similar failures" }), /* @__PURE__ */ g("p", {
|
|
362
374
|
className: "text-sm text-text-secondary",
|
|
363
|
-
children:
|
|
364
|
-
})] }), /* @__PURE__ */
|
|
375
|
+
children: Z ? `Other runs of this pipeline that ended in Failed. “Same step” marks the ones that broke at “${Z.name}” too.` : "Other runs of this pipeline that ended in Failed."
|
|
376
|
+
})] }), /* @__PURE__ */ g(b, { children: Ue ? /* @__PURE__ */ g(s, {
|
|
365
377
|
variant: "rows",
|
|
366
378
|
rows: 3,
|
|
367
379
|
label: "Loading failure history…"
|
|
368
|
-
}) : We ? /* @__PURE__ */
|
|
380
|
+
}) : We ? /* @__PURE__ */ g(o, {
|
|
369
381
|
message: "Could not load the pipeline's failure history.",
|
|
370
382
|
onRetry: () => void Ge()
|
|
371
|
-
}) :
|
|
372
|
-
icon:
|
|
383
|
+
}) : Q.length === 0 ? /* @__PURE__ */ g(a, {
|
|
384
|
+
icon: De,
|
|
373
385
|
title: "No other failed runs",
|
|
374
386
|
description: "This is the only run of this pipeline that has failed so far."
|
|
375
|
-
}) : /* @__PURE__ */
|
|
387
|
+
}) : /* @__PURE__ */ _(ce, { children: [/* @__PURE__ */ g("div", {
|
|
376
388
|
className: "hidden overflow-hidden rounded-card border border-border-default md:block",
|
|
377
|
-
children: /* @__PURE__ */
|
|
378
|
-
/* @__PURE__ */
|
|
379
|
-
/* @__PURE__ */
|
|
380
|
-
/* @__PURE__ */
|
|
381
|
-
/* @__PURE__ */
|
|
382
|
-
] }) }), /* @__PURE__ */
|
|
389
|
+
children: /* @__PURE__ */ _(Se, { children: [/* @__PURE__ */ g(we, { children: /* @__PURE__ */ _(D, { children: [
|
|
390
|
+
/* @__PURE__ */ g(E, { children: "Run" }),
|
|
391
|
+
/* @__PURE__ */ g(E, { children: "Step" }),
|
|
392
|
+
/* @__PURE__ */ g(E, { children: "Error" }),
|
|
393
|
+
/* @__PURE__ */ g(E, { children: "When" })
|
|
394
|
+
] }) }), /* @__PURE__ */ g(Ce, { children: Q.map((e) => /* @__PURE__ */ _(D, {
|
|
383
395
|
className: "cursor-pointer",
|
|
384
|
-
onClick: () =>
|
|
396
|
+
onClick: () => p(`runs/${e.id}`),
|
|
385
397
|
children: [
|
|
386
|
-
/* @__PURE__ */
|
|
398
|
+
/* @__PURE__ */ _(T, {
|
|
387
399
|
className: "whitespace-nowrap font-medium text-text-primary",
|
|
388
400
|
children: ["Run #", e.runNumber]
|
|
389
401
|
}),
|
|
390
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ g(T, { children: e.step ? /* @__PURE__ */ _("span", {
|
|
391
403
|
className: "inline-flex flex-wrap items-center gap-1.5",
|
|
392
404
|
children: [
|
|
393
|
-
/* @__PURE__ */
|
|
405
|
+
/* @__PURE__ */ g("span", {
|
|
394
406
|
className: "text-sm text-text-primary",
|
|
395
407
|
children: e.step.name
|
|
396
408
|
}),
|
|
397
|
-
/* @__PURE__ */
|
|
409
|
+
/* @__PURE__ */ g(l, {
|
|
398
410
|
status: e.step.kind,
|
|
399
411
|
tone: "neutral"
|
|
400
412
|
}),
|
|
401
|
-
e.sameStep ? /* @__PURE__ */
|
|
413
|
+
e.sameStep ? /* @__PURE__ */ g(ue, {
|
|
402
414
|
variant: "outline",
|
|
403
415
|
className: "border-status-warning-border bg-status-warning-bg-subtle text-xs text-status-warning-text",
|
|
404
416
|
children: "Same step"
|
|
405
417
|
}) : null
|
|
406
418
|
]
|
|
407
|
-
}) : /* @__PURE__ */
|
|
419
|
+
}) : /* @__PURE__ */ g("span", {
|
|
408
420
|
className: "text-sm text-text-secondary",
|
|
409
421
|
children: "Not recorded"
|
|
410
422
|
}) }),
|
|
411
|
-
/* @__PURE__ */
|
|
423
|
+
/* @__PURE__ */ g(T, {
|
|
412
424
|
className: "max-w-md text-sm text-text-secondary",
|
|
413
|
-
children: /* @__PURE__ */
|
|
425
|
+
children: /* @__PURE__ */ g("span", {
|
|
414
426
|
className: "line-clamp-2",
|
|
415
427
|
children: e.error ?? "—"
|
|
416
428
|
})
|
|
417
429
|
}),
|
|
418
|
-
/* @__PURE__ */
|
|
430
|
+
/* @__PURE__ */ g(T, {
|
|
419
431
|
className: "whitespace-nowrap text-sm text-text-secondary",
|
|
420
|
-
children:
|
|
432
|
+
children: F(e.when)
|
|
421
433
|
})
|
|
422
434
|
]
|
|
423
435
|
}, e.id)) })] })
|
|
424
|
-
}), /* @__PURE__ */
|
|
436
|
+
}), /* @__PURE__ */ g("ul", {
|
|
425
437
|
className: "space-y-3 md:hidden",
|
|
426
|
-
children:
|
|
438
|
+
children: Q.map((e) => /* @__PURE__ */ g("li", { children: /* @__PURE__ */ _("button", {
|
|
427
439
|
type: "button",
|
|
428
|
-
onClick: () =>
|
|
440
|
+
onClick: () => p(`runs/${e.id}`),
|
|
429
441
|
className: "flex w-full flex-col gap-2 rounded-card border border-border-default bg-bg-elevated p-4 text-left transition-colors hover:bg-bg-sunken focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
430
442
|
children: [
|
|
431
|
-
/* @__PURE__ */
|
|
443
|
+
/* @__PURE__ */ _("div", {
|
|
432
444
|
className: "flex flex-wrap items-center gap-1.5",
|
|
433
445
|
children: [
|
|
434
|
-
/* @__PURE__ */
|
|
446
|
+
/* @__PURE__ */ _("span", {
|
|
435
447
|
className: "font-medium text-text-primary",
|
|
436
448
|
children: ["Run #", e.runNumber]
|
|
437
449
|
}),
|
|
438
|
-
e.step ? /* @__PURE__ */
|
|
450
|
+
e.step ? /* @__PURE__ */ g(l, {
|
|
439
451
|
status: e.step.kind,
|
|
440
452
|
tone: "neutral"
|
|
441
453
|
}) : null,
|
|
442
|
-
e.sameStep ? /* @__PURE__ */
|
|
454
|
+
e.sameStep ? /* @__PURE__ */ g(ue, {
|
|
443
455
|
variant: "outline",
|
|
444
456
|
className: "border-status-warning-border bg-status-warning-bg-subtle text-xs text-status-warning-text",
|
|
445
457
|
children: "Same step"
|
|
446
458
|
}) : null
|
|
447
459
|
]
|
|
448
460
|
}),
|
|
449
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ g("p", {
|
|
450
462
|
className: "text-sm text-text-primary",
|
|
451
463
|
children: e.step ? e.step.name : "Step not recorded"
|
|
452
464
|
}),
|
|
453
|
-
/* @__PURE__ */
|
|
465
|
+
/* @__PURE__ */ g("p", {
|
|
454
466
|
className: "text-xs text-text-secondary",
|
|
455
467
|
children: e.error ?? "—"
|
|
456
468
|
}),
|
|
457
|
-
/* @__PURE__ */
|
|
469
|
+
/* @__PURE__ */ g("p", {
|
|
458
470
|
className: "text-xs text-text-tertiary",
|
|
459
|
-
children:
|
|
471
|
+
children: F(e.when)
|
|
460
472
|
})
|
|
461
473
|
]
|
|
462
474
|
}) }, e.id))
|
|
463
475
|
})] }) })] }) : null,
|
|
464
|
-
/* @__PURE__ */
|
|
465
|
-
resourceId:
|
|
476
|
+
/* @__PURE__ */ _(y, { children: [/* @__PURE__ */ g(x, { children: /* @__PURE__ */ g(S, { children: "Activity" }) }), /* @__PURE__ */ g(b, { children: /* @__PURE__ */ g(ie, {
|
|
477
|
+
resourceId: Y.id,
|
|
466
478
|
resourceType: "cosmicintersection-run"
|
|
467
479
|
}) })] })
|
|
468
480
|
]
|
|
469
|
-
}), /* @__PURE__ */
|
|
481
|
+
}), /* @__PURE__ */ g(de, {
|
|
470
482
|
open: Fe,
|
|
471
483
|
onOpenChange: (e) => {
|
|
472
|
-
|
|
484
|
+
H || (U(e), e || $());
|
|
473
485
|
},
|
|
474
|
-
children: /* @__PURE__ */
|
|
475
|
-
/* @__PURE__ */
|
|
476
|
-
/* @__PURE__ */
|
|
486
|
+
children: /* @__PURE__ */ _(fe, { children: [
|
|
487
|
+
/* @__PURE__ */ _(he, { children: [/* @__PURE__ */ g(ge, { children: "Add step" }), /* @__PURE__ */ g(pe, { children: "Record a stage of this run — its kind, order and optional inputs." })] }),
|
|
488
|
+
/* @__PURE__ */ _("div", {
|
|
477
489
|
className: "space-y-4",
|
|
478
490
|
children: [
|
|
479
|
-
/* @__PURE__ */
|
|
491
|
+
/* @__PURE__ */ _("div", {
|
|
480
492
|
className: "space-y-1",
|
|
481
|
-
children: [/* @__PURE__ */
|
|
493
|
+
children: [/* @__PURE__ */ g(w, {
|
|
482
494
|
htmlFor: "step-name",
|
|
483
495
|
children: "Name"
|
|
484
|
-
}), /* @__PURE__ */
|
|
496
|
+
}), /* @__PURE__ */ g(C, {
|
|
485
497
|
id: "step-name",
|
|
486
|
-
value:
|
|
487
|
-
onChange: (e) =>
|
|
498
|
+
value: W,
|
|
499
|
+
onChange: (e) => G(e.target.value),
|
|
488
500
|
placeholder: "e.g. Calibrate flat fields"
|
|
489
501
|
})]
|
|
490
502
|
}),
|
|
491
|
-
/* @__PURE__ */
|
|
503
|
+
/* @__PURE__ */ _("div", {
|
|
492
504
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
493
|
-
children: [/* @__PURE__ */
|
|
505
|
+
children: [/* @__PURE__ */ _("div", {
|
|
494
506
|
className: "space-y-1",
|
|
495
|
-
children: [/* @__PURE__ */
|
|
507
|
+
children: [/* @__PURE__ */ g(w, {
|
|
496
508
|
htmlFor: "step-kind",
|
|
497
509
|
children: "Kind"
|
|
498
|
-
}), /* @__PURE__ */
|
|
499
|
-
value:
|
|
500
|
-
onValueChange: (e) =>
|
|
501
|
-
children: [/* @__PURE__ */
|
|
510
|
+
}), /* @__PURE__ */ _(_e, {
|
|
511
|
+
value: K,
|
|
512
|
+
onValueChange: (e) => Ie(e),
|
|
513
|
+
children: [/* @__PURE__ */ g(be, {
|
|
502
514
|
id: "step-kind",
|
|
503
515
|
"aria-label": "Step kind",
|
|
504
|
-
children: /* @__PURE__ */
|
|
505
|
-
}), /* @__PURE__ */
|
|
516
|
+
children: /* @__PURE__ */ g(xe, {})
|
|
517
|
+
}), /* @__PURE__ */ g(ve, { children: Oe.map((e) => /* @__PURE__ */ g(ye, {
|
|
506
518
|
value: e,
|
|
507
519
|
children: u(e)
|
|
508
520
|
}, e)) })]
|
|
509
521
|
})]
|
|
510
|
-
}), /* @__PURE__ */
|
|
522
|
+
}), /* @__PURE__ */ _("div", {
|
|
511
523
|
className: "space-y-1",
|
|
512
|
-
children: [/* @__PURE__ */
|
|
524
|
+
children: [/* @__PURE__ */ g(w, {
|
|
513
525
|
htmlFor: "step-position",
|
|
514
526
|
children: "Position"
|
|
515
|
-
}), /* @__PURE__ */
|
|
527
|
+
}), /* @__PURE__ */ g(C, {
|
|
516
528
|
id: "step-position",
|
|
517
529
|
type: "number",
|
|
518
530
|
min: "0",
|
|
519
|
-
value:
|
|
520
|
-
onChange: (e) =>
|
|
531
|
+
value: q,
|
|
532
|
+
onChange: (e) => Le(e.target.value),
|
|
521
533
|
placeholder: "Auto"
|
|
522
534
|
})]
|
|
523
535
|
})]
|
|
524
536
|
}),
|
|
525
|
-
/* @__PURE__ */
|
|
537
|
+
/* @__PURE__ */ _("div", {
|
|
526
538
|
className: "space-y-1",
|
|
527
539
|
children: [
|
|
528
|
-
/* @__PURE__ */
|
|
540
|
+
/* @__PURE__ */ g(w, {
|
|
529
541
|
htmlFor: "step-inputs",
|
|
530
542
|
children: "Inputs (JSON)"
|
|
531
543
|
}),
|
|
532
|
-
/* @__PURE__ */
|
|
544
|
+
/* @__PURE__ */ g(Te, {
|
|
533
545
|
id: "step-inputs",
|
|
534
|
-
value:
|
|
535
|
-
onChange: (e) =>
|
|
546
|
+
value: J,
|
|
547
|
+
onChange: (e) => Re(e.target.value),
|
|
536
548
|
rows: 4,
|
|
537
549
|
spellCheck: !1,
|
|
538
550
|
className: "font-mono text-xs",
|
|
539
551
|
placeholder: "{\n \"source\": \"raw-frames\"\n}"
|
|
540
552
|
}),
|
|
541
|
-
/* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ g("p", {
|
|
542
554
|
className: "text-xs text-text-secondary",
|
|
543
555
|
children: "Optional. A JSON object of step inputs."
|
|
544
556
|
})
|
|
@@ -546,25 +558,50 @@ function L() {
|
|
|
546
558
|
})
|
|
547
559
|
]
|
|
548
560
|
}),
|
|
549
|
-
/* @__PURE__ */
|
|
561
|
+
/* @__PURE__ */ _(me, { children: [/* @__PURE__ */ g(v, {
|
|
550
562
|
type: "button",
|
|
551
563
|
variant: "outline",
|
|
552
564
|
onClick: () => {
|
|
553
|
-
|
|
565
|
+
U(!1), $();
|
|
554
566
|
},
|
|
555
|
-
disabled:
|
|
567
|
+
disabled: H,
|
|
556
568
|
children: "Cancel"
|
|
557
|
-
}), /* @__PURE__ */
|
|
569
|
+
}), /* @__PURE__ */ _(v, {
|
|
558
570
|
type: "button",
|
|
559
571
|
onClick: () => void qe(),
|
|
560
|
-
disabled:
|
|
561
|
-
children: [/* @__PURE__ */
|
|
572
|
+
disabled: H,
|
|
573
|
+
children: [/* @__PURE__ */ g(j, { className: "size-4" }), H ? "Adding…" : "Add step"]
|
|
562
574
|
})] })
|
|
563
575
|
] })
|
|
564
576
|
})]
|
|
565
577
|
});
|
|
566
578
|
}
|
|
579
|
+
function Ae({ runId: e, canQueue: t, onRunChanged: n }) {
|
|
580
|
+
let [r, i] = h(!1);
|
|
581
|
+
return /* @__PURE__ */ _("section", {
|
|
582
|
+
className: "space-y-4",
|
|
583
|
+
"aria-label": "External Databricks compute",
|
|
584
|
+
children: [/* @__PURE__ */ g(v, {
|
|
585
|
+
type: "button",
|
|
586
|
+
variant: "outline",
|
|
587
|
+
"aria-expanded": r,
|
|
588
|
+
onClick: () => i(!r),
|
|
589
|
+
children: r ? "Hide Databricks jobs" : "Manage Databricks jobs"
|
|
590
|
+
}), r ? /* @__PURE__ */ g(f, {
|
|
591
|
+
fallback: /* @__PURE__ */ g(s, {
|
|
592
|
+
variant: "rows",
|
|
593
|
+
rows: 2,
|
|
594
|
+
label: "Loading Databricks jobs…"
|
|
595
|
+
}),
|
|
596
|
+
children: /* @__PURE__ */ g(N, {
|
|
597
|
+
runId: e,
|
|
598
|
+
canQueue: t,
|
|
599
|
+
onRunChanged: n
|
|
600
|
+
})
|
|
601
|
+
}) : null]
|
|
602
|
+
});
|
|
603
|
+
}
|
|
567
604
|
//#endregion
|
|
568
|
-
export {
|
|
605
|
+
export { B as default };
|
|
569
606
|
|
|
570
607
|
//# sourceMappingURL=RunDetailPage.js.map
|