@burdenoff/microfe-workspaces 2026.1123.3 → 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.
@@ -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 { useCallback as l, useRef as u, useState as d } from "react";
6
- import { ArrowDown as f, ArrowUp as p, GripVertical as m, Loader2 as ee, RotateCcw as te, Save as h } from "lucide-react";
7
- import { Badge as g, Button as _, Separator as v, Sheet as y, SheetContent as b, SheetDescription as x, SheetFooter as S, SheetHeader as ne, SheetTitle as C, Switch as w } from "@burdenoff/fe-libs/ui";
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 O({ open: O, onOpenChange: k, widgets: A, onSave: j, isSaving: M, productId: N = "workspaces" }) {
12
- let { t: P } = D(), F = l((t, n) => e(P, t, n), [P]), [I, L] = d(A), [R, z] = d(!1), [B, V] = d(null), [H, U] = d(null), [W, G] = d(""), K = u(/* @__PURE__ */ new Map()), q = u(null), J = u(0), [Y, X] = d({
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: A
16
+ widgets: j
15
17
  });
16
- (Y.open !== O || Y.widgets !== A) && (X({
17
- open: O,
18
- widgets: A
19
- }), O && (L([...A]), z(!1)));
20
- let re = l((e) => {
21
- L((t) => t.map((t) => t.widgetId === e ? {
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)), z(!0);
25
- }, []), Z = l((e, t) => {
26
- L((n) => {
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
- }), z(!0);
40
- }, []), ie = l(() => {
41
- let e = n[N] ?? t;
42
- L([...e]), z(!0);
43
- }, [N]), ae = l((e) => (t) => {
44
- t ? K.current.set(e, t) : K.current.delete(e);
45
- }, []), oe = l((e, t) => {
46
- V(e), q.current = null, cancelAnimationFrame(J.current), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e);
47
- }, []), se = l((e, t) => {
48
- B && B !== e && (t.preventDefault(), t.dataTransfer.dropEffect = "move", U(e), cancelAnimationFrame(J.current), J.current = requestAnimationFrame(() => {
49
- let n = K.current.get(e);
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 = q.current;
52
- i && i.fromId === B && i.toId === e && i.position === r || (q.current = {
53
- fromId: B,
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
- }, L((t) => c(t, B, e, r)), z(!0));
58
+ }, z((t) => c(t, H, e, r)), V(!0));
57
59
  }));
58
- }, [B]), Q = l((e, t) => {
59
- t.currentTarget.contains(t.relatedTarget) || H === e && U(null);
60
- }, [H]), ce = l((e, t) => {
61
- t.preventDefault(), t.dataTransfer && (t.dataTransfer.dropEffect = "move"), cancelAnimationFrame(J.current), V(null), U(null);
62
- }, []), le = l(() => {
63
- if (cancelAnimationFrame(J.current), B) {
64
- let t = [...I].sort((e, t) => e.order - t.order), n = t.findIndex((e) => e.widgetId === B), i = r[B], o = i ? a(F, i).title : B;
65
- n >= 0 && G(e(P, "dashboardCustomizer.reorderAnnouncement", `${o} moved to position ${n + 1} of ${t.length}`));
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
- V(null), U(null), q.current = null;
69
+ U(null), G(null), Y.current = null;
68
70
  }, [
69
- B,
70
- I,
71
- F,
72
- P
73
- ]), ue = l(async () => {
74
- await j(I), z(!1), k(!1);
71
+ H,
72
+ R,
73
+ L,
74
+ I
75
+ ]), fe = u(async () => {
76
+ await M(R), V(!1), A(!1);
75
77
  }, [
76
- I,
77
- j,
78
- k
79
- ]), $ = [...I].sort((e, t) => e.order - t.order);
80
- return /* @__PURE__ */ T(y, {
81
- open: O,
82
- onOpenChange: k,
83
- children: /* @__PURE__ */ E(b, {
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(ne, { children: [/* @__PURE__ */ T(C, { children: e(P, "dashboardCustomizer.title", "Customize Dashboard") }), /* @__PURE__ */ T(x, { children: e(P, "dashboardCustomizer.description", "Toggle widgets on or off and reorder them to personalize your dashboard.") })] }),
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(P, "dashboardCustomizer.listLabel", "Dashboard widgets"),
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: W
97
+ children: K
96
98
  }), $.map((t, n) => {
97
99
  let s = r[t.widgetId];
98
- if (!s || !i(s, N)) return null;
99
- let c = B === t.widgetId, l = H === t.widgetId && B !== null, u = a(F, s).title;
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: ae(t.widgetId),
103
+ ref: oe(t.widgetId),
102
104
  role: "option",
103
- "aria-roledescription": e(P, "dashboardCustomizer.sortableItem", "sortable item"),
105
+ "aria-roledescription": e(I, "dashboardCustomizer.sortableItem", "sortable item"),
104
106
  "aria-selected": c,
105
- "aria-label": e(P, "dashboardCustomizer.widgetRow", `Widget: ${u}. Use the arrow buttons to reorder.`),
106
- onDragOver: (e) => se(t.widgetId, e),
107
- onDragLeave: (e) => Q(t.widgetId, e),
108
- onDrop: (e) => ce(t.widgetId, 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) => oe(t.widgetId, e),
115
- onDragEnd: le,
116
- "aria-label": e(P, "dashboardCustomizer.dragHandle", `Drag handle for ${u}`),
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(m, {
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(g, {
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(F, s).description
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: () => Z(t.widgetId, "up"),
149
- "aria-label": e(P, "dashboardCustomizer.moveUp", `Move ${u} up`),
150
- children: /* @__PURE__ */ T(p, { className: "size-3" })
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: () => Z(t.widgetId, "down"),
158
- "aria-label": e(P, "dashboardCustomizer.moveDown", `Move ${u} down`),
159
- children: /* @__PURE__ */ T(f, { className: "size-3" })
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"), re(t.widgetId);
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(v, {}),
176
- /* @__PURE__ */ E(S, {
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: ie,
183
+ onClick: ae,
182
184
  className: "flex-1",
183
- children: [/* @__PURE__ */ T(te, { className: "size-3 mr-1.5" }), e(P, "dashboardCustomizer.resetToDefaults", "Reset to defaults")]
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: ue,
187
- disabled: !R || M,
189
+ onClick: fe,
190
+ disabled: !B || !F && N,
188
191
  className: "flex-1",
189
- children: [M ? /* @__PURE__ */ T(ee, { className: "size-3 mr-1.5 animate-spin" }) : /* @__PURE__ */ T(h, { className: "size-3 mr-1.5" }), e(P, "dashboardCustomizer.saveLayout", "Save layout")]
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 { O as DashboardCustomizer };
199
+ export { k as DashboardCustomizer };
@@ -1,14 +1,16 @@
1
- import { useGlobalDashboardData as e, useProjectsDashboardData as t, useVibecontrolsDashboardData as n, useWorkspaceDashboardData as r } from "./hooks/useDashboardData.js";
2
- import { useUpdateDashboardPreferences as i } from "./hooks/useDashboardPreferences.js";
3
- import { DashboardGrid as a } from "./DashboardGrid.js";
4
- import { DashboardCustomizer as o } from "./DashboardCustomizer.js";
5
- import { getEffectiveWidgets as ee } from "./config.js";
6
- import { useWorkspacesPageView as s } from "../../hooks/useWorkspacesPageView.js";
7
- import { useCallback as c, useMemo as l, useState as u } from "react";
8
- import { AlertCircle as d, Building2 as f, GitBranch as p, Loader2 as m, RefreshCw as h, Settings2 as te, Sparkles as g } from "lucide-react";
9
- import { AuroraBackground as _, Button as v, GradientText as ne, PagePurpose as y } from "@burdenoff/fe-libs/ui";
10
- import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
11
- import { useI18n as C } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
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: f
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: g
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: p
33
+ Icon: d
32
34
  }
33
35
  };
34
- function E(e, t, n) {
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 D({ navigate: f, authToken: p, currentUser: g, productId: D = "workspaces" }) {
54
- s("workspaces.dashboard");
55
- let { t: O } = C(), k = (e, t) => {
56
- let n = O(e);
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
- }, [re, A] = u(!1), j = T[D] ?? T.workspaces, M = E(k, D, j), N = j.Icon, { data: P, isLoading: F, error: I, refetch: L } = r(p), { data: R, isLoading: z, error: B, refetch: V } = e(p), { data: H, isLoading: U, refetch: W } = t(p), G = D === "vibecontrols", { data: K, isLoading: q, refetch: J } = n(p, G), Y = i(p), X = F || z || U || q, ie = l(() => !P && !R && !H && !K ? null : {
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(() => ee(Z?.widgets ?? null, D), [Z, D]), $ = c(() => {
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
- ]), ae = c(async (e) => {
108
+ ]), se = c(async (e) => {
106
109
  await Y.mutateAsync(e);
107
- }, [Y]), oe = I || B;
108
- return /* @__PURE__ */ S("div", {
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__ */ S("div", {
115
+ /* @__PURE__ */ x("div", {
113
116
  className: "relative overflow-hidden rounded-card -mx-1 px-1 pt-1",
114
- children: [/* @__PURE__ */ x(_, { intensity: "subtle" }), /* @__PURE__ */ x(w, {
115
- icon: /* @__PURE__ */ x(N, { className: "size-6" }),
116
- title: /* @__PURE__ */ S(b, { children: [
117
- /* @__PURE__ */ x(ne, { children: M.noun }),
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
- k("dashboard.titleSuffix", "Dashboard")
122
+ O("dashboard.titleSuffix", "Dashboard")
120
123
  ] }),
121
124
  description: M.subtitle,
122
- actions: /* @__PURE__ */ S("div", {
125
+ actions: /* @__PURE__ */ x("div", {
123
126
  className: "flex flex-wrap items-center gap-2",
124
127
  "data-tour": "quick-actions",
125
- children: [/* @__PURE__ */ S(v, {
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": k("dashboard.refresh", "Refresh"),
132
- children: [X ? /* @__PURE__ */ x(m, { className: "size-3.5 sm:mr-1.5 animate-spin" }) : /* @__PURE__ */ x(h, { className: "size-3.5 sm:mr-1.5" }), /* @__PURE__ */ x("span", {
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: k("dashboard.refresh", "Refresh")
138
+ children: O("dashboard.refresh", "Refresh")
135
139
  })]
136
- }), /* @__PURE__ */ S(v, {
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": k("dashboard.customize", "Customize"),
142
- children: [/* @__PURE__ */ x(te, { className: "size-3.5 sm:mr-1.5" }), /* @__PURE__ */ x("span", {
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: k("dashboard.customize", "Customize")
148
+ children: O("dashboard.customize", "Customize")
145
149
  })]
146
150
  })]
147
151
  })
148
152
  })]
149
153
  }),
150
- /* @__PURE__ */ x(y, {
151
- icon: /* @__PURE__ */ x(N, { className: "size-4" }),
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
- oe && /* @__PURE__ */ S("div", {
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__ */ x(d, { className: "size-4 text-status-error-text shrink-0" }), /* @__PURE__ */ S("p", {
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
- k("dashboard.error.partialData", "Some data may be unavailable."),
164
+ O("dashboard.error.partialData", "Some data may be unavailable."),
161
165
  " ",
162
- I ? k("dashboard.error.workspaceDown", "Workspace services may be down.") : "",
166
+ I ? O("dashboard.error.workspaceDown", "Workspace services may be down.") : "",
163
167
  " ",
164
- B ? k("dashboard.error.globalDown", "Global services may be down.") : "",
168
+ B ? O("dashboard.error.globalDown", "Global services may be down.") : "",
165
169
  " ",
166
- /* @__PURE__ */ x("button", {
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: k("dashboard.error.tryRefreshing", "Try refreshing")
174
+ children: O("dashboard.error.tryRefreshing", "Try refreshing")
171
175
  })
172
176
  ]
173
177
  })]
174
178
  }),
175
- /* @__PURE__ */ x(a, {
179
+ /* @__PURE__ */ b(r, {
176
180
  widgets: Q,
177
- workspaceData: ie,
181
+ workspaceData: oe,
178
182
  globalData: R ?? null,
179
183
  isLoading: X,
180
- navigate: f,
181
- productId: D
184
+ navigate: u,
185
+ productId: E
182
186
  }),
183
- /* @__PURE__ */ x(o, {
184
- open: re,
187
+ /* @__PURE__ */ b(i, {
188
+ open: k,
185
189
  onOpenChange: A,
186
190
  widgets: Q,
187
- onSave: ae,
191
+ onSave: se,
188
192
  isSaving: Y.isPending,
189
- productId: D
193
+ productId: E
190
194
  })
191
195
  ]
192
196
  });
193
197
  }
194
- export { D as DashboardPage };
198
+ export { E as DashboardPage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-workspaces",
3
- "version": "2026.1123.3",
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.1121.2",
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.1121.2",
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"