@burdenoff/microfe-workflows 2026.529.2 → 2026.609.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.
@@ -1,99 +1,97 @@
1
1
  import { useWorkflowsTranslation as e } from "./i18n.js";
2
2
  import { WorkflowsProvider as t } from "./providers/WorkflowsProvider.js";
3
3
  import { WorkflowsRoutes as n } from "./WorkflowsRoutes.js";
4
- import { useEffect as r, useMemo as i } from "react";
5
- import { ErrorBoundary as a } from "@burdenoff/fe-libs/shared/components";
6
- import { useFeatureFlags as o } from "@burdenoff/fe-libs/shared/feature-flags";
7
- import { jsx as s } from "react/jsx-runtime";
8
- import { Boxes as c, FileCode2 as l, History as u, LayoutDashboard as d, Network as f, PlayCircle as p, Settings as m, Workflow as h } from "lucide-react";
4
+ import { useEffect as r } from "react";
5
+ import { ErrorBoundary as i } from "@burdenoff/fe-libs/shared/components";
6
+ import { jsx as a } from "react/jsx-runtime";
7
+ import { Boxes as o, FileCode2 as s, History as c, LayoutDashboard as l, Network as u, PlayCircle as d, Settings as f, Workflow as p } from "lucide-react";
9
8
  //#region src/WorkflowsRoot.tsx
10
- function g(g) {
11
- let { basePath: _ = "/", registerNavItems: v, registerFooterItems: y } = g, { isEnabled: b, evaluations: x } = o(), S = i(() => ({ isEnabled: b }), [x, b]), C = e();
9
+ function m(m) {
10
+ let { basePath: h = "/", registerNavItems: g, registerFooterItems: _ } = m, v = e();
12
11
  return r(() => {
13
- if (!v) return;
12
+ if (!g) return;
14
13
  let e = (e, t) => `${e.endsWith("/") ? e.slice(0, -1) : e}/${t}`, t = [
15
- ...S.isEnabled("workflows.list") ? [{
14
+ {
16
15
  id: "workflows-list",
17
- label: C("workflows.nav.myWorkflows", "My Workflows"),
18
- path: e(_, "list"),
19
- icon: /* @__PURE__ */ s(h, { size: 18 }),
16
+ label: v("workflows.nav.myWorkflows", "My Workflows"),
17
+ path: e(h, "list"),
18
+ icon: /* @__PURE__ */ a(p, { size: 18 }),
20
19
  order: 2
21
- }] : [],
22
- ...S.isEnabled("workflows.builder") ? [{
20
+ },
21
+ {
23
22
  id: "workflows-builder",
24
- label: C("workflows.nav.builder", "Builder"),
25
- path: e(_, "new"),
26
- icon: /* @__PURE__ */ s(c, { size: 18 }),
23
+ label: v("workflows.nav.builder", "Builder"),
24
+ path: e(h, "new"),
25
+ icon: /* @__PURE__ */ a(o, { size: 18 }),
27
26
  order: 3
28
- }] : [],
29
- ...S.isEnabled("workflows.runs") ? [{
27
+ },
28
+ {
30
29
  id: "workflows-runs",
31
- label: C("workflows.nav.runs", "Runs"),
32
- path: e(_, "runs"),
33
- icon: /* @__PURE__ */ s(p, { size: 18 }),
30
+ label: v("workflows.nav.runs", "Runs"),
31
+ path: e(h, "runs"),
32
+ icon: /* @__PURE__ */ a(d, { size: 18 }),
34
33
  order: 4
35
- }] : [],
36
- ...S.isEnabled("workflows.history") ? [{
34
+ },
35
+ {
37
36
  id: "workflows-history",
38
- label: C("workflows.nav.history", "History"),
39
- path: e(_, "history"),
40
- icon: /* @__PURE__ */ s(u, { size: 18 }),
37
+ label: v("workflows.nav.history", "History"),
38
+ path: e(h, "history"),
39
+ icon: /* @__PURE__ */ a(c, { size: 18 }),
41
40
  order: 5
42
- }] : [],
43
- ...S.isEnabled("workflows.templates") ? [{
41
+ },
42
+ {
44
43
  id: "workflows-templates",
45
- label: C("workflows.nav.templates", "Templates"),
46
- path: e(_, "templates"),
47
- icon: /* @__PURE__ */ s(d, { size: 18 }),
44
+ label: v("workflows.nav.templates", "Templates"),
45
+ path: e(h, "templates"),
46
+ icon: /* @__PURE__ */ a(l, { size: 18 }),
48
47
  order: 6
49
- }] : [],
50
- ...S.isEnabled("workflows.nodes") ? [{
48
+ },
49
+ {
51
50
  id: "workflows-nodes",
52
- label: C("workflows.nav.nodes", "Nodes"),
53
- path: e(_, "nodes"),
54
- icon: /* @__PURE__ */ s(f, { size: 18 }),
51
+ label: v("workflows.nav.nodes", "Nodes"),
52
+ path: e(h, "nodes"),
53
+ icon: /* @__PURE__ */ a(u, { size: 18 }),
55
54
  order: 7
56
- }] : [],
57
- ...S.isEnabled("workflows.settings") ? [{
55
+ },
56
+ {
58
57
  id: "workflows-settings",
59
- label: C("workflows.nav.settings", "Settings"),
60
- path: e(_, "settings"),
61
- icon: /* @__PURE__ */ s(m, { size: 18 }),
58
+ label: v("workflows.nav.settings", "Settings"),
59
+ path: e(h, "settings"),
60
+ icon: /* @__PURE__ */ a(f, { size: 18 }),
62
61
  order: 8
63
- }] : []
62
+ }
64
63
  ];
65
- return v([{
64
+ return g([{
66
65
  id: "workflows",
67
- label: C("workflows.nav.title", "Workflows"),
68
- path: _,
69
- icon: /* @__PURE__ */ s(l, { size: 20 }),
66
+ label: v("workflows.nav.title", "Workflows"),
67
+ path: h,
68
+ icon: /* @__PURE__ */ a(s, { size: 20 }),
70
69
  order: 200,
71
70
  group: "workflows",
72
71
  children: t
73
72
  }]);
74
73
  }, [
75
- v,
76
- _,
77
- S,
78
- C
74
+ g,
75
+ h,
76
+ v
79
77
  ]), r(() => {
80
- if (y) return y([{
78
+ if (_) return _([{
81
79
  id: "workflows-status",
82
- label: C("workflows.footer.status", "Workflows Ready"),
80
+ label: v("workflows.footer.status", "Workflows Ready"),
83
81
  type: "status",
84
82
  order: 10,
85
83
  section: "left"
86
84
  }]);
87
- }, [y, C]), /* @__PURE__ */ s(a, {
88
- fallback: /* @__PURE__ */ s("div", {
85
+ }, [_, v]), /* @__PURE__ */ a(i, {
86
+ fallback: /* @__PURE__ */ a("div", {
89
87
  className: "p-6 text-center text-text-secondary",
90
- children: C("workflows.error.loadFailed", "Something went wrong loading this module. Please refresh the page.")
88
+ children: v("workflows.error.loadFailed", "Something went wrong loading this module. Please refresh the page.")
91
89
  }),
92
- children: /* @__PURE__ */ s(t, {
93
- ...g,
94
- children: /* @__PURE__ */ s(n, {})
90
+ children: /* @__PURE__ */ a(t, {
91
+ ...m,
92
+ children: /* @__PURE__ */ a(n, {})
95
93
  })
96
94
  });
97
95
  }
98
96
  //#endregion
99
- export { g as WorkflowsRoot };
97
+ export { m as WorkflowsRoot };
@@ -1,190 +1,121 @@
1
1
  import { useWorkflowsTranslation as e } from "./i18n.js";
2
2
  import { Suspense as t } from "react";
3
- import { FeatureGate as n, useFeatureFlags as r } from "@burdenoff/fe-libs/shared/feature-flags";
4
- import { ExecutionDetailPage as i, ExecutionsListPage as a, HistoryPage as o, NodesPage as s, SettingsPage as c, TemplatesPage as l, WorkflowBuilderPage as u, WorkflowsList as d } from "@burdenoff/fluidgrids-fe-sdk";
5
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
6
- import { Navigate as m, Route as h, Routes as g, useParams as _ } from "react-router-dom";
3
+ import { ExecutionDetailPage as n, ExecutionsListPage as r, HistoryPage as i, NodesPage as a, SettingsPage as o, TemplatesPage as s, WorkflowBuilderPage as c, WorkflowsList as l } from "@burdenoff/fluidgrids-fe-sdk";
4
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
5
+ import { Navigate as f, Route as p, Routes as m, useParams as h } from "react-router-dom";
7
6
  //#region src/WorkflowsRoutes.tsx
8
- function v() {
7
+ function g() {
9
8
  let t = e();
10
- return /* @__PURE__ */ p("div", {
9
+ return /* @__PURE__ */ d("div", {
11
10
  className: "flex h-full min-h-[200px] w-full flex-col items-center justify-center gap-3 px-6 text-center",
12
11
  role: "status",
13
12
  "aria-live": "polite",
14
13
  "aria-label": t("workflows.routes.loading.ariaLabel", "Loading workflow page"),
15
- children: [/* @__PURE__ */ f("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" }), /* @__PURE__ */ f("p", {
14
+ children: [/* @__PURE__ */ u("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" }), /* @__PURE__ */ u("p", {
16
15
  className: "text-sm text-text-secondary",
17
16
  children: t("workflows.routes.loading.message", "Loading workflow page...")
18
17
  })]
19
18
  });
20
19
  }
21
- function y() {
22
- let t = e();
23
- return /* @__PURE__ */ f("div", {
24
- className: "flex h-full items-center justify-center p-8 text-center",
25
- children: /* @__PURE__ */ p("div", {
26
- className: "max-w-md",
27
- children: [/* @__PURE__ */ f("h2", {
28
- className: "mb-2 text-lg font-semibold text-text-primary",
29
- children: t("workflows.routes.featureDisabled.title", "Feature not available")
30
- }), /* @__PURE__ */ f("p", {
31
- className: "text-sm text-text-secondary",
32
- children: t("workflows.routes.featureDisabled.description", "This workflow feature is still in preview. Enable it under Feature Previews to access it.")
33
- })]
34
- })
35
- });
36
- }
37
- function b() {
38
- let t = e();
39
- return /* @__PURE__ */ f("div", {
40
- className: "flex h-full items-center justify-center p-8 text-center",
41
- children: /* @__PURE__ */ p("div", {
42
- className: "max-w-md",
43
- children: [/* @__PURE__ */ f("h2", {
44
- className: "mb-2 text-lg font-semibold text-text-primary",
45
- children: t("workflows.routes.empty.title", "Workflows preview is unavailable")
46
- }), /* @__PURE__ */ f("p", {
47
- className: "text-sm text-text-secondary",
48
- children: t("workflows.routes.empty.description", "No workflow preview pages are enabled for this workspace yet. Turn on a workflow preview feature to continue.")
49
- })]
50
- })
51
- });
52
- }
53
- function x(e, t, r = !1) {
54
- return /* @__PURE__ */ f(n, {
55
- flag: e,
56
- defaultValue: r,
57
- loading: /* @__PURE__ */ f(v, {}),
58
- fallback: /* @__PURE__ */ f(y, {}),
59
- children: t
60
- });
61
- }
62
- function S() {
63
- let { runId: e } = _();
64
- return /* @__PURE__ */ f(m, {
20
+ function _() {
21
+ let { runId: e } = h();
22
+ return /* @__PURE__ */ u(f, {
65
23
  to: `../runs/${e}`,
66
24
  replace: !0
67
25
  });
68
26
  }
69
- function C() {
70
- let { isEnabled: e, isLoading: n } = r(), _ = [
71
- {
72
- flag: "workflows.list",
73
- path: "list"
74
- },
75
- {
76
- flag: "workflows.builder",
77
- path: "new"
78
- },
79
- {
80
- flag: "workflows.runs",
81
- path: "runs"
82
- },
83
- {
84
- flag: "workflows.history",
85
- path: "history"
86
- },
87
- {
88
- flag: "workflows.templates",
89
- path: "templates"
90
- },
91
- {
92
- flag: "workflows.nodes",
93
- path: "nodes"
94
- },
95
- {
96
- flag: "workflows.settings",
97
- path: "settings"
98
- }
99
- ].find(({ flag: t }) => e(t))?.path ?? null, y = n ? /* @__PURE__ */ f(v, {}) : _ ? /* @__PURE__ */ f(m, {
100
- to: _,
101
- replace: !0
102
- }) : /* @__PURE__ */ f(b, {});
103
- return /* @__PURE__ */ f(t, {
104
- fallback: /* @__PURE__ */ f(v, {}),
105
- children: /* @__PURE__ */ p(g, { children: [
106
- /* @__PURE__ */ f(h, {
27
+ function v() {
28
+ return /* @__PURE__ */ u(t, {
29
+ fallback: /* @__PURE__ */ u(g, {}),
30
+ children: /* @__PURE__ */ d(m, { children: [
31
+ /* @__PURE__ */ u(p, {
107
32
  index: !0,
108
- element: y
33
+ element: /* @__PURE__ */ u(f, {
34
+ to: "list",
35
+ replace: !0
36
+ })
109
37
  }),
110
- /* @__PURE__ */ f(h, {
38
+ /* @__PURE__ */ u(p, {
111
39
  path: "list",
112
- element: x("workflows.list", /* @__PURE__ */ f(d, {}))
40
+ element: /* @__PURE__ */ u(l, {})
113
41
  }),
114
- /* @__PURE__ */ f(h, {
42
+ /* @__PURE__ */ u(p, {
115
43
  path: "new",
116
- element: x("workflows.builder", /* @__PURE__ */ f(u, {}))
44
+ element: /* @__PURE__ */ u(c, {})
117
45
  }),
118
- /* @__PURE__ */ f(h, {
46
+ /* @__PURE__ */ u(p, {
119
47
  path: "workflow/:id/:version",
120
- element: x("workflows.builder", /* @__PURE__ */ f(u, {}))
48
+ element: /* @__PURE__ */ u(c, {})
121
49
  }),
122
- /* @__PURE__ */ f(h, {
50
+ /* @__PURE__ */ u(p, {
123
51
  path: "builder",
124
- element: /* @__PURE__ */ f(m, {
52
+ element: /* @__PURE__ */ u(f, {
125
53
  to: "../new",
126
54
  replace: !0
127
55
  })
128
56
  }),
129
- /* @__PURE__ */ f(h, {
57
+ /* @__PURE__ */ u(p, {
130
58
  path: "builder/:id/:version",
131
- element: x("workflows.builder", /* @__PURE__ */ f(u, {}))
59
+ element: /* @__PURE__ */ u(c, {})
132
60
  }),
133
- /* @__PURE__ */ f(h, {
61
+ /* @__PURE__ */ u(p, {
134
62
  path: "runs",
135
- element: x("workflows.runs", /* @__PURE__ */ f(a, {}))
63
+ element: /* @__PURE__ */ u(r, {})
136
64
  }),
137
- /* @__PURE__ */ f(h, {
65
+ /* @__PURE__ */ u(p, {
138
66
  path: "runs/:runId",
139
- element: x("workflows.runs", /* @__PURE__ */ f(i, {}))
67
+ element: /* @__PURE__ */ u(n, {})
140
68
  }),
141
- /* @__PURE__ */ f(h, {
69
+ /* @__PURE__ */ u(p, {
142
70
  path: "history",
143
- element: x("workflows.history", /* @__PURE__ */ f(o, {}))
71
+ element: /* @__PURE__ */ u(i, {})
144
72
  }),
145
- /* @__PURE__ */ f(h, {
73
+ /* @__PURE__ */ u(p, {
146
74
  path: "templates",
147
- element: x("workflows.templates", /* @__PURE__ */ f(l, {}))
75
+ element: /* @__PURE__ */ u(s, {})
148
76
  }),
149
- /* @__PURE__ */ f(h, {
77
+ /* @__PURE__ */ u(p, {
150
78
  path: "nodes",
151
- element: x("workflows.nodes", /* @__PURE__ */ f(s, {}))
79
+ element: /* @__PURE__ */ u(a, {})
152
80
  }),
153
- /* @__PURE__ */ f(h, {
81
+ /* @__PURE__ */ u(p, {
154
82
  path: "settings",
155
- element: x("workflows.settings", /* @__PURE__ */ f(c, {}))
83
+ element: /* @__PURE__ */ u(o, {})
156
84
  }),
157
- /* @__PURE__ */ f(h, {
85
+ /* @__PURE__ */ u(p, {
158
86
  path: "executions",
159
- element: /* @__PURE__ */ f(m, {
87
+ element: /* @__PURE__ */ u(f, {
160
88
  to: "../runs",
161
89
  replace: !0
162
90
  })
163
91
  }),
164
- /* @__PURE__ */ f(h, {
92
+ /* @__PURE__ */ u(p, {
165
93
  path: "executions/:runId",
166
- element: /* @__PURE__ */ f(S, {})
94
+ element: /* @__PURE__ */ u(_, {})
167
95
  }),
168
- /* @__PURE__ */ f(h, {
96
+ /* @__PURE__ */ u(p, {
169
97
  path: "credentials",
170
- element: /* @__PURE__ */ f(m, {
98
+ element: /* @__PURE__ */ u(f, {
171
99
  to: "/integrations/connections",
172
100
  replace: !0
173
101
  })
174
102
  }),
175
- /* @__PURE__ */ f(h, {
103
+ /* @__PURE__ */ u(p, {
176
104
  path: "oauth/callback",
177
- element: /* @__PURE__ */ f(m, {
105
+ element: /* @__PURE__ */ u(f, {
178
106
  to: "/integrations/connections",
179
107
  replace: !0
180
108
  })
181
109
  }),
182
- /* @__PURE__ */ f(h, {
110
+ /* @__PURE__ */ u(p, {
183
111
  path: "*",
184
- element: y
112
+ element: /* @__PURE__ */ u(f, {
113
+ to: "list",
114
+ replace: !0
115
+ })
185
116
  })
186
117
  ] })
187
118
  });
188
119
  }
189
120
  //#endregion
190
- export { C as WorkflowsRoutes };
121
+ export { v as WorkflowsRoutes };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-workflows",
3
- "version": "2026.529.2",
3
+ "version": "2026.609.1",
4
4
  "description": "Workflows microfrontend for Burdenoff products - thin shell over @burdenoff/fluidgrids-fe-sdk",
5
5
  "type": "module",
6
6
  "exports": {