@burdenoff/microfe-workspaces 2026.1113.1 → 2026.1114.2

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.
Files changed (60) hide show
  1. package/dist/WorkspacesRoot.js +31 -25
  2. package/dist/WorkspacesRoutes.js +56 -55
  3. package/dist/components/CreateProjectDialog.js +81 -78
  4. package/dist/components/CreateWorkspaceDialog.js +41 -41
  5. package/dist/components/InviteMemberDialog.js +54 -54
  6. package/dist/components/MemberListItem.js +53 -53
  7. package/dist/components/PendingInvitesRoute.d.ts +7 -0
  8. package/dist/components/PendingInvitesRoute.js +15 -0
  9. package/dist/components/ProjectCard.js +82 -82
  10. package/dist/components/ProjectMemberPickerDialog.js +46 -46
  11. package/dist/components/RenameProjectDialog.js +16 -16
  12. package/dist/components/WorkspaceCard.js +18 -18
  13. package/dist/components/WorkspacesErrorBoundary.js +25 -25
  14. package/dist/components/tags/ProjectTagsWidget.js +50 -50
  15. package/dist/components/tags/WorkspaceTagsEditor.js +9 -9
  16. package/dist/constants/navigationV2.d.ts +12 -0
  17. package/dist/constants/navigationV2.js +3 -0
  18. package/dist/hooks/useNavigationV2.d.ts +6 -0
  19. package/dist/hooks/useNavigationV2.js +6 -0
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +15 -14
  22. package/dist/pages/ActivityListPage.js +30 -30
  23. package/dist/pages/CreateWorkspacePage.js +205 -173
  24. package/dist/pages/InviteAcceptancePage.js +210 -200
  25. package/dist/pages/MembersListPage.js +165 -164
  26. package/dist/pages/PendingInvitesPage.js +67 -67
  27. package/dist/pages/ProjectDetailPage.js +297 -272
  28. package/dist/pages/ProjectMembersPage.js +59 -59
  29. package/dist/pages/ProjectsListPage.js +275 -244
  30. package/dist/pages/WorkspaceDetailPage.js +175 -172
  31. package/dist/pages/WorkspaceInvitePage.js +606 -503
  32. package/dist/pages/WorkspaceSettingsPage.js +48 -48
  33. package/dist/pages/WorkspacesListPage.js +55 -55
  34. package/dist/pages/dashboard/DashboardCustomizer.js +27 -27
  35. package/dist/pages/dashboard/DashboardPage.js +35 -35
  36. package/dist/pages/dashboard/WidgetWrapper.js +21 -21
  37. package/dist/pages/dashboard/widgets/AgentsWidget.js +25 -25
  38. package/dist/pages/dashboard/widgets/GroupsWidget.js +14 -14
  39. package/dist/pages/dashboard/widgets/MembersWidget.js +15 -15
  40. package/dist/pages/dashboard/widgets/ProjectsWidget.js +20 -20
  41. package/dist/pages/dashboard/widgets/QuickActionsWidget.js +7 -7
  42. package/dist/pages/dashboard/widgets/RecentActivityWidget.js +16 -16
  43. package/dist/pages/dashboard/widgets/SessionsWidget.js +15 -15
  44. package/dist/pages/dashboard/widgets/TagCloudWidget.js +11 -11
  45. package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +16 -16
  46. package/dist/pages/dashboard/widgets/VibesWidget.js +13 -13
  47. package/dist/pages/dashboard/widgets/WelcomeWidget.js +23 -23
  48. package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +26 -26
  49. package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +21 -21
  50. package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +22 -22
  51. package/dist/pages/dashboard/widgets/WorkspacesWidget.js +16 -16
  52. package/dist/providers/WorkspacesProvider.d.ts +5 -0
  53. package/dist/providers/WorkspacesProvider.js +2 -2
  54. package/dist/types/index.d.ts +11 -1
  55. package/dist/utils/createForms.d.ts +21 -0
  56. package/dist/utils/createForms.js +20 -0
  57. package/dist/utils/index.d.ts +1 -0
  58. package/dist/utils/invitationPayload.d.ts +18 -0
  59. package/dist/utils/invitationPayload.js +13 -0
  60. package/package.json +2 -2
@@ -1,13 +1,13 @@
1
1
  import { useGlobalDashboardData as e, useProjectsDashboardData as t, useVibecontrolsDashboardData as n, useWorkspaceDashboardData as r } from "./hooks/useDashboardData.js";
2
2
  import { useUpdateDashboardPreferences as i } from "./hooks/useDashboardPreferences.js";
3
- import { DashboardGrid as ee } from "./DashboardGrid.js";
4
- import { DashboardCustomizer as a } from "./DashboardCustomizer.js";
5
- import { getEffectiveWidgets as te } from "./config.js";
6
- import { useWorkspacesPageView as o } from "../../hooks/useWorkspacesPageView.js";
7
- import { useCallback as s, useMemo as c, useState as l } from "react";
8
- import { AlertCircle as u, Building2 as d, GitBranch as f, Loader2 as p, RefreshCw as m, Settings2 as ne, Sparkles as h } from "lucide-react";
9
- import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
10
- import { AuroraBackground as y, Button as b, GradientText as x, PagePurpose as S } from "@burdenoff/fe-libs/ui";
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
11
  import { useI18n as C } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
12
12
  import { PageHeader as w } from "@burdenoff/fe-libs/chrome";
13
13
  // src/pages/dashboard/DashboardPage.tsx
@@ -16,19 +16,19 @@ var T = {
16
16
  noun: "Workspaces",
17
17
  subtitle: "Your workspace overview at a glance",
18
18
  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: d
19
+ Icon: f
20
20
  },
21
21
  vibecontrols: {
22
22
  noun: "VibeControls",
23
23
  subtitle: "Your workspace at a glance",
24
24
  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: h
25
+ Icon: g
26
26
  },
27
27
  fluidgrids: {
28
28
  noun: "FluidGrids",
29
29
  subtitle: "Your workflow automation at a glance",
30
30
  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: f
31
+ Icon: p
32
32
  }
33
33
  };
34
34
  function E(e, t, n) {
@@ -50,12 +50,12 @@ function E(e, t, n) {
50
50
  };
51
51
  }
52
52
  }
53
- function D({ navigate: d, authToken: f, currentUser: h, productId: D = "workspaces" }) {
54
- o("workspaces.dashboard");
53
+ function D({ navigate: f, authToken: p, currentUser: g, productId: D = "workspaces" }) {
54
+ s("workspaces.dashboard");
55
55
  let { t: O } = C(), k = (e, t) => {
56
56
  let n = O(e);
57
57
  return n === e ? t : n;
58
- }, [re, A] = l(!1), j = T[D] ?? T.workspaces, M = E(k, D, j), N = j.Icon, { data: P, isLoading: F, error: I, refetch: L } = r(f), { data: R, isLoading: z, error: B, refetch: V } = e(f), { data: H, isLoading: U, refetch: W } = t(f), G = D === "vibecontrols", { data: K, isLoading: q, refetch: J } = n(f, G), Y = i(f), X = F || z || U || q, ie = c(() => !P && !R && !H && !K ? null : {
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 : {
59
59
  ...P ?? {
60
60
  workspaces: {
61
61
  items: [],
@@ -94,7 +94,7 @@ function D({ navigate: d, authToken: f, currentUser: h, productId: D = "workspac
94
94
  R,
95
95
  H,
96
96
  K
97
- ]), Z = R?.dashboardPreferences, Q = c(() => te(Z?.widgets ?? null, D), [Z, D]), $ = s(() => {
97
+ ]), Z = R?.dashboardPreferences, Q = l(() => ee(Z?.widgets ?? null, D), [Z, D]), $ = c(() => {
98
98
  L(), V(), W(), G && J();
99
99
  }, [
100
100
  L,
@@ -102,44 +102,44 @@ function D({ navigate: d, authToken: f, currentUser: h, productId: D = "workspac
102
102
  W,
103
103
  J,
104
104
  G
105
- ]), ae = s(async (e) => {
105
+ ]), ae = c(async (e) => {
106
106
  await Y.mutateAsync(e);
107
107
  }, [Y]), oe = I || B;
108
- return /* @__PURE__ */ v("div", {
108
+ return /* @__PURE__ */ S("div", {
109
109
  className: "min-h-[calc(100vh-8rem)] p-4 md:p-6 bg-bg-canvas",
110
110
  "data-tour": "main-content",
111
111
  children: [
112
- /* @__PURE__ */ v("div", {
112
+ /* @__PURE__ */ S("div", {
113
113
  className: "relative overflow-hidden rounded-card -mx-1 px-1 pt-1",
114
- children: [/* @__PURE__ */ _(y, { intensity: "subtle" }), /* @__PURE__ */ _(w, {
115
- icon: /* @__PURE__ */ _(N, { className: "size-6" }),
116
- title: /* @__PURE__ */ v(g, { children: [
117
- /* @__PURE__ */ _(x, { children: M.noun }),
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 }),
118
118
  " ",
119
119
  k("dashboard.titleSuffix", "Dashboard")
120
120
  ] }),
121
121
  description: M.subtitle,
122
- actions: /* @__PURE__ */ v("div", {
122
+ actions: /* @__PURE__ */ S("div", {
123
123
  className: "flex flex-wrap items-center gap-2",
124
124
  "data-tour": "quick-actions",
125
- children: [/* @__PURE__ */ v(b, {
125
+ children: [/* @__PURE__ */ S(v, {
126
126
  variant: "outline",
127
127
  size: "sm",
128
128
  onClick: $,
129
129
  disabled: X,
130
130
  className: "text-xs",
131
131
  "aria-label": k("dashboard.refresh", "Refresh"),
132
- children: [X ? /* @__PURE__ */ _(p, { className: "size-3.5 sm:mr-1.5 animate-spin" }) : /* @__PURE__ */ _(m, { className: "size-3.5 sm:mr-1.5" }), /* @__PURE__ */ _("span", {
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", {
133
133
  className: "hidden sm:inline",
134
134
  children: k("dashboard.refresh", "Refresh")
135
135
  })]
136
- }), /* @__PURE__ */ v(b, {
136
+ }), /* @__PURE__ */ S(v, {
137
137
  variant: "outline",
138
138
  size: "sm",
139
139
  onClick: () => A(!0),
140
140
  className: "text-xs",
141
141
  "aria-label": k("dashboard.customize", "Customize"),
142
- children: [/* @__PURE__ */ _(ne, { className: "size-3.5 sm:mr-1.5" }), /* @__PURE__ */ _("span", {
142
+ children: [/* @__PURE__ */ x(te, { className: "size-3.5 sm:mr-1.5" }), /* @__PURE__ */ x("span", {
143
143
  className: "hidden sm:inline",
144
144
  children: k("dashboard.customize", "Customize")
145
145
  })]
@@ -147,14 +147,14 @@ function D({ navigate: d, authToken: f, currentUser: h, productId: D = "workspac
147
147
  })
148
148
  })]
149
149
  }),
150
- /* @__PURE__ */ _(S, {
151
- icon: /* @__PURE__ */ _(N, { className: "size-4" }),
150
+ /* @__PURE__ */ x(y, {
151
+ icon: /* @__PURE__ */ x(N, { className: "size-4" }),
152
152
  className: "mb-6 -mt-2",
153
153
  children: M.purpose
154
154
  }),
155
- oe && /* @__PURE__ */ v("div", {
155
+ oe && /* @__PURE__ */ S("div", {
156
156
  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__ */ _(u, { className: "size-4 text-status-error-text shrink-0" }), /* @__PURE__ */ v("p", {
157
+ children: [/* @__PURE__ */ x(d, { className: "size-4 text-status-error-text shrink-0" }), /* @__PURE__ */ S("p", {
158
158
  className: "text-sm text-status-error-text",
159
159
  children: [
160
160
  k("dashboard.error.partialData", "Some data may be unavailable."),
@@ -163,7 +163,7 @@ function D({ navigate: d, authToken: f, currentUser: h, productId: D = "workspac
163
163
  " ",
164
164
  B ? k("dashboard.error.globalDown", "Global services may be down.") : "",
165
165
  " ",
166
- /* @__PURE__ */ _("button", {
166
+ /* @__PURE__ */ x("button", {
167
167
  type: "button",
168
168
  className: "underline font-medium hover:text-status-error-text/80",
169
169
  onClick: $,
@@ -172,15 +172,15 @@ function D({ navigate: d, authToken: f, currentUser: h, productId: D = "workspac
172
172
  ]
173
173
  })]
174
174
  }),
175
- /* @__PURE__ */ _(ee, {
175
+ /* @__PURE__ */ x(a, {
176
176
  widgets: Q,
177
177
  workspaceData: ie,
178
178
  globalData: R ?? null,
179
179
  isLoading: X,
180
- navigate: d,
180
+ navigate: f,
181
181
  productId: D
182
182
  }),
183
- /* @__PURE__ */ _(a, {
183
+ /* @__PURE__ */ x(o, {
184
184
  open: re,
185
185
  onOpenChange: A,
186
186
  widgets: Q,
@@ -1,7 +1,7 @@
1
1
  import { tWithFallback as e } from "../../utils/i18n.js";
2
2
  import { AlertCircle as t, WifiOff as n } from "lucide-react";
3
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
- import { CardContent as a, CardHeader as o, GlassCard as s, Skeleton as c } from "@burdenoff/fe-libs/ui";
3
+ import { CardContent as r, CardHeader as i, GlassCard as a, Skeleton as o } from "@burdenoff/fe-libs/ui";
4
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
5
5
  import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
6
6
  // src/pages/dashboard/WidgetWrapper.tsx
7
7
  function u(e) {
@@ -13,23 +13,23 @@ function u(e) {
13
13
  }
14
14
  }
15
15
  function d() {
16
- return /* @__PURE__ */ i("div", {
16
+ return /* @__PURE__ */ c("div", {
17
17
  className: "space-y-3 p-1",
18
18
  children: [
19
- /* @__PURE__ */ r(c, { className: "h-4 w-3/4" }),
20
- /* @__PURE__ */ r(c, { className: "h-4 w-1/2" }),
21
- /* @__PURE__ */ r(c, { className: "h-20 w-full" }),
22
- /* @__PURE__ */ r(c, { className: "h-4 w-2/3" })
19
+ /* @__PURE__ */ s(o, { className: "h-4 w-3/4" }),
20
+ /* @__PURE__ */ s(o, { className: "h-4 w-1/2" }),
21
+ /* @__PURE__ */ s(o, { className: "h-20 w-full" }),
22
+ /* @__PURE__ */ s(o, { className: "h-4 w-2/3" })
23
23
  ]
24
24
  });
25
25
  }
26
26
  function f({ message: e }) {
27
- return /* @__PURE__ */ i("div", {
27
+ return /* @__PURE__ */ c("div", {
28
28
  className: "flex flex-col items-center justify-center py-6 text-center",
29
- children: [/* @__PURE__ */ r("div", {
29
+ children: [/* @__PURE__ */ s("div", {
30
30
  className: "rounded-full bg-status-error-bg/10 p-2 mb-2",
31
- children: /* @__PURE__ */ r(t, { className: "size-5 text-status-error-text" })
32
- }), /* @__PURE__ */ r("p", {
31
+ children: /* @__PURE__ */ s(t, { className: "size-5 text-status-error-text" })
32
+ }), /* @__PURE__ */ s("p", {
33
33
  className: "text-sm text-text-secondary",
34
34
  children: e
35
35
  })]
@@ -37,31 +37,31 @@ function f({ message: e }) {
37
37
  }
38
38
  function p() {
39
39
  let { t } = l();
40
- return /* @__PURE__ */ i("div", {
40
+ return /* @__PURE__ */ c("div", {
41
41
  className: "flex flex-col items-center justify-center py-6 text-center",
42
- children: [/* @__PURE__ */ r("div", {
42
+ children: [/* @__PURE__ */ s("div", {
43
43
  className: "rounded-full bg-bg-sunken p-2 mb-2",
44
- children: /* @__PURE__ */ r(n, { className: "size-5 text-text-secondary" })
45
- }), /* @__PURE__ */ r("p", {
44
+ children: /* @__PURE__ */ s(n, { className: "size-5 text-text-secondary" })
45
+ }), /* @__PURE__ */ s("p", {
46
46
  className: "text-sm text-text-secondary",
47
47
  children: e(t, "widgetWrapper.serviceUnavailable", "Service unavailable")
48
48
  })]
49
49
  });
50
50
  }
51
- function m({ title: e, icon: t, size: n, isLoading: c, error: l, unavailable: m, headerAction: h, children: g, className: _ = "" }) {
51
+ function m({ title: e, icon: t, size: n, isLoading: o, error: l, unavailable: m, headerAction: h, children: g, className: _ = "" }) {
52
52
  let v = u(n);
53
- return /* @__PURE__ */ i(s, {
53
+ return /* @__PURE__ */ c(a, {
54
54
  treatment: "insight",
55
55
  className: `h-full ${v} border-border-seam bg-bg-surface ${_}`,
56
- children: [/* @__PURE__ */ i(o, {
56
+ children: [/* @__PURE__ */ c(i, {
57
57
  className: "flex flex-row items-center justify-between pb-2 gap-y-0",
58
- children: [/* @__PURE__ */ i("h2", {
58
+ children: [/* @__PURE__ */ c("h2", {
59
59
  className: "text-sm font-semibold leading-tight tracking-tight text-text-primary flex items-center gap-2",
60
60
  children: [t, e]
61
61
  }), h]
62
- }), /* @__PURE__ */ r(a, {
62
+ }), /* @__PURE__ */ s(r, {
63
63
  className: "pt-0",
64
- children: c ? /* @__PURE__ */ r(d, {}) : l ? /* @__PURE__ */ r(f, { message: l }) : m ? /* @__PURE__ */ r(p, {}) : g
64
+ children: o ? /* @__PURE__ */ s(d, {}) : l ? /* @__PURE__ */ s(f, { message: l }) : m ? /* @__PURE__ */ s(p, {}) : g
65
65
  })]
66
66
  });
67
67
  }
@@ -1,19 +1,19 @@
1
1
  import { WidgetWrapper as e } from "../WidgetWrapper.js";
2
2
  import { tWithFallback as t } from "../../../utils/i18n.js";
3
3
  import { AlertTriangle as n, ArrowRight as r, Bot as i, Wifi as a, WifiOff as o } from "lucide-react";
4
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
5
- import { Button as l, IllustratedEmptyState as u } from "@burdenoff/fe-libs/ui";
4
+ import { Button as s, IllustratedEmptyState as c } from "@burdenoff/fe-libs/ui";
5
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
6
6
  import { useI18n as d } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
7
7
  // src/pages/dashboard/widgets/AgentsWidget.tsx
8
8
  function f({ workspaceData: f, isLoading: p, navigate: m }) {
9
9
  let { t: h } = d(), g = f?.agentFleet ?? null, _ = g?.total ?? 0;
10
- return /* @__PURE__ */ s(e, {
10
+ return /* @__PURE__ */ l(e, {
11
11
  title: t(h, "dashboard.agents.title", "Agent Fleet"),
12
- icon: /* @__PURE__ */ s(i, { className: "size-4" }),
12
+ icon: /* @__PURE__ */ l(i, { className: "size-4" }),
13
13
  size: "small",
14
14
  isLoading: p,
15
15
  unavailable: !f,
16
- headerAction: /* @__PURE__ */ c(l, {
16
+ headerAction: /* @__PURE__ */ u(s, {
17
17
  variant: "ghost",
18
18
  size: "sm",
19
19
  className: "text-xs",
@@ -21,69 +21,69 @@ function f({ workspaceData: f, isLoading: p, navigate: m }) {
21
21
  children: [
22
22
  t(h, "dashboard.agents.open", "Open"),
23
23
  " ",
24
- /* @__PURE__ */ s(r, { className: "ml-1 size-3" })
24
+ /* @__PURE__ */ l(r, { className: "ml-1 size-3" })
25
25
  ]
26
26
  }),
27
- children: !g || _ === 0 ? /* @__PURE__ */ s(u, {
27
+ children: !g || _ === 0 ? /* @__PURE__ */ l(c, {
28
28
  illustration: "empty-agents",
29
29
  title: t(h, "dashboard.agents.emptyTitle", "No agents connected"),
30
30
  className: "py-4",
31
- action: /* @__PURE__ */ s(l, {
31
+ action: /* @__PURE__ */ l(s, {
32
32
  variant: "outline",
33
33
  size: "sm",
34
34
  onClick: () => m("/vibecontrols/agents/new"),
35
35
  children: t(h, "dashboard.agents.connectAgent", "Connect agent")
36
36
  })
37
- }) : /* @__PURE__ */ c("div", {
37
+ }) : /* @__PURE__ */ u("div", {
38
38
  className: "space-y-3",
39
39
  children: [
40
- /* @__PURE__ */ c("p", {
40
+ /* @__PURE__ */ u("p", {
41
41
  className: "text-2xl font-semibold text-text-primary",
42
- children: [_, /* @__PURE__ */ s("span", {
42
+ children: [_, /* @__PURE__ */ l("span", {
43
43
  className: "ml-1 text-xs font-normal text-text-secondary",
44
44
  children: t(h, "dashboard.agents.total", "total")
45
45
  })]
46
46
  }),
47
- /* @__PURE__ */ c("div", {
47
+ /* @__PURE__ */ u("div", {
48
48
  className: "grid grid-cols-3 gap-2 text-center",
49
49
  children: [
50
- /* @__PURE__ */ c("div", {
50
+ /* @__PURE__ */ u("div", {
51
51
  className: "rounded-md bg-status-success-bg/30 p-2",
52
52
  children: [
53
- /* @__PURE__ */ s(a, { className: `mx-auto size-4 text-status-success-text ${g.online > 0 ? "motion-safe:animate-vc-glow-pulse" : ""}` }),
54
- /* @__PURE__ */ s("p", {
53
+ /* @__PURE__ */ l(a, { className: `mx-auto size-4 text-status-success-text ${g.online > 0 ? "motion-safe:animate-vc-glow-pulse" : ""}` }),
54
+ /* @__PURE__ */ l("p", {
55
55
  className: "mt-1 text-sm font-semibold text-text-primary",
56
56
  children: g.online
57
57
  }),
58
- /* @__PURE__ */ s("p", {
58
+ /* @__PURE__ */ l("p", {
59
59
  className: "text-[10px] text-text-secondary",
60
60
  children: t(h, "dashboard.agents.online", "online")
61
61
  })
62
62
  ]
63
63
  }),
64
- /* @__PURE__ */ c("div", {
64
+ /* @__PURE__ */ u("div", {
65
65
  className: "rounded-md bg-status-warning-bg/30 p-2",
66
66
  children: [
67
- /* @__PURE__ */ s(n, { className: "mx-auto size-4 text-status-warning-text" }),
68
- /* @__PURE__ */ s("p", {
67
+ /* @__PURE__ */ l(n, { className: "mx-auto size-4 text-status-warning-text" }),
68
+ /* @__PURE__ */ l("p", {
69
69
  className: "mt-1 text-sm font-semibold text-text-primary",
70
70
  children: g.degraded
71
71
  }),
72
- /* @__PURE__ */ s("p", {
72
+ /* @__PURE__ */ l("p", {
73
73
  className: "text-[10px] text-text-secondary",
74
74
  children: t(h, "dashboard.agents.degraded", "degraded")
75
75
  })
76
76
  ]
77
77
  }),
78
- /* @__PURE__ */ c("div", {
78
+ /* @__PURE__ */ u("div", {
79
79
  className: "rounded-md bg-text-tertiary/10 p-2",
80
80
  children: [
81
- /* @__PURE__ */ s(o, { className: "mx-auto size-4 text-text-tertiary" }),
82
- /* @__PURE__ */ s("p", {
81
+ /* @__PURE__ */ l(o, { className: "mx-auto size-4 text-text-tertiary" }),
82
+ /* @__PURE__ */ l("p", {
83
83
  className: "mt-1 text-sm font-semibold text-text-primary",
84
84
  children: g.offline
85
85
  }),
86
- /* @__PURE__ */ s("p", {
86
+ /* @__PURE__ */ l("p", {
87
87
  className: "text-[10px] text-text-secondary",
88
88
  children: t(h, "dashboard.agents.offline", "offline")
89
89
  })
@@ -91,7 +91,7 @@ function f({ workspaceData: f, isLoading: p, navigate: m }) {
91
91
  })
92
92
  ]
93
93
  }),
94
- g.lastSeenAt ? /* @__PURE__ */ s("p", {
94
+ g.lastSeenAt ? /* @__PURE__ */ l("p", {
95
95
  className: "text-[11px] text-text-secondary text-center",
96
96
  children: t(h, "dashboard.agents.lastSeen", "Last seen {time}", { time: new Date(g.lastSeenAt).toLocaleString(void 0, {
97
97
  hour: "2-digit",
@@ -1,54 +1,54 @@
1
1
  import { WidgetWrapper as e } from "../WidgetWrapper.js";
2
2
  import { tWithFallback as t } from "../../../utils/i18n.js";
3
3
  import { ArrowRight as n, Users as r } from "lucide-react";
4
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
- import { Button as o, IllustratedEmptyState as s } from "@burdenoff/fe-libs/ui";
4
+ import { Button as i, IllustratedEmptyState as a } from "@burdenoff/fe-libs/ui";
5
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
6
6
  import { useI18n as c } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
7
7
  // src/pages/dashboard/widgets/GroupsWidget.tsx
8
8
  function l({ workspaceData: l, isLoading: u, navigate: d }) {
9
9
  let { t: f } = c(), p = l?.groups.items ?? [], m = l?.groups.totalCount ?? 0;
10
- return /* @__PURE__ */ i(e, {
10
+ return /* @__PURE__ */ o(e, {
11
11
  title: t(f, "dashboard.groups.title", "Groups"),
12
- icon: /* @__PURE__ */ i(r, { className: "size-4" }),
12
+ icon: /* @__PURE__ */ o(r, { className: "size-4" }),
13
13
  size: "small",
14
14
  isLoading: u,
15
15
  unavailable: !l,
16
- headerAction: /* @__PURE__ */ i(o, {
16
+ headerAction: /* @__PURE__ */ o(i, {
17
17
  variant: "ghost",
18
18
  size: "sm",
19
19
  className: "text-xs",
20
20
  "aria-label": t(f, "dashboard.groups.open", "Open groups"),
21
21
  onClick: () => d("/groups"),
22
- children: /* @__PURE__ */ i(n, {
22
+ children: /* @__PURE__ */ o(n, {
23
23
  className: "size-3",
24
24
  "aria-hidden": "true"
25
25
  })
26
26
  }),
27
- children: p.length === 0 ? /* @__PURE__ */ i(s, {
27
+ children: p.length === 0 ? /* @__PURE__ */ o(a, {
28
28
  illustration: "empty-people",
29
29
  title: t(f, "dashboard.groups.emptyTitle", "No groups yet"),
30
30
  description: t(f, "dashboard.groups.emptyDescription", "Groups bundle members together so you can manage and mention them as one."),
31
31
  className: "py-4"
32
- }) : /* @__PURE__ */ a("div", {
32
+ }) : /* @__PURE__ */ s("div", {
33
33
  className: "space-y-1.5",
34
- children: [p.slice(0, 4).map((e) => /* @__PURE__ */ a("button", {
34
+ children: [p.slice(0, 4).map((e) => /* @__PURE__ */ s("button", {
35
35
  type: "button",
36
36
  className: "w-full flex items-center gap-2 p-1.5 rounded hover:bg-accent/5 cursor-pointer transition-colors text-left",
37
37
  onClick: () => d("/groups"),
38
- children: [/* @__PURE__ */ i("div", {
38
+ children: [/* @__PURE__ */ o("div", {
39
39
  className: "size-7 rounded-full bg-accent-purple-subtle text-accent-purple flex items-center justify-center text-xs font-bold shrink-0",
40
40
  children: e.name.charAt(0).toUpperCase()
41
- }), /* @__PURE__ */ a("div", {
41
+ }), /* @__PURE__ */ s("div", {
42
42
  className: "min-w-0",
43
- children: [/* @__PURE__ */ i("p", {
43
+ children: [/* @__PURE__ */ o("p", {
44
44
  className: "text-sm font-medium text-text-primary truncate",
45
45
  children: e.name
46
- }), e.description && /* @__PURE__ */ i("p", {
46
+ }), e.description && /* @__PURE__ */ o("p", {
47
47
  className: "text-[11px] text-text-secondary truncate",
48
48
  children: e.description
49
49
  })]
50
50
  })]
51
- }, e.id)), m > 4 && /* @__PURE__ */ i("p", {
51
+ }, e.id)), m > 4 && /* @__PURE__ */ o("p", {
52
52
  className: "text-[11px] text-text-secondary text-center",
53
53
  children: t(f, "dashboard.groups.more", "+{count} more groups", { count: m - 4 })
54
54
  })]
@@ -1,38 +1,38 @@
1
1
  import { WidgetWrapper as e } from "../WidgetWrapper.js";
2
2
  import { tWithFallback as t } from "../../../utils/i18n.js";
3
3
  import { ArrowRight as n, UserPlus as r, Users as i } from "lucide-react";
4
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
5
- import { Button as s } from "@burdenoff/fe-libs/ui";
4
+ import { Button as a } from "@burdenoff/fe-libs/ui";
5
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
6
6
  import { useI18n as c } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
7
7
  // src/pages/dashboard/widgets/MembersWidget.tsx
8
8
  function l({ workspaceData: l, globalData: u, isLoading: d, navigate: f }) {
9
9
  let { t: p } = c(), m = u?.workspaces?.items ?? l?.workspaces.items ?? [], h = m.reduce((e, t) => e + (t.memberCount ?? 0), 0), g = u?.workspaces?.total ?? l?.workspaces.total ?? 0;
10
- return /* @__PURE__ */ a(e, {
10
+ return /* @__PURE__ */ o(e, {
11
11
  title: t(p, "dashboard.members.title", "Members"),
12
- icon: /* @__PURE__ */ a(i, { className: "size-4" }),
12
+ icon: /* @__PURE__ */ o(i, { className: "size-4" }),
13
13
  size: "small",
14
14
  isLoading: d,
15
15
  unavailable: !l && !u,
16
- headerAction: /* @__PURE__ */ a(s, {
16
+ headerAction: /* @__PURE__ */ o(a, {
17
17
  variant: "ghost",
18
18
  size: "sm",
19
19
  className: "text-xs",
20
20
  "aria-label": t(p, "dashboard.members.open", "Open members"),
21
21
  onClick: () => f("/workspaces/members"),
22
- children: /* @__PURE__ */ a(n, {
22
+ children: /* @__PURE__ */ o(n, {
23
23
  className: "size-3",
24
24
  "aria-hidden": "true"
25
25
  })
26
26
  }),
27
- children: /* @__PURE__ */ o("div", {
27
+ children: /* @__PURE__ */ s("div", {
28
28
  className: "space-y-3",
29
29
  children: [
30
- /* @__PURE__ */ o("div", {
30
+ /* @__PURE__ */ s("div", {
31
31
  className: "text-center",
32
- children: [/* @__PURE__ */ a("p", {
32
+ children: [/* @__PURE__ */ o("p", {
33
33
  className: "text-3xl font-bold text-text-primary tabular-nums",
34
34
  children: h
35
- }), /* @__PURE__ */ a("p", {
35
+ }), /* @__PURE__ */ o("p", {
36
36
  className: "text-xs text-text-secondary",
37
37
  children: t(p, "dashboard.members.summary", "{memberLabel} across {count} {workspaceLabel}", {
38
38
  memberLabel: h === 1 ? t(p, "dashboard.members.memberSingular", "Member") : t(p, "dashboard.members.memberPlural", "Members"),
@@ -41,20 +41,20 @@ function l({ workspaceData: l, globalData: u, isLoading: d, navigate: f }) {
41
41
  })
42
42
  })]
43
43
  }),
44
- /* @__PURE__ */ o(s, {
44
+ /* @__PURE__ */ s(a, {
45
45
  variant: "outline",
46
46
  size: "sm",
47
47
  className: "w-full text-xs",
48
48
  onClick: () => f("/workspaces/members?invite=true"),
49
- children: [/* @__PURE__ */ a(r, { className: "size-3 mr-1.5" }), t(p, "dashboard.members.invite", "Invite a member")]
49
+ children: [/* @__PURE__ */ o(r, { className: "size-3 mr-1.5" }), t(p, "dashboard.members.invite", "Invite a member")]
50
50
  }),
51
- m.length > 0 && /* @__PURE__ */ o("div", {
51
+ m.length > 0 && /* @__PURE__ */ s("div", {
52
52
  className: "flex -space-x-2 justify-center",
53
- children: [m.slice(0, 5).map((e) => /* @__PURE__ */ a("div", {
53
+ children: [m.slice(0, 5).map((e) => /* @__PURE__ */ o("div", {
54
54
  className: "size-8 rounded-full bg-action-primary-bg/10 text-primary flex items-center justify-center text-xs font-bold border-2 border-bg-surface",
55
55
  title: e.name,
56
56
  children: e.name.charAt(0).toUpperCase()
57
- }, e.id)), g > 5 && /* @__PURE__ */ o("div", {
57
+ }, e.id)), g > 5 && /* @__PURE__ */ s("div", {
58
58
  className: "size-8 rounded-full bg-bg-sunken text-text-secondary flex items-center justify-center text-xs font-bold border-2 border-bg-surface",
59
59
  children: ["+", g - 5]
60
60
  })]
@@ -1,8 +1,8 @@
1
1
  import { WidgetWrapper as e } from "../WidgetWrapper.js";
2
2
  import { tWithFallback as t } from "../../../utils/i18n.js";
3
3
  import { ArrowRight as n, Circle as r, FolderKanban as i } from "lucide-react";
4
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
5
- import { Badge as s, Button as c, IllustratedEmptyState as l } from "@burdenoff/fe-libs/ui";
4
+ import { Badge as a, Button as o, IllustratedEmptyState as s } from "@burdenoff/fe-libs/ui";
5
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
6
6
  import { useI18n as u } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
7
7
  // src/pages/dashboard/widgets/ProjectsWidget.tsx
8
8
  var d = {
@@ -16,13 +16,13 @@ var d = {
16
16
  };
17
17
  function p({ workspaceData: p, isLoading: m, navigate: h }) {
18
18
  let { t: g } = u(), _ = p?.projects.items ?? [], v = p?.projects.total ?? 0, y = _.filter((e) => e.status === "ACTIVE").length, b = _.filter((e) => e.status === "INACTIVE").length;
19
- return /* @__PURE__ */ a(e, {
19
+ return /* @__PURE__ */ c(e, {
20
20
  title: t(g, "dashboard.projects.title", "Projects"),
21
- icon: /* @__PURE__ */ a(i, { className: "size-4" }),
21
+ icon: /* @__PURE__ */ c(i, { className: "size-4" }),
22
22
  size: "medium",
23
23
  isLoading: m,
24
24
  unavailable: !p,
25
- headerAction: /* @__PURE__ */ o(c, {
25
+ headerAction: /* @__PURE__ */ l(o, {
26
26
  variant: "ghost",
27
27
  size: "sm",
28
28
  className: "text-xs",
@@ -30,50 +30,50 @@ function p({ workspaceData: p, isLoading: m, navigate: h }) {
30
30
  children: [
31
31
  t(g, "dashboard.projects.viewAll", "View all"),
32
32
  " ",
33
- /* @__PURE__ */ a(n, { className: "ml-1 size-3" })
33
+ /* @__PURE__ */ c(n, { className: "ml-1 size-3" })
34
34
  ]
35
35
  }),
36
- children: _.length === 0 ? /* @__PURE__ */ a(l, {
36
+ children: _.length === 0 ? /* @__PURE__ */ c(s, {
37
37
  illustration: "empty-data",
38
38
  title: t(g, "dashboard.projects.emptyTitle", "No projects yet"),
39
39
  className: "py-4",
40
- action: /* @__PURE__ */ a(c, {
40
+ action: /* @__PURE__ */ c(o, {
41
41
  variant: "outline",
42
42
  size: "sm",
43
43
  onClick: () => h("/workspaces/projects"),
44
44
  children: t(g, "dashboard.projects.createProject", "Create a project")
45
45
  })
46
- }) : /* @__PURE__ */ o("div", {
46
+ }) : /* @__PURE__ */ l("div", {
47
47
  className: "space-y-3",
48
- children: [v > 0 && /* @__PURE__ */ o("div", {
48
+ children: [v > 0 && /* @__PURE__ */ l("div", {
49
49
  className: "flex items-center gap-3 text-xs text-text-secondary",
50
50
  children: [
51
- /* @__PURE__ */ o("span", {
51
+ /* @__PURE__ */ l("span", {
52
52
  className: "flex items-center gap-1",
53
- children: [/* @__PURE__ */ a(r, { className: `size-2 fill-status-success-bg text-status-success-bg ${y > 0 ? "motion-safe:animate-vc-glow-pulse" : ""}` }), t(g, "dashboard.projects.activeCount", "{count} active", { count: y })]
53
+ children: [/* @__PURE__ */ c(r, { className: `size-2 fill-status-success-bg text-status-success-bg ${y > 0 ? "motion-safe:animate-vc-glow-pulse" : ""}` }), t(g, "dashboard.projects.activeCount", "{count} active", { count: y })]
54
54
  }),
55
- b > 0 && /* @__PURE__ */ o("span", {
55
+ b > 0 && /* @__PURE__ */ l("span", {
56
56
  className: "flex items-center gap-1",
57
- children: [/* @__PURE__ */ a(r, { className: "size-2 fill-text-tertiary text-text-tertiary" }), t(g, "dashboard.projects.inactiveCount", "{count} inactive", { count: b })]
57
+ children: [/* @__PURE__ */ c(r, { className: "size-2 fill-text-tertiary text-text-tertiary" }), t(g, "dashboard.projects.inactiveCount", "{count} inactive", { count: b })]
58
58
  }),
59
- /* @__PURE__ */ a("span", {
59
+ /* @__PURE__ */ c("span", {
60
60
  className: "ml-auto font-medium",
61
61
  children: t(g, "dashboard.projects.totalCount", "{count} total", { count: v })
62
62
  })
63
63
  ]
64
- }), /* @__PURE__ */ a("div", {
64
+ }), /* @__PURE__ */ c("div", {
65
65
  className: "space-y-2",
66
- children: _.slice(0, 4).map((e) => /* @__PURE__ */ o("button", {
66
+ children: _.slice(0, 4).map((e) => /* @__PURE__ */ l("button", {
67
67
  type: "button",
68
68
  className: "w-full flex items-center justify-between p-2 rounded-md hover:bg-accent/5 cursor-pointer transition-colors text-left",
69
69
  onClick: () => h(`/workspaces/${e.workspaceId}/projects`),
70
- children: [/* @__PURE__ */ o("div", {
70
+ children: [/* @__PURE__ */ l("div", {
71
71
  className: "flex items-center gap-2 min-w-0",
72
- children: [/* @__PURE__ */ a(r, { className: `size-2 ${d[e.status] || "bg-text-tertiary"} fill-current ${e.status === "ACTIVE" ? "motion-safe:animate-vc-glow-pulse" : ""}` }), /* @__PURE__ */ a("span", {
72
+ children: [/* @__PURE__ */ c(r, { className: `size-2 ${d[e.status] || "bg-text-tertiary"} fill-current ${e.status === "ACTIVE" ? "motion-safe:animate-vc-glow-pulse" : ""}` }), /* @__PURE__ */ c("span", {
73
73
  className: "text-sm font-medium text-text-primary truncate",
74
74
  children: e.name
75
75
  })]
76
- }), /* @__PURE__ */ a(s, {
76
+ }), /* @__PURE__ */ c(a, {
77
77
  variant: f[e.status] || "outline",
78
78
  className: "text-[10px] shrink-0",
79
79
  children: e.key