@burdenoff/microfe-workspaces 2026.1123.2 → 2026.1125.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/WorkspacesRoutes.js +86 -78
- package/dist/components/loadingSystem.d.ts +64 -0
- package/dist/components/loadingSystem.js +32 -0
- package/dist/components/tags/ProjectTagsWidget.js +45 -44
- package/dist/pages/InviteAcceptancePage.js +225 -212
- package/dist/pages/MembersListPage.js +143 -141
- package/dist/pages/PendingInvitesPage.js +118 -107
- package/dist/pages/WorkspaceInvitePage.js +381 -369
- package/dist/pages/dashboard/DashboardCustomizer.js +92 -89
- package/dist/pages/dashboard/DashboardPage.js +62 -58
- package/package.json +4 -3
|
@@ -2,28 +2,30 @@ import { tWithFallback as e } from "../../utils/i18n.js";
|
|
|
2
2
|
import { DEFAULT_DASHBOARD_WIDGETS as t, DEFAULT_DASHBOARD_WIDGETS_BY_PRODUCT as n, WIDGET_DEFINITIONS as r, isWidgetAvailable as i, resolveWidgetCopy as a } from "./config.js";
|
|
3
3
|
import { nativeImpact as o } from "../../utils/nativeBridge.js";
|
|
4
4
|
import { dropPositionFromPointer as s, reorderByDropIndex as c } from "./reorder.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { SpinnerIcon as l } from "../../components/loadingSystem.js";
|
|
6
|
+
import { useCallback as u, useRef as d, useState as f } from "react";
|
|
7
|
+
import { ArrowDown as p, ArrowUp as m, GripVertical as ee, RotateCcw as h, Save as g } from "lucide-react";
|
|
8
|
+
import { Badge as _, Button as v, Separator as y, Sheet as b, SheetContent as x, SheetDescription as te, SheetFooter as ne, SheetHeader as S, SheetTitle as C, Switch as w } from "@burdenoff/fe-libs/ui";
|
|
8
9
|
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
9
10
|
import { useI18n as D } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
11
|
+
import { useLoadingSystem as O } from "@burdenoff/fe-libs/ui/loading/LoadingSystemProvider";
|
|
10
12
|
// src/pages/dashboard/DashboardCustomizer.tsx
|
|
11
|
-
function
|
|
12
|
-
let { t:
|
|
13
|
+
function k({ open: k, onOpenChange: A, widgets: j, onSave: M, isSaving: N, productId: P = "workspaces" }) {
|
|
14
|
+
let F = O(), { t: I } = D(), L = u((t, n) => e(I, t, n), [I]), [R, z] = f(j), [B, V] = f(!1), [H, U] = f(null), [W, G] = f(null), [K, q] = f(""), J = d(/* @__PURE__ */ new Map()), Y = d(null), X = d(0), [Z, re] = f({
|
|
13
15
|
open: !1,
|
|
14
|
-
widgets:
|
|
16
|
+
widgets: j
|
|
15
17
|
});
|
|
16
|
-
(
|
|
17
|
-
open:
|
|
18
|
-
widgets:
|
|
19
|
-
}),
|
|
20
|
-
let
|
|
21
|
-
|
|
18
|
+
(Z.open !== k || Z.widgets !== j) && (re({
|
|
19
|
+
open: k,
|
|
20
|
+
widgets: j
|
|
21
|
+
}), k && (z([...j]), V(!1)));
|
|
22
|
+
let ie = u((e) => {
|
|
23
|
+
z((t) => t.map((t) => t.widgetId === e ? {
|
|
22
24
|
...t,
|
|
23
25
|
enabled: !t.enabled
|
|
24
|
-
} : t)),
|
|
25
|
-
}, []),
|
|
26
|
-
|
|
26
|
+
} : t)), V(!0);
|
|
27
|
+
}, []), Q = u((e, t) => {
|
|
28
|
+
z((n) => {
|
|
27
29
|
let r = [...n].sort((e, t) => e.order - t.order), i = r.findIndex((t) => t.widgetId === e);
|
|
28
30
|
if (i < 0) return n;
|
|
29
31
|
let a = t === "up" ? i - 1 : i + 1;
|
|
@@ -36,86 +38,86 @@ function O({ open: O, onOpenChange: k, widgets: A, onSave: j, isSaving: M, produ
|
|
|
36
38
|
...r[a],
|
|
37
39
|
order: o
|
|
38
40
|
}, r;
|
|
39
|
-
}),
|
|
40
|
-
}, []),
|
|
41
|
-
let e = n[
|
|
42
|
-
|
|
43
|
-
}, [
|
|
44
|
-
t ?
|
|
45
|
-
}, []),
|
|
46
|
-
|
|
47
|
-
}, []),
|
|
48
|
-
|
|
49
|
-
let n =
|
|
41
|
+
}), V(!0);
|
|
42
|
+
}, []), ae = u(() => {
|
|
43
|
+
let e = n[P] ?? t;
|
|
44
|
+
z([...e]), V(!0);
|
|
45
|
+
}, [P]), oe = u((e) => (t) => {
|
|
46
|
+
t ? J.current.set(e, t) : J.current.delete(e);
|
|
47
|
+
}, []), se = u((e, t) => {
|
|
48
|
+
U(e), Y.current = null, cancelAnimationFrame(X.current), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e);
|
|
49
|
+
}, []), ce = u((e, t) => {
|
|
50
|
+
H && H !== e && (t.preventDefault(), t.dataTransfer.dropEffect = "move", G(e), cancelAnimationFrame(X.current), X.current = requestAnimationFrame(() => {
|
|
51
|
+
let n = J.current.get(e);
|
|
50
52
|
if (!n) return;
|
|
51
|
-
let r = s(t.clientY, n.getBoundingClientRect()), i =
|
|
52
|
-
i && i.fromId ===
|
|
53
|
-
fromId:
|
|
53
|
+
let r = s(t.clientY, n.getBoundingClientRect()), i = Y.current;
|
|
54
|
+
i && i.fromId === H && i.toId === e && i.position === r || (Y.current = {
|
|
55
|
+
fromId: H,
|
|
54
56
|
toId: e,
|
|
55
57
|
position: r
|
|
56
|
-
},
|
|
58
|
+
}, z((t) => c(t, H, e, r)), V(!0));
|
|
57
59
|
}));
|
|
58
|
-
}, [
|
|
59
|
-
t.currentTarget.contains(t.relatedTarget) ||
|
|
60
|
-
}, [
|
|
61
|
-
t.preventDefault(), t.dataTransfer && (t.dataTransfer.dropEffect = "move"), cancelAnimationFrame(
|
|
62
|
-
}, []),
|
|
63
|
-
if (cancelAnimationFrame(
|
|
64
|
-
let t = [...
|
|
65
|
-
n >= 0 &&
|
|
60
|
+
}, [H]), le = u((e, t) => {
|
|
61
|
+
t.currentTarget.contains(t.relatedTarget) || W === e && G(null);
|
|
62
|
+
}, [W]), ue = u((e, t) => {
|
|
63
|
+
t.preventDefault(), t.dataTransfer && (t.dataTransfer.dropEffect = "move"), cancelAnimationFrame(X.current), U(null), G(null);
|
|
64
|
+
}, []), de = u(() => {
|
|
65
|
+
if (cancelAnimationFrame(X.current), H) {
|
|
66
|
+
let t = [...R].sort((e, t) => e.order - t.order), n = t.findIndex((e) => e.widgetId === H), i = r[H], o = i ? a(L, i).title : H;
|
|
67
|
+
n >= 0 && q(e(I, "dashboardCustomizer.reorderAnnouncement", `${o} moved to position ${n + 1} of ${t.length}`));
|
|
66
68
|
}
|
|
67
|
-
|
|
69
|
+
U(null), G(null), Y.current = null;
|
|
68
70
|
}, [
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
]),
|
|
74
|
-
await
|
|
71
|
+
H,
|
|
72
|
+
R,
|
|
73
|
+
L,
|
|
74
|
+
I
|
|
75
|
+
]), fe = u(async () => {
|
|
76
|
+
await M(R), V(!1), A(!1);
|
|
75
77
|
}, [
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
]), $ = [...
|
|
80
|
-
return /* @__PURE__ */ T(
|
|
81
|
-
open:
|
|
82
|
-
onOpenChange:
|
|
83
|
-
children: /* @__PURE__ */ E(
|
|
78
|
+
R,
|
|
79
|
+
M,
|
|
80
|
+
A
|
|
81
|
+
]), $ = [...R].sort((e, t) => e.order - t.order);
|
|
82
|
+
return /* @__PURE__ */ T(b, {
|
|
83
|
+
open: k,
|
|
84
|
+
onOpenChange: A,
|
|
85
|
+
children: /* @__PURE__ */ E(x, {
|
|
84
86
|
className: "w-full sm:max-w-md overflow-y-auto",
|
|
85
87
|
side: "right",
|
|
86
88
|
children: [
|
|
87
|
-
/* @__PURE__ */ E(
|
|
89
|
+
/* @__PURE__ */ E(S, { children: [/* @__PURE__ */ T(C, { children: e(I, "dashboardCustomizer.title", "Customize Dashboard") }), /* @__PURE__ */ T(te, { children: e(I, "dashboardCustomizer.description", "Toggle widgets on or off and reorder them to personalize your dashboard.") })] }),
|
|
88
90
|
/* @__PURE__ */ E("div", {
|
|
89
91
|
role: "listbox",
|
|
90
|
-
"aria-label": e(
|
|
92
|
+
"aria-label": e(I, "dashboardCustomizer.listLabel", "Dashboard widgets"),
|
|
91
93
|
className: "py-4 space-y-1",
|
|
92
94
|
children: [/* @__PURE__ */ T("div", {
|
|
93
95
|
"aria-live": "assertive",
|
|
94
96
|
className: "sr-only",
|
|
95
|
-
children:
|
|
97
|
+
children: K
|
|
96
98
|
}), $.map((t, n) => {
|
|
97
99
|
let s = r[t.widgetId];
|
|
98
|
-
if (!s || !i(s,
|
|
99
|
-
let c =
|
|
100
|
+
if (!s || !i(s, P)) return null;
|
|
101
|
+
let c = H === t.widgetId, l = W === t.widgetId && H !== null, u = a(L, s).title;
|
|
100
102
|
return /* @__PURE__ */ E("div", {
|
|
101
|
-
ref:
|
|
103
|
+
ref: oe(t.widgetId),
|
|
102
104
|
role: "option",
|
|
103
|
-
"aria-roledescription": e(
|
|
105
|
+
"aria-roledescription": e(I, "dashboardCustomizer.sortableItem", "sortable item"),
|
|
104
106
|
"aria-selected": c,
|
|
105
|
-
"aria-label": e(
|
|
106
|
-
onDragOver: (e) =>
|
|
107
|
-
onDragLeave: (e) =>
|
|
108
|
-
onDrop: (e) =>
|
|
107
|
+
"aria-label": e(I, "dashboardCustomizer.widgetRow", `Widget: ${u}. Use the arrow buttons to reorder.`),
|
|
108
|
+
onDragOver: (e) => ce(t.widgetId, e),
|
|
109
|
+
onDragLeave: (e) => le(t.widgetId, e),
|
|
110
|
+
onDrop: (e) => ue(t.widgetId, e),
|
|
109
111
|
"data-widget-id": t.widgetId,
|
|
110
112
|
className: `flex items-center gap-3 p-3 rounded-lg border transition-colors ${t.enabled ? "border-border-default bg-bg-surface" : "border-transparent bg-bg-sunken/30 opacity-60"} ${c ? "opacity-50" : ""} ${l ? "ring-2 ring-border-strong border-transparent" : ""}`,
|
|
111
113
|
children: [
|
|
112
114
|
/* @__PURE__ */ T("span", {
|
|
113
115
|
draggable: !0,
|
|
114
|
-
onDragStart: (e) =>
|
|
115
|
-
onDragEnd:
|
|
116
|
-
"aria-label": e(
|
|
116
|
+
onDragStart: (e) => se(t.widgetId, e),
|
|
117
|
+
onDragEnd: de,
|
|
118
|
+
"aria-label": e(I, "dashboardCustomizer.dragHandle", `Drag handle for ${u}`),
|
|
117
119
|
className: "cursor-grab active:cursor-grabbing touch-none select-none",
|
|
118
|
-
children: /* @__PURE__ */ T(
|
|
120
|
+
children: /* @__PURE__ */ T(ee, {
|
|
119
121
|
"aria-hidden": !0,
|
|
120
122
|
className: "size-4 text-text-secondary shrink-0"
|
|
121
123
|
})
|
|
@@ -127,41 +129,41 @@ function O({ open: O, onOpenChange: k, widgets: A, onSave: j, isSaving: M, produ
|
|
|
127
129
|
children: [/* @__PURE__ */ T("span", {
|
|
128
130
|
className: "text-sm font-medium text-text-primary",
|
|
129
131
|
children: u
|
|
130
|
-
}), /* @__PURE__ */ T(
|
|
132
|
+
}), /* @__PURE__ */ T(_, {
|
|
131
133
|
variant: "outline",
|
|
132
134
|
className: "text-[10px]",
|
|
133
135
|
children: s.defaultSize
|
|
134
136
|
})]
|
|
135
137
|
}), /* @__PURE__ */ T("p", {
|
|
136
138
|
className: "text-xs text-text-secondary truncate",
|
|
137
|
-
children: a(
|
|
139
|
+
children: a(L, s).description
|
|
138
140
|
})]
|
|
139
141
|
}),
|
|
140
142
|
/* @__PURE__ */ E("div", {
|
|
141
143
|
className: "flex items-center gap-1 shrink-0",
|
|
142
144
|
children: [
|
|
143
|
-
/* @__PURE__ */ T(
|
|
145
|
+
/* @__PURE__ */ T(v, {
|
|
144
146
|
variant: "ghost",
|
|
145
147
|
size: "sm",
|
|
146
148
|
className: "size-7 p-0",
|
|
147
149
|
disabled: n === 0,
|
|
148
|
-
onClick: () =>
|
|
149
|
-
"aria-label": e(
|
|
150
|
-
children: /* @__PURE__ */ T(
|
|
150
|
+
onClick: () => Q(t.widgetId, "up"),
|
|
151
|
+
"aria-label": e(I, "dashboardCustomizer.moveUp", `Move ${u} up`),
|
|
152
|
+
children: /* @__PURE__ */ T(m, { className: "size-3" })
|
|
151
153
|
}),
|
|
152
|
-
/* @__PURE__ */ T(
|
|
154
|
+
/* @__PURE__ */ T(v, {
|
|
153
155
|
variant: "ghost",
|
|
154
156
|
size: "sm",
|
|
155
157
|
className: "size-7 p-0",
|
|
156
158
|
disabled: n === $.length - 1,
|
|
157
|
-
onClick: () =>
|
|
158
|
-
"aria-label": e(
|
|
159
|
-
children: /* @__PURE__ */ T(
|
|
159
|
+
onClick: () => Q(t.widgetId, "down"),
|
|
160
|
+
"aria-label": e(I, "dashboardCustomizer.moveDown", `Move ${u} down`),
|
|
161
|
+
children: /* @__PURE__ */ T(p, { className: "size-3" })
|
|
160
162
|
}),
|
|
161
163
|
/* @__PURE__ */ T(w, {
|
|
162
164
|
checked: t.enabled,
|
|
163
165
|
onCheckedChange: () => {
|
|
164
|
-
o("medium"),
|
|
166
|
+
o("medium"), ie(t.widgetId);
|
|
165
167
|
},
|
|
166
168
|
disabled: !s.removable,
|
|
167
169
|
className: "ml-1"
|
|
@@ -172,25 +174,26 @@ function O({ open: O, onOpenChange: k, widgets: A, onSave: j, isSaving: M, produ
|
|
|
172
174
|
}, t.widgetId);
|
|
173
175
|
})]
|
|
174
176
|
}),
|
|
175
|
-
/* @__PURE__ */ T(
|
|
176
|
-
/* @__PURE__ */ E(
|
|
177
|
+
/* @__PURE__ */ T(y, {}),
|
|
178
|
+
/* @__PURE__ */ E(ne, {
|
|
177
179
|
className: "flex-row gap-2 pt-4",
|
|
178
|
-
children: [/* @__PURE__ */ E(
|
|
180
|
+
children: [/* @__PURE__ */ E(v, {
|
|
179
181
|
variant: "outline",
|
|
180
182
|
size: "sm",
|
|
181
|
-
onClick:
|
|
183
|
+
onClick: ae,
|
|
182
184
|
className: "flex-1",
|
|
183
|
-
children: [/* @__PURE__ */ T(
|
|
184
|
-
}), /* @__PURE__ */ E(
|
|
185
|
+
children: [/* @__PURE__ */ T(h, { className: "size-3 mr-1.5" }), e(I, "dashboardCustomizer.resetToDefaults", "Reset to defaults")]
|
|
186
|
+
}), /* @__PURE__ */ E(v, {
|
|
187
|
+
busy: F && N,
|
|
185
188
|
size: "sm",
|
|
186
|
-
onClick:
|
|
187
|
-
disabled: !
|
|
189
|
+
onClick: fe,
|
|
190
|
+
disabled: !B || !F && N,
|
|
188
191
|
className: "flex-1",
|
|
189
|
-
children: [
|
|
192
|
+
children: [!F && N ? /* @__PURE__ */ T(l, { className: "size-3 mr-1.5 animate-spin" }) : /* @__PURE__ */ T(g, { className: "size-3 mr-1.5" }), e(I, "dashboardCustomizer.saveLayout", "Save layout")]
|
|
190
193
|
})]
|
|
191
194
|
})
|
|
192
195
|
]
|
|
193
196
|
})
|
|
194
197
|
});
|
|
195
198
|
}
|
|
196
|
-
export {
|
|
199
|
+
export { k as DashboardCustomizer };
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { useGlobalDashboardData as e, useProjectsDashboardData as t, useVibecontrolsDashboardData as n, useWorkspaceDashboardData as
|
|
2
|
-
import { useUpdateDashboardPreferences as
|
|
3
|
-
import { DashboardGrid as
|
|
4
|
-
import { DashboardCustomizer as
|
|
5
|
-
import { getEffectiveWidgets as
|
|
6
|
-
import { useWorkspacesPageView as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
import { useGlobalDashboardData as e, useProjectsDashboardData as t, useVibecontrolsDashboardData as n, useWorkspaceDashboardData as ee } from "./hooks/useDashboardData.js";
|
|
2
|
+
import { useUpdateDashboardPreferences as te } from "./hooks/useDashboardPreferences.js";
|
|
3
|
+
import { DashboardGrid as r } from "./DashboardGrid.js";
|
|
4
|
+
import { DashboardCustomizer as i } from "./DashboardCustomizer.js";
|
|
5
|
+
import { getEffectiveWidgets as a } from "./config.js";
|
|
6
|
+
import { useWorkspacesPageView as o } from "../../hooks/useWorkspacesPageView.js";
|
|
7
|
+
import { SpinnerIcon as s } from "../../components/loadingSystem.js";
|
|
8
|
+
import { useCallback as c, useMemo as l, useState as ne } from "react";
|
|
9
|
+
import { AlertCircle as re, Building2 as u, GitBranch as d, RefreshCw as f, Settings2 as p, Sparkles as m } from "lucide-react";
|
|
10
|
+
import { AuroraBackground as h, Button as g, GradientText as _, PagePurpose as v } from "@burdenoff/fe-libs/ui";
|
|
11
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
12
|
+
import { useI18n as S } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
13
|
+
import { useLoadingSystem as C } from "@burdenoff/fe-libs/ui/loading/LoadingSystemProvider";
|
|
12
14
|
import { PageHeader as w } from "@burdenoff/fe-libs/chrome";
|
|
13
15
|
// src/pages/dashboard/DashboardPage.tsx
|
|
14
16
|
var T = {
|
|
@@ -16,22 +18,22 @@ var T = {
|
|
|
16
18
|
noun: "Workspaces",
|
|
17
19
|
subtitle: "Your workspace overview at a glance",
|
|
18
20
|
purpose: "This is your home base — a single glance across everything that matters: your workspaces and projects, recent activity, upcoming events and live status. Use Customize to choose which cards appear and how they are arranged, and click any card to dive into the full view.",
|
|
19
|
-
Icon:
|
|
21
|
+
Icon: u
|
|
20
22
|
},
|
|
21
23
|
vibecontrols: {
|
|
22
24
|
noun: "VibeControls",
|
|
23
25
|
subtitle: "Your workspace at a glance",
|
|
24
26
|
purpose: "This is your home base for this workspace — check on recent vibes, active sessions, and your agent fleet, then jump straight into whatever needs you. Use Customize to choose which cards appear and how they are arranged.",
|
|
25
|
-
Icon:
|
|
27
|
+
Icon: m
|
|
26
28
|
},
|
|
27
29
|
fluidgrids: {
|
|
28
30
|
noun: "FluidGrids",
|
|
29
31
|
subtitle: "Your workflow automation at a glance",
|
|
30
32
|
purpose: "This is your home base — track workflow health, recent runs, and team activity, then jump straight into building or debugging. Use Customize to choose which cards appear and how they are arranged.",
|
|
31
|
-
Icon:
|
|
33
|
+
Icon: d
|
|
32
34
|
}
|
|
33
35
|
};
|
|
34
|
-
function
|
|
36
|
+
function ie(e, t, n) {
|
|
35
37
|
switch (t) {
|
|
36
38
|
case "vibecontrols": return {
|
|
37
39
|
noun: e("dashboard.titleNoun.vibecontrols", n.noun),
|
|
@@ -50,12 +52,13 @@ function E(e, t, n) {
|
|
|
50
52
|
};
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
|
-
function
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
function E({ navigate: u, authToken: d, currentUser: m, productId: E = "workspaces" }) {
|
|
56
|
+
let D = C();
|
|
57
|
+
o("workspaces.dashboard");
|
|
58
|
+
let { t: ae } = S(), O = (e, t) => {
|
|
59
|
+
let n = ae(e);
|
|
57
60
|
return n === e ? t : n;
|
|
58
|
-
}, [
|
|
61
|
+
}, [k, A] = ne(!1), j = T[E] ?? T.workspaces, M = ie(O, E, j), N = j.Icon, { data: P, isLoading: F, error: I, refetch: L } = ee(d), { data: R, isLoading: z, error: B, refetch: V } = e(d), { data: H, isLoading: U, refetch: W } = t(d), G = E === "vibecontrols", { data: K, isLoading: q, refetch: J } = n(d, G), Y = te(d), X = F || z || U || q, oe = l(() => !P && !R && !H && !K ? null : {
|
|
59
62
|
...P ?? {
|
|
60
63
|
workspaces: {
|
|
61
64
|
items: [],
|
|
@@ -94,7 +97,7 @@ function D({ navigate: f, authToken: p, currentUser: g, productId: D = "workspac
|
|
|
94
97
|
R,
|
|
95
98
|
H,
|
|
96
99
|
K
|
|
97
|
-
]), Z = R?.dashboardPreferences, Q = l(() =>
|
|
100
|
+
]), Z = R?.dashboardPreferences, Q = l(() => a(Z?.widgets ?? null, E), [Z, E]), $ = c(() => {
|
|
98
101
|
L(), V(), W(), G && J();
|
|
99
102
|
}, [
|
|
100
103
|
L,
|
|
@@ -102,93 +105,94 @@ function D({ navigate: f, authToken: p, currentUser: g, productId: D = "workspac
|
|
|
102
105
|
W,
|
|
103
106
|
J,
|
|
104
107
|
G
|
|
105
|
-
]),
|
|
108
|
+
]), se = c(async (e) => {
|
|
106
109
|
await Y.mutateAsync(e);
|
|
107
|
-
}, [Y]),
|
|
108
|
-
return /* @__PURE__ */
|
|
110
|
+
}, [Y]), ce = I || B;
|
|
111
|
+
return /* @__PURE__ */ x("div", {
|
|
109
112
|
className: "min-h-[calc(100vh-8rem)] p-4 md:p-6 bg-bg-canvas",
|
|
110
113
|
"data-tour": "main-content",
|
|
111
114
|
children: [
|
|
112
|
-
/* @__PURE__ */
|
|
115
|
+
/* @__PURE__ */ x("div", {
|
|
113
116
|
className: "relative overflow-hidden rounded-card -mx-1 px-1 pt-1",
|
|
114
|
-
children: [/* @__PURE__ */
|
|
115
|
-
icon: /* @__PURE__ */
|
|
116
|
-
title: /* @__PURE__ */
|
|
117
|
-
/* @__PURE__ */
|
|
117
|
+
children: [/* @__PURE__ */ b(h, { intensity: "subtle" }), /* @__PURE__ */ b(w, {
|
|
118
|
+
icon: /* @__PURE__ */ b(N, { className: "size-6" }),
|
|
119
|
+
title: /* @__PURE__ */ x(y, { children: [
|
|
120
|
+
/* @__PURE__ */ b(_, { children: M.noun }),
|
|
118
121
|
" ",
|
|
119
|
-
|
|
122
|
+
O("dashboard.titleSuffix", "Dashboard")
|
|
120
123
|
] }),
|
|
121
124
|
description: M.subtitle,
|
|
122
|
-
actions: /* @__PURE__ */
|
|
125
|
+
actions: /* @__PURE__ */ x("div", {
|
|
123
126
|
className: "flex flex-wrap items-center gap-2",
|
|
124
127
|
"data-tour": "quick-actions",
|
|
125
|
-
children: [/* @__PURE__ */
|
|
128
|
+
children: [/* @__PURE__ */ x(g, {
|
|
129
|
+
busy: D && X,
|
|
126
130
|
variant: "outline",
|
|
127
131
|
size: "sm",
|
|
128
132
|
onClick: $,
|
|
129
|
-
disabled: X,
|
|
133
|
+
disabled: !D && X,
|
|
130
134
|
className: "text-xs",
|
|
131
|
-
"aria-label":
|
|
132
|
-
children: [X ? /* @__PURE__ */
|
|
135
|
+
"aria-label": O("dashboard.refresh", "Refresh"),
|
|
136
|
+
children: [!D && X ? /* @__PURE__ */ b(s, { className: "size-3.5 sm:mr-1.5 animate-spin" }) : /* @__PURE__ */ b(f, { className: "size-3.5 sm:mr-1.5" }), /* @__PURE__ */ b("span", {
|
|
133
137
|
className: "hidden sm:inline",
|
|
134
|
-
children:
|
|
138
|
+
children: O("dashboard.refresh", "Refresh")
|
|
135
139
|
})]
|
|
136
|
-
}), /* @__PURE__ */
|
|
140
|
+
}), /* @__PURE__ */ x(g, {
|
|
137
141
|
variant: "outline",
|
|
138
142
|
size: "sm",
|
|
139
143
|
onClick: () => A(!0),
|
|
140
144
|
className: "text-xs",
|
|
141
|
-
"aria-label":
|
|
142
|
-
children: [/* @__PURE__ */
|
|
145
|
+
"aria-label": O("dashboard.customize", "Customize"),
|
|
146
|
+
children: [/* @__PURE__ */ b(p, { className: "size-3.5 sm:mr-1.5" }), /* @__PURE__ */ b("span", {
|
|
143
147
|
className: "hidden sm:inline",
|
|
144
|
-
children:
|
|
148
|
+
children: O("dashboard.customize", "Customize")
|
|
145
149
|
})]
|
|
146
150
|
})]
|
|
147
151
|
})
|
|
148
152
|
})]
|
|
149
153
|
}),
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
icon: /* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ b(v, {
|
|
155
|
+
icon: /* @__PURE__ */ b(N, { className: "size-4" }),
|
|
152
156
|
className: "mb-6 -mt-2",
|
|
153
157
|
children: M.purpose
|
|
154
158
|
}),
|
|
155
|
-
|
|
159
|
+
ce && /* @__PURE__ */ x("div", {
|
|
156
160
|
className: "mb-4 p-3 bg-status-error-bg/10 border border-status-error-border/20 rounded-lg flex items-center gap-2",
|
|
157
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ b(re, { className: "size-4 text-status-error-text shrink-0" }), /* @__PURE__ */ x("p", {
|
|
158
162
|
className: "text-sm text-status-error-text",
|
|
159
163
|
children: [
|
|
160
|
-
|
|
164
|
+
O("dashboard.error.partialData", "Some data may be unavailable."),
|
|
161
165
|
" ",
|
|
162
|
-
I ?
|
|
166
|
+
I ? O("dashboard.error.workspaceDown", "Workspace services may be down.") : "",
|
|
163
167
|
" ",
|
|
164
|
-
B ?
|
|
168
|
+
B ? O("dashboard.error.globalDown", "Global services may be down.") : "",
|
|
165
169
|
" ",
|
|
166
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ b("button", {
|
|
167
171
|
type: "button",
|
|
168
172
|
className: "underline font-medium hover:text-status-error-text/80",
|
|
169
173
|
onClick: $,
|
|
170
|
-
children:
|
|
174
|
+
children: O("dashboard.error.tryRefreshing", "Try refreshing")
|
|
171
175
|
})
|
|
172
176
|
]
|
|
173
177
|
})]
|
|
174
178
|
}),
|
|
175
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ b(r, {
|
|
176
180
|
widgets: Q,
|
|
177
|
-
workspaceData:
|
|
181
|
+
workspaceData: oe,
|
|
178
182
|
globalData: R ?? null,
|
|
179
183
|
isLoading: X,
|
|
180
|
-
navigate:
|
|
181
|
-
productId:
|
|
184
|
+
navigate: u,
|
|
185
|
+
productId: E
|
|
182
186
|
}),
|
|
183
|
-
/* @__PURE__ */
|
|
184
|
-
open:
|
|
187
|
+
/* @__PURE__ */ b(i, {
|
|
188
|
+
open: k,
|
|
185
189
|
onOpenChange: A,
|
|
186
190
|
widgets: Q,
|
|
187
|
-
onSave:
|
|
191
|
+
onSave: se,
|
|
188
192
|
isSaving: Y.isPending,
|
|
189
|
-
productId:
|
|
193
|
+
productId: E
|
|
190
194
|
})
|
|
191
195
|
]
|
|
192
196
|
});
|
|
193
197
|
}
|
|
194
|
-
export {
|
|
198
|
+
export { E as DashboardPage };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-workspaces",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.1125.1",
|
|
4
4
|
"description": "Workspaces microfrontend for Burdenoff products",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@apollo/client": "^4.3.7",
|
|
55
|
-
"@burdenoff/fe-libs": "2026.
|
|
55
|
+
"@burdenoff/fe-libs": "2026.1124.16",
|
|
56
56
|
"@radix-ui/react-icons": "^1.3.2",
|
|
57
57
|
"@tanstack/react-query": "^5.107.1",
|
|
58
58
|
"axios": "^1.21.0",
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"@vitejs/plugin-react": "^6.2.1",
|
|
86
86
|
"autoprefixer": "^10.6.2",
|
|
87
87
|
"eslint": "^9.39.5",
|
|
88
|
+
"framer-motion": "12.43.0",
|
|
88
89
|
"lefthook": "^2.2.2",
|
|
89
90
|
"postcss": "8.5.23",
|
|
90
91
|
"tailwindcss": "^4.3.5",
|
|
@@ -94,7 +95,7 @@
|
|
|
94
95
|
},
|
|
95
96
|
"peerDependencies": {
|
|
96
97
|
"@apollo/client": "^4.0.11",
|
|
97
|
-
"@burdenoff/fe-libs": "^2026.
|
|
98
|
+
"@burdenoff/fe-libs": "^2026.1124.16",
|
|
98
99
|
"react": "^19.0.0",
|
|
99
100
|
"react-dom": "^19.0.0",
|
|
100
101
|
"zustand": "^5.0.0"
|