@burdenoff/microfe-workspaces 2026.1109.1 → 2026.1110.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 (102) hide show
  1. package/dist/WorkspacesRoot.js +10 -9
  2. package/dist/WorkspacesRoutes.js +1 -2
  3. package/dist/components/CreateProjectDialog.js +22 -22
  4. package/dist/components/CreateWorkspaceDialog.js +8 -9
  5. package/dist/components/InviteMemberDialog.js +18 -23
  6. package/dist/components/MemberListItem.js +16 -17
  7. package/dist/components/ProjectCard.js +14 -15
  8. package/dist/components/ProjectMemberPickerDialog.js +92 -93
  9. package/dist/components/RenameProjectDialog.js +12 -17
  10. package/dist/components/WorkspaceCard.js +6 -7
  11. package/dist/components/WorkspaceContextPathSync.js +4 -5
  12. package/dist/components/WorkspacesErrorBoundary.js +6 -11
  13. package/dist/components/index.js +8 -7
  14. package/dist/components/tags/ProjectTagsWidget.js +56 -57
  15. package/dist/components/tags/WorkspaceTagsEditor.js +2 -3
  16. package/dist/constants/permissions.js +1 -2
  17. package/dist/generated/global-operations.js +1 -2
  18. package/dist/generated/wspace-operations.js +1 -2
  19. package/dist/hooks/index.js +9 -8
  20. package/dist/hooks/useMemberMutations.js +165 -166
  21. package/dist/hooks/useOpenWorkspace.js +1 -2
  22. package/dist/hooks/useOrgsWithPermission.js +2 -3
  23. package/dist/hooks/usePendingInvitations.d.ts +1 -1
  24. package/dist/hooks/usePendingInvitations.js +2 -3
  25. package/dist/hooks/useProjectMemberMutations.js +23 -24
  26. package/dist/hooks/useProjectMembers.d.ts +2 -2
  27. package/dist/hooks/useProjectMembers.js +2 -3
  28. package/dist/hooks/useProjectMutations.js +68 -69
  29. package/dist/hooks/useProjects.d.ts +3 -3
  30. package/dist/hooks/useProjects.js +5 -6
  31. package/dist/hooks/useScopedNavigation.js +1 -2
  32. package/dist/hooks/useTenants.d.ts +2 -2
  33. package/dist/hooks/useTenants.js +3 -4
  34. package/dist/hooks/useTr.js +1 -2
  35. package/dist/hooks/useWorkspaceActivity.d.ts +1 -1
  36. package/dist/hooks/useWorkspaceActivity.js +2 -3
  37. package/dist/hooks/useWorkspaceMembers.d.ts +5 -5
  38. package/dist/hooks/useWorkspaceMembers.js +7 -8
  39. package/dist/hooks/useWorkspaceMutations.js +70 -71
  40. package/dist/hooks/useWorkspacePermissions.js +1 -2
  41. package/dist/hooks/useWorkspaceRoles.d.ts +1 -1
  42. package/dist/hooks/useWorkspaceRoles.js +3 -4
  43. package/dist/hooks/useWorkspaces.d.ts +3 -3
  44. package/dist/hooks/useWorkspaces.js +4 -5
  45. package/dist/hooks/useWorkspacesEventEmitter.js +1 -2
  46. package/dist/hooks/useWorkspacesPageView.js +1 -2
  47. package/dist/index.js +15 -15
  48. package/dist/pages/ActivityListPage.js +28 -29
  49. package/dist/pages/CreateWorkspacePage.js +137 -138
  50. package/dist/pages/InviteAcceptancePage.js +65 -66
  51. package/dist/pages/MembersListPage.js +203 -204
  52. package/dist/pages/PendingInvitesPage.js +63 -64
  53. package/dist/pages/ProjectDetailPage.js +71 -72
  54. package/dist/pages/ProjectMembersPage.js +116 -117
  55. package/dist/pages/ProjectsListPage.js +62 -67
  56. package/dist/pages/WorkspaceDetailPage.js +153 -154
  57. package/dist/pages/WorkspaceInvitePage.js +88 -92
  58. package/dist/pages/WorkspaceSettingsPage.js +32 -33
  59. package/dist/pages/WorkspacesListPage.js +40 -41
  60. package/dist/pages/dashboard/DashboardCustomizer.js +98 -94
  61. package/dist/pages/dashboard/DashboardGrid.js +1 -2
  62. package/dist/pages/dashboard/DashboardPage.js +12 -13
  63. package/dist/pages/dashboard/WidgetWrapper.js +3 -3
  64. package/dist/pages/dashboard/config.js +3 -4
  65. package/dist/pages/dashboard/hooks/useDashboardData.d.ts +5 -5
  66. package/dist/pages/dashboard/hooks/useDashboardData.js +9 -10
  67. package/dist/pages/dashboard/hooks/useDashboardPreferences.js +7 -8
  68. package/dist/pages/dashboard/reorder.js +11 -14
  69. package/dist/pages/dashboard/widgets/AgentsWidget.js +13 -14
  70. package/dist/pages/dashboard/widgets/GroupsWidget.js +9 -10
  71. package/dist/pages/dashboard/widgets/MembersWidget.js +10 -11
  72. package/dist/pages/dashboard/widgets/ProjectsWidget.js +11 -12
  73. package/dist/pages/dashboard/widgets/QuickActionsWidget.js +28 -29
  74. package/dist/pages/dashboard/widgets/RecentActivityWidget.js +22 -23
  75. package/dist/pages/dashboard/widgets/SessionsWidget.js +28 -29
  76. package/dist/pages/dashboard/widgets/StorageWidget.js +19 -20
  77. package/dist/pages/dashboard/widgets/TagCloudWidget.js +9 -10
  78. package/dist/pages/dashboard/widgets/TipsWidget.js +5 -6
  79. package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +17 -18
  80. package/dist/pages/dashboard/widgets/VibesWidget.js +13 -14
  81. package/dist/pages/dashboard/widgets/WelcomeWidget.js +11 -12
  82. package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +16 -17
  83. package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +11 -12
  84. package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +17 -18
  85. package/dist/pages/dashboard/widgets/WorkspacesWidget.js +7 -8
  86. package/dist/pages/dashboard/widgets/tipsCatalog.js +1 -2
  87. package/dist/providers/WorkspacesProvider.js +1 -2
  88. package/dist/store/workspacesStore.d.ts +1 -1
  89. package/dist/store/workspacesStore.js +1 -2
  90. package/dist/test/happydom.d.ts +1 -0
  91. package/dist/translations/en.js +1 -2
  92. package/dist/utils/formatters.js +1 -2
  93. package/dist/utils/i18n.js +1 -2
  94. package/dist/utils/invitationDisplay.js +1 -2
  95. package/dist/utils/nativeBridge.js +1 -2
  96. package/dist/utils/pinnedRequest.js +2 -3
  97. package/dist/utils/projectTags.js +2 -3
  98. package/dist/utils/slug.js +1 -2
  99. package/dist/utils/telemetryError.js +13 -16
  100. package/dist/utils/tokenHelpers.js +1 -2
  101. package/dist/utils/workspaceBulkInviteCsv.js +3 -8
  102. package/package.json +72 -55
@@ -1,42 +1,42 @@
1
- import { tWithFallback as e } from "../../../utils/i18n.js";
2
- import { WidgetWrapper as t } from "../WidgetWrapper.js";
1
+ import { WidgetWrapper as e } from "../WidgetWrapper.js";
2
+ import { tWithFallback as t } from "../../../utils/i18n.js";
3
3
  import { ArrowRight as n, Terminal as r } from "lucide-react";
4
4
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
5
  import { Badge as o, Button as s, IllustratedEmptyState as c } from "@burdenoff/fe-libs/ui";
6
6
  import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
7
- //#region src/pages/dashboard/widgets/SessionsWidget.tsx
7
+ // src/pages/dashboard/widgets/SessionsWidget.tsx
8
8
  var u = {
9
9
  RUNNING: "bg-status-success-bg text-status-success-text",
10
10
  ACTIVE: "bg-status-success-bg text-status-success-text",
11
11
  STARTING: "bg-status-warning-bg text-status-warning-text",
12
12
  STOPPED: "bg-text-tertiary/20 text-text-tertiary",
13
13
  ERROR: "bg-status-error-bg text-status-error-text"
14
- }, d = new Set(["RUNNING", "ACTIVE"]);
15
- function f(t, n) {
14
+ }, d = /* @__PURE__ */ new Set(["RUNNING", "ACTIVE"]);
15
+ function f(e, n) {
16
16
  switch (n) {
17
- case "RUNNING": return e(t, "dashboard.sessions.statusRunning", "running");
18
- case "ACTIVE": return e(t, "dashboard.sessions.statusActive", "active");
19
- case "STARTING": return e(t, "dashboard.sessions.statusStarting", "starting");
20
- case "STOPPED": return e(t, "dashboard.sessions.statusStopped", "stopped");
21
- case "ERROR": return e(t, "dashboard.sessions.statusError", "error");
17
+ case "RUNNING": return t(e, "dashboard.sessions.statusRunning", "running");
18
+ case "ACTIVE": return t(e, "dashboard.sessions.statusActive", "active");
19
+ case "STARTING": return t(e, "dashboard.sessions.statusStarting", "starting");
20
+ case "STOPPED": return t(e, "dashboard.sessions.statusStopped", "stopped");
21
+ case "ERROR": return t(e, "dashboard.sessions.statusError", "error");
22
22
  default: return n.toLowerCase();
23
23
  }
24
24
  }
25
- function p(t, n) {
25
+ function p(e, n) {
26
26
  if (!n) return "";
27
27
  let r = Date.now() - new Date(n).getTime(), i = Math.floor(r / 6e4);
28
- if (i < 1) return e(t, "dashboard.sessions.justNow", "just now");
29
- if (i < 60) return e(t, "dashboard.sessions.minutesAgo", "{count}m", { count: i });
28
+ if (i < 1) return t(e, "dashboard.sessions.justNow", "just now");
29
+ if (i < 60) return t(e, "dashboard.sessions.minutesAgo", "{count}m", { count: i });
30
30
  let a = Math.floor(i / 60);
31
- return a < 24 ? e(t, "dashboard.sessions.hoursAgo", "{count}h", { count: a }) : new Date(n).toLocaleDateString(void 0, {
31
+ return a < 24 ? t(e, "dashboard.sessions.hoursAgo", "{count}h", { count: a }) : new Date(n).toLocaleDateString(void 0, {
32
32
  month: "short",
33
33
  day: "numeric"
34
34
  });
35
35
  }
36
36
  function m({ workspaceData: m, isLoading: h, navigate: g }) {
37
37
  let { t: _ } = l(), v = m?.activeSessions ?? [];
38
- return /* @__PURE__ */ i(t, {
39
- title: e(_, "dashboard.sessions.title", "Active Sessions"),
38
+ return /* @__PURE__ */ i(e, {
39
+ title: t(_, "dashboard.sessions.title", "Active Sessions"),
40
40
  icon: /* @__PURE__ */ i(r, { className: "size-4" }),
41
41
  size: "medium",
42
42
  isLoading: h,
@@ -47,44 +47,43 @@ function m({ workspaceData: m, isLoading: h, navigate: g }) {
47
47
  className: "text-xs",
48
48
  onClick: () => g("/vibecontrols/sessions"),
49
49
  children: [
50
- e(_, "dashboard.sessions.viewAll", "View all"),
50
+ t(_, "dashboard.sessions.viewAll", "View all"),
51
51
  " ",
52
52
  /* @__PURE__ */ i(n, { className: "ml-1 size-3" })
53
53
  ]
54
54
  }),
55
55
  children: v.length === 0 ? /* @__PURE__ */ i(c, {
56
56
  illustration: "empty-sessions",
57
- title: e(_, "dashboard.sessions.emptyTitle", "No active sessions"),
57
+ title: t(_, "dashboard.sessions.emptyTitle", "No active sessions"),
58
58
  className: "py-6"
59
59
  }) : /* @__PURE__ */ i("ul", {
60
60
  className: "space-y-1.5",
61
- children: v.slice(0, 5).map((t) => /* @__PURE__ */ i("li", { children: /* @__PURE__ */ a("button", {
61
+ children: v.slice(0, 5).map((e) => /* @__PURE__ */ i("li", { children: /* @__PURE__ */ a("button", {
62
62
  type: "button",
63
- onClick: () => g(`/vibecontrols/sessions/${t.id}`),
63
+ onClick: () => g(`/vibecontrols/sessions/${e.id}`),
64
64
  className: "flex w-full items-center justify-between gap-2 rounded-md p-2 text-left transition-colors hover:bg-accent/5",
65
65
  children: [/* @__PURE__ */ a("div", {
66
66
  className: "min-w-0 flex-1",
67
67
  children: [/* @__PURE__ */ i("p", {
68
68
  className: "truncate text-sm font-medium text-text-primary",
69
- children: t.name || e(_, "dashboard.sessions.unnamedSession", "Session {id}", { id: t.id.slice(0, 8) })
70
- }), t.agent?.name ? /* @__PURE__ */ i("p", {
69
+ children: e.name || t(_, "dashboard.sessions.unnamedSession", "Session {id}", { id: e.id.slice(0, 8) })
70
+ }), e.agent?.name ? /* @__PURE__ */ i("p", {
71
71
  className: "truncate text-[11px] text-text-secondary",
72
- children: t.agent.name
72
+ children: e.agent.name
73
73
  }) : null]
74
74
  }), /* @__PURE__ */ a("div", {
75
75
  className: "flex flex-col items-end gap-1",
76
76
  children: [/* @__PURE__ */ i(o, {
77
77
  variant: "outline",
78
- className: `text-[10px] ${u[t.status] ?? ""} ${d.has(t.status) ? "motion-safe:animate-vc-glow-pulse" : ""}`,
79
- children: f(_, t.status)
80
- }), t.startedAt ? /* @__PURE__ */ i("span", {
78
+ className: `text-[10px] ${u[e.status] ?? ""} ${d.has(e.status) ? "motion-safe:animate-vc-glow-pulse" : ""}`,
79
+ children: f(_, e.status)
80
+ }), e.startedAt ? /* @__PURE__ */ i("span", {
81
81
  className: "text-[10px] text-text-secondary",
82
- children: p(_, t.startedAt)
82
+ children: p(_, e.startedAt)
83
83
  }) : null]
84
84
  })]
85
- }) }, t.id))
85
+ }) }, e.id))
86
86
  })
87
87
  });
88
88
  }
89
- //#endregion
90
89
  export { m as SessionsWidget };
@@ -1,23 +1,23 @@
1
- import { tWithFallback as e } from "../../../utils/i18n.js";
2
- import { WidgetWrapper as t } from "../WidgetWrapper.js";
1
+ import { WidgetWrapper as e } from "../WidgetWrapper.js";
2
+ import { tWithFallback as t } from "../../../utils/i18n.js";
3
3
  import { HardDrive as n } from "lucide-react";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
5
  import { useI18n as a } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
6
6
  import { useUpgradePrompt as o } from "@burdenoff/fe-libs/shared/hooks";
7
- //#region src/pages/dashboard/widgets/StorageWidget.tsx
8
- var s = 50 * 1024 * 1024, c = 5 * 1024 * 1024 * 1024;
9
- function l(t) {
7
+ // src/pages/dashboard/widgets/StorageWidget.tsx
8
+ var s = 52428800, c = 5368709120;
9
+ function l(e) {
10
10
  return [
11
- e(t, "dashboard.storage.unitBytes", "B"),
12
- e(t, "dashboard.storage.unitKilobytes", "KB"),
13
- e(t, "dashboard.storage.unitMegabytes", "MB"),
14
- e(t, "dashboard.storage.unitGigabytes", "GB"),
15
- e(t, "dashboard.storage.unitTerabytes", "TB")
11
+ t(e, "dashboard.storage.unitBytes", "B"),
12
+ t(e, "dashboard.storage.unitKilobytes", "KB"),
13
+ t(e, "dashboard.storage.unitMegabytes", "MB"),
14
+ t(e, "dashboard.storage.unitGigabytes", "GB"),
15
+ t(e, "dashboard.storage.unitTerabytes", "TB")
16
16
  ];
17
17
  }
18
- function u(t, n) {
19
- if (n === 0) return `0 ${e(t, "dashboard.storage.unitBytes", "B")}`;
20
- let r = 1024, i = l(t), a = Math.floor(Math.log(n) / Math.log(r));
18
+ function u(e, n) {
19
+ if (n === 0) return `0 ${t(e, "dashboard.storage.unitBytes", "B")}`;
20
+ let r = 1024, i = l(e), a = Math.floor(Math.log(n) / Math.log(r));
21
21
  return `${parseFloat((n / r ** a).toFixed(1))} ${i[a]}`;
22
22
  }
23
23
  function d(e, t, n) {
@@ -28,8 +28,8 @@ function d(e, t, n) {
28
28
  }
29
29
  function f({ workspaceData: l, isLoading: f }) {
30
30
  let { t: p } = a(), { isFree: m } = o({ resource: "storage" }), h = l?.storageUsage, g = m ? s : c, _ = h?.usedBytes ?? 0, v = h?.totalBytes && h.totalBytes > 0 ? h.totalBytes : g, y = v > 0 ? Math.min(_ / v * 100, 100) : 0, b = y > 80 ? "bg-status-error-bg" : y > 60 ? "bg-status-warning-bg" : "bg-status-success-bg";
31
- return /* @__PURE__ */ r(t, {
32
- title: e(p, "dashboard.storage.title", "Storage"),
31
+ return /* @__PURE__ */ r(e, {
32
+ title: t(p, "dashboard.storage.title", "Storage"),
33
33
  icon: /* @__PURE__ */ r(n, { className: "size-4" }),
34
34
  size: "small",
35
35
  isLoading: f,
@@ -42,10 +42,10 @@ function f({ workspaceData: l, isLoading: f }) {
42
42
  className: "flex justify-between text-xs",
43
43
  children: [/* @__PURE__ */ r("span", {
44
44
  className: "text-text-secondary",
45
- children: e(p, "dashboard.storage.used", "Used")
45
+ children: t(p, "dashboard.storage.used", "Used")
46
46
  }), /* @__PURE__ */ r("span", {
47
47
  className: "font-medium text-text-primary",
48
- children: e(p, "dashboard.storage.usedOfTotal", "{used} / {total}", {
48
+ children: t(p, "dashboard.storage.usedOfTotal", "{used} / {total}", {
49
49
  used: d(p, _, v),
50
50
  total: u(p, v)
51
51
  })
@@ -60,14 +60,14 @@ function f({ workspaceData: l, isLoading: f }) {
60
60
  }),
61
61
  /* @__PURE__ */ r("p", {
62
62
  className: "text-[11px] text-text-secondary text-right",
63
- children: e(p, "dashboard.storage.percentUsed", "{percent}% used", { percent: y.toFixed(1) })
63
+ children: t(p, "dashboard.storage.percentUsed", "{percent}% used", { percent: y.toFixed(1) })
64
64
  })
65
65
  ]
66
66
  }), h?.fileCount != null && /* @__PURE__ */ i("div", {
67
67
  className: "flex items-center justify-between text-xs",
68
68
  children: [/* @__PURE__ */ r("span", {
69
69
  className: "text-text-secondary",
70
- children: e(p, "dashboard.storage.totalFiles", "Total files")
70
+ children: t(p, "dashboard.storage.totalFiles", "Total files")
71
71
  }), /* @__PURE__ */ r("span", {
72
72
  className: "font-medium text-text-primary",
73
73
  children: h.fileCount.toLocaleString()
@@ -76,5 +76,4 @@ function f({ workspaceData: l, isLoading: f }) {
76
76
  })
77
77
  });
78
78
  }
79
- //#endregion
80
79
  export { f as StorageWidget };
@@ -1,10 +1,10 @@
1
- import { tWithFallback as e } from "../../../utils/i18n.js";
2
- import { WidgetWrapper as t } from "../WidgetWrapper.js";
1
+ import { WidgetWrapper as e } from "../WidgetWrapper.js";
2
+ import { tWithFallback as t } from "../../../utils/i18n.js";
3
3
  import { ArrowRight as n, Tags as r } from "lucide-react";
4
4
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
5
  import { Badge as o, Button as s, IllustratedEmptyState as c } from "@burdenoff/fe-libs/ui";
6
6
  import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
7
- //#region src/pages/dashboard/widgets/TagCloudWidget.tsx
7
+ // src/pages/dashboard/widgets/TagCloudWidget.tsx
8
8
  var u = [
9
9
  "bg-status-info-bg-subtle text-status-info-text border-border-default",
10
10
  "bg-status-success-bg-subtle text-status-success-text border-border-default",
@@ -17,8 +17,8 @@ var u = [
17
17
  ];
18
18
  function d({ workspaceData: d, isLoading: f, navigate: p }) {
19
19
  let { t: m } = l(), h = d?.tags.items ?? [], g = d?.tags.total ?? 0;
20
- return /* @__PURE__ */ i(t, {
21
- title: e(m, "dashboard.tagCloud.title", "Tags"),
20
+ return /* @__PURE__ */ i(e, {
21
+ title: t(m, "dashboard.tagCloud.title", "Tags"),
22
22
  icon: /* @__PURE__ */ i(r, { className: "size-4" }),
23
23
  size: "small",
24
24
  isLoading: f,
@@ -27,7 +27,7 @@ function d({ workspaceData: d, isLoading: f, navigate: p }) {
27
27
  variant: "ghost",
28
28
  size: "sm",
29
29
  className: "text-xs",
30
- "aria-label": e(m, "dashboard.tagCloud.open", "Open tags"),
30
+ "aria-label": t(m, "dashboard.tagCloud.open", "Open tags"),
31
31
  onClick: () => p("/tags"),
32
32
  children: /* @__PURE__ */ i(n, {
33
33
  className: "size-3",
@@ -36,8 +36,8 @@ function d({ workspaceData: d, isLoading: f, navigate: p }) {
36
36
  }),
37
37
  children: h.length === 0 ? /* @__PURE__ */ i(c, {
38
38
  illustration: "empty-generic",
39
- title: e(m, "dashboard.tagCloud.emptyTitle", "No tags created yet"),
40
- description: e(m, "dashboard.tagCloud.emptyDescription", "Tags help you label and filter projects and content across the workspace."),
39
+ title: t(m, "dashboard.tagCloud.emptyTitle", "No tags created yet"),
40
+ description: t(m, "dashboard.tagCloud.emptyDescription", "Tags help you label and filter projects and content across the workspace."),
41
41
  className: "py-4"
42
42
  }) : /* @__PURE__ */ a("div", {
43
43
  className: "space-y-2",
@@ -51,10 +51,9 @@ function d({ workspaceData: d, isLoading: f, navigate: p }) {
51
51
  }, e.id))
52
52
  }), g > 12 && /* @__PURE__ */ i("p", {
53
53
  className: "text-[11px] text-text-secondary text-center",
54
- children: e(m, "dashboard.tagCloud.more", "+{count} more tags", { count: g - 12 })
54
+ children: t(m, "dashboard.tagCloud.more", "+{count} more tags", { count: g - 12 })
55
55
  })]
56
56
  })
57
57
  });
58
58
  }
59
- //#endregion
60
59
  export { d as TagCloudWidget };
@@ -1,14 +1,14 @@
1
- import { tWithFallback as e } from "../../../utils/i18n.js";
2
- import { WidgetWrapper as t } from "../WidgetWrapper.js";
1
+ import { WidgetWrapper as e } from "../WidgetWrapper.js";
2
+ import { tWithFallback as t } from "../../../utils/i18n.js";
3
3
  import { pickTips as n } from "./tipsCatalog.js";
4
4
  import { ExternalLink as r, Lightbulb as i } from "lucide-react";
5
5
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
6
  import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
7
- //#region src/pages/dashboard/widgets/TipsWidget.tsx
7
+ // src/pages/dashboard/widgets/TipsWidget.tsx
8
8
  function c({ navigate: c, isLoading: l, productId: u }) {
9
9
  let { t: d } = s(), f = n(d, u);
10
- return /* @__PURE__ */ a(t, {
11
- title: e(d, "dashboard.tips.title", "Tips & Resources"),
10
+ return /* @__PURE__ */ a(e, {
11
+ title: t(d, "dashboard.tips.title", "Tips & Resources"),
12
12
  icon: /* @__PURE__ */ a(i, { className: "size-4" }),
13
13
  size: "small",
14
14
  isLoading: l,
@@ -51,5 +51,4 @@ function c({ navigate: c, isLoading: l, productId: u }) {
51
51
  })
52
52
  });
53
53
  }
54
- //#endregion
55
54
  export { c as TipsWidget };
@@ -1,18 +1,18 @@
1
- import { tWithFallback as e } from "../../../utils/i18n.js";
2
- import { WidgetWrapper as t } from "../WidgetWrapper.js";
1
+ import { WidgetWrapper as e } from "../WidgetWrapper.js";
2
+ import { tWithFallback as t } from "../../../utils/i18n.js";
3
3
  import { ArrowRight as n, Calendar as r, Clock as i } from "lucide-react";
4
4
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
5
5
  import { Badge as s, Button as c, IllustratedEmptyState as l } from "@burdenoff/fe-libs/ui";
6
6
  import { useI18n as u } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
7
- //#region src/pages/dashboard/widgets/UpcomingEventsWidget.tsx
8
- function d(t, n) {
7
+ // src/pages/dashboard/widgets/UpcomingEventsWidget.tsx
8
+ function d(e, n) {
9
9
  let r = new Date(n), i = /* @__PURE__ */ new Date(), a = r.toDateString() === i.toDateString(), o = new Date(i);
10
10
  o.setDate(o.getDate() + 1);
11
11
  let s = r.toDateString() === o.toDateString();
12
- return a ? e(t, "dashboard.upcomingEvents.today", "Today at {time}", { time: r.toLocaleTimeString([], {
12
+ return a ? t(e, "dashboard.upcomingEvents.today", "Today at {time}", { time: r.toLocaleTimeString([], {
13
13
  hour: "2-digit",
14
14
  minute: "2-digit"
15
- }) }) : s ? e(t, "dashboard.upcomingEvents.tomorrow", "Tomorrow at {time}", { time: r.toLocaleTimeString([], {
15
+ }) }) : s ? t(e, "dashboard.upcomingEvents.tomorrow", "Tomorrow at {time}", { time: r.toLocaleTimeString([], {
16
16
  hour: "2-digit",
17
17
  minute: "2-digit"
18
18
  }) }) : r.toLocaleDateString([], {
@@ -24,8 +24,8 @@ function d(t, n) {
24
24
  }
25
25
  function f({ workspaceData: f, isLoading: p, navigate: m }) {
26
26
  let { t: h } = u(), g = f?.upcomingEvents ?? [];
27
- return /* @__PURE__ */ a(t, {
28
- title: e(h, "dashboard.upcomingEvents.title", "Upcoming Events"),
27
+ return /* @__PURE__ */ a(e, {
28
+ title: t(h, "dashboard.upcomingEvents.title", "Upcoming Events"),
29
29
  icon: /* @__PURE__ */ a(r, { className: "size-4" }),
30
30
  size: "medium",
31
31
  isLoading: p,
@@ -36,24 +36,24 @@ function f({ workspaceData: f, isLoading: p, navigate: m }) {
36
36
  className: "text-xs",
37
37
  onClick: () => m("/calendar"),
38
38
  children: [
39
- e(h, "dashboard.upcomingEvents.viewAll", "View all"),
39
+ t(h, "dashboard.upcomingEvents.viewAll", "View all"),
40
40
  " ",
41
41
  /* @__PURE__ */ a(n, { className: "ml-1 size-3" })
42
42
  ]
43
43
  }),
44
44
  children: g.length === 0 ? /* @__PURE__ */ a(l, {
45
45
  illustration: "empty-data",
46
- title: e(h, "dashboard.upcomingEvents.emptyTitle", "No upcoming events"),
46
+ title: t(h, "dashboard.upcomingEvents.emptyTitle", "No upcoming events"),
47
47
  className: "py-4",
48
48
  action: /* @__PURE__ */ a(c, {
49
49
  variant: "outline",
50
50
  size: "sm",
51
51
  onClick: () => m("/calendar"),
52
- children: e(h, "dashboard.upcomingEvents.emptyAction", "Schedule an event")
52
+ children: t(h, "dashboard.upcomingEvents.emptyAction", "Schedule an event")
53
53
  })
54
54
  }) : /* @__PURE__ */ a("div", {
55
55
  className: "space-y-2",
56
- children: g.map((t) => /* @__PURE__ */ o("button", {
56
+ children: g.map((e) => /* @__PURE__ */ o("button", {
57
57
  type: "button",
58
58
  className: "w-full flex items-start gap-3 p-2 rounded-md hover:bg-accent/5 cursor-pointer transition-colors text-left",
59
59
  onClick: () => m("/calendar"),
@@ -66,21 +66,20 @@ function f({ workspaceData: f, isLoading: p, navigate: m }) {
66
66
  className: "min-w-0 flex-1",
67
67
  children: [/* @__PURE__ */ a("p", {
68
68
  className: "text-sm font-medium text-text-primary truncate",
69
- children: t.title
69
+ children: e.title
70
70
  }), /* @__PURE__ */ a("p", {
71
71
  className: "text-xs text-text-secondary",
72
- children: d(h, t.startTime)
72
+ children: d(h, e.startTime)
73
73
  })]
74
74
  }),
75
- t.allDay && /* @__PURE__ */ a(s, {
75
+ e.allDay && /* @__PURE__ */ a(s, {
76
76
  variant: "secondary",
77
77
  className: "text-[10px] shrink-0",
78
- children: e(h, "dashboard.upcomingEvents.allDay", "All day")
78
+ children: t(h, "dashboard.upcomingEvents.allDay", "All day")
79
79
  })
80
80
  ]
81
- }, t.id))
81
+ }, e.id))
82
82
  })
83
83
  });
84
84
  }
85
- //#endregion
86
85
  export { f as UpcomingEventsWidget };
@@ -1,26 +1,26 @@
1
- import { tWithFallback as e } from "../../../utils/i18n.js";
2
- import { WidgetWrapper as t } from "../WidgetWrapper.js";
1
+ import { WidgetWrapper as e } from "../WidgetWrapper.js";
2
+ import { tWithFallback as t } from "../../../utils/i18n.js";
3
3
  import { ArrowRight as n, Plus as r, Sparkles as i } from "lucide-react";
4
4
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
5
5
  import { Button as s, IllustratedEmptyState as c } from "@burdenoff/fe-libs/ui";
6
6
  import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
7
- //#region src/pages/dashboard/widgets/VibesWidget.tsx
8
- function u(t, n) {
7
+ // src/pages/dashboard/widgets/VibesWidget.tsx
8
+ function u(e, n) {
9
9
  let r = Date.now() - new Date(n).getTime(), i = Math.floor(r / 6e4);
10
- if (i < 1) return e(t, "dashboard.vibes.justNow", "just now");
11
- if (i < 60) return e(t, "dashboard.vibes.minutesAgo", "{count}m ago", { count: i });
10
+ if (i < 1) return t(e, "dashboard.vibes.justNow", "just now");
11
+ if (i < 60) return t(e, "dashboard.vibes.minutesAgo", "{count}m ago", { count: i });
12
12
  let a = Math.floor(i / 60);
13
- if (a < 24) return e(t, "dashboard.vibes.hoursAgo", "{count}h ago", { count: a });
13
+ if (a < 24) return t(e, "dashboard.vibes.hoursAgo", "{count}h ago", { count: a });
14
14
  let o = Math.floor(a / 24);
15
- return o < 7 ? e(t, "dashboard.vibes.daysAgo", "{count}d ago", { count: o }) : new Date(n).toLocaleDateString(void 0, {
15
+ return o < 7 ? t(e, "dashboard.vibes.daysAgo", "{count}d ago", { count: o }) : new Date(n).toLocaleDateString(void 0, {
16
16
  month: "short",
17
17
  day: "numeric"
18
18
  });
19
19
  }
20
20
  function d({ workspaceData: d, isLoading: f, navigate: p }) {
21
21
  let { t: m } = l(), h = d?.recentVibes ?? [];
22
- return /* @__PURE__ */ a(t, {
23
- title: e(m, "dashboard.vibes.title", "Recent Vibes"),
22
+ return /* @__PURE__ */ a(e, {
23
+ title: t(m, "dashboard.vibes.title", "Recent Vibes"),
24
24
  icon: /* @__PURE__ */ a(i, { className: "size-4" }),
25
25
  size: "medium",
26
26
  isLoading: f,
@@ -31,14 +31,14 @@ function d({ workspaceData: d, isLoading: f, navigate: p }) {
31
31
  className: "text-xs",
32
32
  onClick: () => p("/vibecontrols/vibes"),
33
33
  children: [
34
- e(m, "dashboard.vibes.viewAll", "View all"),
34
+ t(m, "dashboard.vibes.viewAll", "View all"),
35
35
  " ",
36
36
  /* @__PURE__ */ a(n, { className: "ml-1 size-3" })
37
37
  ]
38
38
  }),
39
39
  children: h.length === 0 ? /* @__PURE__ */ a(c, {
40
40
  illustration: "empty-vibes",
41
- title: e(m, "dashboard.vibes.emptyTitle", "No vibes yet"),
41
+ title: t(m, "dashboard.vibes.emptyTitle", "No vibes yet"),
42
42
  className: "py-4",
43
43
  action: /* @__PURE__ */ o(s, {
44
44
  variant: "outline",
@@ -47,7 +47,7 @@ function d({ workspaceData: d, isLoading: f, navigate: p }) {
47
47
  children: [
48
48
  /* @__PURE__ */ a(r, { className: "mr-1.5 size-3.5" }),
49
49
  " ",
50
- e(m, "dashboard.vibes.emptyAction", "Create your first vibe")
50
+ t(m, "dashboard.vibes.emptyAction", "Create your first vibe")
51
51
  ]
52
52
  })
53
53
  }) : /* @__PURE__ */ a("ul", {
@@ -67,5 +67,4 @@ function d({ workspaceData: d, isLoading: f, navigate: p }) {
67
67
  })
68
68
  });
69
69
  }
70
- //#endregion
71
70
  export { d as VibesWidget };
@@ -1,10 +1,10 @@
1
- import { tWithFallback as e } from "../../../utils/i18n.js";
2
- import { WidgetWrapper as t } from "../WidgetWrapper.js";
1
+ import { WidgetWrapper as e } from "../WidgetWrapper.js";
2
+ import { tWithFallback as t } from "../../../utils/i18n.js";
3
3
  import { Activity as n, Building2 as r, FolderKanban as i, LayoutDashboard as a, Users as o } from "lucide-react";
4
4
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
5
5
  import { GlassCard as l, GradientText as u } from "@burdenoff/fe-libs/ui";
6
6
  import { useI18n as d } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
7
- //#region src/pages/dashboard/widgets/WelcomeWidget.tsx
7
+ // src/pages/dashboard/widgets/WelcomeWidget.tsx
8
8
  function f({ icon: e, label: t, value: n, onClick: r }) {
9
9
  return /* @__PURE__ */ s(l, {
10
10
  treatment: "metric",
@@ -31,9 +31,9 @@ function f({ icon: e, label: t, value: n, onClick: r }) {
31
31
  });
32
32
  }
33
33
  function p({ workspaceData: p, globalData: m, isLoading: h, navigate: g }) {
34
- let { t: _ } = d(), v = m?.currentUser, y = v?.firstName || v?.name?.split(" ")[0] || e(_, "dashboard.welcome.fallbackName", "there"), b = (/* @__PURE__ */ new Date()).getHours(), x = b < 12 ? e(_, "dashboard.welcome.greetingMorning", "Good morning") : b < 18 ? e(_, "dashboard.welcome.greetingAfternoon", "Good afternoon") : e(_, "dashboard.welcome.greetingEvening", "Good evening"), S = p?.workspaces.total ?? 0, C = p?.projects.total ?? 0, w = p?.groups.totalCount ?? 0, T = p?.recentActivities.length ?? 0;
35
- return /* @__PURE__ */ s(t, {
36
- title: e(_, "dashboard.welcome.title", "Dashboard"),
34
+ let { t: _ } = d(), v = m?.currentUser, y = v?.firstName || v?.name?.split(" ")[0] || t(_, "dashboard.welcome.fallbackName", "there"), b = (/* @__PURE__ */ new Date()).getHours(), x = b < 12 ? t(_, "dashboard.welcome.greetingMorning", "Good morning") : b < 18 ? t(_, "dashboard.welcome.greetingAfternoon", "Good afternoon") : t(_, "dashboard.welcome.greetingEvening", "Good evening"), S = p?.workspaces.total ?? 0, C = p?.projects.total ?? 0, w = p?.groups.totalCount ?? 0, T = p?.recentActivities.length ?? 0;
35
+ return /* @__PURE__ */ s(e, {
36
+ title: t(_, "dashboard.welcome.title", "Dashboard"),
37
37
  icon: /* @__PURE__ */ s(a, { className: "size-4" }),
38
38
  size: "large",
39
39
  isLoading: h,
@@ -53,32 +53,32 @@ function p({ workspaceData: p, globalData: m, isLoading: h, navigate: g }) {
53
53
  ]
54
54
  }), /* @__PURE__ */ s("p", {
55
55
  className: "text-sm text-text-secondary mt-1",
56
- children: e(_, "dashboard.welcome.subtitle", "Here's what's happening across your workspaces today.")
56
+ children: t(_, "dashboard.welcome.subtitle", "Here's what's happening across your workspaces today.")
57
57
  })]
58
58
  }), /* @__PURE__ */ c("div", {
59
59
  className: "grid grid-cols-2 sm:grid-cols-4 gap-3",
60
60
  children: [
61
61
  /* @__PURE__ */ s(f, {
62
62
  icon: /* @__PURE__ */ s(r, { className: "size-4" }),
63
- label: e(_, "dashboard.welcome.statWorkspaces", "Workspaces"),
63
+ label: t(_, "dashboard.welcome.statWorkspaces", "Workspaces"),
64
64
  value: S,
65
65
  onClick: () => g("/workspaces/list")
66
66
  }),
67
67
  /* @__PURE__ */ s(f, {
68
68
  icon: /* @__PURE__ */ s(i, { className: "size-4" }),
69
- label: e(_, "dashboard.welcome.statProjects", "Projects"),
69
+ label: t(_, "dashboard.welcome.statProjects", "Projects"),
70
70
  value: C,
71
71
  onClick: () => g("/workspaces/projects")
72
72
  }),
73
73
  /* @__PURE__ */ s(f, {
74
74
  icon: /* @__PURE__ */ s(o, { className: "size-4" }),
75
- label: e(_, "dashboard.welcome.statGroups", "Groups"),
75
+ label: t(_, "dashboard.welcome.statGroups", "Groups"),
76
76
  value: w,
77
77
  onClick: () => g("/groups")
78
78
  }),
79
79
  /* @__PURE__ */ s(f, {
80
80
  icon: /* @__PURE__ */ s(n, { className: "size-4" }),
81
- label: e(_, "dashboard.welcome.statRecentActivity", "Recent Activity"),
81
+ label: t(_, "dashboard.welcome.statRecentActivity", "Recent Activity"),
82
82
  value: T,
83
83
  onClick: () => g("/workspaces/activity")
84
84
  })
@@ -87,5 +87,4 @@ function p({ workspaceData: p, globalData: m, isLoading: h, navigate: g }) {
87
87
  })
88
88
  });
89
89
  }
90
- //#endregion
91
90
  export { p as WelcomeWidget };
@@ -1,10 +1,10 @@
1
- import { tWithFallback as e } from "../../../utils/i18n.js";
2
- import { WidgetWrapper as t } from "../WidgetWrapper.js";
1
+ import { WidgetWrapper as e } from "../WidgetWrapper.js";
2
+ import { tWithFallback as t } from "../../../utils/i18n.js";
3
3
  import { Activity as n, ArrowRight as r, CheckCircle2 as i, Clock as a, Play as o, XCircle as s } from "lucide-react";
4
4
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
5
5
  import { Badge as u, Button as d, IllustratedEmptyState as f } from "@burdenoff/fe-libs/ui";
6
6
  import { useI18n as p } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
7
- //#region src/pages/dashboard/widgets/WorkflowRunsWidget.tsx
7
+ // src/pages/dashboard/widgets/WorkflowRunsWidget.tsx
8
8
  var m = {
9
9
  RUNNING: {
10
10
  icon: o,
@@ -35,20 +35,20 @@ var m = {
35
35
  color: "text-text-tertiary"
36
36
  }
37
37
  };
38
- function h(t, n) {
38
+ function h(e, n) {
39
39
  let r = Date.now() - new Date(n).getTime(), i = Math.floor(r / 6e4);
40
- if (i < 1) return e(t, "dashboard.workflowRuns.justNow", "just now");
41
- if (i < 60) return e(t, "dashboard.workflowRuns.minutesAgo", "{count}m ago", { count: i });
40
+ if (i < 1) return t(e, "dashboard.workflowRuns.justNow", "just now");
41
+ if (i < 60) return t(e, "dashboard.workflowRuns.minutesAgo", "{count}m ago", { count: i });
42
42
  let a = Math.floor(i / 60);
43
- return a < 24 ? e(t, "dashboard.workflowRuns.hoursAgo", "{count}h ago", { count: a }) : new Date(n).toLocaleDateString(void 0, {
43
+ return a < 24 ? t(e, "dashboard.workflowRuns.hoursAgo", "{count}h ago", { count: a }) : new Date(n).toLocaleDateString(void 0, {
44
44
  month: "short",
45
45
  day: "numeric"
46
46
  });
47
47
  }
48
48
  function g({ workspaceData: i, isLoading: a, navigate: o }) {
49
49
  let { t: s } = p(), g = i?.workflowStats, _ = g?.recentRuns ?? [], v = g?.workflowSuccessRate;
50
- return /* @__PURE__ */ c(t, {
51
- title: e(s, "dashboard.workflowRuns.title", "Workflow Runs"),
50
+ return /* @__PURE__ */ c(e, {
51
+ title: t(s, "dashboard.workflowRuns.title", "Workflow Runs"),
52
52
  icon: /* @__PURE__ */ c(n, { className: "size-4" }),
53
53
  size: "medium",
54
54
  isLoading: a,
@@ -59,7 +59,7 @@ function g({ workspaceData: i, isLoading: a, navigate: o }) {
59
59
  className: "text-xs",
60
60
  onClick: () => o("/workflows/runs"),
61
61
  children: [
62
- e(s, "dashboard.workflowRuns.viewAll", "View all"),
62
+ t(s, "dashboard.workflowRuns.viewAll", "View all"),
63
63
  " ",
64
64
  /* @__PURE__ */ c(r, { className: "ml-1 size-3" })
65
65
  ]
@@ -76,7 +76,7 @@ function g({ workspaceData: i, isLoading: a, navigate: o }) {
76
76
  children: g.runsRunningCount ?? 0
77
77
  }), /* @__PURE__ */ c("p", {
78
78
  className: "text-[11px] text-text-secondary",
79
- children: e(s, "dashboard.workflowRuns.statRunning", "Running")
79
+ children: t(s, "dashboard.workflowRuns.statRunning", "Running")
80
80
  })]
81
81
  }),
82
82
  /* @__PURE__ */ l("div", {
@@ -86,7 +86,7 @@ function g({ workspaceData: i, isLoading: a, navigate: o }) {
86
86
  children: g.runsFailedLast24h ?? 0
87
87
  }), /* @__PURE__ */ c("p", {
88
88
  className: "text-[11px] text-text-secondary",
89
- children: e(s, "dashboard.workflowRuns.statFailed24h", "Failed (24h)")
89
+ children: t(s, "dashboard.workflowRuns.statFailed24h", "Failed (24h)")
90
90
  })]
91
91
  }),
92
92
  /* @__PURE__ */ l("div", {
@@ -96,7 +96,7 @@ function g({ workspaceData: i, isLoading: a, navigate: o }) {
96
96
  children: v == null ? "—" : `${Math.round(v)}%`
97
97
  }), /* @__PURE__ */ c("p", {
98
98
  className: "text-[11px] text-text-secondary",
99
- children: e(s, "dashboard.workflowRuns.statSuccessRate", "Success rate")
99
+ children: t(s, "dashboard.workflowRuns.statSuccessRate", "Success rate")
100
100
  })]
101
101
  })
102
102
  ]
@@ -104,7 +104,7 @@ function g({ workspaceData: i, isLoading: a, navigate: o }) {
104
104
  className: "space-y-1.5",
105
105
  children: [/* @__PURE__ */ c("p", {
106
106
  className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
107
- children: e(s, "dashboard.workflowRuns.recentRunsHeading", "Recent Runs")
107
+ children: t(s, "dashboard.workflowRuns.recentRunsHeading", "Recent Runs")
108
108
  }), _.slice(0, 4).map((e) => {
109
109
  let t = m[e.status] ?? m.RUNNING, n = t.icon;
110
110
  return /* @__PURE__ */ l("button", {
@@ -133,11 +133,10 @@ function g({ workspaceData: i, isLoading: a, navigate: o }) {
133
133
  })]
134
134
  }) : /* @__PURE__ */ c(f, {
135
135
  illustration: "empty-data",
136
- title: e(s, "dashboard.workflowRuns.emptyTitle", "No runs yet"),
137
- description: e(s, "dashboard.workflowRuns.emptyDescription", "Trigger a workflow to see its execution history here."),
136
+ title: t(s, "dashboard.workflowRuns.emptyTitle", "No runs yet"),
137
+ description: t(s, "dashboard.workflowRuns.emptyDescription", "Trigger a workflow to see its execution history here."),
138
138
  className: "py-4"
139
139
  })
140
140
  });
141
141
  }
142
- //#endregion
143
142
  export { g as WorkflowRunsWidget };