@burdenoff/microfe-cosmicintersection 2026.1109.6 → 2026.1110.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/CosmicIntersectionRoutes.d.ts.map +1 -1
- package/dist/cosmicintersection/CosmicIntersectionRoutes.js +35 -31
- package/dist/cosmicintersection/CosmicIntersectionRoutes.js.map +1 -1
- package/dist/cosmicintersection/api/cosmicApi.d.ts +125 -11
- package/dist/cosmicintersection/api/cosmicApi.d.ts.map +1 -1
- package/dist/cosmicintersection/api/cosmicApi.js +202 -116
- package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
- package/dist/cosmicintersection/pages/archive/ArchivePage.d.ts +3 -0
- package/dist/cosmicintersection/pages/archive/ArchivePage.d.ts.map +1 -0
- package/dist/cosmicintersection/pages/archive/ArchivePage.js +281 -0
- package/dist/cosmicintersection/pages/archive/ArchivePage.js.map +1 -0
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js +142 -153
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js +177 -206
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelinesPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js +21 -57
- package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js +6 -11
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
- package/dist/cosmicintersection/types/index.d.ts +1 -1
- package/dist/cosmicintersection/types/index.d.ts.map +1 -1
- package/dist/generated/global-types.d.ts +14560 -800
- package/dist/generated/global-types.d.ts.map +1 -1
- package/dist/generated/wspace-types.d.ts +2372 -8238
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/test/fixtures.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { useCosmicIntersection as e } from "../../context/CosmicIntersectionContext.js";
|
|
2
2
|
import { notify as t } from "../../lib/toast.js";
|
|
3
|
-
import { useCosArchivePipelineMutation as n, useCosPipelineQuery as r, useCosRunStepsQuery as ee, useCosRunsQuery as
|
|
4
|
-
import { EmptyState as
|
|
5
|
-
import { ErrorState as
|
|
6
|
-
import { LoadingState as
|
|
7
|
-
import { PageLayout as
|
|
8
|
-
import { Pagination as
|
|
9
|
-
import { StatusBadge as
|
|
3
|
+
import { useCosArchivePipelineMutation as n, useCosPipelineQuery as r, useCosRunStepsQuery as ee, useCosRunsQuery as te, useCosStartRunMutation as ne, useWorkflowDefinitionQuery as re } from "../../api/cosmicApi.js";
|
|
4
|
+
import { EmptyState as i } from "../../components/EmptyState.js";
|
|
5
|
+
import { ErrorState as a } from "../../components/ErrorState.js";
|
|
6
|
+
import { LoadingState as o } from "../../components/LoadingState.js";
|
|
7
|
+
import { PageLayout as s } from "../../components/PageLayout.js";
|
|
8
|
+
import { Pagination as ie, usePagination as ae } from "../../components/Pagination.js";
|
|
9
|
+
import { StatusBadge as c } from "../../components/StatusBadge.js";
|
|
10
10
|
import "../../components/index.js";
|
|
11
|
-
import { useTrackRecentItem as
|
|
12
|
-
import { StepDAG as
|
|
13
|
-
import { mutationSucceeded as
|
|
14
|
-
import { useMemo as
|
|
15
|
-
import { Fragment as
|
|
16
|
-
import { useParams as
|
|
17
|
-
import { AlertDialog as
|
|
18
|
-
import { Archive as ve,
|
|
11
|
+
import { useTrackRecentItem as oe } from "../../lib/useTrackRecentItem.js";
|
|
12
|
+
import { StepDAG as se } from "../../components/StepDAG.js";
|
|
13
|
+
import { mutationSucceeded as l } from "../../lib/mutationResult.js";
|
|
14
|
+
import { useMemo as u, useState as ce } from "react";
|
|
15
|
+
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
16
|
+
import { useParams as le } from "react-router";
|
|
17
|
+
import { AlertDialog as ue, AlertDialogAction as de, AlertDialogCancel as fe, AlertDialogContent as m, AlertDialogDescription as h, AlertDialogFooter as g, AlertDialogHeader as _, AlertDialogTitle as pe, Button as v, Card as y, CardContent as b, CardHeader as x, CardTitle as S, Table as me, TableBody as he, TableCell as C, TableHead as w, TableHeader as ge, TableRow as T, buttonVariants as _e } from "@burdenoff/fe-libs/ui";
|
|
18
|
+
import { Archive as ve, Pencil as E, Play as D, Workflow as O } from "lucide-react";
|
|
19
19
|
//#region src/cosmicintersection/pages/pipelines/PipelineDetailPage.tsx
|
|
20
|
-
var
|
|
20
|
+
var k = [
|
|
21
21
|
"INGEST",
|
|
22
22
|
"CALIBRATE",
|
|
23
23
|
"TRANSFORM",
|
|
@@ -25,17 +25,17 @@ var O = [
|
|
|
25
25
|
"EXPORT",
|
|
26
26
|
"NOTIFY"
|
|
27
27
|
];
|
|
28
|
-
function k(e) {
|
|
29
|
-
return typeof e == "string" && O.includes(e);
|
|
30
|
-
}
|
|
31
28
|
function A(e) {
|
|
29
|
+
return typeof e == "string" && k.includes(e);
|
|
30
|
+
}
|
|
31
|
+
function ye(e) {
|
|
32
32
|
if (!e) return [];
|
|
33
33
|
let t = e.steps;
|
|
34
34
|
if (!Array.isArray(t)) return [];
|
|
35
35
|
let n = [];
|
|
36
36
|
for (let e of t) if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
37
37
|
let t = e.kind, r = e.name;
|
|
38
|
-
|
|
38
|
+
A(t) && n.push({
|
|
39
39
|
kind: t,
|
|
40
40
|
name: typeof r == "string" ? r : void 0
|
|
41
41
|
});
|
|
@@ -54,301 +54,290 @@ function M(e) {
|
|
|
54
54
|
return t < 60 ? `${t.toFixed(1)} s` : `${Math.floor(t / 60)}m ${Math.round(t % 60)}s`;
|
|
55
55
|
}
|
|
56
56
|
function N({ label: e, children: t }) {
|
|
57
|
-
return /* @__PURE__ */
|
|
57
|
+
return /* @__PURE__ */ p("div", {
|
|
58
58
|
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",
|
|
59
|
-
children: [/* @__PURE__ */
|
|
59
|
+
children: [/* @__PURE__ */ f("span", {
|
|
60
60
|
className: "w-40 shrink-0 text-sm font-medium text-text-secondary",
|
|
61
61
|
children: e
|
|
62
|
-
}), /* @__PURE__ */
|
|
62
|
+
}), /* @__PURE__ */ f("span", {
|
|
63
63
|
className: "min-w-0 text-sm text-text-primary",
|
|
64
64
|
children: t
|
|
65
65
|
})]
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
function P({ icon: e, children: t }) {
|
|
69
|
-
return /* @__PURE__ */
|
|
69
|
+
return /* @__PURE__ */ p("span", {
|
|
70
70
|
className: "inline-flex items-center gap-1.5 rounded-full border border-border-default bg-bg-elevated px-2.5 py-0.5 text-xs text-text-secondary",
|
|
71
|
-
children: [e ? /* @__PURE__ */
|
|
71
|
+
children: [e ? /* @__PURE__ */ f(e, {
|
|
72
72
|
className: "size-3.5",
|
|
73
73
|
"aria-hidden": "true"
|
|
74
74
|
}) : null, t]
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
function F() {
|
|
78
|
-
let { id:
|
|
78
|
+
let { id: k = "" } = le(), { navigate: A } = e(), { data: F, loading: be, error: xe, refetch: I } = r(k), L = ae({
|
|
79
79
|
pageSize: 10,
|
|
80
|
-
resetKey:
|
|
81
|
-
}), { data: R, loading: z, error:
|
|
82
|
-
pipelineId:
|
|
80
|
+
resetKey: k
|
|
81
|
+
}), { data: R, loading: z, error: Se, refetch: B } = te({
|
|
82
|
+
pipelineId: k,
|
|
83
83
|
pagination: {
|
|
84
84
|
limit: L.limit,
|
|
85
85
|
offset: L.offset
|
|
86
86
|
}
|
|
87
|
-
}), V = F?.cosPipeline;
|
|
88
|
-
|
|
87
|
+
}), V = F?.cosPipeline, { data: Ce } = re(V?.workflowDefinitionId), H = Ce?.workflowDefinition ?? null;
|
|
88
|
+
oe(V ? {
|
|
89
89
|
type: "pipeline",
|
|
90
90
|
id: V.id,
|
|
91
91
|
name: V.name,
|
|
92
92
|
path: `pipelines/${encodeURIComponent(V.id)}`
|
|
93
93
|
} : null);
|
|
94
|
-
let
|
|
94
|
+
let U = u(() => R?.cosListRuns.items ?? [], [R]), we = R?.cosListRuns.pageInfo, W = u(() => ye(V?.steps), [V?.steps]), G = U[0]?.id ?? "", { data: K } = ee(V && W.length === 0 && G ? G : ""), q = u(() => [...K?.cosListRunSteps ?? []].sort((e, t) => e.position - t.position).map((e) => ({
|
|
95
95
|
kind: e.kind,
|
|
96
96
|
name: e.name,
|
|
97
97
|
status: e.status
|
|
98
|
-
})), [
|
|
98
|
+
})), [K]), J = W.length > 0 ? W : q, Te = W.length === 0 && q.length > 0, [Ee, { loading: Y }] = ne(), [De, { loading: X }] = n(), [Oe, Z] = ce(!1), Q = async () => {
|
|
99
99
|
if (!V) return;
|
|
100
|
-
let e = await
|
|
101
|
-
|
|
102
|
-
},
|
|
100
|
+
let e = await Ee({ variables: { input: { pipelineId: V.id } } }), n = e.data?.cosStartRun?.id;
|
|
101
|
+
l(e, n, "Could not start a run") && (t.success("Run started", "A new run was queued."), await Promise.all([I(), B()]), n && A(`runs/${n}`));
|
|
102
|
+
}, ke = async () => {
|
|
103
103
|
if (!V) return;
|
|
104
|
-
let e = await
|
|
105
|
-
|
|
104
|
+
let e = await De({ variables: { id: V.id } });
|
|
105
|
+
l(e, e.data?.cosArchivePipeline, "Could not archive pipeline") && (Z(!1), t.success("Pipeline archived", `“${V.name}” was archived.`), A("pipelines"));
|
|
106
106
|
};
|
|
107
|
-
if (
|
|
107
|
+
if (be) return /* @__PURE__ */ f(s, {
|
|
108
108
|
title: "Pipeline",
|
|
109
109
|
backPath: "pipelines",
|
|
110
|
-
children: /* @__PURE__ */
|
|
110
|
+
children: /* @__PURE__ */ f(o, { label: "Loading pipeline…" })
|
|
111
111
|
});
|
|
112
|
-
if (
|
|
112
|
+
if (xe) return /* @__PURE__ */ f(s, {
|
|
113
113
|
title: "Pipeline",
|
|
114
114
|
backPath: "pipelines",
|
|
115
|
-
children: /* @__PURE__ */
|
|
115
|
+
children: /* @__PURE__ */ f(a, { onRetry: () => void I() })
|
|
116
116
|
});
|
|
117
|
-
if (!V) return /* @__PURE__ */
|
|
117
|
+
if (!V) return /* @__PURE__ */ f(s, {
|
|
118
118
|
title: "Pipeline",
|
|
119
119
|
backPath: "pipelines",
|
|
120
|
-
children: /* @__PURE__ */
|
|
120
|
+
children: /* @__PURE__ */ f(i, {
|
|
121
121
|
title: "Pipeline not found",
|
|
122
122
|
description: "This pipeline may have been archived or you may not have access to it.",
|
|
123
|
-
action: /* @__PURE__ */
|
|
123
|
+
action: /* @__PURE__ */ f(v, {
|
|
124
124
|
type: "button",
|
|
125
125
|
variant: "outline",
|
|
126
|
-
onClick: () =>
|
|
126
|
+
onClick: () => A("pipelines"),
|
|
127
127
|
children: "Back to pipelines"
|
|
128
128
|
})
|
|
129
129
|
})
|
|
130
130
|
});
|
|
131
|
-
let $ = V.status === "ARCHIVED",
|
|
132
|
-
return /* @__PURE__ */
|
|
131
|
+
let $ = V.status === "ARCHIVED", Ae = !!(V.steps && Object.keys(V.steps).length > 0);
|
|
132
|
+
return /* @__PURE__ */ p(s, {
|
|
133
133
|
title: V.name,
|
|
134
134
|
description: V.description ?? void 0,
|
|
135
135
|
backPath: "pipelines",
|
|
136
|
-
actions: /* @__PURE__ */
|
|
136
|
+
actions: /* @__PURE__ */ p("div", {
|
|
137
137
|
className: "flex flex-wrap items-center gap-2",
|
|
138
138
|
children: [
|
|
139
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ p(v, {
|
|
140
140
|
type: "button",
|
|
141
141
|
onClick: () => void Q(),
|
|
142
142
|
disabled: Y || $,
|
|
143
|
-
children: [/* @__PURE__ */
|
|
143
|
+
children: [/* @__PURE__ */ f(D, { className: "size-4" }), Y ? "Starting…" : "Start run"]
|
|
144
144
|
}),
|
|
145
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ p(v, {
|
|
146
146
|
type: "button",
|
|
147
147
|
variant: "outline",
|
|
148
|
-
onClick: () =>
|
|
149
|
-
children: [/* @__PURE__ */
|
|
148
|
+
onClick: () => A(`pipelines/${V.id}/edit`),
|
|
149
|
+
children: [/* @__PURE__ */ f(E, { className: "size-4" }), "Edit"]
|
|
150
150
|
}),
|
|
151
|
-
$ ? null : /* @__PURE__ */
|
|
151
|
+
$ ? null : /* @__PURE__ */ p(v, {
|
|
152
152
|
type: "button",
|
|
153
153
|
variant: "outline",
|
|
154
154
|
onClick: () => Z(!0),
|
|
155
|
-
children: [/* @__PURE__ */
|
|
155
|
+
children: [/* @__PURE__ */ f(ve, { className: "size-4" }), "Archive"]
|
|
156
156
|
})
|
|
157
157
|
]
|
|
158
158
|
}),
|
|
159
|
-
children: [/* @__PURE__ */
|
|
159
|
+
children: [/* @__PURE__ */ p("div", {
|
|
160
160
|
className: "space-y-6",
|
|
161
161
|
children: [
|
|
162
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ p("div", {
|
|
163
163
|
className: "flex flex-wrap items-center gap-2",
|
|
164
|
-
children: [
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
className: "font-mono",
|
|
172
|
-
children: V.schedule
|
|
173
|
-
}) }) : null,
|
|
174
|
-
/* @__PURE__ */ g(P, {
|
|
175
|
-
icon: be,
|
|
176
|
-
children: ["v", V.version]
|
|
177
|
-
})
|
|
178
|
-
]
|
|
164
|
+
children: [/* @__PURE__ */ f(c, { status: V.status }), V.workflowDefinitionId ? /* @__PURE__ */ f(P, {
|
|
165
|
+
icon: O,
|
|
166
|
+
children: H ? `${H.name} (v${H.version})` : "Workflow-linked"
|
|
167
|
+
}) : /* @__PURE__ */ f(P, {
|
|
168
|
+
icon: D,
|
|
169
|
+
children: "Manual runs"
|
|
170
|
+
})]
|
|
179
171
|
}),
|
|
180
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ p(y, { children: [/* @__PURE__ */ f(x, { children: /* @__PURE__ */ f(S, { children: "Overview" }) }), /* @__PURE__ */ p(b, {
|
|
181
173
|
className: "space-y-4",
|
|
182
174
|
children: [
|
|
183
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ p("div", {
|
|
184
176
|
className: "flex flex-wrap items-baseline justify-between gap-2",
|
|
185
|
-
children: [/* @__PURE__ */
|
|
177
|
+
children: [/* @__PURE__ */ f("span", {
|
|
186
178
|
className: "text-sm font-medium text-text-secondary",
|
|
187
179
|
children: "Step flow"
|
|
188
|
-
}),
|
|
180
|
+
}), Te ? /* @__PURE__ */ f("span", {
|
|
189
181
|
className: "text-xs text-text-secondary",
|
|
190
182
|
children: "Derived from the latest run."
|
|
191
183
|
}) : null]
|
|
192
184
|
}),
|
|
193
|
-
|
|
185
|
+
J.length > 0 ? /* @__PURE__ */ f(se, { steps: J }) : /* @__PURE__ */ p("div", {
|
|
194
186
|
className: "rounded-card border border-dashed border-border-default bg-bg-sunken px-4 py-8 text-center",
|
|
195
|
-
children: [/* @__PURE__ */
|
|
187
|
+
children: [/* @__PURE__ */ f("p", {
|
|
196
188
|
className: "text-sm text-text-secondary",
|
|
197
189
|
children: "No steps defined yet. Edit the pipeline to add ingest, calibrate, transform, analyze or export steps."
|
|
198
|
-
}), /* @__PURE__ */
|
|
190
|
+
}), /* @__PURE__ */ p(v, {
|
|
199
191
|
type: "button",
|
|
200
192
|
variant: "outline",
|
|
201
193
|
size: "sm",
|
|
202
194
|
className: "mt-3",
|
|
203
|
-
onClick: () =>
|
|
204
|
-
children: [/* @__PURE__ */
|
|
195
|
+
onClick: () => A(`pipelines/${V.id}/edit`),
|
|
196
|
+
children: [/* @__PURE__ */ f(E, { className: "size-4" }), "Add steps"]
|
|
205
197
|
})]
|
|
206
198
|
}),
|
|
207
|
-
|
|
199
|
+
Ae ? /* @__PURE__ */ p("details", {
|
|
208
200
|
className: "group rounded-card border border-border-default bg-bg-sunken",
|
|
209
|
-
children: [/* @__PURE__ */
|
|
201
|
+
children: [/* @__PURE__ */ p("summary", {
|
|
210
202
|
className: "flex cursor-pointer list-none items-center justify-between px-4 py-2.5 text-sm font-medium text-text-secondary transition-colors hover:text-text-primary",
|
|
211
|
-
children: ["Advanced — raw
|
|
203
|
+
children: ["Advanced — raw steps JSON", /* @__PURE__ */ f("span", {
|
|
212
204
|
className: "text-xs text-text-secondary transition-transform group-open:rotate-180",
|
|
213
205
|
children: "▾"
|
|
214
206
|
})]
|
|
215
|
-
}), /* @__PURE__ */
|
|
207
|
+
}), /* @__PURE__ */ f("pre", {
|
|
216
208
|
className: "overflow-x-auto border-t border-border-seam p-4 font-mono text-xs text-text-primary",
|
|
217
|
-
children: JSON.stringify(V.
|
|
209
|
+
children: JSON.stringify(V.steps, null, 2)
|
|
218
210
|
})]
|
|
219
211
|
}) : null
|
|
220
212
|
]
|
|
221
213
|
})] }),
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ p(y, { children: [/* @__PURE__ */ f(x, { children: /* @__PURE__ */ f(S, { children: "Details" }) }), /* @__PURE__ */ p(b, { children: [
|
|
215
|
+
/* @__PURE__ */ f(N, {
|
|
224
216
|
label: "Status",
|
|
225
|
-
children: /* @__PURE__ */
|
|
226
|
-
}),
|
|
227
|
-
/* @__PURE__ */ h(N, {
|
|
228
|
-
label: "Trigger",
|
|
229
|
-
children: u(V.trigger)
|
|
230
|
-
}),
|
|
231
|
-
/* @__PURE__ */ h(N, {
|
|
232
|
-
label: "Schedule",
|
|
233
|
-
children: V.schedule ? /* @__PURE__ */ h("span", {
|
|
234
|
-
className: "font-mono text-xs",
|
|
235
|
-
children: V.schedule
|
|
236
|
-
}) : "—"
|
|
217
|
+
children: /* @__PURE__ */ f(c, { status: V.status })
|
|
237
218
|
}),
|
|
238
|
-
/* @__PURE__ */
|
|
239
|
-
label: "
|
|
240
|
-
children:
|
|
219
|
+
/* @__PURE__ */ f(N, {
|
|
220
|
+
label: "Automation",
|
|
221
|
+
children: V.workflowDefinitionId ? /* @__PURE__ */ p(d, { children: [
|
|
222
|
+
H ? `${H.name} (v${H.version}, ${H.status})` : "Linked workflow",
|
|
223
|
+
" · ",
|
|
224
|
+
/* @__PURE__ */ f("a", {
|
|
225
|
+
href: "/workflows",
|
|
226
|
+
className: "underline underline-offset-2",
|
|
227
|
+
children: "Open Workflows"
|
|
228
|
+
})
|
|
229
|
+
] }) : "Manual — start a run from this page"
|
|
241
230
|
}),
|
|
242
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ f(N, {
|
|
243
232
|
label: "Last run",
|
|
244
233
|
children: j(V.lastRunAt)
|
|
245
234
|
}),
|
|
246
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ f(N, {
|
|
247
236
|
label: "Created",
|
|
248
237
|
children: j(V.createdAt)
|
|
249
238
|
}),
|
|
250
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ f(N, {
|
|
251
240
|
label: "Tags",
|
|
252
|
-
children: V.tags.length === 0 ? "—" : /* @__PURE__ */
|
|
241
|
+
children: V.tags.length === 0 ? "—" : /* @__PURE__ */ f("span", {
|
|
253
242
|
className: "flex flex-wrap gap-1",
|
|
254
|
-
children: V.tags.map((e) => /* @__PURE__ */
|
|
243
|
+
children: V.tags.map((e) => /* @__PURE__ */ f("span", {
|
|
255
244
|
className: "rounded-full bg-bg-sunken px-2 py-0.5 text-xs text-text-secondary",
|
|
256
245
|
children: e
|
|
257
246
|
}, e))
|
|
258
247
|
})
|
|
259
248
|
})
|
|
260
249
|
] })] }),
|
|
261
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ p(y, { children: [/* @__PURE__ */ f(x, { children: /* @__PURE__ */ f(S, { children: "Runs" }) }), /* @__PURE__ */ f(b, { children: z ? /* @__PURE__ */ f(o, {
|
|
262
251
|
variant: "rows",
|
|
263
252
|
rows: 4,
|
|
264
253
|
label: "Loading runs…"
|
|
265
|
-
}) :
|
|
254
|
+
}) : Se ? /* @__PURE__ */ f(a, {
|
|
266
255
|
message: "Could not load runs.",
|
|
267
256
|
onRetry: () => void B()
|
|
268
|
-
}) :
|
|
257
|
+
}) : U.length === 0 ? /* @__PURE__ */ f(i, {
|
|
269
258
|
icon: D,
|
|
270
259
|
title: "No runs yet",
|
|
271
260
|
description: "Start a run to process data through this pipeline.",
|
|
272
|
-
action: /* @__PURE__ */
|
|
261
|
+
action: /* @__PURE__ */ p(v, {
|
|
273
262
|
type: "button",
|
|
274
263
|
onClick: () => void Q(),
|
|
275
264
|
disabled: $,
|
|
276
|
-
children: [/* @__PURE__ */
|
|
265
|
+
children: [/* @__PURE__ */ f(D, { className: "size-4" }), "Start run"]
|
|
277
266
|
})
|
|
278
|
-
}) : /* @__PURE__ */
|
|
279
|
-
/* @__PURE__ */
|
|
267
|
+
}) : /* @__PURE__ */ p(d, { children: [
|
|
268
|
+
/* @__PURE__ */ f("div", {
|
|
280
269
|
className: "hidden rounded-card border border-border-default md:block",
|
|
281
|
-
children: /* @__PURE__ */
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
/* @__PURE__ */
|
|
284
|
-
/* @__PURE__ */
|
|
285
|
-
/* @__PURE__ */
|
|
286
|
-
/* @__PURE__ */
|
|
287
|
-
] }) }), /* @__PURE__ */
|
|
270
|
+
children: /* @__PURE__ */ p(me, { children: [/* @__PURE__ */ f(ge, { children: /* @__PURE__ */ p(T, { children: [
|
|
271
|
+
/* @__PURE__ */ f(w, { children: "Run" }),
|
|
272
|
+
/* @__PURE__ */ f(w, { children: "Status" }),
|
|
273
|
+
/* @__PURE__ */ f(w, { children: "Started" }),
|
|
274
|
+
/* @__PURE__ */ f(w, { children: "Duration" }),
|
|
275
|
+
/* @__PURE__ */ f(w, { children: "Triggered by" })
|
|
276
|
+
] }) }), /* @__PURE__ */ f(he, { children: U.map((e) => /* @__PURE__ */ p(T, {
|
|
288
277
|
className: "cursor-pointer",
|
|
289
|
-
onClick: () =>
|
|
278
|
+
onClick: () => A(`runs/${e.id}`),
|
|
290
279
|
children: [
|
|
291
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ p(C, {
|
|
292
281
|
className: "font-medium text-text-primary",
|
|
293
282
|
children: ["#", e.runNumber]
|
|
294
283
|
}),
|
|
295
|
-
/* @__PURE__ */
|
|
296
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ f(C, { children: /* @__PURE__ */ f(c, { status: e.status }) }),
|
|
285
|
+
/* @__PURE__ */ f(C, {
|
|
297
286
|
className: "whitespace-nowrap text-text-secondary",
|
|
298
287
|
children: j(e.startedAt)
|
|
299
288
|
}),
|
|
300
|
-
/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ f(C, {
|
|
301
290
|
className: "tabular-nums text-text-secondary",
|
|
302
291
|
children: M(e.durationMs)
|
|
303
292
|
}),
|
|
304
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ f(C, {
|
|
305
294
|
className: "text-text-secondary",
|
|
306
295
|
children: e.triggeredBy || "—"
|
|
307
296
|
})
|
|
308
297
|
]
|
|
309
298
|
}, e.id)) })] })
|
|
310
299
|
}),
|
|
311
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ f("ul", {
|
|
312
301
|
className: "space-y-3 md:hidden",
|
|
313
|
-
children:
|
|
302
|
+
children: U.map((e) => /* @__PURE__ */ f("li", { children: /* @__PURE__ */ p("button", {
|
|
314
303
|
type: "button",
|
|
315
|
-
onClick: () =>
|
|
304
|
+
onClick: () => A(`runs/${e.id}`),
|
|
316
305
|
className: "flex w-full flex-col gap-2 rounded-card border border-border-default bg-bg-elevated p-4 text-left transition-colors hover:border-border-strong",
|
|
317
|
-
children: [/* @__PURE__ */
|
|
306
|
+
children: [/* @__PURE__ */ p("div", {
|
|
318
307
|
className: "flex items-center justify-between gap-2",
|
|
319
|
-
children: [/* @__PURE__ */
|
|
308
|
+
children: [/* @__PURE__ */ p("span", {
|
|
320
309
|
className: "font-medium text-text-primary",
|
|
321
310
|
children: ["#", e.runNumber]
|
|
322
|
-
}), /* @__PURE__ */
|
|
323
|
-
}), /* @__PURE__ */
|
|
311
|
+
}), /* @__PURE__ */ f(c, { status: e.status })]
|
|
312
|
+
}), /* @__PURE__ */ p("dl", {
|
|
324
313
|
className: "grid grid-cols-2 gap-x-3 gap-y-1 text-xs text-text-secondary",
|
|
325
314
|
children: [
|
|
326
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ p("div", {
|
|
327
316
|
className: "flex flex-col",
|
|
328
|
-
children: [/* @__PURE__ */
|
|
317
|
+
children: [/* @__PURE__ */ f("dt", {
|
|
329
318
|
className: "text-text-secondary",
|
|
330
319
|
children: "Started"
|
|
331
|
-
}), /* @__PURE__ */
|
|
320
|
+
}), /* @__PURE__ */ f("dd", {
|
|
332
321
|
className: "text-text-primary",
|
|
333
322
|
children: j(e.startedAt)
|
|
334
323
|
})]
|
|
335
324
|
}),
|
|
336
|
-
/* @__PURE__ */
|
|
325
|
+
/* @__PURE__ */ p("div", {
|
|
337
326
|
className: "flex flex-col",
|
|
338
|
-
children: [/* @__PURE__ */
|
|
327
|
+
children: [/* @__PURE__ */ f("dt", {
|
|
339
328
|
className: "text-text-secondary",
|
|
340
329
|
children: "Duration"
|
|
341
|
-
}), /* @__PURE__ */
|
|
330
|
+
}), /* @__PURE__ */ f("dd", {
|
|
342
331
|
className: "tabular-nums text-text-primary",
|
|
343
332
|
children: M(e.durationMs)
|
|
344
333
|
})]
|
|
345
334
|
}),
|
|
346
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ p("div", {
|
|
347
336
|
className: "col-span-2 flex flex-col",
|
|
348
|
-
children: [/* @__PURE__ */
|
|
337
|
+
children: [/* @__PURE__ */ f("dt", {
|
|
349
338
|
className: "text-text-secondary",
|
|
350
339
|
children: "Triggered by"
|
|
351
|
-
}), /* @__PURE__ */
|
|
340
|
+
}), /* @__PURE__ */ f("dd", {
|
|
352
341
|
className: "text-text-primary",
|
|
353
342
|
children: e.triggeredBy || "—"
|
|
354
343
|
})]
|
|
@@ -357,10 +346,10 @@ function F() {
|
|
|
357
346
|
})]
|
|
358
347
|
}) }, e.id))
|
|
359
348
|
}),
|
|
360
|
-
/* @__PURE__ */
|
|
349
|
+
/* @__PURE__ */ f(ie, {
|
|
361
350
|
offset: L.offset,
|
|
362
351
|
limit: L.limit,
|
|
363
|
-
loadedCount:
|
|
352
|
+
loadedCount: U.length,
|
|
364
353
|
hasMore: we?.hasMore ?? !1,
|
|
365
354
|
onPrev: L.prevPage,
|
|
366
355
|
onNext: L.nextPage,
|
|
@@ -369,19 +358,19 @@ function F() {
|
|
|
369
358
|
})
|
|
370
359
|
] }) })] })
|
|
371
360
|
]
|
|
372
|
-
}), /* @__PURE__ */
|
|
373
|
-
open:
|
|
361
|
+
}), /* @__PURE__ */ f(ue, {
|
|
362
|
+
open: Oe,
|
|
374
363
|
onOpenChange: (e) => X ? void 0 : Z(e),
|
|
375
|
-
children: /* @__PURE__ */
|
|
364
|
+
children: /* @__PURE__ */ p(m, { children: [/* @__PURE__ */ p(_, { children: [/* @__PURE__ */ p(pe, { children: [
|
|
376
365
|
"Archive “",
|
|
377
366
|
V.name,
|
|
378
367
|
"”?"
|
|
379
|
-
] }), /* @__PURE__ */ h
|
|
368
|
+
] }), /* @__PURE__ */ f(h, { children: "Archiving stops the pipeline from being triggered. Existing runs are kept for reference." })] }), /* @__PURE__ */ p(g, { children: [/* @__PURE__ */ f(fe, {
|
|
380
369
|
disabled: X,
|
|
381
370
|
children: "Cancel"
|
|
382
|
-
}), /* @__PURE__ */
|
|
371
|
+
}), /* @__PURE__ */ f(de, {
|
|
383
372
|
onClick: (e) => {
|
|
384
|
-
e.preventDefault(),
|
|
373
|
+
e.preventDefault(), ke();
|
|
385
374
|
},
|
|
386
375
|
disabled: X,
|
|
387
376
|
className: _e({ variant: "destructive" }),
|