@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,24 +1,19 @@
|
|
|
1
1
|
import { useCosmicIntersection as e } from "../../context/CosmicIntersectionContext.js";
|
|
2
2
|
import { notify as t } from "../../lib/toast.js";
|
|
3
|
-
import { useCosCreatePipelineMutation as n, useCosPipelineQuery as r, useCosUpdatePipelineMutation as i } from "../../api/cosmicApi.js";
|
|
4
|
-
import { EntityFormShell as
|
|
5
|
-
import { WorkspaceTagsPicker as
|
|
6
|
-
import { formatEnumLabel as
|
|
3
|
+
import { useCosCreatePipelineMutation as n, useCosPipelineQuery as r, useCosUpdatePipelineMutation as i, useRunnableWorkflowsQuery as ee } from "../../api/cosmicApi.js";
|
|
4
|
+
import { EntityFormShell as te } from "../../components/EntityFormShell.js";
|
|
5
|
+
import { WorkspaceTagsPicker as ne } from "../../components/WorkspaceTagsPicker.js";
|
|
6
|
+
import { formatEnumLabel as a } from "../../components/StatusBadge.js";
|
|
7
7
|
import "../../components/index.js";
|
|
8
|
-
import { useEntityTagSync as
|
|
9
|
-
import { describeError as
|
|
10
|
-
import { useMemo as
|
|
11
|
-
import { jsx as
|
|
12
|
-
import { useParams as
|
|
13
|
-
import { Button as
|
|
14
|
-
import { ArrowDown as
|
|
8
|
+
import { useEntityTagSync as o } from "../../hooks/useEntityTagSync.js";
|
|
9
|
+
import { describeError as s, mutationSucceeded as c } from "../../lib/mutationResult.js";
|
|
10
|
+
import { useMemo as re, useState as l } from "react";
|
|
11
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
12
|
+
import { useParams as ie } from "react-router";
|
|
13
|
+
import { Button as f, Input as p, Label as m, Select as h, SelectContent as g, SelectItem as _, SelectTrigger as v, SelectValue as y, Textarea as b } from "@burdenoff/fe-libs/ui";
|
|
14
|
+
import { ArrowDown as ae, ArrowUp as oe, GripVertical as x, Plus as S, Trash2 as C } from "lucide-react";
|
|
15
15
|
//#region src/cosmicintersection/pages/pipelines/PipelineFormPage.tsx
|
|
16
|
-
var
|
|
17
|
-
"MANUAL",
|
|
18
|
-
"SCHEDULED",
|
|
19
|
-
"ON_INGEST",
|
|
20
|
-
"WEBHOOK"
|
|
21
|
-
], O = [
|
|
16
|
+
var w = [
|
|
22
17
|
"INGEST",
|
|
23
18
|
"CALIBRATE",
|
|
24
19
|
"TRANSFORM",
|
|
@@ -26,372 +21,348 @@ var D = [
|
|
|
26
21
|
"EXPORT",
|
|
27
22
|
"NOTIFY"
|
|
28
23
|
];
|
|
29
|
-
function
|
|
30
|
-
return typeof e == "string" &&
|
|
24
|
+
function T(e) {
|
|
25
|
+
return typeof e == "string" && w.includes(e);
|
|
31
26
|
}
|
|
32
|
-
var
|
|
27
|
+
var E = 0, D = () => `step-${E += 1}`, O = "none", se = {
|
|
33
28
|
name: "",
|
|
34
29
|
description: "",
|
|
35
|
-
trigger: "MANUAL",
|
|
36
|
-
schedule: "",
|
|
37
30
|
steps: [],
|
|
31
|
+
workflowDefinitionId: O,
|
|
38
32
|
tags: []
|
|
39
33
|
};
|
|
40
|
-
function
|
|
34
|
+
function ce(e) {
|
|
41
35
|
if (!e) return [];
|
|
42
36
|
let t = e.steps;
|
|
43
37
|
if (!Array.isArray(t)) return [];
|
|
44
38
|
let n = [];
|
|
45
39
|
for (let e of t) if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
46
40
|
let t = e.kind, r = e.name;
|
|
47
|
-
|
|
48
|
-
id:
|
|
41
|
+
T(t) && n.push({
|
|
42
|
+
id: D(),
|
|
49
43
|
kind: t,
|
|
50
44
|
name: typeof r == "string" ? r : ""
|
|
51
45
|
});
|
|
52
46
|
}
|
|
53
47
|
return n;
|
|
54
48
|
}
|
|
55
|
-
function
|
|
49
|
+
function k(e) {
|
|
56
50
|
return e.map((e) => {
|
|
57
51
|
let t = { kind: e.kind }, n = e.name.trim();
|
|
58
52
|
return n && (t.name = n), t;
|
|
59
53
|
});
|
|
60
54
|
}
|
|
61
|
-
function
|
|
62
|
-
let { id:
|
|
63
|
-
|
|
64
|
-
Y
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
tags: J.tags ?? []
|
|
71
|
-
});
|
|
72
|
-
let e = { ...J.definition ?? {} };
|
|
73
|
-
delete e.steps, U(e);
|
|
74
|
-
}
|
|
55
|
+
function A() {
|
|
56
|
+
let { id: E = "" } = ie(), A = !!E, { navigate: j } = e(), { data: M, loading: N } = r(E), [P, { loading: F }] = n(), [I, { loading: L }] = i(), { data: R, loading: z } = ee(), B = R?.workflowDefinitions.items ?? [], [V, H] = l(se), { syncTags: U, syncing: W } = o("COSMICINTERSECTION_PIPELINE"), [G, K] = l(""), [q, J] = l(null), Y = A ? M?.cosPipeline : null, [le, ue] = l(null);
|
|
57
|
+
Y && Y.id !== le && (ue(Y.id), H({
|
|
58
|
+
name: Y.name ?? "",
|
|
59
|
+
description: Y.description ?? "",
|
|
60
|
+
steps: ce(Y.steps),
|
|
61
|
+
workflowDefinitionId: Y.workflowDefinitionId || O,
|
|
62
|
+
tags: Y.tags ?? []
|
|
63
|
+
}));
|
|
75
64
|
let X = (e, t) => {
|
|
76
|
-
|
|
65
|
+
H((n) => ({
|
|
77
66
|
...n,
|
|
78
67
|
[e]: t
|
|
79
68
|
}));
|
|
80
|
-
},
|
|
81
|
-
...
|
|
82
|
-
|
|
83
|
-
}, null, 2), [H, R.steps]), ue = () => {
|
|
84
|
-
X("steps", [...R.steps, {
|
|
85
|
-
id: j(),
|
|
69
|
+
}, de = re(() => JSON.stringify({ steps: k(V.steps) }, null, 2), [V.steps]), fe = () => {
|
|
70
|
+
X("steps", [...V.steps, {
|
|
71
|
+
id: D(),
|
|
86
72
|
kind: "INGEST",
|
|
87
73
|
name: ""
|
|
88
74
|
}]);
|
|
89
|
-
},
|
|
90
|
-
X("steps",
|
|
75
|
+
}, pe = (e) => {
|
|
76
|
+
X("steps", V.steps.filter((t) => t.id !== e));
|
|
91
77
|
}, Z = (e, t) => {
|
|
92
|
-
X("steps",
|
|
78
|
+
X("steps", V.steps.map((n) => n.id === e ? {
|
|
93
79
|
...n,
|
|
94
80
|
...t
|
|
95
81
|
} : n));
|
|
96
82
|
}, Q = (e, t) => {
|
|
97
83
|
let n = e + t;
|
|
98
|
-
if (n < 0 || n >=
|
|
99
|
-
let r = [...
|
|
84
|
+
if (n < 0 || n >= V.steps.length) return;
|
|
85
|
+
let r = [...V.steps], [i] = r.splice(e, 1);
|
|
100
86
|
r.splice(n, 0, i), X("steps", r);
|
|
101
|
-
},
|
|
87
|
+
}, me = () => {
|
|
102
88
|
let e;
|
|
103
89
|
try {
|
|
104
|
-
e = JSON.parse(
|
|
90
|
+
e = JSON.parse(G);
|
|
105
91
|
} catch (e) {
|
|
106
|
-
|
|
92
|
+
J(s(e) ?? "Invalid JSON.");
|
|
107
93
|
return;
|
|
108
94
|
}
|
|
109
95
|
if (!e || typeof e != "object" || Array.isArray(e)) {
|
|
110
|
-
|
|
96
|
+
J("Steps must be a JSON object with a \"steps\" array.");
|
|
111
97
|
return;
|
|
112
98
|
}
|
|
113
99
|
let n = e.steps;
|
|
114
100
|
if (!Array.isArray(n)) {
|
|
115
|
-
|
|
101
|
+
J("Steps must contain a \"steps\" array.");
|
|
116
102
|
return;
|
|
117
103
|
}
|
|
118
104
|
let r = [];
|
|
119
105
|
for (let e of n) {
|
|
120
106
|
if (!e || typeof e != "object" || Array.isArray(e)) {
|
|
121
|
-
|
|
107
|
+
J("Each step must be an object with a \"kind\".");
|
|
122
108
|
return;
|
|
123
109
|
}
|
|
124
110
|
let t = e.kind;
|
|
125
|
-
if (!
|
|
126
|
-
|
|
111
|
+
if (!T(t)) {
|
|
112
|
+
J(`Invalid step kind "${String(t)}". Allowed: ${w.join(", ")}.`);
|
|
127
113
|
return;
|
|
128
114
|
}
|
|
129
115
|
let n = e.name;
|
|
130
116
|
r.push({
|
|
131
|
-
id:
|
|
117
|
+
id: D(),
|
|
132
118
|
kind: t,
|
|
133
119
|
name: typeof n == "string" ? n : ""
|
|
134
120
|
});
|
|
135
121
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
if (e.preventDefault(), !R.name.trim()) {
|
|
122
|
+
X("steps", r), J(null), t.success("Steps updated", "The builder now reflects your JSON.");
|
|
123
|
+
}, he = async (e) => {
|
|
124
|
+
if (e.preventDefault(), !V.name.trim()) {
|
|
140
125
|
t.error("Name is required", "Give the pipeline a name before saving.");
|
|
141
126
|
return;
|
|
142
127
|
}
|
|
143
|
-
let n =
|
|
144
|
-
delete r.steps;
|
|
145
|
-
let i;
|
|
146
|
-
i = n.length > 0 ? {
|
|
147
|
-
...r,
|
|
148
|
-
steps: n
|
|
149
|
-
} : Object.keys(r).length > 0 ? r : void 0;
|
|
150
|
-
let a = R.trigger === "SCHEDULED" ? R.schedule.trim() : "";
|
|
128
|
+
let n = k(V.steps), r = n.length > 0 ? { steps: n } : void 0, i = V.workflowDefinitionId === O ? null : V.workflowDefinitionId;
|
|
151
129
|
try {
|
|
152
|
-
if (
|
|
153
|
-
let e =
|
|
154
|
-
id:
|
|
130
|
+
if (A) {
|
|
131
|
+
let e = Y?.tags ?? [], n = await I({ variables: {
|
|
132
|
+
id: E,
|
|
155
133
|
input: {
|
|
156
|
-
name:
|
|
157
|
-
description:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
tags: R.tags
|
|
134
|
+
name: V.name.trim(),
|
|
135
|
+
description: V.description.trim() || void 0,
|
|
136
|
+
steps: r,
|
|
137
|
+
workflowDefinitionId: i,
|
|
138
|
+
tags: V.tags
|
|
162
139
|
}
|
|
163
140
|
} });
|
|
164
|
-
if (!
|
|
165
|
-
await
|
|
141
|
+
if (!c(n, n.data?.cosUpdatePipeline?.id, "Could not update pipeline")) return;
|
|
142
|
+
await U(E, V.tags, e) && t.success("Pipeline updated", `“${V.name.trim()}” was saved.`), j(`pipelines/${E}`);
|
|
166
143
|
return;
|
|
167
144
|
}
|
|
168
|
-
let e = await
|
|
169
|
-
name:
|
|
170
|
-
description:
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
tags: R.tags
|
|
145
|
+
let e = await P({ variables: { input: {
|
|
146
|
+
name: V.name.trim(),
|
|
147
|
+
description: V.description.trim() || void 0,
|
|
148
|
+
steps: r,
|
|
149
|
+
workflowDefinitionId: i ?? void 0,
|
|
150
|
+
tags: V.tags
|
|
175
151
|
} } }), n = e.data?.cosCreatePipeline?.id;
|
|
176
|
-
if (!
|
|
177
|
-
(!n || await
|
|
152
|
+
if (!c(e, n, "Could not create pipeline")) return;
|
|
153
|
+
(!n || await U(n, V.tags)) && t.success("Pipeline created", `“${V.name.trim()}” is ready.`), j(n ? `pipelines/${n}` : "pipelines");
|
|
178
154
|
} catch (e) {
|
|
179
|
-
t.error("Could not save pipeline",
|
|
155
|
+
t.error("Could not save pipeline", s(e));
|
|
180
156
|
}
|
|
181
|
-
}, $ = F || L ||
|
|
182
|
-
return /* @__PURE__ */
|
|
183
|
-
title:
|
|
157
|
+
}, $ = F || L || W;
|
|
158
|
+
return /* @__PURE__ */ d(te, {
|
|
159
|
+
title: A ? "Edit pipeline" : "New pipeline",
|
|
184
160
|
description: "Define how raw data is ingested, processed and released.",
|
|
185
|
-
purpose: "A pipeline chains ordered steps (ingest, calibrate, transform, analyze, export) over your datasets.
|
|
186
|
-
backLabel:
|
|
187
|
-
onBack: () =>
|
|
188
|
-
onSubmit:
|
|
189
|
-
submitLabel:
|
|
161
|
+
purpose: "A pipeline chains ordered steps (ingest, calibrate, transform, analyze, export) over your datasets. Runs start manually, or hand off to a canonical workflow for real triggers, schedules and retries. Build its steps below.",
|
|
162
|
+
backLabel: A ? "Back to pipeline" : "Back to pipelines",
|
|
163
|
+
onBack: () => j(A ? `pipelines/${E}` : "pipelines"),
|
|
164
|
+
onSubmit: he,
|
|
165
|
+
submitLabel: A ? "Save changes" : "Create pipeline",
|
|
190
166
|
saving: $,
|
|
191
|
-
submitDisabled:
|
|
167
|
+
submitDisabled: A && N,
|
|
192
168
|
children: [
|
|
193
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ d("div", {
|
|
194
170
|
className: "space-y-1",
|
|
195
|
-
children: [/* @__PURE__ */
|
|
171
|
+
children: [/* @__PURE__ */ u(m, {
|
|
196
172
|
htmlFor: "pipeline-name",
|
|
197
173
|
children: "Name"
|
|
198
|
-
}), /* @__PURE__ */ p
|
|
174
|
+
}), /* @__PURE__ */ u(p, {
|
|
199
175
|
id: "pipeline-name",
|
|
200
|
-
value:
|
|
176
|
+
value: V.name,
|
|
201
177
|
onChange: (e) => X("name", e.target.value),
|
|
202
178
|
placeholder: "e.g. Kepler DR3 ingest",
|
|
203
179
|
required: !0
|
|
204
180
|
})]
|
|
205
181
|
}),
|
|
206
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ d("div", {
|
|
207
183
|
className: "space-y-1",
|
|
208
|
-
children: [/* @__PURE__ */
|
|
184
|
+
children: [/* @__PURE__ */ u(m, {
|
|
209
185
|
htmlFor: "pipeline-description",
|
|
210
186
|
children: "Description"
|
|
211
|
-
}), /* @__PURE__ */
|
|
187
|
+
}), /* @__PURE__ */ u(b, {
|
|
212
188
|
id: "pipeline-description",
|
|
213
|
-
value:
|
|
189
|
+
value: V.description,
|
|
214
190
|
onChange: (e) => X("description", e.target.value),
|
|
215
191
|
rows: 3,
|
|
216
192
|
placeholder: "What this pipeline does and when it runs."
|
|
217
193
|
})]
|
|
218
194
|
}),
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
className: "
|
|
221
|
-
children: [
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
value:
|
|
228
|
-
onValueChange: (e) => X("
|
|
229
|
-
children: [/* @__PURE__ */
|
|
230
|
-
id: "pipeline-
|
|
231
|
-
"aria-label": "
|
|
232
|
-
children: /* @__PURE__ */
|
|
233
|
-
}), /* @__PURE__ */
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
"
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
"for daily at 02:00."
|
|
262
|
-
]
|
|
263
|
-
})
|
|
264
|
-
]
|
|
265
|
-
}) : null]
|
|
195
|
+
/* @__PURE__ */ d("div", {
|
|
196
|
+
className: "space-y-1",
|
|
197
|
+
children: [
|
|
198
|
+
/* @__PURE__ */ u(m, {
|
|
199
|
+
htmlFor: "pipeline-workflow",
|
|
200
|
+
children: "Automation workflow"
|
|
201
|
+
}),
|
|
202
|
+
/* @__PURE__ */ d(h, {
|
|
203
|
+
value: V.workflowDefinitionId,
|
|
204
|
+
onValueChange: (e) => X("workflowDefinitionId", e),
|
|
205
|
+
children: [/* @__PURE__ */ u(v, {
|
|
206
|
+
id: "pipeline-workflow",
|
|
207
|
+
"aria-label": "Automation workflow",
|
|
208
|
+
children: /* @__PURE__ */ u(y, {})
|
|
209
|
+
}), /* @__PURE__ */ d(g, { children: [
|
|
210
|
+
/* @__PURE__ */ u(_, {
|
|
211
|
+
value: O,
|
|
212
|
+
children: "None — runs start manually"
|
|
213
|
+
}),
|
|
214
|
+
V.workflowDefinitionId !== O && !B.some((e) => e.id === V.workflowDefinitionId) ? /* @__PURE__ */ u(_, {
|
|
215
|
+
value: V.workflowDefinitionId,
|
|
216
|
+
children: "Unavailable workflow (no longer active)"
|
|
217
|
+
}) : null,
|
|
218
|
+
B.map((e) => /* @__PURE__ */ u(_, {
|
|
219
|
+
value: e.id,
|
|
220
|
+
children: `${e.name} (v${e.version})`
|
|
221
|
+
}, e.id))
|
|
222
|
+
] })]
|
|
223
|
+
}),
|
|
224
|
+
/* @__PURE__ */ d("p", {
|
|
225
|
+
className: "text-xs text-text-secondary",
|
|
226
|
+
children: [
|
|
227
|
+
z ? "Loading workflows…" : B.length === 0 ? "No active workflows yet — build one in the Workflows module, then link it here." : "Starting a run hands off to this workflow in the shared engine (triggers, schedules, retries live there).",
|
|
228
|
+
" ",
|
|
229
|
+
/* @__PURE__ */ u("a", {
|
|
230
|
+
href: "/workflows",
|
|
231
|
+
className: "underline underline-offset-2",
|
|
232
|
+
children: "Open Workflows"
|
|
233
|
+
})
|
|
234
|
+
]
|
|
235
|
+
})
|
|
236
|
+
]
|
|
266
237
|
}),
|
|
267
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ d("div", {
|
|
268
239
|
className: "space-y-2",
|
|
269
240
|
children: [
|
|
270
|
-
/* @__PURE__ */
|
|
271
|
-
/* @__PURE__ */
|
|
241
|
+
/* @__PURE__ */ u(m, { children: "Steps" }),
|
|
242
|
+
/* @__PURE__ */ u("p", {
|
|
272
243
|
className: "text-xs text-text-secondary",
|
|
273
|
-
children: "The ordered stages this pipeline
|
|
244
|
+
children: "The ordered science stages this pipeline is expected to run (lineage only — execution semantics live in the linked workflow, if any). Add a step, pick its kind, optionally name it, and reorder with the arrows."
|
|
274
245
|
}),
|
|
275
|
-
|
|
246
|
+
V.steps.length === 0 ? /* @__PURE__ */ u("div", {
|
|
276
247
|
className: "rounded-card border border-dashed border-border-default bg-bg-sunken px-4 py-6 text-center",
|
|
277
|
-
children: /* @__PURE__ */
|
|
248
|
+
children: /* @__PURE__ */ u("p", {
|
|
278
249
|
className: "text-sm text-text-secondary",
|
|
279
250
|
children: "No steps yet. Add the first stage to start building the flow."
|
|
280
251
|
})
|
|
281
|
-
}) : /* @__PURE__ */
|
|
252
|
+
}) : /* @__PURE__ */ u("ol", {
|
|
282
253
|
className: "space-y-2",
|
|
283
|
-
children:
|
|
254
|
+
children: V.steps.map((e, t) => /* @__PURE__ */ d("li", {
|
|
284
255
|
className: "flex items-center gap-2 rounded-card border border-border-default bg-bg-elevated p-2.5",
|
|
285
256
|
children: [
|
|
286
|
-
/* @__PURE__ */
|
|
257
|
+
/* @__PURE__ */ d("span", {
|
|
287
258
|
className: "flex items-center gap-1.5 text-text-secondary",
|
|
288
|
-
children: [/* @__PURE__ */
|
|
259
|
+
children: [/* @__PURE__ */ u(x, {
|
|
289
260
|
className: "size-4 shrink-0",
|
|
290
261
|
"aria-hidden": "true"
|
|
291
|
-
}), /* @__PURE__ */
|
|
262
|
+
}), /* @__PURE__ */ u("span", {
|
|
292
263
|
className: "w-4 text-xs font-semibold tabular-nums",
|
|
293
264
|
children: t + 1
|
|
294
265
|
})]
|
|
295
266
|
}),
|
|
296
|
-
/* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ d("div", {
|
|
297
268
|
className: "grid min-w-0 flex-1 grid-cols-1 gap-2 sm:grid-cols-[10rem_1fr]",
|
|
298
|
-
children: [/* @__PURE__ */
|
|
269
|
+
children: [/* @__PURE__ */ d(h, {
|
|
299
270
|
value: e.kind,
|
|
300
271
|
onValueChange: (t) => Z(e.id, { kind: t }),
|
|
301
|
-
children: [/* @__PURE__ */
|
|
272
|
+
children: [/* @__PURE__ */ u(v, {
|
|
302
273
|
"aria-label": `Kind for step ${t + 1}`,
|
|
303
|
-
children: /* @__PURE__ */
|
|
304
|
-
}), /* @__PURE__ */
|
|
274
|
+
children: /* @__PURE__ */ u(y, {})
|
|
275
|
+
}), /* @__PURE__ */ u(g, { children: w.map((e) => /* @__PURE__ */ u(_, {
|
|
305
276
|
value: e,
|
|
306
|
-
children:
|
|
277
|
+
children: a(e)
|
|
307
278
|
}, e)) })]
|
|
308
|
-
}), /* @__PURE__ */ p
|
|
279
|
+
}), /* @__PURE__ */ u(p, {
|
|
309
280
|
value: e.name,
|
|
310
281
|
onChange: (t) => Z(e.id, { name: t.target.value }),
|
|
311
282
|
placeholder: "Optional step name",
|
|
312
283
|
"aria-label": `Name for step ${t + 1}`
|
|
313
284
|
})]
|
|
314
285
|
}),
|
|
315
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ d("div", {
|
|
316
287
|
className: "flex shrink-0 items-center gap-0.5",
|
|
317
288
|
children: [
|
|
318
|
-
/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ u(f, {
|
|
319
290
|
type: "button",
|
|
320
291
|
variant: "ghost",
|
|
321
292
|
size: "icon-sm",
|
|
322
293
|
onClick: () => Q(t, -1),
|
|
323
294
|
disabled: t === 0,
|
|
324
295
|
"aria-label": `Move step ${t + 1} up`,
|
|
325
|
-
children: /* @__PURE__ */
|
|
296
|
+
children: /* @__PURE__ */ u(oe, { className: "size-4" })
|
|
326
297
|
}),
|
|
327
|
-
/* @__PURE__ */
|
|
298
|
+
/* @__PURE__ */ u(f, {
|
|
328
299
|
type: "button",
|
|
329
300
|
variant: "ghost",
|
|
330
301
|
size: "icon-sm",
|
|
331
302
|
onClick: () => Q(t, 1),
|
|
332
|
-
disabled: t ===
|
|
303
|
+
disabled: t === V.steps.length - 1,
|
|
333
304
|
"aria-label": `Move step ${t + 1} down`,
|
|
334
|
-
children: /* @__PURE__ */
|
|
305
|
+
children: /* @__PURE__ */ u(ae, { className: "size-4" })
|
|
335
306
|
}),
|
|
336
|
-
/* @__PURE__ */
|
|
307
|
+
/* @__PURE__ */ u(f, {
|
|
337
308
|
type: "button",
|
|
338
309
|
variant: "ghost",
|
|
339
310
|
size: "icon-sm",
|
|
340
|
-
onClick: () =>
|
|
311
|
+
onClick: () => pe(e.id),
|
|
341
312
|
"aria-label": `Remove step ${t + 1}`,
|
|
342
313
|
className: "text-text-secondary hover:text-status-error-text",
|
|
343
|
-
children: /* @__PURE__ */
|
|
314
|
+
children: /* @__PURE__ */ u(C, { className: "size-4" })
|
|
344
315
|
})
|
|
345
316
|
]
|
|
346
317
|
})
|
|
347
318
|
]
|
|
348
319
|
}, e.id))
|
|
349
320
|
}),
|
|
350
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ d(f, {
|
|
351
322
|
type: "button",
|
|
352
323
|
variant: "outline",
|
|
353
324
|
size: "sm",
|
|
354
|
-
onClick:
|
|
355
|
-
children: [/* @__PURE__ */
|
|
325
|
+
onClick: fe,
|
|
326
|
+
children: [/* @__PURE__ */ u(S, { className: "size-4" }), "Add step"]
|
|
356
327
|
}),
|
|
357
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ d("details", {
|
|
358
329
|
className: "group mt-2 rounded-card border border-border-default bg-bg-sunken",
|
|
359
330
|
onToggle: (e) => {
|
|
360
|
-
e.currentTarget.open && (
|
|
331
|
+
e.currentTarget.open && (K(de), J(null));
|
|
361
332
|
},
|
|
362
|
-
children: [/* @__PURE__ */
|
|
333
|
+
children: [/* @__PURE__ */ d("summary", {
|
|
363
334
|
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",
|
|
364
|
-
children: ["Advanced — edit as JSON", /* @__PURE__ */
|
|
335
|
+
children: ["Advanced — edit as JSON", /* @__PURE__ */ u("span", {
|
|
365
336
|
className: "text-xs transition-transform group-open:rotate-180",
|
|
366
337
|
children: "▾"
|
|
367
338
|
})]
|
|
368
|
-
}), /* @__PURE__ */
|
|
339
|
+
}), /* @__PURE__ */ d("div", {
|
|
369
340
|
className: "space-y-2 border-t border-border-seam p-4",
|
|
370
341
|
children: [
|
|
371
|
-
/* @__PURE__ */
|
|
372
|
-
value:
|
|
342
|
+
/* @__PURE__ */ u(b, {
|
|
343
|
+
value: G,
|
|
373
344
|
onChange: (e) => {
|
|
374
|
-
|
|
345
|
+
K(e.target.value), J(null);
|
|
375
346
|
},
|
|
376
347
|
rows: 8,
|
|
377
348
|
spellCheck: !1,
|
|
378
349
|
className: "font-mono text-xs",
|
|
379
|
-
"aria-label": "
|
|
350
|
+
"aria-label": "Steps JSON"
|
|
380
351
|
}),
|
|
381
|
-
|
|
352
|
+
q ? /* @__PURE__ */ u("p", {
|
|
382
353
|
className: "text-xs text-status-error-text",
|
|
383
|
-
children:
|
|
354
|
+
children: q
|
|
384
355
|
}) : null,
|
|
385
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ d("div", {
|
|
386
357
|
className: "flex items-center justify-between gap-2",
|
|
387
|
-
children: [/* @__PURE__ */
|
|
358
|
+
children: [/* @__PURE__ */ u("p", {
|
|
388
359
|
className: "text-xs text-text-secondary",
|
|
389
360
|
children: "Edit the raw definition, then apply it back to the builder above."
|
|
390
|
-
}), /* @__PURE__ */
|
|
361
|
+
}), /* @__PURE__ */ u(f, {
|
|
391
362
|
type: "button",
|
|
392
363
|
variant: "outline",
|
|
393
364
|
size: "sm",
|
|
394
|
-
onClick:
|
|
365
|
+
onClick: me,
|
|
395
366
|
children: "Apply to builder"
|
|
396
367
|
})]
|
|
397
368
|
})
|
|
@@ -400,8 +371,8 @@ function N() {
|
|
|
400
371
|
})
|
|
401
372
|
]
|
|
402
373
|
}),
|
|
403
|
-
/* @__PURE__ */
|
|
404
|
-
value:
|
|
374
|
+
/* @__PURE__ */ u(ne, {
|
|
375
|
+
value: V.tags,
|
|
405
376
|
onChange: (e) => X("tags", e),
|
|
406
377
|
disabled: $
|
|
407
378
|
})
|
|
@@ -409,6 +380,6 @@ function N() {
|
|
|
409
380
|
});
|
|
410
381
|
}
|
|
411
382
|
//#endregion
|
|
412
|
-
export {
|
|
383
|
+
export { A as default };
|
|
413
384
|
|
|
414
385
|
//# sourceMappingURL=PipelineFormPage.js.map
|