@burdenoff/microfe-bigconsole 2026.1004.7 → 2026.1005.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/bigconsole/BigConsoleRoutes.d.ts +7 -1
- package/dist/bigconsole/BigConsoleRoutes.d.ts.map +1 -1
- package/dist/bigconsole/BigConsoleRoutes.js +154 -144
- package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.d.ts +11 -0
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +248 -0
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js.map +1 -0
- package/dist/bigconsole/components/datasink/AlertRuleEditor.d.ts +23 -0
- package/dist/bigconsole/components/datasink/AlertRuleEditor.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js +357 -0
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowOpenGuard.d.ts +25 -0
- package/dist/bigconsole/components/workflow/WorkflowOpenGuard.d.ts.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js +89 -0
- package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js.map +1 -0
- package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +146 -0
- package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDataSinkAlerts.js +221 -0
- package/dist/bigconsole/hooks/useDataSinkAlerts.js.map +1 -0
- package/dist/bigconsole/pages/DataSinkAlertsPage.d.ts +2 -0
- package/dist/bigconsole/pages/DataSinkAlertsPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/DataSinkAlertsPage.js +422 -0
- package/dist/bigconsole/pages/DataSinkAlertsPage.js.map +1 -0
- package/dist/bigconsole/pages/DataSinkViewPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +151 -144
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +4 -4
- package/dist/bigconsole/pages/WorkflowsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +61 -60
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/utils/alertRules.d.ts +40 -0
- package/dist/bigconsole/utils/alertRules.d.ts.map +1 -0
- package/dist/bigconsole/utils/alertRules.js +83 -0
- package/dist/bigconsole/utils/alertRules.js.map +1 -0
- package/dist/bigconsole/workflowOpen.d.ts +78 -0
- package/dist/bigconsole/workflowOpen.d.ts.map +1 -0
- package/dist/bigconsole/workflowOpen.js +33 -0
- package/dist/bigconsole/workflowOpen.js.map +1 -0
- package/dist/generated/wspace-operations.d.ts +418 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +329 -200
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +122 -0
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/generated/wspace-types.js +7 -1
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/translations/en.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { BigConsoleRootProps } from './types';
|
|
2
2
|
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Generate a new workflow builder path with a fresh UUID key.
|
|
5
|
+
*
|
|
6
|
+
* Navigate to it with `NEW_WORKFLOW_NAV` (router state): opening a builder path
|
|
7
|
+
* only creates a definition when the navigation says it is an explicit "new
|
|
8
|
+
* workflow" — a bare link to an unknown key shows a not-found state (BOFF-8060).
|
|
9
|
+
*/
|
|
4
10
|
export declare const newWorkflowPath: () => string;
|
|
5
11
|
export declare function BigConsoleRoutes(props: BigConsoleRootProps): import("react").JSX.Element;
|
|
6
12
|
//# sourceMappingURL=BigConsoleRoutes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BigConsoleRoutes.d.ts","sourceRoot":"","sources":["../../src/bigconsole/BigConsoleRoutes.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"BigConsoleRoutes.d.ts","sourceRoot":"","sources":["../../src/bigconsole/BigConsoleRoutes.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAyDnD;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,cAAwD,CAAC;AAsQrF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,mBAAmB,+BAiF1D"}
|
|
@@ -3,44 +3,47 @@ import "./contexts/index.js";
|
|
|
3
3
|
import { GetWorkflowDocument as t } from "../generated/wspace-operations.js";
|
|
4
4
|
import n from "./hooks/useWorkflowOperations.js";
|
|
5
5
|
import { BOOTSTRAP_RETRY_DELAY_MS as r } from "./constants.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
6
|
+
import { CREATE_WORKFLOW_STATE as i } from "./workflowOpen.js";
|
|
7
|
+
import { WorkflowOpenGuard as a } from "./components/workflow/WorkflowOpenGuard.js";
|
|
8
|
+
import { Suspense as o, lazy as s, memo as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
9
|
+
import { Navigate as p, Route as m, Routes as h, useParams as g } from "react-router";
|
|
10
|
+
import { Spinner as _ } from "@burdenoff/fe-libs/ui";
|
|
11
|
+
import { useApolloClient as v } from "@apollo/client/react";
|
|
12
|
+
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
13
|
+
import { ExecutionDetailPage as x, ExecutionsListPage as S, HistoryPage as C, NodesPage as w, SettingsPage as T, TemplatesPage as E, WorkflowBuilderPage as D } from "@burdenoff/fluidgrids-fe-sdk";
|
|
12
14
|
//#region src/bigconsole/BigConsoleRoutes.tsx
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
var O = s(() => import("./pages/OverviewPage.js")), k = s(() => import("./pages/DashboardsPage.js")), A = s(() => import("./pages/DashboardViewPage.js")), j = s(() => import("./pages/DashboardBuilderPage.js")), M = s(() => import("./pages/DataSourcesPage.js")), N = s(() => import("./pages/InsightsPage.js")), P = s(() => import("./pages/SettingsPage.js")), F = s(() => import("./pages/WidgetDemoPage.js")), I = s(() => import("./pages/WorkflowsPage.js").then((e) => ({ default: e.WorkflowsPage }))), L = s(() => import("./pages/WorkflowViewPage.js").then((e) => ({ default: e.WorkflowViewPage }))), R = s(() => import("./pages/DataSinksPage.js")), z = s(() => import("./pages/DataSinkViewPage.js")), B = s(() => import("./pages/DataSinkAlertsPage.js")), V = s(() => import("./pages/DataSinkBuilderPage.js")), H = s(() => import("./pages/DataParsersPage.js")), U = s(() => import("./pages/ParserViewPage.js")), W = s(() => import("./pages/ParserBuilderPage.js")), G = s(() => import("./pages/PipelinesPage.js")), K = s(() => import("./pages/PipelineViewPage.js")), q = s(() => import("./pages/PipelineBuilderPage.js"));
|
|
16
|
+
function J() {
|
|
17
|
+
return /* @__PURE__ */ y("div", {
|
|
16
18
|
className: "flex items-center justify-center min-h-[400px]",
|
|
17
|
-
children: /* @__PURE__ */ _
|
|
19
|
+
children: /* @__PURE__ */ y(_, { className: "h-8 w-8" })
|
|
18
20
|
});
|
|
19
21
|
}
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
-
to:
|
|
24
|
-
replace: !0
|
|
22
|
+
var Y = () => `/workflows/workflow/${crypto.randomUUID()}/v1`;
|
|
23
|
+
function X() {
|
|
24
|
+
return /* @__PURE__ */ y(p, {
|
|
25
|
+
to: u(() => Y(), []),
|
|
26
|
+
replace: !0,
|
|
27
|
+
state: i
|
|
25
28
|
});
|
|
26
29
|
}
|
|
27
|
-
var
|
|
28
|
-
let { workflowId: t } =
|
|
29
|
-
return
|
|
30
|
+
var Z = c(function() {
|
|
31
|
+
let { workflowId: t } = g(), i = e(), { fetchWorkflow: a } = n({ skipFetch: !0 }), [o, s] = f(null), c = d(0);
|
|
32
|
+
return l(() => {
|
|
30
33
|
if (!t) {
|
|
31
|
-
|
|
34
|
+
s("No workflow ID provided");
|
|
32
35
|
return;
|
|
33
36
|
}
|
|
34
|
-
|
|
37
|
+
c.current = 0, s(null);
|
|
35
38
|
let e = !1, n = (o) => {
|
|
36
|
-
e || (o?.key ? i(`/workflows/workflow/${o.key}/v1`, { replace: !0 }) : o ? i("/workflows/builder", { replace: !0 }) :
|
|
39
|
+
e || (o?.key ? i(`/workflows/workflow/${o.key}/v1`, { replace: !0 }) : o ? i("/workflows/builder", { replace: !0 }) : c.current < 1 ? (c.current += 1, setTimeout(() => {
|
|
37
40
|
e || a(t).then(n).catch((t) => {
|
|
38
|
-
e ||
|
|
41
|
+
e || s(t?.message ?? "Failed to load workflow");
|
|
39
42
|
});
|
|
40
|
-
}, r)) :
|
|
43
|
+
}, r)) : s("Workflow not found"));
|
|
41
44
|
};
|
|
42
45
|
return a(t).then(n).catch((t) => {
|
|
43
|
-
e ||
|
|
46
|
+
e || s(t?.message ?? "Failed to load workflow");
|
|
44
47
|
}), () => {
|
|
45
48
|
e = !0;
|
|
46
49
|
};
|
|
@@ -48,39 +51,39 @@ var J = o(function() {
|
|
|
48
51
|
t,
|
|
49
52
|
a,
|
|
50
53
|
i
|
|
51
|
-
]), o ? /* @__PURE__ */
|
|
54
|
+
]), o ? /* @__PURE__ */ b("div", {
|
|
52
55
|
className: "p-6 flex flex-col items-center justify-center min-h-[400px] text-center gap-4",
|
|
53
|
-
children: [/* @__PURE__ */
|
|
56
|
+
children: [/* @__PURE__ */ y("p", {
|
|
54
57
|
className: "text-sm text-text-secondary",
|
|
55
58
|
children: o
|
|
56
|
-
}), /* @__PURE__ */
|
|
59
|
+
}), /* @__PURE__ */ y("button", {
|
|
57
60
|
type: "button",
|
|
58
61
|
onClick: () => i("/workflows"),
|
|
59
62
|
className: "px-4 py-2 text-sm font-medium text-text-primary bg-bg-sunken hover:bg-border-default rounded-md transition-colors",
|
|
60
63
|
children: "Back to Workflows"
|
|
61
64
|
})]
|
|
62
|
-
}) : /* @__PURE__ */
|
|
65
|
+
}) : /* @__PURE__ */ y("div", {
|
|
63
66
|
className: "flex items-center justify-center min-h-[400px]",
|
|
64
|
-
children: /* @__PURE__ */ _
|
|
67
|
+
children: /* @__PURE__ */ y(_, { className: "h-8 w-8" })
|
|
65
68
|
});
|
|
66
|
-
}),
|
|
67
|
-
let { id: n, version: i } =
|
|
68
|
-
return
|
|
69
|
+
}), Q = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i, $ = c(function() {
|
|
70
|
+
let { id: n, version: i } = g(), o = e(), s = v(), c = !!n && Q.test(n), [u, p] = f(null), [m, h] = f(null), [x, S] = f(0), C = d(0);
|
|
71
|
+
return l(() => {
|
|
69
72
|
if (!n || !c) return;
|
|
70
|
-
|
|
71
|
-
let e = !1,
|
|
72
|
-
|
|
73
|
+
C.current = 0;
|
|
74
|
+
let e = !1, a = i ?? "v1", l = () => {
|
|
75
|
+
s.query({
|
|
73
76
|
query: t,
|
|
74
77
|
variables: { id: n },
|
|
75
78
|
fetchPolicy: "network-only"
|
|
76
79
|
}).then((t) => {
|
|
77
80
|
if (e) return;
|
|
78
81
|
let r = t.data?.workflow;
|
|
79
|
-
r ? r.key && r.key !== n ?
|
|
82
|
+
r ? r.key && r.key !== n ? o(`/workflows/workflow/${encodeURIComponent(r.key)}/${a}`, { replace: !0 }) : o("/workflows/builder", { replace: !0 }) : p(n);
|
|
80
83
|
}).catch(() => {
|
|
81
|
-
e || (
|
|
84
|
+
e || (C.current < 1 ? (C.current += 1, setTimeout(() => {
|
|
82
85
|
e || l();
|
|
83
|
-
}, r)) :
|
|
86
|
+
}, r)) : h(n));
|
|
84
87
|
});
|
|
85
88
|
};
|
|
86
89
|
return l(), () => {
|
|
@@ -90,220 +93,227 @@ var J = o(function() {
|
|
|
90
93
|
n,
|
|
91
94
|
c,
|
|
92
95
|
i,
|
|
96
|
+
s,
|
|
93
97
|
o,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
x
|
|
99
|
+
]), !c || u === n ? /* @__PURE__ */ y(a, {
|
|
100
|
+
workflowKey: n ?? "",
|
|
101
|
+
children: /* @__PURE__ */ y(D, {})
|
|
102
|
+
}) : m === n ? /* @__PURE__ */ b("div", {
|
|
97
103
|
className: "p-6 flex flex-col items-center justify-center min-h-[400px] text-center gap-4",
|
|
98
|
-
children: [/* @__PURE__ */
|
|
104
|
+
children: [/* @__PURE__ */ y("p", {
|
|
99
105
|
className: "text-sm text-text-secondary",
|
|
100
106
|
children: "Couldn't load this workflow. Please try again."
|
|
101
|
-
}), /* @__PURE__ */
|
|
107
|
+
}), /* @__PURE__ */ b("div", {
|
|
102
108
|
className: "flex items-center gap-2",
|
|
103
|
-
children: [/* @__PURE__ */
|
|
109
|
+
children: [/* @__PURE__ */ y("button", {
|
|
104
110
|
type: "button",
|
|
105
111
|
onClick: () => {
|
|
106
|
-
|
|
112
|
+
h(null), S((e) => e + 1);
|
|
107
113
|
},
|
|
108
114
|
className: "px-4 py-2 text-sm font-medium text-action-primary-fg bg-action-primary-bg hover:bg-action-primary-bgHover rounded-md transition-colors",
|
|
109
115
|
children: "Try again"
|
|
110
|
-
}), /* @__PURE__ */
|
|
116
|
+
}), /* @__PURE__ */ y("button", {
|
|
111
117
|
type: "button",
|
|
112
|
-
onClick: () =>
|
|
118
|
+
onClick: () => o("/workflows"),
|
|
113
119
|
className: "px-4 py-2 text-sm font-medium text-text-primary bg-bg-sunken hover:bg-border-default rounded-md transition-colors",
|
|
114
120
|
children: "Back to Workflows"
|
|
115
121
|
})]
|
|
116
122
|
})]
|
|
117
|
-
}) : /* @__PURE__ */
|
|
123
|
+
}) : /* @__PURE__ */ y("div", {
|
|
118
124
|
className: "flex items-center justify-center min-h-[400px]",
|
|
119
|
-
children: /* @__PURE__ */ _
|
|
125
|
+
children: /* @__PURE__ */ y(_, { className: "h-8 w-8" })
|
|
120
126
|
});
|
|
121
127
|
});
|
|
122
|
-
function
|
|
123
|
-
return e.routePage === "workflow-feeds" ? /* @__PURE__ */
|
|
124
|
-
fallback: /* @__PURE__ */
|
|
125
|
-
children: /* @__PURE__ */
|
|
126
|
-
}) : e.routePage === "workflow-detail" ? /* @__PURE__ */
|
|
127
|
-
fallback: /* @__PURE__ */
|
|
128
|
-
children: /* @__PURE__ */
|
|
129
|
-
}) : /* @__PURE__ */
|
|
130
|
-
fallback: /* @__PURE__ */
|
|
131
|
-
children: /* @__PURE__ */
|
|
132
|
-
/* @__PURE__ */
|
|
128
|
+
function ee(e) {
|
|
129
|
+
return e.routePage === "workflow-feeds" ? /* @__PURE__ */ y(o, {
|
|
130
|
+
fallback: /* @__PURE__ */ y(J, {}),
|
|
131
|
+
children: /* @__PURE__ */ y(I, {})
|
|
132
|
+
}) : e.routePage === "workflow-detail" ? /* @__PURE__ */ y(o, {
|
|
133
|
+
fallback: /* @__PURE__ */ y(J, {}),
|
|
134
|
+
children: /* @__PURE__ */ y(L, {})
|
|
135
|
+
}) : /* @__PURE__ */ y(o, {
|
|
136
|
+
fallback: /* @__PURE__ */ y(J, {}),
|
|
137
|
+
children: /* @__PURE__ */ b(h, { children: [
|
|
138
|
+
/* @__PURE__ */ y(m, {
|
|
133
139
|
path: "/",
|
|
134
|
-
element: /* @__PURE__ */
|
|
140
|
+
element: /* @__PURE__ */ y(O, {})
|
|
135
141
|
}),
|
|
136
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ y(m, {
|
|
137
143
|
path: "/dashboards",
|
|
138
|
-
element: /* @__PURE__ */
|
|
144
|
+
element: /* @__PURE__ */ y(k, {})
|
|
139
145
|
}),
|
|
140
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ y(m, {
|
|
141
147
|
path: "/dashboards/:dashboardId",
|
|
142
|
-
element: /* @__PURE__ */
|
|
148
|
+
element: /* @__PURE__ */ y(A, {})
|
|
143
149
|
}),
|
|
144
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ y(m, {
|
|
145
151
|
path: "/dashboards/:dashboardId/builder",
|
|
146
|
-
element: /* @__PURE__ */
|
|
152
|
+
element: /* @__PURE__ */ y(j, {})
|
|
147
153
|
}),
|
|
148
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ y(m, {
|
|
149
155
|
path: "/datasources",
|
|
150
|
-
element: /* @__PURE__ */
|
|
156
|
+
element: /* @__PURE__ */ y(M, {})
|
|
151
157
|
}),
|
|
152
|
-
/* @__PURE__ */
|
|
158
|
+
/* @__PURE__ */ y(m, {
|
|
153
159
|
path: "/insights",
|
|
154
|
-
element: /* @__PURE__ */
|
|
160
|
+
element: /* @__PURE__ */ y(N, {})
|
|
155
161
|
}),
|
|
156
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ y(m, {
|
|
157
163
|
path: "/settings",
|
|
158
|
-
element: /* @__PURE__ */
|
|
164
|
+
element: /* @__PURE__ */ y(P, {})
|
|
159
165
|
}),
|
|
160
|
-
/* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ y(m, {
|
|
161
167
|
path: "/widgets/demo",
|
|
162
|
-
element: /* @__PURE__ */
|
|
168
|
+
element: /* @__PURE__ */ y(F, {})
|
|
163
169
|
}),
|
|
164
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ y(m, {
|
|
165
171
|
path: "/datasinks",
|
|
166
|
-
element: /* @__PURE__ */
|
|
172
|
+
element: /* @__PURE__ */ y(R, {})
|
|
167
173
|
}),
|
|
168
|
-
/* @__PURE__ */
|
|
174
|
+
/* @__PURE__ */ y(m, {
|
|
169
175
|
path: "/datasinks/new",
|
|
170
|
-
element: /* @__PURE__ */
|
|
176
|
+
element: /* @__PURE__ */ y(V, {})
|
|
171
177
|
}),
|
|
172
|
-
/* @__PURE__ */
|
|
178
|
+
/* @__PURE__ */ y(m, {
|
|
173
179
|
path: "/datasinks/:dataSinkId",
|
|
174
|
-
element: /* @__PURE__ */
|
|
180
|
+
element: /* @__PURE__ */ y(z, {})
|
|
175
181
|
}),
|
|
176
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ y(m, {
|
|
177
183
|
path: "/datasinks/:dataSinkId/edit",
|
|
178
|
-
element: /* @__PURE__ */
|
|
184
|
+
element: /* @__PURE__ */ y(V, {})
|
|
185
|
+
}),
|
|
186
|
+
/* @__PURE__ */ y(m, {
|
|
187
|
+
path: "/datasinks/:dataSinkId/alerts",
|
|
188
|
+
element: /* @__PURE__ */ y(B, {})
|
|
179
189
|
}),
|
|
180
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ y(m, {
|
|
181
191
|
path: "/parsers",
|
|
182
|
-
element: /* @__PURE__ */
|
|
192
|
+
element: /* @__PURE__ */ y(H, {})
|
|
183
193
|
}),
|
|
184
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ y(m, {
|
|
185
195
|
path: "/parsers/new",
|
|
186
|
-
element: /* @__PURE__ */
|
|
196
|
+
element: /* @__PURE__ */ y(W, {})
|
|
187
197
|
}),
|
|
188
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ y(m, {
|
|
189
199
|
path: "/parsers/:parserId",
|
|
190
|
-
element: /* @__PURE__ */
|
|
200
|
+
element: /* @__PURE__ */ y(U, {})
|
|
191
201
|
}),
|
|
192
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ y(m, {
|
|
193
203
|
path: "/parsers/:parserId/edit",
|
|
194
|
-
element: /* @__PURE__ */
|
|
204
|
+
element: /* @__PURE__ */ y(W, {})
|
|
195
205
|
}),
|
|
196
|
-
/* @__PURE__ */
|
|
206
|
+
/* @__PURE__ */ y(m, {
|
|
197
207
|
path: "/dashboards/:consoleId/parsers",
|
|
198
|
-
element: /* @__PURE__ */
|
|
208
|
+
element: /* @__PURE__ */ y(H, {})
|
|
199
209
|
}),
|
|
200
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ y(m, {
|
|
201
211
|
path: "/dashboards/:consoleId/parsers/new",
|
|
202
|
-
element: /* @__PURE__ */
|
|
212
|
+
element: /* @__PURE__ */ y(W, {})
|
|
203
213
|
}),
|
|
204
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ y(m, {
|
|
205
215
|
path: "/dashboards/:consoleId/parsers/:parserId",
|
|
206
|
-
element: /* @__PURE__ */
|
|
216
|
+
element: /* @__PURE__ */ y(U, {})
|
|
207
217
|
}),
|
|
208
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ y(m, {
|
|
209
219
|
path: "/dashboards/:consoleId/parsers/:parserId/edit",
|
|
210
|
-
element: /* @__PURE__ */
|
|
220
|
+
element: /* @__PURE__ */ y(W, {})
|
|
211
221
|
}),
|
|
212
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ y(m, {
|
|
213
223
|
path: "/workflows",
|
|
214
|
-
element: /* @__PURE__ */
|
|
224
|
+
element: /* @__PURE__ */ y(I, {})
|
|
215
225
|
}),
|
|
216
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ y(m, {
|
|
217
227
|
path: "/workflows/feeds",
|
|
218
|
-
element: /* @__PURE__ */
|
|
228
|
+
element: /* @__PURE__ */ y(I, {})
|
|
219
229
|
}),
|
|
220
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ y(m, {
|
|
221
231
|
path: "/workflows/details/:workflowId",
|
|
222
|
-
element: /* @__PURE__ */
|
|
232
|
+
element: /* @__PURE__ */ y(L, {})
|
|
223
233
|
}),
|
|
224
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ y(m, {
|
|
225
235
|
path: "/workflows/list",
|
|
226
|
-
element: /* @__PURE__ */
|
|
236
|
+
element: /* @__PURE__ */ y(I, {})
|
|
227
237
|
}),
|
|
228
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ y(m, {
|
|
229
239
|
path: "/workflows/new",
|
|
230
|
-
element: /* @__PURE__ */
|
|
240
|
+
element: /* @__PURE__ */ y(X, {})
|
|
231
241
|
}),
|
|
232
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ y(m, {
|
|
233
243
|
path: "/workflows/builder",
|
|
234
|
-
element: /* @__PURE__ */
|
|
244
|
+
element: /* @__PURE__ */ y(D, {})
|
|
235
245
|
}),
|
|
236
|
-
/* @__PURE__ */
|
|
246
|
+
/* @__PURE__ */ y(m, {
|
|
237
247
|
path: "/workflows/builder/:id/:version",
|
|
238
|
-
element: /* @__PURE__ */
|
|
248
|
+
element: /* @__PURE__ */ y($, {})
|
|
239
249
|
}),
|
|
240
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ y(m, {
|
|
241
251
|
path: "/workflows/workflow/:id/:version",
|
|
242
|
-
element: /* @__PURE__ */
|
|
252
|
+
element: /* @__PURE__ */ y($, {})
|
|
243
253
|
}),
|
|
244
|
-
/* @__PURE__ */
|
|
254
|
+
/* @__PURE__ */ y(m, {
|
|
245
255
|
path: "/workflows/runs",
|
|
246
|
-
element: /* @__PURE__ */
|
|
256
|
+
element: /* @__PURE__ */ y(S, {})
|
|
247
257
|
}),
|
|
248
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ y(m, {
|
|
249
259
|
path: "/workflows/runs/:runId",
|
|
250
|
-
element: /* @__PURE__ */
|
|
260
|
+
element: /* @__PURE__ */ y(x, {})
|
|
251
261
|
}),
|
|
252
|
-
/* @__PURE__ */
|
|
262
|
+
/* @__PURE__ */ y(m, {
|
|
253
263
|
path: "/workflows/history",
|
|
254
|
-
element: /* @__PURE__ */
|
|
264
|
+
element: /* @__PURE__ */ y(C, {})
|
|
255
265
|
}),
|
|
256
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ y(m, {
|
|
257
267
|
path: "/workflows/templates",
|
|
258
|
-
element: /* @__PURE__ */
|
|
268
|
+
element: /* @__PURE__ */ y(E, {})
|
|
259
269
|
}),
|
|
260
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ y(m, {
|
|
261
271
|
path: "/workflows/nodes",
|
|
262
|
-
element: /* @__PURE__ */
|
|
272
|
+
element: /* @__PURE__ */ y(w, {})
|
|
263
273
|
}),
|
|
264
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ y(m, {
|
|
265
275
|
path: "/workflows/settings",
|
|
266
|
-
element: /* @__PURE__ */
|
|
276
|
+
element: /* @__PURE__ */ y(T, {})
|
|
267
277
|
}),
|
|
268
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ y(m, {
|
|
269
279
|
path: "/workflows/:workflowId",
|
|
270
|
-
element: /* @__PURE__ */
|
|
280
|
+
element: /* @__PURE__ */ y(L, {})
|
|
271
281
|
}),
|
|
272
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ y(m, {
|
|
273
283
|
path: "/workflows/:workflowId/edit",
|
|
274
|
-
element: /* @__PURE__ */
|
|
284
|
+
element: /* @__PURE__ */ y(Z, {})
|
|
275
285
|
}),
|
|
276
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ y(m, {
|
|
277
287
|
path: "/workflow/:id/:version",
|
|
278
|
-
element: /* @__PURE__ */
|
|
288
|
+
element: /* @__PURE__ */ y($, {})
|
|
279
289
|
}),
|
|
280
|
-
/* @__PURE__ */
|
|
290
|
+
/* @__PURE__ */ y(m, {
|
|
281
291
|
path: "/list",
|
|
282
|
-
element: /* @__PURE__ */
|
|
292
|
+
element: /* @__PURE__ */ y(p, {
|
|
283
293
|
to: "/bigconsole/workflows/list",
|
|
284
294
|
replace: !0
|
|
285
295
|
})
|
|
286
296
|
}),
|
|
287
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ y(m, {
|
|
288
298
|
path: "/pipelines",
|
|
289
|
-
element: /* @__PURE__ */
|
|
299
|
+
element: /* @__PURE__ */ y(G, {})
|
|
290
300
|
}),
|
|
291
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ y(m, {
|
|
292
302
|
path: "/pipelines/new",
|
|
293
|
-
element: /* @__PURE__ */
|
|
303
|
+
element: /* @__PURE__ */ y(q, {})
|
|
294
304
|
}),
|
|
295
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ y(m, {
|
|
296
306
|
path: "/pipelines/:pipelineId",
|
|
297
|
-
element: /* @__PURE__ */
|
|
307
|
+
element: /* @__PURE__ */ y(K, {})
|
|
298
308
|
}),
|
|
299
|
-
/* @__PURE__ */
|
|
309
|
+
/* @__PURE__ */ y(m, {
|
|
300
310
|
path: "/pipelines/:pipelineId/edit",
|
|
301
|
-
element: /* @__PURE__ */
|
|
311
|
+
element: /* @__PURE__ */ y(q, {})
|
|
302
312
|
})
|
|
303
313
|
] })
|
|
304
314
|
});
|
|
305
315
|
}
|
|
306
316
|
//#endregion
|
|
307
|
-
export {
|
|
317
|
+
export { ee as BigConsoleRoutes, Y as newWorkflowPath };
|
|
308
318
|
|
|
309
319
|
//# sourceMappingURL=BigConsoleRoutes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BigConsoleRoutes.js","names":[],"sources":["../../src/bigconsole/BigConsoleRoutes.tsx"],"sourcesContent":["import { lazy, Suspense, memo, useState, useMemo, useEffect, useRef } from 'react';\nimport { Route, Routes, Navigate, useParams } from 'react-router';\nimport { type BigConsoleRootProps } from './types';\nimport { Spinner } from '@burdenoff/fe-libs/ui';\nimport { useApolloClient } from '@apollo/client/react';\nimport { useAppNavigate } from './contexts';\nimport { useWorkflowOperations } from './hooks/useWorkflowOperations';\nimport { GetWorkflowDocument } from '../generated/wspace-operations';\nimport { BOOTSTRAP_RETRY_DELAY_MS } from './constants';\n\n// Import FluidGrids SDK workflow components (EXACT same as microfe-workflows)\nimport {\n WorkflowBuilderPage as SDKWorkflowBuilderPage,\n ExecutionsListPage,\n ExecutionDetailPage,\n HistoryPage,\n TemplatesPage,\n NodesPage,\n SettingsPage as WorkflowSettingsPage,\n} from '@burdenoff/fluidgrids-fe-sdk';\n\n// Lazy-loaded pages\nconst OverviewPage = lazy(() => import('./pages/OverviewPage'));\nconst DashboardsPage = lazy(() => import('./pages/DashboardsPage'));\nconst DashboardViewPage = lazy(() => import('./pages/DashboardViewPage'));\nconst DashboardBuilderPage = lazy(() => import('./pages/DashboardBuilderPage'));\nconst DataSourcesPage = lazy(() => import('./pages/DataSourcesPage'));\nconst InsightsPage = lazy(() => import('./pages/InsightsPage'));\nconst SettingsPage = lazy(() => import('./pages/SettingsPage'));\nconst WidgetDemoPage = lazy(() => import('./pages/WidgetDemoPage'));\n// BigConsole-native workflow pages (query bigconsole-svc, not workflow-svc)\n// These use named exports (no default export), so we remap via .then()\nconst WorkflowsPage = lazy(() => import('./pages/WorkflowsPage').then((m) => ({ default: m.WorkflowsPage })));\nconst WorkflowViewPage = lazy(() => import('./pages/WorkflowViewPage').then((m) => ({ default: m.WorkflowViewPage })));\n// DataSink Pages\nconst DataSinksPage = lazy(() => import('./pages/DataSinksPage'));\nconst DataSinkViewPage = lazy(() => import('./pages/DataSinkViewPage'));\nconst DataSinkBuilderPage = lazy(() => import('./pages/DataSinkBuilderPage'));\n// Parser Pages\nconst DataParsersPage = lazy(() => import('./pages/DataParsersPage'));\nconst ParserViewPage = lazy(() => import('./pages/ParserViewPage'));\nconst ParserBuilderPage = lazy(() => import('./pages/ParserBuilderPage'));\n// Pipeline Pages\nconst PipelinesPage = lazy(() => import('./pages/PipelinesPage'));\nconst PipelineViewPage = lazy(() => import('./pages/PipelineViewPage'));\nconst PipelineBuilderPage = lazy(() => import('./pages/PipelineBuilderPage'));\n\n// Loading fallback component\nfunction PageLoader() {\n return (\n <div className=\"flex items-center justify-center min-h-[400px]\">\n <Spinner className=\"h-8 w-8\" />\n </div>\n );\n}\n\n/** Generate a new workflow builder path with a fresh UUID key. */\nexport const newWorkflowPath = () => `/workflows/workflow/${crypto.randomUUID()}/v1`;\n\n/**\n * Redirect /workflows/new to a UUID-based URL.\n * Uses <Navigate> for synchronous redirect (no blank frame).\n */\nfunction WorkflowNewRedirect() {\n const path = useMemo(() => newWorkflowPath(), []);\n return <Navigate to={path} replace />;\n}\n\n/**\n * Bridge component: resolves a BigConsole workflow ID to its externalWorkflowId\n * and navigates to the SDK's visual builder route.\n *\n * Route: /workflows/:workflowId/edit\n * Redirects to: /workflows/workflow/{workflowKey}/v1\n */\nconst WorkflowEditBridge = memo(function WorkflowEditBridge() {\n const { workflowId } = useParams<{ workflowId: string }>();\n const navigate = useAppNavigate();\n const { fetchWorkflow } = useWorkflowOperations({ skipFetch: true });\n const [error, setError] = useState<string | null>(null);\n const retryCount = useRef(0);\n\n useEffect(() => {\n if (!workflowId) {\n setError('No workflow ID provided');\n return;\n }\n\n // Reset retry budget and error when workflowId changes so a\n // previous failed attempt doesn't consume the new workflow's retry.\n retryCount.current = 0;\n setError(null);\n let cancelled = false;\n\n const handleResult = (workflow: Awaited<ReturnType<typeof fetchWorkflow>>) => {\n if (cancelled) return;\n\n if (workflow?.key) {\n // Navigate to the SDK builder route using the workflow key (e.g. \"github_user_profile\")\n // and default version \"v1\". The FluidGrids SDK fetches the definition by workflowKey.\n // Replace history so the bridge doesn't trap the back button.\n navigate(`/workflows/workflow/${workflow.key}/v1`, { replace: true });\n } else if (workflow) {\n // Workflow exists but has no key — open SDK builder in create mode\n navigate(`/workflows/builder`, { replace: true });\n } else if (retryCount.current < 1) {\n // On full-page loads the auth/workspace context may not be bootstrapped yet,\n // causing a false null. Retry once after a short delay (same pattern as WorkflowViewPage).\n retryCount.current += 1;\n setTimeout(() => {\n if (!cancelled) {\n fetchWorkflow(workflowId)\n .then(handleResult)\n .catch((err) => {\n if (!cancelled) setError(err?.message ?? 'Failed to load workflow');\n });\n }\n }, BOOTSTRAP_RETRY_DELAY_MS);\n } else {\n setError('Workflow not found');\n }\n };\n\n fetchWorkflow(workflowId)\n .then(handleResult)\n .catch((err) => {\n if (!cancelled) setError(err?.message ?? 'Failed to load workflow');\n });\n\n return () => {\n cancelled = true;\n };\n }, [workflowId, fetchWorkflow, navigate]);\n\n if (error) {\n return (\n <div className=\"p-6 flex flex-col items-center justify-center min-h-[400px] text-center gap-4\">\n <p className=\"text-sm text-text-secondary\">{error}</p>\n <button\n type=\"button\"\n onClick={() => navigate('/workflows')}\n className=\"px-4 py-2 text-sm font-medium text-text-primary bg-bg-sunken hover:bg-border-default rounded-md transition-colors\"\n >\n Back to Workflows\n </button>\n </div>\n );\n }\n\n return (\n <div className=\"flex items-center justify-center min-h-[400px]\">\n <Spinner className=\"h-8 w-8\" />\n </div>\n );\n});\n\n/**\n * Matches a canonical v4-style UUID. BigConsole workflow RECORD ids are UUIDs;\n * workflow KEYS are human slugs (e.g. \"users_analytics\"). New-workflow URLs also\n * use a fresh `crypto.randomUUID()` as the builder key. We only attempt record\n * resolution for UUID-shaped `:id`s — slugs are always real keys and skip the\n * lookup entirely (no extra round-trip, no spinner flash).\n */\nconst UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\n\n/** Minimal shape of the GetWorkflow query — the resolver only needs the key. */\ntype WorkflowKeyLookup = { workflow: { key: string | null } | null };\n\n/**\n * Guards the SDK visual builder route.\n *\n * The SDK builder loads its definition from workflow-svc using the URL `:id` as\n * the `workflowKey`. That only works when `:id` is the workflow KEY. When a\n * BigConsole workflow RECORD id (a UUID) reaches the builder — via the SDK\n * card's `navigate(\"../workflow/\" + workflow.workflow_key + ...)`, a bookmarked\n * record-id URL, etc. — no definition matches that key, so the canvas is empty\n * AND the SDK silently creates a phantom 0-node definition keyed by the UUID.\n *\n * This resolver closes that gap centrally (the same id→key resolution the\n * `/workflows/:workflowId/edit` `WorkflowEditBridge` does, but applied to the\n * builder route itself so EVERY entry point is covered):\n * - `:id` is a slug → it's already a key → render the builder as-is.\n * - `:id` is a UUID that maps to a BigConsole record with a different key →\n * redirect to `/workflows/workflow/<key>/<version>`.\n * - `:id` is a UUID that is NOT a record (a fresh new-workflow id) → render\n * the builder as-is (create mode).\n */\nconst WorkflowBuilderResolver = memo(function WorkflowBuilderResolver() {\n const { id, version } = useParams<{ id: string; version: string }>();\n const navigate = useAppNavigate();\n const client = useApolloClient();\n // Slugs (real keys) render the builder immediately (derived below); only\n // UUID-shaped ids need a record lookup first.\n const isUuid = !!id && UUID_RE.test(id);\n // A UUID is only safe to open in the SDK builder once the lookup POSITIVELY\n // confirms it is not a BigConsole record (a clean not-found — e.g. a fresh\n // new-workflow id). Both verdicts are keyed by the id they describe so that\n // navigating between workflows re-resolves instead of reusing a stale answer.\n const [confirmedAbsentId, setConfirmedAbsentId] = useState<string | null>(null);\n const [failedId, setFailedId] = useState<string | null>(null);\n // Bumped by the \"Try again\" button to re-run the lookup effect after a failure.\n const [retryNonce, setRetryNonce] = useState(0);\n const retryCount = useRef(0);\n\n useEffect(() => {\n if (!id || !isUuid) return;\n\n retryCount.current = 0;\n let cancelled = false;\n const targetVersion = version ?? 'v1';\n\n const attempt = () => {\n // Query directly (not via fetchWorkflow, which swallows Apollo errors and\n // returns null) so we can tell a genuine \"no such record\" apart from a\n // transient lookup failure. Treating a failure as not-found would re-open\n // the builder with the record id and recreate a phantom 0-node definition.\n client\n .query<WorkflowKeyLookup>({\n query: GetWorkflowDocument,\n variables: { id },\n fetchPolicy: 'network-only',\n })\n .then((result) => {\n if (cancelled) return;\n const record = result.data?.workflow;\n if (record) {\n // The UUID IS a BigConsole record.\n if (record.key && record.key !== id) {\n // Open the builder under its real key (where the definition + nodes\n // live). encodeURIComponent guards against URL-unsafe key chars.\n // Replace history so the resolver doesn't trap the back button.\n navigate(`/workflows/workflow/${encodeURIComponent(record.key)}/${targetVersion}`, {\n replace: true,\n });\n } else {\n // Record exists but has no usable key — open a blank builder rather\n // than reusing the record UUID as the key (which would phantom).\n navigate('/workflows/builder', { replace: true });\n }\n } else {\n // Query succeeded with no record → a genuine new-workflow id.\n setConfirmedAbsentId(id);\n }\n })\n .catch(() => {\n if (cancelled) return;\n if (retryCount.current < 1) {\n // On a cold full-page load the auth/workspace context may not be\n // bootstrapped yet. Retry once before giving up.\n retryCount.current += 1;\n setTimeout(() => {\n if (!cancelled) attempt();\n }, BOOTSTRAP_RETRY_DELAY_MS);\n } else {\n // Lookup failed — do NOT assume create mode (the id may be a record);\n // surface a retry instead of risking a phantom definition.\n setFailedId(id);\n }\n });\n };\n\n attempt();\n\n return () => {\n cancelled = true;\n };\n }, [id, isUuid, version, client, navigate, retryNonce]);\n\n // Slug keys, and UUIDs confirmed not to be records, render the builder.\n if (!isUuid || confirmedAbsentId === id) {\n return <SDKWorkflowBuilderPage />;\n }\n\n // A lookup that ultimately failed: surface a retry rather than silently\n // opening the builder with what may be a record id.\n if (failedId === id) {\n return (\n <div className=\"p-6 flex flex-col items-center justify-center min-h-[400px] text-center gap-4\">\n <p className=\"text-sm text-text-secondary\">Couldn't load this workflow. Please try again.</p>\n <div className=\"flex items-center gap-2\">\n <button\n type=\"button\"\n onClick={() => {\n setFailedId(null);\n setRetryNonce((n) => n + 1);\n }}\n className=\"px-4 py-2 text-sm font-medium text-action-primary-fg bg-action-primary-bg hover:bg-action-primary-bgHover rounded-md transition-colors\"\n >\n Try again\n </button>\n <button\n type=\"button\"\n onClick={() => navigate('/workflows')}\n className=\"px-4 py-2 text-sm font-medium text-text-primary bg-bg-sunken hover:bg-border-default rounded-md transition-colors\"\n >\n Back to Workflows\n </button>\n </div>\n </div>\n );\n }\n\n return (\n <div className=\"flex items-center justify-center min-h-[400px]\">\n <Spinner className=\"h-8 w-8\" />\n </div>\n );\n});\n\nexport function BigConsoleRoutes(props: BigConsoleRootProps) {\n if (props.routePage === 'workflow-feeds')\n return (\n <Suspense fallback={<PageLoader />}>\n <WorkflowsPage />\n </Suspense>\n );\n if (props.routePage === 'workflow-detail')\n return (\n <Suspense fallback={<PageLoader />}>\n <WorkflowViewPage />\n </Suspense>\n );\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route path=\"/\" element={<OverviewPage />} />\n <Route path=\"/dashboards\" element={<DashboardsPage />} />\n <Route path=\"/dashboards/:dashboardId\" element={<DashboardViewPage />} />\n <Route path=\"/dashboards/:dashboardId/builder\" element={<DashboardBuilderPage />} />\n <Route path=\"/datasources\" element={<DataSourcesPage />} />\n <Route path=\"/insights\" element={<InsightsPage />} />\n <Route path=\"/settings\" element={<SettingsPage />} />\n <Route path=\"/widgets/demo\" element={<WidgetDemoPage />} />\n {/* DataSink Routes */}\n <Route path=\"/datasinks\" element={<DataSinksPage />} />\n <Route path=\"/datasinks/new\" element={<DataSinkBuilderPage />} />\n <Route path=\"/datasinks/:dataSinkId\" element={<DataSinkViewPage />} />\n <Route path=\"/datasinks/:dataSinkId/edit\" element={<DataSinkBuilderPage />} />\n {/* Parser Routes */}\n <Route path=\"/parsers\" element={<DataParsersPage />} />\n <Route path=\"/parsers/new\" element={<ParserBuilderPage />} />\n <Route path=\"/parsers/:parserId\" element={<ParserViewPage />} />\n <Route path=\"/parsers/:parserId/edit\" element={<ParserBuilderPage />} />\n {/* Dashboard-scoped Parser Routes */}\n <Route path=\"/dashboards/:consoleId/parsers\" element={<DataParsersPage />} />\n <Route path=\"/dashboards/:consoleId/parsers/new\" element={<ParserBuilderPage />} />\n <Route path=\"/dashboards/:consoleId/parsers/:parserId\" element={<ParserViewPage />} />\n <Route path=\"/dashboards/:consoleId/parsers/:parserId/edit\" element={<ParserBuilderPage />} />\n {/* Workflow Routes — list/view use BigConsole-native pages (query bigconsole-svc).\n All static routes are grouped before the dynamic :workflowId catch-all.\n React Router v6 prioritizes static segments regardless of declaration order,\n but keeping them above the param routes makes intent unambiguous for maintainers. */}\n <Route path=\"/workflows\" element={<WorkflowsPage />} />\n <Route path=\"/workflows/feeds\" element={<WorkflowsPage />} />\n <Route path=\"/workflows/details/:workflowId\" element={<WorkflowViewPage />} />\n <Route path=\"/workflows/list\" element={<WorkflowsPage />} />\n {/* New workflow — redirect to UUID-based URL (matches FluidGrids pattern) */}\n <Route path=\"/workflows/new\" element={<WorkflowNewRedirect />} />\n {/* SDK visual workflow builder — design existing workflows */}\n <Route path=\"/workflows/builder\" element={<SDKWorkflowBuilderPage />} />\n {/* All parameterised builder routes go through WorkflowBuilderResolver so a\n record-id `:id` is resolved to its workflow key first (slugs/new-workflow\n UUIDs pass straight through); otherwise the SDK opens an empty canvas and\n creates a phantom 0-node definition keyed by the record id. */}\n <Route path=\"/workflows/builder/:id/:version\" element={<WorkflowBuilderResolver />} />\n <Route path=\"/workflows/workflow/:id/:version\" element={<WorkflowBuilderResolver />} />\n {/* SDK sub-pages (runs, history, templates, nodes, settings) */}\n <Route path=\"/workflows/runs\" element={<ExecutionsListPage />} />\n <Route path=\"/workflows/runs/:runId\" element={<ExecutionDetailPage />} />\n <Route path=\"/workflows/history\" element={<HistoryPage />} />\n <Route path=\"/workflows/templates\" element={<TemplatesPage />} />\n <Route path=\"/workflows/nodes\" element={<NodesPage />} />\n <Route path=\"/workflows/settings\" element={<WorkflowSettingsPage />} />\n {/* Dynamic routes — :workflowId catch-all AFTER all static segments */}\n <Route path=\"/workflows/:workflowId\" element={<WorkflowViewPage />} />\n <Route path=\"/workflows/:workflowId/edit\" element={<WorkflowEditBridge />} />\n {/* Support SDK's navigation pattern (without /workflows/ prefix) — also\n resolves record-id → key via WorkflowBuilderResolver. */}\n <Route path=\"/workflow/:id/:version\" element={<WorkflowBuilderResolver />} />\n {/* Redirect /list to /workflows/list (SDK uses relative navigation) */}\n <Route path=\"/list\" element={<Navigate to=\"/bigconsole/workflows/list\" replace />} />\n {/* Pipeline Routes */}\n <Route path=\"/pipelines\" element={<PipelinesPage />} />\n <Route path=\"/pipelines/new\" element={<PipelineBuilderPage />} />\n <Route path=\"/pipelines/:pipelineId\" element={<PipelineViewPage />} />\n <Route path=\"/pipelines/:pipelineId/edit\" element={<PipelineBuilderPage />} />\n </Routes>\n </Suspense>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAsBA,IAAM,IAAe,QAAW,OAAO,2BAAwB,EACzD,IAAiB,QAAW,OAAO,6BAA0B,EAC7D,IAAoB,QAAW,OAAO,gCAA6B,EACnE,IAAuB,QAAW,OAAO,mCAAgC,EACzE,IAAkB,QAAW,OAAO,8BAA2B,EAC/D,IAAe,QAAW,OAAO,2BAAwB,EACzD,IAAe,QAAW,OAAO,2BAAwB,EACzD,IAAiB,QAAW,OAAO,6BAA0B,EAG7D,IAAgB,QAAW,OAAO,4BAAyB,MAAM,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC,EACvG,IAAmB,QAAW,OAAO,+BAA4B,MAAM,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC,EAEhH,IAAgB,QAAW,OAAO,4BAAyB,EAC3D,IAAmB,QAAW,OAAO,+BAA4B,EACjE,IAAsB,QAAW,OAAO,kCAA+B,EAEvE,IAAkB,QAAW,OAAO,8BAA2B,EAC/D,IAAiB,QAAW,OAAO,6BAA0B,EAC7D,IAAoB,QAAW,OAAO,gCAA6B,EAEnE,IAAgB,QAAW,OAAO,4BAAyB,EAC3D,IAAmB,QAAW,OAAO,+BAA4B,EACjE,IAAsB,QAAW,OAAO,kCAA+B;AAG7E,SAAS,IAAa;AACpB,QACE,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD,EAAS,WAAU,WAAY,CAAA;EAC3B,CAAA;;AAKV,IAAa,UAAwB,uBAAuB,OAAO,YAAY,CAAC;AAMhF,SAAS,IAAsB;AAE7B,QAAO,kBAAC,GAAD;EAAU,IADJ,QAAc,GAAiB,EAAE,EAAE,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KAAU,IAAG;KAA6B,SAAA;KAAU,CAAA;IAAI,CAAA;GAErF,kBAAC,GAAD;IAAO,MAAK;IAAa,SAAS,kBAAC,GAAD,EAAiB,CAAA;IAAI,CAAA;GACvD,kBAAC,GAAD;IAAO,MAAK;IAAiB,SAAS,kBAAC,GAAD,EAAuB,CAAA;IAAI,CAAA;GACjE,kBAAC,GAAD;IAAO,MAAK;IAAyB,SAAS,kBAAC,GAAD,EAAoB,CAAA;IAAI,CAAA;GACtE,kBAAC,GAAD;IAAO,MAAK;IAA8B,SAAS,kBAAC,GAAD,EAAuB,CAAA;IAAI,CAAA;GACvE,EAAA,CAAA;EACA,CAAA"}
|
|
1
|
+
{"version":3,"file":"BigConsoleRoutes.js","names":[],"sources":["../../src/bigconsole/BigConsoleRoutes.tsx"],"sourcesContent":["import { lazy, Suspense, memo, useState, useMemo, useEffect, useRef } from 'react';\nimport { Route, Routes, Navigate, useParams } from 'react-router';\nimport { type BigConsoleRootProps } from './types';\nimport { Spinner } from '@burdenoff/fe-libs/ui';\nimport { useApolloClient } from '@apollo/client/react';\nimport { useAppNavigate } from './contexts';\nimport { useWorkflowOperations } from './hooks/useWorkflowOperations';\nimport { GetWorkflowDocument } from '../generated/wspace-operations';\nimport { BOOTSTRAP_RETRY_DELAY_MS } from './constants';\nimport { CREATE_WORKFLOW_STATE } from './workflowOpen';\nimport { WorkflowOpenGuard } from './components/workflow/WorkflowOpenGuard';\n\n// Import FluidGrids SDK workflow components (EXACT same as microfe-workflows)\nimport {\n WorkflowBuilderPage as SDKWorkflowBuilderPage,\n ExecutionsListPage,\n ExecutionDetailPage,\n HistoryPage,\n TemplatesPage,\n NodesPage,\n SettingsPage as WorkflowSettingsPage,\n} from '@burdenoff/fluidgrids-fe-sdk';\n\n// Lazy-loaded pages\nconst OverviewPage = lazy(() => import('./pages/OverviewPage'));\nconst DashboardsPage = lazy(() => import('./pages/DashboardsPage'));\nconst DashboardViewPage = lazy(() => import('./pages/DashboardViewPage'));\nconst DashboardBuilderPage = lazy(() => import('./pages/DashboardBuilderPage'));\nconst DataSourcesPage = lazy(() => import('./pages/DataSourcesPage'));\nconst InsightsPage = lazy(() => import('./pages/InsightsPage'));\nconst SettingsPage = lazy(() => import('./pages/SettingsPage'));\nconst WidgetDemoPage = lazy(() => import('./pages/WidgetDemoPage'));\n// BigConsole-native workflow pages (query bigconsole-svc, not workflow-svc)\n// These use named exports (no default export), so we remap via .then()\nconst WorkflowsPage = lazy(() => import('./pages/WorkflowsPage').then((m) => ({ default: m.WorkflowsPage })));\nconst WorkflowViewPage = lazy(() => import('./pages/WorkflowViewPage').then((m) => ({ default: m.WorkflowViewPage })));\n// DataSink Pages\nconst DataSinksPage = lazy(() => import('./pages/DataSinksPage'));\nconst DataSinkViewPage = lazy(() => import('./pages/DataSinkViewPage'));\nconst DataSinkAlertsPage = lazy(() => import('./pages/DataSinkAlertsPage'));\nconst DataSinkBuilderPage = lazy(() => import('./pages/DataSinkBuilderPage'));\n// Parser Pages\nconst DataParsersPage = lazy(() => import('./pages/DataParsersPage'));\nconst ParserViewPage = lazy(() => import('./pages/ParserViewPage'));\nconst ParserBuilderPage = lazy(() => import('./pages/ParserBuilderPage'));\n// Pipeline Pages\nconst PipelinesPage = lazy(() => import('./pages/PipelinesPage'));\nconst PipelineViewPage = lazy(() => import('./pages/PipelineViewPage'));\nconst PipelineBuilderPage = lazy(() => import('./pages/PipelineBuilderPage'));\n\n// Loading fallback component\nfunction PageLoader() {\n return (\n <div className=\"flex items-center justify-center min-h-[400px]\">\n <Spinner className=\"h-8 w-8\" />\n </div>\n );\n}\n\n/**\n * Generate a new workflow builder path with a fresh UUID key.\n *\n * Navigate to it with `NEW_WORKFLOW_NAV` (router state): opening a builder path\n * only creates a definition when the navigation says it is an explicit \"new\n * workflow\" — a bare link to an unknown key shows a not-found state (BOFF-8060).\n */\nexport const newWorkflowPath = () => `/workflows/workflow/${crypto.randomUUID()}/v1`;\n\n/**\n * Redirect /workflows/new to a UUID-based URL.\n * Uses <Navigate> for synchronous redirect (no blank frame).\n */\nfunction WorkflowNewRedirect() {\n const path = useMemo(() => newWorkflowPath(), []);\n return <Navigate to={path} replace state={CREATE_WORKFLOW_STATE} />;\n}\n\n/**\n * Bridge component: resolves a BigConsole workflow ID to its externalWorkflowId\n * and navigates to the SDK's visual builder route.\n *\n * Route: /workflows/:workflowId/edit\n * Redirects to: /workflows/workflow/{workflowKey}/v1\n */\nconst WorkflowEditBridge = memo(function WorkflowEditBridge() {\n const { workflowId } = useParams<{ workflowId: string }>();\n const navigate = useAppNavigate();\n const { fetchWorkflow } = useWorkflowOperations({ skipFetch: true });\n const [error, setError] = useState<string | null>(null);\n const retryCount = useRef(0);\n\n useEffect(() => {\n if (!workflowId) {\n setError('No workflow ID provided');\n return;\n }\n\n // Reset retry budget and error when workflowId changes so a\n // previous failed attempt doesn't consume the new workflow's retry.\n retryCount.current = 0;\n setError(null);\n let cancelled = false;\n\n const handleResult = (workflow: Awaited<ReturnType<typeof fetchWorkflow>>) => {\n if (cancelled) return;\n\n if (workflow?.key) {\n // Navigate to the SDK builder route using the workflow key (e.g. \"github_user_profile\")\n // and default version \"v1\". The FluidGrids SDK fetches the definition by workflowKey.\n // Replace history so the bridge doesn't trap the back button.\n navigate(`/workflows/workflow/${workflow.key}/v1`, { replace: true });\n } else if (workflow) {\n // Workflow exists but has no key — open SDK builder in create mode\n navigate(`/workflows/builder`, { replace: true });\n } else if (retryCount.current < 1) {\n // On full-page loads the auth/workspace context may not be bootstrapped yet,\n // causing a false null. Retry once after a short delay (same pattern as WorkflowViewPage).\n retryCount.current += 1;\n setTimeout(() => {\n if (!cancelled) {\n fetchWorkflow(workflowId)\n .then(handleResult)\n .catch((err) => {\n if (!cancelled) setError(err?.message ?? 'Failed to load workflow');\n });\n }\n }, BOOTSTRAP_RETRY_DELAY_MS);\n } else {\n setError('Workflow not found');\n }\n };\n\n fetchWorkflow(workflowId)\n .then(handleResult)\n .catch((err) => {\n if (!cancelled) setError(err?.message ?? 'Failed to load workflow');\n });\n\n return () => {\n cancelled = true;\n };\n }, [workflowId, fetchWorkflow, navigate]);\n\n if (error) {\n return (\n <div className=\"p-6 flex flex-col items-center justify-center min-h-[400px] text-center gap-4\">\n <p className=\"text-sm text-text-secondary\">{error}</p>\n <button\n type=\"button\"\n onClick={() => navigate('/workflows')}\n className=\"px-4 py-2 text-sm font-medium text-text-primary bg-bg-sunken hover:bg-border-default rounded-md transition-colors\"\n >\n Back to Workflows\n </button>\n </div>\n );\n }\n\n return (\n <div className=\"flex items-center justify-center min-h-[400px]\">\n <Spinner className=\"h-8 w-8\" />\n </div>\n );\n});\n\n/**\n * Matches a canonical v4-style UUID. BigConsole workflow RECORD ids are UUIDs;\n * workflow KEYS are human slugs (e.g. \"users_analytics\"). New-workflow URLs also\n * use a fresh `crypto.randomUUID()` as the builder key. We only attempt record\n * resolution for UUID-shaped `:id`s — slugs are always real keys and skip the\n * lookup entirely (no extra round-trip, no spinner flash).\n */\nconst UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\n\n/** Minimal shape of the GetWorkflow query — the resolver only needs the key. */\ntype WorkflowKeyLookup = { workflow: { key: string | null } | null };\n\n/**\n * Guards the SDK visual builder route.\n *\n * The SDK builder loads its definition from workflow-svc using the URL `:id` as\n * the `workflowKey`. That only works when `:id` is the workflow KEY. When a\n * BigConsole workflow RECORD id (a UUID) reaches the builder — via the SDK\n * card's `navigate(\"../workflow/\" + workflow.workflow_key + ...)`, a bookmarked\n * record-id URL, etc. — no definition matches that key, so the canvas is empty\n * AND the SDK silently creates a phantom 0-node definition keyed by the UUID.\n *\n * This resolver closes that gap centrally (the same id→key resolution the\n * `/workflows/:workflowId/edit` `WorkflowEditBridge` does, but applied to the\n * builder route itself so EVERY entry point is covered):\n * - `:id` is a slug → it's already a key → render the builder as-is.\n * - `:id` is a UUID that maps to a BigConsole record with a different key →\n * redirect to `/workflows/workflow/<key>/<version>`.\n * - `:id` is a UUID that is NOT a record → still goes through\n * `WorkflowOpenGuard`: it opens in create mode only for an explicit \"new\n * workflow\" navigation (`NEW_WORKFLOW_NAV`); a bare link to an unknown id\n * shows a not-found state and creates nothing (BOFF-8060 F2).\n * - A slug key is checked by the same guard before the builder mounts.\n */\nconst WorkflowBuilderResolver = memo(function WorkflowBuilderResolver() {\n const { id, version } = useParams<{ id: string; version: string }>();\n const navigate = useAppNavigate();\n const client = useApolloClient();\n // Slugs (real keys) render the builder immediately (derived below); only\n // UUID-shaped ids need a record lookup first.\n const isUuid = !!id && UUID_RE.test(id);\n // A UUID is only safe to open in the SDK builder once the lookup POSITIVELY\n // confirms it is not a BigConsole record (a clean not-found — e.g. a fresh\n // new-workflow id). Both verdicts are keyed by the id they describe so that\n // navigating between workflows re-resolves instead of reusing a stale answer.\n const [confirmedAbsentId, setConfirmedAbsentId] = useState<string | null>(null);\n const [failedId, setFailedId] = useState<string | null>(null);\n // Bumped by the \"Try again\" button to re-run the lookup effect after a failure.\n const [retryNonce, setRetryNonce] = useState(0);\n const retryCount = useRef(0);\n\n useEffect(() => {\n if (!id || !isUuid) return;\n\n retryCount.current = 0;\n let cancelled = false;\n const targetVersion = version ?? 'v1';\n\n const attempt = () => {\n // Query directly (not via fetchWorkflow, which swallows Apollo errors and\n // returns null) so we can tell a genuine \"no such record\" apart from a\n // transient lookup failure. Treating a failure as not-found would re-open\n // the builder with the record id and recreate a phantom 0-node definition.\n client\n .query<WorkflowKeyLookup>({\n query: GetWorkflowDocument,\n variables: { id },\n fetchPolicy: 'network-only',\n })\n .then((result) => {\n if (cancelled) return;\n const record = result.data?.workflow;\n if (record) {\n // The UUID IS a BigConsole record.\n if (record.key && record.key !== id) {\n // Open the builder under its real key (where the definition + nodes\n // live). encodeURIComponent guards against URL-unsafe key chars.\n // Replace history so the resolver doesn't trap the back button.\n navigate(`/workflows/workflow/${encodeURIComponent(record.key)}/${targetVersion}`, {\n replace: true,\n });\n } else {\n // Record exists but has no usable key — open a blank builder rather\n // than reusing the record UUID as the key (which would phantom).\n navigate('/workflows/builder', { replace: true });\n }\n } else {\n // Query succeeded with no record → a genuine new-workflow id.\n setConfirmedAbsentId(id);\n }\n })\n .catch(() => {\n if (cancelled) return;\n if (retryCount.current < 1) {\n // On a cold full-page load the auth/workspace context may not be\n // bootstrapped yet. Retry once before giving up.\n retryCount.current += 1;\n setTimeout(() => {\n if (!cancelled) attempt();\n }, BOOTSTRAP_RETRY_DELAY_MS);\n } else {\n // Lookup failed — do NOT assume create mode (the id may be a record);\n // surface a retry instead of risking a phantom definition.\n setFailedId(id);\n }\n });\n };\n\n attempt();\n\n return () => {\n cancelled = true;\n };\n }, [id, isUuid, version, client, navigate, retryNonce]);\n\n // Slug keys, and UUIDs confirmed not to be records, reach the builder ONLY\n // through the open guard: the SDK builder creates a definition for an unknown\n // key on mount, so a key must be proven to exist (or the navigation must be\n // an explicit \"new workflow\") before it mounts. Never create on open.\n if (!isUuid || confirmedAbsentId === id) {\n return (\n <WorkflowOpenGuard workflowKey={id ?? ''}>\n <SDKWorkflowBuilderPage />\n </WorkflowOpenGuard>\n );\n }\n\n // A lookup that ultimately failed: surface a retry rather than silently\n // opening the builder with what may be a record id.\n if (failedId === id) {\n return (\n <div className=\"p-6 flex flex-col items-center justify-center min-h-[400px] text-center gap-4\">\n <p className=\"text-sm text-text-secondary\">Couldn't load this workflow. Please try again.</p>\n <div className=\"flex items-center gap-2\">\n <button\n type=\"button\"\n onClick={() => {\n setFailedId(null);\n setRetryNonce((n) => n + 1);\n }}\n className=\"px-4 py-2 text-sm font-medium text-action-primary-fg bg-action-primary-bg hover:bg-action-primary-bgHover rounded-md transition-colors\"\n >\n Try again\n </button>\n <button\n type=\"button\"\n onClick={() => navigate('/workflows')}\n className=\"px-4 py-2 text-sm font-medium text-text-primary bg-bg-sunken hover:bg-border-default rounded-md transition-colors\"\n >\n Back to Workflows\n </button>\n </div>\n </div>\n );\n }\n\n return (\n <div className=\"flex items-center justify-center min-h-[400px]\">\n <Spinner className=\"h-8 w-8\" />\n </div>\n );\n});\n\nexport function BigConsoleRoutes(props: BigConsoleRootProps) {\n if (props.routePage === 'workflow-feeds')\n return (\n <Suspense fallback={<PageLoader />}>\n <WorkflowsPage />\n </Suspense>\n );\n if (props.routePage === 'workflow-detail')\n return (\n <Suspense fallback={<PageLoader />}>\n <WorkflowViewPage />\n </Suspense>\n );\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route path=\"/\" element={<OverviewPage />} />\n <Route path=\"/dashboards\" element={<DashboardsPage />} />\n <Route path=\"/dashboards/:dashboardId\" element={<DashboardViewPage />} />\n <Route path=\"/dashboards/:dashboardId/builder\" element={<DashboardBuilderPage />} />\n <Route path=\"/datasources\" element={<DataSourcesPage />} />\n <Route path=\"/insights\" element={<InsightsPage />} />\n <Route path=\"/settings\" element={<SettingsPage />} />\n <Route path=\"/widgets/demo\" element={<WidgetDemoPage />} />\n {/* DataSink Routes */}\n <Route path=\"/datasinks\" element={<DataSinksPage />} />\n <Route path=\"/datasinks/new\" element={<DataSinkBuilderPage />} />\n <Route path=\"/datasinks/:dataSinkId\" element={<DataSinkViewPage />} />\n <Route path=\"/datasinks/:dataSinkId/edit\" element={<DataSinkBuilderPage />} />\n <Route path=\"/datasinks/:dataSinkId/alerts\" element={<DataSinkAlertsPage />} />\n {/* Parser Routes */}\n <Route path=\"/parsers\" element={<DataParsersPage />} />\n <Route path=\"/parsers/new\" element={<ParserBuilderPage />} />\n <Route path=\"/parsers/:parserId\" element={<ParserViewPage />} />\n <Route path=\"/parsers/:parserId/edit\" element={<ParserBuilderPage />} />\n {/* Dashboard-scoped Parser Routes */}\n <Route path=\"/dashboards/:consoleId/parsers\" element={<DataParsersPage />} />\n <Route path=\"/dashboards/:consoleId/parsers/new\" element={<ParserBuilderPage />} />\n <Route path=\"/dashboards/:consoleId/parsers/:parserId\" element={<ParserViewPage />} />\n <Route path=\"/dashboards/:consoleId/parsers/:parserId/edit\" element={<ParserBuilderPage />} />\n {/* Workflow Routes — list/view use BigConsole-native pages (query bigconsole-svc).\n All static routes are grouped before the dynamic :workflowId catch-all.\n React Router v6 prioritizes static segments regardless of declaration order,\n but keeping them above the param routes makes intent unambiguous for maintainers. */}\n <Route path=\"/workflows\" element={<WorkflowsPage />} />\n <Route path=\"/workflows/feeds\" element={<WorkflowsPage />} />\n <Route path=\"/workflows/details/:workflowId\" element={<WorkflowViewPage />} />\n <Route path=\"/workflows/list\" element={<WorkflowsPage />} />\n {/* New workflow — redirect to UUID-based URL (matches FluidGrids pattern) */}\n <Route path=\"/workflows/new\" element={<WorkflowNewRedirect />} />\n {/* SDK visual workflow builder — design existing workflows */}\n <Route path=\"/workflows/builder\" element={<SDKWorkflowBuilderPage />} />\n {/* All parameterised builder routes go through WorkflowBuilderResolver so a\n record-id `:id` is resolved to its workflow key first (slugs/new-workflow\n UUIDs pass straight through); otherwise the SDK opens an empty canvas and\n creates a phantom 0-node definition keyed by the record id. */}\n <Route path=\"/workflows/builder/:id/:version\" element={<WorkflowBuilderResolver />} />\n <Route path=\"/workflows/workflow/:id/:version\" element={<WorkflowBuilderResolver />} />\n {/* SDK sub-pages (runs, history, templates, nodes, settings) */}\n <Route path=\"/workflows/runs\" element={<ExecutionsListPage />} />\n <Route path=\"/workflows/runs/:runId\" element={<ExecutionDetailPage />} />\n <Route path=\"/workflows/history\" element={<HistoryPage />} />\n <Route path=\"/workflows/templates\" element={<TemplatesPage />} />\n <Route path=\"/workflows/nodes\" element={<NodesPage />} />\n <Route path=\"/workflows/settings\" element={<WorkflowSettingsPage />} />\n {/* Dynamic routes — :workflowId catch-all AFTER all static segments */}\n <Route path=\"/workflows/:workflowId\" element={<WorkflowViewPage />} />\n <Route path=\"/workflows/:workflowId/edit\" element={<WorkflowEditBridge />} />\n {/* Support SDK's navigation pattern (without /workflows/ prefix) — also\n resolves record-id → key via WorkflowBuilderResolver. */}\n <Route path=\"/workflow/:id/:version\" element={<WorkflowBuilderResolver />} />\n {/* Redirect /list to /workflows/list (SDK uses relative navigation) */}\n <Route path=\"/list\" element={<Navigate to=\"/bigconsole/workflows/list\" replace />} />\n {/* Pipeline Routes */}\n <Route path=\"/pipelines\" element={<PipelinesPage />} />\n <Route path=\"/pipelines/new\" element={<PipelineBuilderPage />} />\n <Route path=\"/pipelines/:pipelineId\" element={<PipelineViewPage />} />\n <Route path=\"/pipelines/:pipelineId/edit\" element={<PipelineBuilderPage />} />\n </Routes>\n </Suspense>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAwBA,IAAM,IAAe,QAAW,OAAO,2BAAwB,EACzD,IAAiB,QAAW,OAAO,6BAA0B,EAC7D,IAAoB,QAAW,OAAO,gCAA6B,EACnE,IAAuB,QAAW,OAAO,mCAAgC,EACzE,IAAkB,QAAW,OAAO,8BAA2B,EAC/D,IAAe,QAAW,OAAO,2BAAwB,EACzD,IAAe,QAAW,OAAO,2BAAwB,EACzD,IAAiB,QAAW,OAAO,6BAA0B,EAG7D,IAAgB,QAAW,OAAO,4BAAyB,MAAM,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC,EACvG,IAAmB,QAAW,OAAO,+BAA4B,MAAM,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC,EAEhH,IAAgB,QAAW,OAAO,4BAAyB,EAC3D,IAAmB,QAAW,OAAO,+BAA4B,EACjE,IAAqB,QAAW,OAAO,iCAA8B,EACrE,IAAsB,QAAW,OAAO,kCAA+B,EAEvE,IAAkB,QAAW,OAAO,8BAA2B,EAC/D,IAAiB,QAAW,OAAO,6BAA0B,EAC7D,IAAoB,QAAW,OAAO,gCAA6B,EAEnE,IAAgB,QAAW,OAAO,4BAAyB,EAC3D,IAAmB,QAAW,OAAO,+BAA4B,EACjE,IAAsB,QAAW,OAAO,kCAA+B;AAG7E,SAAS,IAAa;AACpB,QACE,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD,EAAS,WAAU,WAAY,CAAA;EAC3B,CAAA;;AA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