@burdenoff/microfe-workflows 2026.1123.1 → 2026.1124.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/WorkflowsRoot.js +74 -73
- package/dist/providers/sessionKey.d.ts +15 -0
- package/dist/providers/sessionKey.js +10 -0
- package/package.json +1 -1
package/dist/WorkflowsRoot.js
CHANGED
|
@@ -1,153 +1,154 @@
|
|
|
1
1
|
import { WorkflowsProvider as e } from "./providers/WorkflowsProvider.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { workflowsSessionKey as t } from "./providers/sessionKey.js";
|
|
3
|
+
import { WorkflowsRoutes as n } from "./WorkflowsRoutes.js";
|
|
4
|
+
import { useWorkflowsTranslation as r } from "./i18n.js";
|
|
5
|
+
import { useEffect as i } from "react";
|
|
6
|
+
import { ErrorBoundary as a } from "@burdenoff/fe-libs/shared/components";
|
|
7
|
+
import { AuroraBackground as o, Button as s, IllustratedEmptyState as c } from "@burdenoff/fe-libs/ui";
|
|
8
|
+
import { BarChart3 as l, Boxes as u, Database as d, FileCode2 as f, History as p, LayoutDashboard as m, Network as h, PlayCircle as g, RefreshCw as _, Server as v, Settings as y, Sparkles as b, Table2 as x, Variable as S, Workflow as C } from "lucide-react";
|
|
9
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
9
10
|
// src/WorkflowsRoot.tsx
|
|
10
|
-
function
|
|
11
|
-
let { basePath:
|
|
12
|
-
return
|
|
13
|
-
if (!
|
|
11
|
+
function E(E) {
|
|
12
|
+
let { basePath: D = "/", registerNavItems: O, registerFooterItems: k } = E, A = r();
|
|
13
|
+
return i(() => {
|
|
14
|
+
if (!O) return;
|
|
14
15
|
let e = (e, t) => `${e.endsWith("/") ? e.slice(0, -1) : e}/${t}`, t = [
|
|
15
16
|
{
|
|
16
17
|
id: "workflows-list",
|
|
17
|
-
label:
|
|
18
|
-
path: e(
|
|
19
|
-
icon: /* @__PURE__ */ C
|
|
18
|
+
label: A("workflows.nav.myWorkflows", "My Workflows"),
|
|
19
|
+
path: e(D, "list"),
|
|
20
|
+
icon: /* @__PURE__ */ w(C, { size: 18 }),
|
|
20
21
|
order: 2
|
|
21
22
|
},
|
|
22
23
|
{
|
|
23
24
|
id: "workflows-ai-studio",
|
|
24
|
-
label:
|
|
25
|
-
path: e(
|
|
26
|
-
icon: /* @__PURE__ */
|
|
25
|
+
label: A("workflows.nav.aiStudio", "AI Studio"),
|
|
26
|
+
path: e(D, "ai-studio"),
|
|
27
|
+
icon: /* @__PURE__ */ w(b, { size: 18 }),
|
|
27
28
|
order: 2.5
|
|
28
29
|
},
|
|
29
30
|
{
|
|
30
31
|
id: "workflows-builder",
|
|
31
|
-
label:
|
|
32
|
-
path: e(
|
|
33
|
-
icon: /* @__PURE__ */
|
|
32
|
+
label: A("workflows.nav.builder", "Builder"),
|
|
33
|
+
path: e(D, "new"),
|
|
34
|
+
icon: /* @__PURE__ */ w(u, { size: 18 }),
|
|
34
35
|
order: 3
|
|
35
36
|
},
|
|
36
37
|
{
|
|
37
38
|
id: "workflows-runs",
|
|
38
|
-
label:
|
|
39
|
-
path: e(
|
|
40
|
-
icon: /* @__PURE__ */
|
|
39
|
+
label: A("workflows.nav.runs", "Runs"),
|
|
40
|
+
path: e(D, "runs"),
|
|
41
|
+
icon: /* @__PURE__ */ w(g, { size: 18 }),
|
|
41
42
|
order: 4
|
|
42
43
|
},
|
|
43
44
|
{
|
|
44
45
|
id: "workflows-insights",
|
|
45
|
-
label:
|
|
46
|
-
path: e(
|
|
47
|
-
icon: /* @__PURE__ */
|
|
46
|
+
label: A("workflows.nav.insights", "Insights"),
|
|
47
|
+
path: e(D, "insights"),
|
|
48
|
+
icon: /* @__PURE__ */ w(l, { size: 18 }),
|
|
48
49
|
order: 5
|
|
49
50
|
},
|
|
50
51
|
{
|
|
51
52
|
id: "workflows-data-sinks",
|
|
52
|
-
label:
|
|
53
|
-
path: e(
|
|
54
|
-
icon: /* @__PURE__ */
|
|
53
|
+
label: A("workflows.nav.dataSinks", "DataSinks"),
|
|
54
|
+
path: e(D, "data-sinks"),
|
|
55
|
+
icon: /* @__PURE__ */ w(d, { size: 18 }),
|
|
55
56
|
order: 6
|
|
56
57
|
},
|
|
57
58
|
{
|
|
58
59
|
id: "workflows-data-tables",
|
|
59
|
-
label:
|
|
60
|
-
path: e(
|
|
61
|
-
icon: /* @__PURE__ */
|
|
60
|
+
label: A("workflows.nav.dataTables", "Data Tables"),
|
|
61
|
+
path: e(D, "data-tables"),
|
|
62
|
+
icon: /* @__PURE__ */ w(x, { size: 18 }),
|
|
62
63
|
order: 7
|
|
63
64
|
},
|
|
64
65
|
{
|
|
65
66
|
id: "workflows-history",
|
|
66
|
-
label:
|
|
67
|
-
path: e(
|
|
68
|
-
icon: /* @__PURE__ */
|
|
67
|
+
label: A("workflows.nav.history", "History"),
|
|
68
|
+
path: e(D, "history"),
|
|
69
|
+
icon: /* @__PURE__ */ w(p, { size: 18 }),
|
|
69
70
|
order: 7
|
|
70
71
|
},
|
|
71
72
|
{
|
|
72
73
|
id: "workflows-templates",
|
|
73
|
-
label:
|
|
74
|
-
path: e(
|
|
75
|
-
icon: /* @__PURE__ */
|
|
74
|
+
label: A("workflows.nav.templates", "Templates"),
|
|
75
|
+
path: e(D, "templates"),
|
|
76
|
+
icon: /* @__PURE__ */ w(m, { size: 18 }),
|
|
76
77
|
order: 8
|
|
77
78
|
},
|
|
78
79
|
{
|
|
79
80
|
id: "workflows-nodes",
|
|
80
|
-
label:
|
|
81
|
-
path: e(
|
|
82
|
-
icon: /* @__PURE__ */
|
|
81
|
+
label: A("workflows.nav.nodes", "Nodes"),
|
|
82
|
+
path: e(D, "nodes"),
|
|
83
|
+
icon: /* @__PURE__ */ w(h, { size: 18 }),
|
|
83
84
|
order: 9
|
|
84
85
|
},
|
|
85
86
|
{
|
|
86
87
|
id: "workflows-variables",
|
|
87
|
-
label:
|
|
88
|
-
path: e(
|
|
89
|
-
icon: /* @__PURE__ */
|
|
88
|
+
label: A("workflows.nav.variables", "Variables"),
|
|
89
|
+
path: e(D, "variables"),
|
|
90
|
+
icon: /* @__PURE__ */ w(S, { size: 18 }),
|
|
90
91
|
order: 10
|
|
91
92
|
},
|
|
92
93
|
{
|
|
93
94
|
id: "workflows-runners",
|
|
94
|
-
label:
|
|
95
|
-
path: e(
|
|
96
|
-
icon: /* @__PURE__ */
|
|
95
|
+
label: A("workflows.nav.runners", "Runners"),
|
|
96
|
+
path: e(D, "runners"),
|
|
97
|
+
icon: /* @__PURE__ */ w(v, { size: 18 }),
|
|
97
98
|
order: 11
|
|
98
99
|
},
|
|
99
100
|
{
|
|
100
101
|
id: "workflows-settings",
|
|
101
|
-
label:
|
|
102
|
-
path: e(
|
|
103
|
-
icon: /* @__PURE__ */
|
|
102
|
+
label: A("workflows.nav.settings", "Settings"),
|
|
103
|
+
path: e(D, "settings"),
|
|
104
|
+
icon: /* @__PURE__ */ w(y, { size: 18 }),
|
|
104
105
|
order: 12
|
|
105
106
|
}
|
|
106
107
|
], n = [{
|
|
107
108
|
id: "workflows",
|
|
108
|
-
label:
|
|
109
|
-
path:
|
|
110
|
-
icon: /* @__PURE__ */
|
|
109
|
+
label: A("workflows.nav.title", "Workflows"),
|
|
110
|
+
path: D,
|
|
111
|
+
icon: /* @__PURE__ */ w(f, { size: 20 }),
|
|
111
112
|
order: 200,
|
|
112
113
|
group: "workflows",
|
|
113
114
|
children: t
|
|
114
115
|
}];
|
|
115
|
-
return
|
|
116
|
+
return O(n);
|
|
116
117
|
}, [
|
|
118
|
+
O,
|
|
117
119
|
D,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
if (!O) return;
|
|
120
|
+
A
|
|
121
|
+
]), i(() => {
|
|
122
|
+
if (!k) return;
|
|
122
123
|
let e = [{
|
|
123
124
|
id: "workflows-status",
|
|
124
|
-
label:
|
|
125
|
+
label: A("workflows.footer.status", "Workflows Ready"),
|
|
125
126
|
type: "status",
|
|
126
127
|
order: 10,
|
|
127
128
|
section: "left"
|
|
128
129
|
}];
|
|
129
|
-
return
|
|
130
|
-
}, [
|
|
131
|
-
fallback: /* @__PURE__ */
|
|
130
|
+
return k(e);
|
|
131
|
+
}, [k, A]), /* @__PURE__ */ w(a, {
|
|
132
|
+
fallback: /* @__PURE__ */ T("div", {
|
|
132
133
|
className: "relative flex min-h-[60vh] w-full items-center justify-center overflow-hidden px-4 py-10",
|
|
133
|
-
children: [/* @__PURE__ */
|
|
134
|
+
children: [/* @__PURE__ */ w(o, { intensity: "subtle" }), /* @__PURE__ */ w(c, {
|
|
134
135
|
illustration: "empty-generic",
|
|
135
|
-
title:
|
|
136
|
-
description:
|
|
137
|
-
action: /* @__PURE__ */
|
|
136
|
+
title: A("workflows.error.title", "Workflows hit a snag"),
|
|
137
|
+
description: A("workflows.error.loadFailed", "Something went wrong loading this module. Please refresh the page."),
|
|
138
|
+
action: /* @__PURE__ */ T(s, {
|
|
138
139
|
onClick: () => window.location.reload(),
|
|
139
|
-
children: [/* @__PURE__ */
|
|
140
|
+
children: [/* @__PURE__ */ w(_, {
|
|
140
141
|
className: "size-4",
|
|
141
142
|
"aria-hidden": "true"
|
|
142
|
-
}),
|
|
143
|
+
}), A("workflows.error.refresh", "Refresh page")]
|
|
143
144
|
}),
|
|
144
145
|
kind: "error"
|
|
145
146
|
})]
|
|
146
147
|
}),
|
|
147
|
-
children: /* @__PURE__ */
|
|
148
|
-
...
|
|
149
|
-
children: /* @__PURE__ */
|
|
150
|
-
},
|
|
148
|
+
children: /* @__PURE__ */ w(e, {
|
|
149
|
+
...E,
|
|
150
|
+
children: /* @__PURE__ */ w(n, {})
|
|
151
|
+
}, t(E))
|
|
151
152
|
});
|
|
152
153
|
}
|
|
153
|
-
export {
|
|
154
|
+
export { E as WorkflowsRoot };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WorkflowsRootProps } from '../WorkflowsRoot';
|
|
2
|
+
/**
|
|
3
|
+
* The identity a provider session belongs to: the gateway, workspace, product
|
|
4
|
+
* and signed-in user. A change of any of them remounts the provider, which
|
|
5
|
+
* drops every page's in-memory state (open forms, run filters).
|
|
6
|
+
*
|
|
7
|
+
* The tenant is deliberately not part of it (BOFF-15004). A workspace belongs
|
|
8
|
+
* to exactly one tenant, so a real tenant switch always changes `workspaceId`
|
|
9
|
+
* too. The tenant prop on its own does change while the host resolves it: on
|
|
10
|
+
* a deep link the FluidGrids shell first passes a placeholder and then the
|
|
11
|
+
* tenant's id once the active context loads. Keying on it remounted the whole
|
|
12
|
+
* module a moment after the first render, and anything typed by then was lost.
|
|
13
|
+
* The provider applies a new `tenantId` to the SDK config without a remount.
|
|
14
|
+
*/
|
|
15
|
+
export declare function workflowsSessionKey(props: Pick<WorkflowsRootProps, 'apiGatewayUrl' | 'workspaceId' | 'productId' | 'currentUser'>): string;
|
package/package.json
CHANGED