@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.
Files changed (85) hide show
  1. package/dist/cosmicintersection/api/databricksTransport.d.ts +13 -0
  2. package/dist/cosmicintersection/api/databricksTransport.d.ts.map +1 -0
  3. package/dist/cosmicintersection/api/databricksTransport.js +38 -0
  4. package/dist/cosmicintersection/api/databricksTransport.js.map +1 -0
  5. package/dist/cosmicintersection/components/ActionMenu.js +17 -17
  6. package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts +13 -0
  7. package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts.map +1 -0
  8. package/dist/cosmicintersection/components/DatabricksQueueForm.js +221 -0
  9. package/dist/cosmicintersection/components/DatabricksQueueForm.js.map +1 -0
  10. package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts +6 -0
  11. package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts.map +1 -0
  12. package/dist/cosmicintersection/components/DatabricksRunPanel.js +206 -0
  13. package/dist/cosmicintersection/components/DatabricksRunPanel.js.map +1 -0
  14. package/dist/cosmicintersection/components/EntityFormShell.js +7 -7
  15. package/dist/cosmicintersection/components/EntityTagsField.js +8 -8
  16. package/dist/cosmicintersection/components/ErrorState.js +4 -4
  17. package/dist/cosmicintersection/components/FileUploadField.js +8 -8
  18. package/dist/cosmicintersection/components/Pagination.js +6 -6
  19. package/dist/cosmicintersection/components/ReleaseDraftDialog.js +17 -17
  20. package/dist/cosmicintersection/components/RunTriageCard.js +12 -12
  21. package/dist/cosmicintersection/components/SchemaProposalPanel.js +35 -35
  22. package/dist/cosmicintersection/components/SchemaProposalPanel.js.map +1 -1
  23. package/dist/cosmicintersection/components/WorkspaceTagsPicker.js +12 -12
  24. package/dist/cosmicintersection/components/index.js +7 -7
  25. package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts +2 -0
  26. package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts.map +1 -1
  27. package/dist/cosmicintersection/context/CosmicIntersectionContext.js +17 -13
  28. package/dist/cosmicintersection/context/CosmicIntersectionContext.js.map +1 -1
  29. package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts +69 -0
  30. package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts.map +1 -0
  31. package/dist/cosmicintersection/hooks/useDatabricksExecutions.js +89 -0
  32. package/dist/cosmicintersection/hooks/useDatabricksExecutions.js.map +1 -0
  33. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts +59 -0
  34. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts.map +1 -0
  35. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js +158 -0
  36. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js.map +1 -0
  37. package/dist/cosmicintersection/lib/databricksForm.d.ts +4 -0
  38. package/dist/cosmicintersection/lib/databricksForm.d.ts.map +1 -0
  39. package/dist/cosmicintersection/lib/databricksForm.js +31 -0
  40. package/dist/cosmicintersection/lib/databricksForm.js.map +1 -0
  41. package/dist/cosmicintersection/lib/databricksIntent.d.ts +19 -0
  42. package/dist/cosmicintersection/lib/databricksIntent.d.ts.map +1 -0
  43. package/dist/cosmicintersection/lib/databricksIntent.js +60 -0
  44. package/dist/cosmicintersection/lib/databricksIntent.js.map +1 -0
  45. package/dist/cosmicintersection/lib/databricksPresentation.d.ts +5 -0
  46. package/dist/cosmicintersection/lib/databricksPresentation.d.ts.map +1 -0
  47. package/dist/cosmicintersection/lib/databricksPresentation.js +27 -0
  48. package/dist/cosmicintersection/lib/databricksPresentation.js.map +1 -0
  49. package/dist/cosmicintersection/pages/access/AccessPage.js +62 -62
  50. package/dist/cosmicintersection/pages/access/AccessPage.js.map +1 -1
  51. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +107 -107
  52. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
  53. package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js +24 -24
  54. package/dist/cosmicintersection/pages/collections/CollectionsPage.js +12 -12
  55. package/dist/cosmicintersection/pages/dashboard/DashboardPage.js +18 -18
  56. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +91 -91
  57. package/dist/cosmicintersection/pages/datasets/DatasetsPage.js +209 -209
  58. package/dist/cosmicintersection/pages/datasets/DatasetsPage.js.map +1 -1
  59. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js +98 -98
  60. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js.map +1 -1
  61. package/dist/cosmicintersection/pages/lineage/LineagePage.js +15 -15
  62. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +139 -139
  63. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
  64. package/dist/cosmicintersection/pages/notebooks/NotebooksPage.js +34 -34
  65. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js +39 -39
  66. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js.map +1 -1
  67. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js +107 -107
  68. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js.map +1 -1
  69. package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js +32 -32
  70. package/dist/cosmicintersection/pages/releases/ReleasesPage.js +213 -213
  71. package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
  72. package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +1 -1
  73. package/dist/cosmicintersection/pages/runs/RunDetailPage.js +250 -213
  74. package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
  75. package/dist/cosmicintersection/pages/runs/RunsPage.js +31 -31
  76. package/dist/cosmicintersection/pages/sources/SourceDetailPage.js +41 -41
  77. package/dist/cosmicintersection/pages/sources/SourcesPage.js +122 -122
  78. package/dist/cosmicintersection/pages/sources/SourcesPage.js.map +1 -1
  79. package/dist/generated/wspace-operations.d.ts +243 -0
  80. package/dist/generated/wspace-operations.d.ts.map +1 -0
  81. package/dist/generated/wspace-operations.js +1472 -0
  82. package/dist/generated/wspace-operations.js.map +1 -0
  83. package/dist/generated/wspace-types.d.ts +183281 -30204
  84. package/dist/generated/wspace-types.d.ts.map +1 -1
  85. package/package.json +10 -7
@@ -1,24 +1,24 @@
1
1
  import { useCosmicIntersection as e } from "../../context/CosmicIntersectionContext.js";
2
- import { notify as t } from "../../lib/toast.js";
3
- import { useCosAddRunStepMutation as n, useCosDatasetSummaryQuery as r, useCosPipelineFailedRunsQuery as i, useCosRunQuery as ee, useCosRunStepsQuery as te, useCosTransitionRunMutation as ne } from "../../api/cosmicApi.js";
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 re } from "../../components/ActivityFeedPanel.js";
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 ce } from "../../lib/mutationResult.js";
15
- import { useMemo as d, useState as f } from "react";
16
- import { Fragment as le, jsx as p, jsxs as m } from "react/jsx-runtime";
17
- import { useParams as ue } from "react-router";
18
- import { Check as h, Circle as g, ListTree as de, Loader2 as _, Plus as v, SearchX as fe, X as y } from "lucide-react";
19
- import { Badge as b, Button as x, Card as S, CardContent as C, CardHeader as w, CardTitle as T, Dialog as pe, DialogContent as me, DialogDescription as he, DialogFooter as ge, DialogHeader as _e, DialogTitle as ve, Input as E, Label as D, Select as ye, SelectContent as be, SelectItem as xe, SelectTrigger as Se, SelectValue as Ce, Table as we, TableBody as Te, TableCell as O, TableHead as k, TableHeader as Ee, TableRow as A, Textarea as De } from "@burdenoff/fe-libs/ui";
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
- }, j = {
38
+ }, P = {
39
39
  SUCCEEDED: {
40
- icon: h,
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: y,
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: g,
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: y,
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 M(e) {
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 N(e) {
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 P(e) {
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 F({ label: e, children: t }) {
81
- return /* @__PURE__ */ m("div", {
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__ */ p("span", {
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__ */ p("span", {
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 I({ value: e }) {
93
- return !e || Object.keys(e).length === 0 ? /* @__PURE__ */ p("span", {
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__ */ p("pre", {
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 L() {
102
- let { id: h = "" } = ue(), { navigate: g } = e(), { data: _, loading: y, error: L, refetch: R } = ee(h), { data: z, loading: Ae, error: je, refetch: B } = te(h), [Me, { loading: Ne }] = ne(), [Pe, { loading: V }] = n(), [Fe, H] = f(!1), [U, W] = f(""), [Ie, Le] = f("INGEST"), [G, Re] = f(""), [K, ze] = f(""), q = _?.cosRun;
103
- oe(q ? {
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: q.id,
106
- name: q.pipeline ? `${q.pipeline.name} #${q.runNumber}` : `#${q.runNumber}`,
107
- path: `runs/${encodeURIComponent(q.id)}`
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 J = d(() => [...z?.cosListRunSteps ?? []].sort((e, t) => e.position - t.position), [z]), { data: Be } = r(q?.datasetId), Ve = Be?.cosDataset?.name ?? null, Y = q?.status === "FAILED", { data: He, loading: Ue, error: We, refetch: Ge } = i(q?.pipelineId, { skip: !Y }), X = d(() => P(J), [J]), Z = d(() => (He?.cosListRuns.items ?? []).filter((e) => e.id !== q?.id).map((e) => {
110
- let t = P(e.steps);
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: X !== null && t !== null && t.name === X.name
117
+ sameStep: Z !== null && t !== null && t.name === Z.name
118
118
  };
119
119
  }).slice(0, 8), [
120
120
  He,
121
- q?.id,
122
- X
121
+ Y?.id,
122
+ Z
123
123
  ]), Ke = async (e) => {
124
- if (!q) return;
125
- let n = await Me({ variables: {
126
- id: q.id,
124
+ if (!Y) return;
125
+ let t = await Me({ variables: {
126
+ id: Y.id,
127
127
  status: e
128
128
  } });
129
- ce(n, n.data?.cosTransitionRun?.id, "Could not update the run") && (t.success("Run updated", `Run #${q.runNumber} moved to ${u(e)}.`), await Promise.all([R(), B()]));
130
- }, Q = () => {
131
- W(""), Le("INGEST"), Re(""), ze("");
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 (!q) return;
134
- if (!U.trim()) {
135
- t.error("Step name is required", "Give the step a name before adding it.");
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 (K.trim()) try {
140
- let t = JSON.parse(K.trim());
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
- t.error("Invalid inputs JSON", se(e) ?? "Please provide valid JSON.");
144
+ n.error("Invalid inputs JSON", se(e) ?? "Please provide valid JSON.");
145
145
  return;
146
146
  }
147
- let n = G.trim() ? Number(G.trim()) : void 0;
148
- if (n !== void 0 && (Number.isNaN(n) || n < 0)) {
149
- t.error("Invalid position", "Position must be a non-negative number.");
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: q.id,
154
- name: U.trim(),
155
- kind: Ie,
153
+ runId: Y.id,
154
+ name: W.trim(),
155
+ kind: K,
156
156
  inputs: e,
157
- position: n
157
+ position: t
158
158
  } } });
159
- ce(r, r.data?.cosAddRunStep?.id, "Could not add the step") && (t.success("Step added", `“${U.trim()}” was added to the run.`), H(!1), Q(), await B());
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 (y) return /* @__PURE__ */ p(c, {
161
+ if (k && !Y) return /* @__PURE__ */ g(c, {
162
162
  title: "Run",
163
163
  backPath: "runs",
164
- children: /* @__PURE__ */ p(s, { label: "Loading run…" })
164
+ children: /* @__PURE__ */ g(s, { label: "Loading run…" })
165
165
  });
166
- if (L) return /* @__PURE__ */ p(c, {
166
+ if (A && !Y) return /* @__PURE__ */ g(c, {
167
167
  title: "Run",
168
168
  backPath: "runs",
169
- children: /* @__PURE__ */ p(o, { onRetry: () => void R() })
169
+ children: /* @__PURE__ */ g(o, { onRetry: () => void M() })
170
170
  });
171
- if (!q) return /* @__PURE__ */ p(c, {
171
+ if (!Y) return /* @__PURE__ */ g(c, {
172
172
  title: "Run",
173
173
  backPath: "runs",
174
- children: /* @__PURE__ */ p(a, {
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__ */ p(x, {
177
+ action: /* @__PURE__ */ g(v, {
178
178
  type: "button",
179
179
  variant: "outline",
180
- onClick: () => g("runs"),
180
+ onClick: () => p("runs"),
181
181
  children: "Back to runs"
182
182
  })
183
183
  })
184
184
  });
185
- let $ = ke[q.status] ?? [];
186
- return /* @__PURE__ */ m(c, {
187
- title: `Run #${q.runNumber}`,
188
- description: q.pipeline ? `Pipeline: ${q.pipeline.name}` : void 0,
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__ */ m("div", {
190
+ actions: /* @__PURE__ */ _("div", {
191
191
  className: "flex flex-wrap items-center gap-2",
192
- children: [$.map((e) => /* @__PURE__ */ p(x, {
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__ */ m(x, {
198
+ }, e)), /* @__PURE__ */ _(v, {
199
199
  type: "button",
200
200
  variant: "outline",
201
- onClick: () => H(!0),
202
- children: [/* @__PURE__ */ p(v, { className: "size-4" }), "Add step"]
201
+ onClick: () => U(!0),
202
+ children: [/* @__PURE__ */ g(j, { className: "size-4" }), "Add step"]
203
203
  })]
204
204
  }),
205
- children: [/* @__PURE__ */ m("div", {
205
+ children: [/* @__PURE__ */ _("div", {
206
206
  className: "space-y-6",
207
207
  children: [
208
- /* @__PURE__ */ m(S, { children: [/* @__PURE__ */ p(w, { children: /* @__PURE__ */ p(T, { children: "Overview" }) }), /* @__PURE__ */ m(C, { children: [
209
- /* @__PURE__ */ p(F, {
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__ */ p(l, { status: q.status })
211
+ children: /* @__PURE__ */ g(l, { status: Y.status })
212
212
  }),
213
- /* @__PURE__ */ p(F, {
213
+ /* @__PURE__ */ g(R, {
214
214
  label: "Pipeline",
215
- children: q.pipeline ? /* @__PURE__ */ p("button", {
215
+ children: Y.pipeline ? /* @__PURE__ */ g("button", {
216
216
  type: "button",
217
217
  className: "text-text-primary underline-offset-2 hover:underline",
218
- onClick: () => g(`pipelines/${q.pipelineId}`),
219
- children: q.pipeline.name
220
- }) : /* @__PURE__ */ p("span", {
218
+ onClick: () => p(`pipelines/${Y.pipelineId}`),
219
+ children: Y.pipeline.name
220
+ }) : /* @__PURE__ */ g("span", {
221
221
  className: "font-mono text-xs",
222
- children: q.pipelineId
222
+ children: Y.pipelineId
223
223
  })
224
224
  }),
225
- /* @__PURE__ */ p(F, {
225
+ /* @__PURE__ */ g(R, {
226
226
  label: "Dataset",
227
- children: q.datasetId ? /* @__PURE__ */ p("button", {
227
+ children: Y.datasetId ? /* @__PURE__ */ g("button", {
228
228
  type: "button",
229
229
  className: "text-text-primary underline-offset-2 hover:underline",
230
- onClick: () => g(`datasets/${q.datasetId}`),
231
- children: Ve ?? /* @__PURE__ */ p("span", {
230
+ onClick: () => p(`datasets/${Y.datasetId}`),
231
+ children: Be ?? /* @__PURE__ */ g("span", {
232
232
  className: "font-mono text-xs",
233
- children: q.datasetId
233
+ children: Y.datasetId
234
234
  })
235
235
  }) : "—"
236
236
  }),
237
- q.pipeline ? /* @__PURE__ */ p(F, {
237
+ Y.pipeline ? /* @__PURE__ */ g(R, {
238
238
  label: "Pipeline trigger",
239
- children: /* @__PURE__ */ m("span", {
239
+ children: /* @__PURE__ */ _("span", {
240
240
  className: "inline-flex flex-wrap items-center gap-2",
241
- children: [/* @__PURE__ */ p(l, {
242
- status: q.pipeline.trigger,
241
+ children: [/* @__PURE__ */ g(l, {
242
+ status: Y.pipeline.trigger,
243
243
  tone: "neutral"
244
- }), q.pipeline.trigger === "SCHEDULED" && q.pipeline.schedule ? /* @__PURE__ */ p("span", {
244
+ }), Y.pipeline.trigger === "SCHEDULED" && Y.pipeline.schedule ? /* @__PURE__ */ g("span", {
245
245
  className: "font-mono text-xs text-text-secondary",
246
- children: q.pipeline.schedule
246
+ children: Y.pipeline.schedule
247
247
  }) : null]
248
248
  })
249
249
  }) : null,
250
- /* @__PURE__ */ p(F, {
250
+ /* @__PURE__ */ g(R, {
251
251
  label: "Triggered by",
252
- children: q.triggeredBy || "—"
252
+ children: Y.triggeredBy || "—"
253
253
  }),
254
- /* @__PURE__ */ p(F, {
254
+ /* @__PURE__ */ g(R, {
255
255
  label: "Started",
256
- children: M(q.startedAt)
256
+ children: F(Y.startedAt)
257
257
  }),
258
- /* @__PURE__ */ p(F, {
258
+ /* @__PURE__ */ g(R, {
259
259
  label: "Finished",
260
- children: M(q.finishedAt)
260
+ children: F(Y.finishedAt)
261
261
  }),
262
- /* @__PURE__ */ p(F, {
262
+ /* @__PURE__ */ g(R, {
263
263
  label: "Duration",
264
- children: N(q.durationMs)
264
+ children: I(Y.durationMs)
265
265
  }),
266
- q.errorMessage ? /* @__PURE__ */ p(F, {
266
+ Y.errorMessage ? /* @__PURE__ */ g(R, {
267
267
  label: "Error",
268
- children: /* @__PURE__ */ p("span", {
268
+ children: /* @__PURE__ */ g("span", {
269
269
  className: "text-status-error-text",
270
- children: q.errorMessage
270
+ children: Y.errorMessage
271
271
  })
272
272
  }) : null,
273
- $.length === 0 ? /* @__PURE__ */ p(F, {
273
+ Je.length === 0 ? /* @__PURE__ */ g(R, {
274
274
  label: "Discuss",
275
- children: /* @__PURE__ */ p(ie, {
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__ */ m("div", {
282
+ /* @__PURE__ */ _("div", {
283
283
  className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
284
- children: [/* @__PURE__ */ m(S, { children: [/* @__PURE__ */ p(w, { children: /* @__PURE__ */ p(T, { children: "Parameters" }) }), /* @__PURE__ */ p(C, { children: /* @__PURE__ */ p(I, { value: q.params }) })] }), /* @__PURE__ */ m(S, { children: [/* @__PURE__ */ p(w, { children: /* @__PURE__ */ p(T, { children: "Metrics" }) }), /* @__PURE__ */ p(C, { children: /* @__PURE__ */ p(I, { value: q.metrics }) })] })]
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(ae, {
287
- run: q,
288
- onChanged: () => void Promise.all([R(), B()])
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__ */ m(S, { children: [/* @__PURE__ */ p(w, { children: /* @__PURE__ */ p(T, { children: "Steps" }) }), /* @__PURE__ */ p(C, { children: Ae ? /* @__PURE__ */ p(s, {
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__ */ p(o, {
306
+ }) : je ? /* @__PURE__ */ g(o, {
295
307
  message: "Could not load steps.",
296
- onRetry: () => void B()
297
- }) : J.length === 0 ? /* @__PURE__ */ p(a, {
298
- icon: de,
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__ */ m(x, {
313
+ action: /* @__PURE__ */ _(v, {
302
314
  type: "button",
303
- onClick: () => H(!0),
304
- children: [/* @__PURE__ */ p(v, { className: "size-4" }), "Add step"]
315
+ onClick: () => U(!0),
316
+ children: [/* @__PURE__ */ g(j, { className: "size-4" }), "Add step"]
305
317
  })
306
- }) : /* @__PURE__ */ p("ol", {
318
+ }) : /* @__PURE__ */ g("ol", {
307
319
  className: "flex flex-col",
308
- children: J.map((e, t) => {
309
- let n = j[e.status] ?? j.QUEUED, r = n.icon, i = t === J.length - 1;
310
- return /* @__PURE__ */ m("li", {
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__ */ m("div", {
324
+ children: [/* @__PURE__ */ _("div", {
313
325
  className: "flex flex-col items-center",
314
- children: [/* @__PURE__ */ p("span", {
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__ */ p(r, {
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__ */ p("span", {
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__ */ m("div", {
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__ */ m("div", {
339
+ /* @__PURE__ */ _("div", {
328
340
  className: "flex flex-wrap items-center gap-2",
329
341
  children: [
330
- /* @__PURE__ */ m("span", {
342
+ /* @__PURE__ */ _("span", {
331
343
  className: "text-xs font-semibold tabular-nums text-text-secondary",
332
344
  children: [t + 1, "."]
333
345
  }),
334
- /* @__PURE__ */ p("span", {
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__ */ p(l, {
350
+ /* @__PURE__ */ g(l, {
339
351
  status: e.kind,
340
352
  tone: "neutral"
341
353
  }),
342
- /* @__PURE__ */ p(l, {
354
+ /* @__PURE__ */ g(l, {
343
355
  status: e.status,
344
356
  className: "ml-auto"
345
357
  })
346
358
  ]
347
359
  }),
348
- e.errorMessage ? /* @__PURE__ */ p("p", {
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__ */ m("p", {
364
+ /* @__PURE__ */ _("p", {
353
365
  className: "mt-1.5 text-xs text-text-secondary",
354
- children: ["Duration: ", N(e.durationMs)]
366
+ children: ["Duration: ", I(e.durationMs)]
355
367
  })
356
368
  ]
357
369
  })]
358
370
  }, e.id);
359
371
  })
360
372
  }) })] }),
361
- Y ? /* @__PURE__ */ m(S, { children: [/* @__PURE__ */ m(w, { children: [/* @__PURE__ */ p(T, { children: "Similar failures" }), /* @__PURE__ */ p("p", {
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: X ? `Other runs of this pipeline that ended in Failed. “Same step” marks the ones that broke at “${X.name}” too.` : "Other runs of this pipeline that ended in Failed."
364
- })] }), /* @__PURE__ */ p(C, { children: Ue ? /* @__PURE__ */ p(s, {
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__ */ p(o, {
380
+ }) : We ? /* @__PURE__ */ g(o, {
369
381
  message: "Could not load the pipeline's failure history.",
370
382
  onRetry: () => void Ge()
371
- }) : Z.length === 0 ? /* @__PURE__ */ p(a, {
372
- icon: fe,
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__ */ m(le, { children: [/* @__PURE__ */ p("div", {
387
+ }) : /* @__PURE__ */ _(ce, { children: [/* @__PURE__ */ g("div", {
376
388
  className: "hidden overflow-hidden rounded-card border border-border-default md:block",
377
- children: /* @__PURE__ */ m(we, { children: [/* @__PURE__ */ p(Ee, { children: /* @__PURE__ */ m(A, { children: [
378
- /* @__PURE__ */ p(k, { children: "Run" }),
379
- /* @__PURE__ */ p(k, { children: "Step" }),
380
- /* @__PURE__ */ p(k, { children: "Error" }),
381
- /* @__PURE__ */ p(k, { children: "When" })
382
- ] }) }), /* @__PURE__ */ p(Te, { children: Z.map((e) => /* @__PURE__ */ m(A, {
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: () => g(`runs/${e.id}`),
396
+ onClick: () => p(`runs/${e.id}`),
385
397
  children: [
386
- /* @__PURE__ */ m(O, {
398
+ /* @__PURE__ */ _(T, {
387
399
  className: "whitespace-nowrap font-medium text-text-primary",
388
400
  children: ["Run #", e.runNumber]
389
401
  }),
390
- /* @__PURE__ */ p(O, { children: e.step ? /* @__PURE__ */ m("span", {
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__ */ p("span", {
405
+ /* @__PURE__ */ g("span", {
394
406
  className: "text-sm text-text-primary",
395
407
  children: e.step.name
396
408
  }),
397
- /* @__PURE__ */ p(l, {
409
+ /* @__PURE__ */ g(l, {
398
410
  status: e.step.kind,
399
411
  tone: "neutral"
400
412
  }),
401
- e.sameStep ? /* @__PURE__ */ p(b, {
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__ */ p("span", {
419
+ }) : /* @__PURE__ */ g("span", {
408
420
  className: "text-sm text-text-secondary",
409
421
  children: "Not recorded"
410
422
  }) }),
411
- /* @__PURE__ */ p(O, {
423
+ /* @__PURE__ */ g(T, {
412
424
  className: "max-w-md text-sm text-text-secondary",
413
- children: /* @__PURE__ */ p("span", {
425
+ children: /* @__PURE__ */ g("span", {
414
426
  className: "line-clamp-2",
415
427
  children: e.error ?? "—"
416
428
  })
417
429
  }),
418
- /* @__PURE__ */ p(O, {
430
+ /* @__PURE__ */ g(T, {
419
431
  className: "whitespace-nowrap text-sm text-text-secondary",
420
- children: M(e.when)
432
+ children: F(e.when)
421
433
  })
422
434
  ]
423
435
  }, e.id)) })] })
424
- }), /* @__PURE__ */ p("ul", {
436
+ }), /* @__PURE__ */ g("ul", {
425
437
  className: "space-y-3 md:hidden",
426
- children: Z.map((e) => /* @__PURE__ */ p("li", { children: /* @__PURE__ */ m("button", {
438
+ children: Q.map((e) => /* @__PURE__ */ g("li", { children: /* @__PURE__ */ _("button", {
427
439
  type: "button",
428
- onClick: () => g(`runs/${e.id}`),
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__ */ m("div", {
443
+ /* @__PURE__ */ _("div", {
432
444
  className: "flex flex-wrap items-center gap-1.5",
433
445
  children: [
434
- /* @__PURE__ */ m("span", {
446
+ /* @__PURE__ */ _("span", {
435
447
  className: "font-medium text-text-primary",
436
448
  children: ["Run #", e.runNumber]
437
449
  }),
438
- e.step ? /* @__PURE__ */ p(l, {
450
+ e.step ? /* @__PURE__ */ g(l, {
439
451
  status: e.step.kind,
440
452
  tone: "neutral"
441
453
  }) : null,
442
- e.sameStep ? /* @__PURE__ */ p(b, {
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__ */ p("p", {
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__ */ p("p", {
465
+ /* @__PURE__ */ g("p", {
454
466
  className: "text-xs text-text-secondary",
455
467
  children: e.error ?? "—"
456
468
  }),
457
- /* @__PURE__ */ p("p", {
469
+ /* @__PURE__ */ g("p", {
458
470
  className: "text-xs text-text-tertiary",
459
- children: M(e.when)
471
+ children: F(e.when)
460
472
  })
461
473
  ]
462
474
  }) }, e.id))
463
475
  })] }) })] }) : null,
464
- /* @__PURE__ */ m(S, { children: [/* @__PURE__ */ p(w, { children: /* @__PURE__ */ p(T, { children: "Activity" }) }), /* @__PURE__ */ p(C, { children: /* @__PURE__ */ p(re, {
465
- resourceId: q.id,
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__ */ p(pe, {
481
+ }), /* @__PURE__ */ g(de, {
470
482
  open: Fe,
471
483
  onOpenChange: (e) => {
472
- V || (H(e), e || Q());
484
+ H || (U(e), e || $());
473
485
  },
474
- children: /* @__PURE__ */ m(me, { children: [
475
- /* @__PURE__ */ m(_e, { children: [/* @__PURE__ */ p(ve, { children: "Add step" }), /* @__PURE__ */ p(he, { children: "Record a stage of this run — its kind, order and optional inputs." })] }),
476
- /* @__PURE__ */ m("div", {
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__ */ m("div", {
491
+ /* @__PURE__ */ _("div", {
480
492
  className: "space-y-1",
481
- children: [/* @__PURE__ */ p(D, {
493
+ children: [/* @__PURE__ */ g(w, {
482
494
  htmlFor: "step-name",
483
495
  children: "Name"
484
- }), /* @__PURE__ */ p(E, {
496
+ }), /* @__PURE__ */ g(C, {
485
497
  id: "step-name",
486
- value: U,
487
- onChange: (e) => W(e.target.value),
498
+ value: W,
499
+ onChange: (e) => G(e.target.value),
488
500
  placeholder: "e.g. Calibrate flat fields"
489
501
  })]
490
502
  }),
491
- /* @__PURE__ */ m("div", {
503
+ /* @__PURE__ */ _("div", {
492
504
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
493
- children: [/* @__PURE__ */ m("div", {
505
+ children: [/* @__PURE__ */ _("div", {
494
506
  className: "space-y-1",
495
- children: [/* @__PURE__ */ p(D, {
507
+ children: [/* @__PURE__ */ g(w, {
496
508
  htmlFor: "step-kind",
497
509
  children: "Kind"
498
- }), /* @__PURE__ */ m(ye, {
499
- value: Ie,
500
- onValueChange: (e) => Le(e),
501
- children: [/* @__PURE__ */ p(Se, {
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__ */ p(Ce, {})
505
- }), /* @__PURE__ */ p(be, { children: Oe.map((e) => /* @__PURE__ */ p(xe, {
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__ */ m("div", {
522
+ }), /* @__PURE__ */ _("div", {
511
523
  className: "space-y-1",
512
- children: [/* @__PURE__ */ p(D, {
524
+ children: [/* @__PURE__ */ g(w, {
513
525
  htmlFor: "step-position",
514
526
  children: "Position"
515
- }), /* @__PURE__ */ p(E, {
527
+ }), /* @__PURE__ */ g(C, {
516
528
  id: "step-position",
517
529
  type: "number",
518
530
  min: "0",
519
- value: G,
520
- onChange: (e) => Re(e.target.value),
531
+ value: q,
532
+ onChange: (e) => Le(e.target.value),
521
533
  placeholder: "Auto"
522
534
  })]
523
535
  })]
524
536
  }),
525
- /* @__PURE__ */ m("div", {
537
+ /* @__PURE__ */ _("div", {
526
538
  className: "space-y-1",
527
539
  children: [
528
- /* @__PURE__ */ p(D, {
540
+ /* @__PURE__ */ g(w, {
529
541
  htmlFor: "step-inputs",
530
542
  children: "Inputs (JSON)"
531
543
  }),
532
- /* @__PURE__ */ p(De, {
544
+ /* @__PURE__ */ g(Te, {
533
545
  id: "step-inputs",
534
- value: K,
535
- onChange: (e) => ze(e.target.value),
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__ */ p("p", {
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__ */ m(ge, { children: [/* @__PURE__ */ p(x, {
561
+ /* @__PURE__ */ _(me, { children: [/* @__PURE__ */ g(v, {
550
562
  type: "button",
551
563
  variant: "outline",
552
564
  onClick: () => {
553
- H(!1), Q();
565
+ U(!1), $();
554
566
  },
555
- disabled: V,
567
+ disabled: H,
556
568
  children: "Cancel"
557
- }), /* @__PURE__ */ m(x, {
569
+ }), /* @__PURE__ */ _(v, {
558
570
  type: "button",
559
571
  onClick: () => void qe(),
560
- disabled: V,
561
- children: [/* @__PURE__ */ p(v, { className: "size-4" }), V ? "Adding…" : "Add step"]
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 { L as default };
605
+ export { B as default };
569
606
 
570
607
  //# sourceMappingURL=RunDetailPage.js.map