@burdenoff/microfe-bigconsole 2026.624.2 → 2026.626.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.js +175 -118
- package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
- package/dist/bigconsole/assistant/assistantApi.js +215 -0
- package/dist/bigconsole/assistant/assistantApi.js.map +1 -0
- package/dist/bigconsole/assistant/createSandboxAssistantTransport.js +119 -0
- package/dist/bigconsole/assistant/createSandboxAssistantTransport.js.map +1 -0
- package/dist/bigconsole/assistant/index.js +2 -0
- package/dist/bigconsole/assistant/pageContext.js +51 -0
- package/dist/bigconsole/assistant/pageContext.js.map +1 -0
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +48 -48
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +52 -52
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +33 -33
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +179 -179
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +38 -38
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.js +32 -32
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js +31 -31
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +98 -98
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ExportParserDialog.js +31 -31
- package/dist/bigconsole/components/parser/ImportParserDialog.js +162 -162
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +79 -79
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +307 -307
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetConfigDialog.js +222 -222
- package/dist/bigconsole/components/widgets/WidgetConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetTypeSelector.js +23 -23
- package/dist/bigconsole/index.js +3 -0
- package/dist/bigconsole/pages/DashboardBuilderPage.js +74 -74
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +168 -189
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +266 -310
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +148 -194
- package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +252 -246
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +256 -231
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +173 -219
- package/dist/bigconsole/pages/DataSinksPage.js.map +1 -1
- package/dist/bigconsole/pages/HomePage.js +125 -141
- package/dist/bigconsole/pages/HomePage.js.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +159 -184
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +401 -393
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +220 -201
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +212 -206
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +204 -181
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +107 -150
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +184 -171
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +69 -81
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +230 -216
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +106 -149
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/generated/wspace-operations.js +87 -36
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/index.js +3 -1
- package/package.json +6 -2
|
@@ -1,239 +1,296 @@
|
|
|
1
1
|
import { useAppNavigate as e } from "./contexts/NavigationContext.js";
|
|
2
2
|
import "./contexts/index.js";
|
|
3
3
|
import t from "./pages/HomePage.js";
|
|
4
|
-
import n from "
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { GetWorkflowDocument as n } from "../generated/wspace-operations.js";
|
|
5
|
+
import r from "./hooks/useWorkflowOperations.js";
|
|
6
|
+
import { BOOTSTRAP_RETRY_DELAY_MS as i } from "./constants.js";
|
|
7
|
+
import { Suspense as a, lazy as o, memo as s, useEffect as c, useMemo as l, useRef as u, useState as d } from "react";
|
|
8
|
+
import { Navigate as f, Route as p, Routes as m, useParams as h } from "react-router-dom";
|
|
9
|
+
import { useApolloClient as g } from "@apollo/client/react";
|
|
9
10
|
import { Spinner as _ } from "@burdenoff/fe-libs/ui";
|
|
10
|
-
import {
|
|
11
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
12
|
+
import { ExecutionDetailPage as b, ExecutionsListPage as x, HistoryPage as S, NodesPage as C, SettingsPage as w, TemplatesPage as T, WorkflowBuilderPage as E } from "@burdenoff/fluidgrids-fe-sdk";
|
|
11
13
|
//#region src/bigconsole/BigConsoleRoutes.tsx
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
return /* @__PURE__ */
|
|
14
|
+
var D = o(() => import("./pages/DashboardsPage.js")), O = o(() => import("./pages/DashboardViewPage.js")), k = o(() => import("./pages/DashboardBuilderPage.js")), A = o(() => import("./pages/DataSourcesPage.js")), j = o(() => import("./pages/InsightsPage.js")), M = o(() => import("./pages/SettingsPage.js")), N = o(() => import("./pages/WidgetDemoPage.js")), P = o(() => import("./pages/WorkflowsPage.js").then((e) => ({ default: e.WorkflowsPage }))), F = o(() => import("./pages/WorkflowViewPage.js").then((e) => ({ default: e.WorkflowViewPage }))), I = o(() => import("./pages/DataSinksPage.js")), L = o(() => import("./pages/DataSinkViewPage.js")), R = o(() => import("./pages/DataSinkBuilderPage.js")), z = o(() => import("./pages/DataParsersPage.js")), B = o(() => import("./pages/ParserViewPage.js")), V = o(() => import("./pages/ParserBuilderPage.js")), H = o(() => import("./pages/PipelinesPage.js")), U = o(() => import("./pages/PipelineViewPage.js")), W = o(() => import("./pages/PipelineBuilderPage.js"));
|
|
15
|
+
function G() {
|
|
16
|
+
return /* @__PURE__ */ v("div", {
|
|
15
17
|
className: "flex items-center justify-center min-h-[400px]",
|
|
16
|
-
children: /* @__PURE__ */
|
|
18
|
+
children: /* @__PURE__ */ v(_, { className: "h-8 w-8" })
|
|
17
19
|
});
|
|
18
20
|
}
|
|
19
|
-
var
|
|
20
|
-
function
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
to:
|
|
21
|
+
var K = () => `/workflows/workflow/${crypto.randomUUID()}/v1`;
|
|
22
|
+
function q() {
|
|
23
|
+
return /* @__PURE__ */ v(f, {
|
|
24
|
+
to: l(() => K(), []),
|
|
23
25
|
replace: !0
|
|
24
26
|
});
|
|
25
27
|
}
|
|
26
|
-
var
|
|
27
|
-
let { workflowId: t } =
|
|
28
|
-
return
|
|
28
|
+
var J = s(function() {
|
|
29
|
+
let { workflowId: t } = h(), n = e(), { fetchWorkflow: a } = r({ skipFetch: !0 }), [o, s] = d(null), l = u(0);
|
|
30
|
+
return c(() => {
|
|
29
31
|
if (!t) {
|
|
30
|
-
|
|
32
|
+
s("No workflow ID provided");
|
|
31
33
|
return;
|
|
32
34
|
}
|
|
33
|
-
|
|
34
|
-
let e = !1,
|
|
35
|
-
e || (o?.key ?
|
|
36
|
-
e || a(t).then(
|
|
37
|
-
e ||
|
|
35
|
+
l.current = 0, s(null);
|
|
36
|
+
let e = !1, r = (o) => {
|
|
37
|
+
e || (o?.key ? n(`/workflows/workflow/${o.key}/v1`, { replace: !0 }) : o ? n("/workflows/builder", { replace: !0 }) : l.current < 1 ? (l.current += 1, setTimeout(() => {
|
|
38
|
+
e || a(t).then(r).catch((t) => {
|
|
39
|
+
e || s(t?.message ?? "Failed to load workflow");
|
|
38
40
|
});
|
|
39
|
-
},
|
|
41
|
+
}, i)) : s("Workflow not found"));
|
|
40
42
|
};
|
|
41
|
-
return a(t).then(
|
|
42
|
-
e ||
|
|
43
|
+
return a(t).then(r).catch((t) => {
|
|
44
|
+
e || s(t?.message ?? "Failed to load workflow");
|
|
43
45
|
}), () => {
|
|
44
46
|
e = !0;
|
|
45
47
|
};
|
|
46
48
|
}, [
|
|
47
49
|
t,
|
|
48
50
|
a,
|
|
49
|
-
|
|
50
|
-
]), o ? /* @__PURE__ */
|
|
51
|
+
n
|
|
52
|
+
]), o ? /* @__PURE__ */ y("div", {
|
|
51
53
|
className: "p-6 flex flex-col items-center justify-center min-h-[400px] text-center gap-4",
|
|
52
|
-
children: [/* @__PURE__ */
|
|
54
|
+
children: [/* @__PURE__ */ v("p", {
|
|
53
55
|
className: "text-sm text-text-secondary",
|
|
54
56
|
children: o
|
|
55
|
-
}), /* @__PURE__ */
|
|
57
|
+
}), /* @__PURE__ */ v("button", {
|
|
56
58
|
type: "button",
|
|
57
|
-
onClick: () =>
|
|
59
|
+
onClick: () => n("/workflows"),
|
|
58
60
|
className: "px-4 py-2 text-sm font-medium text-text-primary bg-bg-sunken hover:bg-border-default rounded-md transition-colors",
|
|
59
61
|
children: "Back to Workflows"
|
|
60
62
|
})]
|
|
61
|
-
}) : /* @__PURE__ */
|
|
63
|
+
}) : /* @__PURE__ */ v("div", {
|
|
64
|
+
className: "flex items-center justify-center min-h-[400px]",
|
|
65
|
+
children: /* @__PURE__ */ v(_, { className: "h-8 w-8" })
|
|
66
|
+
});
|
|
67
|
+
}), Y = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i, X = s(function() {
|
|
68
|
+
let { id: t, version: r } = h(), a = e(), o = g(), s = !!t && Y.test(t), [l, f] = d(null), [p, m] = d(null), [b, x] = d(0), S = u(0);
|
|
69
|
+
return c(() => {
|
|
70
|
+
if (!t || !s) return;
|
|
71
|
+
S.current = 0;
|
|
72
|
+
let e = !1, c = r ?? "v1", l = () => {
|
|
73
|
+
o.query({
|
|
74
|
+
query: n,
|
|
75
|
+
variables: { id: t },
|
|
76
|
+
fetchPolicy: "network-only"
|
|
77
|
+
}).then((n) => {
|
|
78
|
+
if (e) return;
|
|
79
|
+
let r = n.data?.workflow;
|
|
80
|
+
r ? r.key && r.key !== t ? a(`/workflows/workflow/${encodeURIComponent(r.key)}/${c}`, { replace: !0 }) : a("/workflows/builder", { replace: !0 }) : f(t);
|
|
81
|
+
}).catch(() => {
|
|
82
|
+
e || (S.current < 1 ? (S.current += 1, setTimeout(() => {
|
|
83
|
+
e || l();
|
|
84
|
+
}, i)) : m(t));
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
return l(), () => {
|
|
88
|
+
e = !0;
|
|
89
|
+
};
|
|
90
|
+
}, [
|
|
91
|
+
t,
|
|
92
|
+
s,
|
|
93
|
+
r,
|
|
94
|
+
o,
|
|
95
|
+
a,
|
|
96
|
+
b
|
|
97
|
+
]), !s || l === t ? /* @__PURE__ */ v(E, {}) : p === t ? /* @__PURE__ */ y("div", {
|
|
98
|
+
className: "p-6 flex flex-col items-center justify-center min-h-[400px] text-center gap-4",
|
|
99
|
+
children: [/* @__PURE__ */ v("p", {
|
|
100
|
+
className: "text-sm text-text-secondary",
|
|
101
|
+
children: "Couldn't load this workflow. Please try again."
|
|
102
|
+
}), /* @__PURE__ */ y("div", {
|
|
103
|
+
className: "flex items-center gap-2",
|
|
104
|
+
children: [/* @__PURE__ */ v("button", {
|
|
105
|
+
type: "button",
|
|
106
|
+
onClick: () => {
|
|
107
|
+
m(null), x((e) => e + 1);
|
|
108
|
+
},
|
|
109
|
+
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",
|
|
110
|
+
children: "Try again"
|
|
111
|
+
}), /* @__PURE__ */ v("button", {
|
|
112
|
+
type: "button",
|
|
113
|
+
onClick: () => a("/workflows"),
|
|
114
|
+
className: "px-4 py-2 text-sm font-medium text-text-primary bg-bg-sunken hover:bg-border-default rounded-md transition-colors",
|
|
115
|
+
children: "Back to Workflows"
|
|
116
|
+
})]
|
|
117
|
+
})]
|
|
118
|
+
}) : /* @__PURE__ */ v("div", {
|
|
62
119
|
className: "flex items-center justify-center min-h-[400px]",
|
|
63
|
-
children: /* @__PURE__ */
|
|
120
|
+
children: /* @__PURE__ */ v(_, { className: "h-8 w-8" })
|
|
64
121
|
});
|
|
65
122
|
});
|
|
66
|
-
function
|
|
67
|
-
return /* @__PURE__ */
|
|
68
|
-
fallback: /* @__PURE__ */
|
|
69
|
-
children: /* @__PURE__ */
|
|
70
|
-
/* @__PURE__ */
|
|
123
|
+
function Z(e) {
|
|
124
|
+
return /* @__PURE__ */ v(a, {
|
|
125
|
+
fallback: /* @__PURE__ */ v(G, {}),
|
|
126
|
+
children: /* @__PURE__ */ y(m, { children: [
|
|
127
|
+
/* @__PURE__ */ v(p, {
|
|
71
128
|
path: "/",
|
|
72
|
-
element: /* @__PURE__ */
|
|
129
|
+
element: /* @__PURE__ */ v(t, {})
|
|
73
130
|
}),
|
|
74
|
-
/* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ v(p, {
|
|
75
132
|
path: "/dashboards",
|
|
76
|
-
element: /* @__PURE__ */
|
|
133
|
+
element: /* @__PURE__ */ v(D, {})
|
|
77
134
|
}),
|
|
78
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ v(p, {
|
|
79
136
|
path: "/dashboards/:dashboardId",
|
|
80
|
-
element: /* @__PURE__ */
|
|
137
|
+
element: /* @__PURE__ */ v(O, {})
|
|
81
138
|
}),
|
|
82
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ v(p, {
|
|
83
140
|
path: "/dashboards/:dashboardId/builder",
|
|
84
|
-
element: /* @__PURE__ */
|
|
141
|
+
element: /* @__PURE__ */ v(k, {})
|
|
85
142
|
}),
|
|
86
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ v(p, {
|
|
87
144
|
path: "/datasources",
|
|
88
|
-
element: /* @__PURE__ */
|
|
145
|
+
element: /* @__PURE__ */ v(A, {})
|
|
89
146
|
}),
|
|
90
|
-
/* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ v(p, {
|
|
91
148
|
path: "/insights",
|
|
92
|
-
element: /* @__PURE__ */
|
|
149
|
+
element: /* @__PURE__ */ v(j, {})
|
|
93
150
|
}),
|
|
94
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ v(p, {
|
|
95
152
|
path: "/settings",
|
|
96
|
-
element: /* @__PURE__ */
|
|
153
|
+
element: /* @__PURE__ */ v(M, {})
|
|
97
154
|
}),
|
|
98
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ v(p, {
|
|
99
156
|
path: "/widgets/demo",
|
|
100
|
-
element: /* @__PURE__ */
|
|
157
|
+
element: /* @__PURE__ */ v(N, {})
|
|
101
158
|
}),
|
|
102
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ v(p, {
|
|
103
160
|
path: "/datasinks",
|
|
104
|
-
element: /* @__PURE__ */
|
|
161
|
+
element: /* @__PURE__ */ v(I, {})
|
|
105
162
|
}),
|
|
106
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ v(p, {
|
|
107
164
|
path: "/datasinks/new",
|
|
108
|
-
element: /* @__PURE__ */
|
|
165
|
+
element: /* @__PURE__ */ v(R, {})
|
|
109
166
|
}),
|
|
110
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ v(p, {
|
|
111
168
|
path: "/datasinks/:dataSinkId",
|
|
112
|
-
element: /* @__PURE__ */
|
|
169
|
+
element: /* @__PURE__ */ v(L, {})
|
|
113
170
|
}),
|
|
114
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ v(p, {
|
|
115
172
|
path: "/datasinks/:dataSinkId/edit",
|
|
116
|
-
element: /* @__PURE__ */
|
|
173
|
+
element: /* @__PURE__ */ v(R, {})
|
|
117
174
|
}),
|
|
118
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ v(p, {
|
|
119
176
|
path: "/parsers",
|
|
120
|
-
element: /* @__PURE__ */
|
|
177
|
+
element: /* @__PURE__ */ v(z, {})
|
|
121
178
|
}),
|
|
122
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ v(p, {
|
|
123
180
|
path: "/parsers/new",
|
|
124
|
-
element: /* @__PURE__ */
|
|
181
|
+
element: /* @__PURE__ */ v(V, {})
|
|
125
182
|
}),
|
|
126
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ v(p, {
|
|
127
184
|
path: "/parsers/:parserId",
|
|
128
|
-
element: /* @__PURE__ */
|
|
185
|
+
element: /* @__PURE__ */ v(B, {})
|
|
129
186
|
}),
|
|
130
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ v(p, {
|
|
131
188
|
path: "/parsers/:parserId/edit",
|
|
132
|
-
element: /* @__PURE__ */
|
|
189
|
+
element: /* @__PURE__ */ v(V, {})
|
|
133
190
|
}),
|
|
134
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ v(p, {
|
|
135
192
|
path: "/dashboards/:consoleId/parsers",
|
|
136
|
-
element: /* @__PURE__ */
|
|
193
|
+
element: /* @__PURE__ */ v(z, {})
|
|
137
194
|
}),
|
|
138
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ v(p, {
|
|
139
196
|
path: "/dashboards/:consoleId/parsers/new",
|
|
140
|
-
element: /* @__PURE__ */
|
|
197
|
+
element: /* @__PURE__ */ v(V, {})
|
|
141
198
|
}),
|
|
142
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ v(p, {
|
|
143
200
|
path: "/dashboards/:consoleId/parsers/:parserId",
|
|
144
|
-
element: /* @__PURE__ */
|
|
201
|
+
element: /* @__PURE__ */ v(B, {})
|
|
145
202
|
}),
|
|
146
|
-
/* @__PURE__ */
|
|
203
|
+
/* @__PURE__ */ v(p, {
|
|
147
204
|
path: "/dashboards/:consoleId/parsers/:parserId/edit",
|
|
148
|
-
element: /* @__PURE__ */
|
|
205
|
+
element: /* @__PURE__ */ v(V, {})
|
|
149
206
|
}),
|
|
150
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ v(p, {
|
|
151
208
|
path: "/workflows",
|
|
152
|
-
element: /* @__PURE__ */
|
|
209
|
+
element: /* @__PURE__ */ v(P, {})
|
|
153
210
|
}),
|
|
154
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ v(p, {
|
|
155
212
|
path: "/workflows/list",
|
|
156
|
-
element: /* @__PURE__ */
|
|
213
|
+
element: /* @__PURE__ */ v(P, {})
|
|
157
214
|
}),
|
|
158
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ v(p, {
|
|
159
216
|
path: "/workflows/new",
|
|
160
|
-
element: /* @__PURE__ */
|
|
217
|
+
element: /* @__PURE__ */ v(q, {})
|
|
161
218
|
}),
|
|
162
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ v(p, {
|
|
163
220
|
path: "/workflows/builder",
|
|
164
|
-
element: /* @__PURE__ */
|
|
221
|
+
element: /* @__PURE__ */ v(E, {})
|
|
165
222
|
}),
|
|
166
|
-
/* @__PURE__ */
|
|
223
|
+
/* @__PURE__ */ v(p, {
|
|
167
224
|
path: "/workflows/builder/:id/:version",
|
|
168
|
-
element: /* @__PURE__ */
|
|
225
|
+
element: /* @__PURE__ */ v(X, {})
|
|
169
226
|
}),
|
|
170
|
-
/* @__PURE__ */
|
|
227
|
+
/* @__PURE__ */ v(p, {
|
|
171
228
|
path: "/workflows/workflow/:id/:version",
|
|
172
|
-
element: /* @__PURE__ */
|
|
229
|
+
element: /* @__PURE__ */ v(X, {})
|
|
173
230
|
}),
|
|
174
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ v(p, {
|
|
175
232
|
path: "/workflows/runs",
|
|
176
|
-
element: /* @__PURE__ */
|
|
233
|
+
element: /* @__PURE__ */ v(x, {})
|
|
177
234
|
}),
|
|
178
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ v(p, {
|
|
179
236
|
path: "/workflows/runs/:runId",
|
|
180
|
-
element: /* @__PURE__ */
|
|
237
|
+
element: /* @__PURE__ */ v(b, {})
|
|
181
238
|
}),
|
|
182
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ v(p, {
|
|
183
240
|
path: "/workflows/history",
|
|
184
|
-
element: /* @__PURE__ */
|
|
241
|
+
element: /* @__PURE__ */ v(S, {})
|
|
185
242
|
}),
|
|
186
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ v(p, {
|
|
187
244
|
path: "/workflows/templates",
|
|
188
|
-
element: /* @__PURE__ */
|
|
245
|
+
element: /* @__PURE__ */ v(T, {})
|
|
189
246
|
}),
|
|
190
|
-
/* @__PURE__ */
|
|
247
|
+
/* @__PURE__ */ v(p, {
|
|
191
248
|
path: "/workflows/nodes",
|
|
192
|
-
element: /* @__PURE__ */
|
|
249
|
+
element: /* @__PURE__ */ v(C, {})
|
|
193
250
|
}),
|
|
194
|
-
/* @__PURE__ */
|
|
251
|
+
/* @__PURE__ */ v(p, {
|
|
195
252
|
path: "/workflows/settings",
|
|
196
|
-
element: /* @__PURE__ */
|
|
253
|
+
element: /* @__PURE__ */ v(w, {})
|
|
197
254
|
}),
|
|
198
|
-
/* @__PURE__ */
|
|
255
|
+
/* @__PURE__ */ v(p, {
|
|
199
256
|
path: "/workflows/:workflowId",
|
|
200
|
-
element: /* @__PURE__ */
|
|
257
|
+
element: /* @__PURE__ */ v(F, {})
|
|
201
258
|
}),
|
|
202
|
-
/* @__PURE__ */
|
|
259
|
+
/* @__PURE__ */ v(p, {
|
|
203
260
|
path: "/workflows/:workflowId/edit",
|
|
204
|
-
element: /* @__PURE__ */
|
|
261
|
+
element: /* @__PURE__ */ v(J, {})
|
|
205
262
|
}),
|
|
206
|
-
/* @__PURE__ */
|
|
263
|
+
/* @__PURE__ */ v(p, {
|
|
207
264
|
path: "/workflow/:id/:version",
|
|
208
|
-
element: /* @__PURE__ */
|
|
265
|
+
element: /* @__PURE__ */ v(X, {})
|
|
209
266
|
}),
|
|
210
|
-
/* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ v(p, {
|
|
211
268
|
path: "/list",
|
|
212
|
-
element: /* @__PURE__ */
|
|
269
|
+
element: /* @__PURE__ */ v(f, {
|
|
213
270
|
to: "/bigconsole/workflows/list",
|
|
214
271
|
replace: !0
|
|
215
272
|
})
|
|
216
273
|
}),
|
|
217
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ v(p, {
|
|
218
275
|
path: "/pipelines",
|
|
219
|
-
element: /* @__PURE__ */
|
|
276
|
+
element: /* @__PURE__ */ v(H, {})
|
|
220
277
|
}),
|
|
221
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ v(p, {
|
|
222
279
|
path: "/pipelines/new",
|
|
223
|
-
element: /* @__PURE__ */
|
|
280
|
+
element: /* @__PURE__ */ v(W, {})
|
|
224
281
|
}),
|
|
225
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ v(p, {
|
|
226
283
|
path: "/pipelines/:pipelineId",
|
|
227
|
-
element: /* @__PURE__ */
|
|
284
|
+
element: /* @__PURE__ */ v(U, {})
|
|
228
285
|
}),
|
|
229
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ v(p, {
|
|
230
287
|
path: "/pipelines/:pipelineId/edit",
|
|
231
|
-
element: /* @__PURE__ */
|
|
288
|
+
element: /* @__PURE__ */ v(W, {})
|
|
232
289
|
})
|
|
233
290
|
] })
|
|
234
291
|
});
|
|
235
292
|
}
|
|
236
293
|
//#endregion
|
|
237
|
-
export {
|
|
294
|
+
export { Z as BigConsoleRoutes, K as newWorkflowPath };
|
|
238
295
|
|
|
239
296
|
//# 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-dom';\nimport { type BigConsoleRootProps } from './types';\nimport { HomePage } from './pages/HomePage';\nimport { Spinner } from '@burdenoff/fe-libs/ui';\nimport { useAppNavigate } from './contexts';\nimport { useWorkflowOperations } from './hooks/useWorkflowOperations';\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 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\nexport function BigConsoleRoutes(_props: BigConsoleRootProps) {\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route path=\"/\" element={<HomePage />} />\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/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 <Route path=\"/workflows/builder/:id/:version\" element={<SDKWorkflowBuilderPage />} />\n <Route path=\"/workflows/workflow/:id/:version\" element={<SDKWorkflowBuilderPage />} />\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) */}\n <Route path=\"/workflow/:id/:version\" element={<SDKWorkflowBuilderPage />} />\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>\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,kBAAC,GAAD;IAAO,MAAK;IAAyB,SAAS,kBAAC,GAAD,EAAoB,CAAA;IAAI,CAAA;GACtE,kBAAC,GAAD;IAAO,MAAK;IAA8B,SAAS,kBAAC,GAAD,EAAsB,CAAA;IAAI,CAAA;GAE7E,kBAAC,GAAD;IAAO,MAAK;IAAyB,SAAS,kBAAC,GAAD,EAA0B,CAAA;IAAI,CAAA;GAE5E,kBAAC,GAAD;IAAO,MAAK;IAAQ,SAAS,kBAAC,GAAD;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-dom';\nimport { type BigConsoleRootProps } from './types';\nimport { HomePage } from './pages/HomePage';\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 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 return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route path=\"/\" element={<HomePage />} />\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/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":";;;;;;;;;;;;;AAuBA,IAAM,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,6B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