@burdenoff/microfe-workspaces 2026.1109.1 → 2026.1110.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.
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,331 +1,330 @@
1
- import { useWorkspacesContext as e } from "../providers/WorkspacesProvider.js";
1
+ import { tWithFallback as e } from "../utils/i18n.js";
2
2
  import { useWorkspace as t } from "../hooks/useWorkspaces.js";
3
- import { useScopedNavigation as n } from "../hooks/useScopedNavigation.js";
4
- import { tWithFallback as r } from "../utils/i18n.js";
5
- import { useWorkspacesPageView as ee } from "../hooks/useWorkspacesPageView.js";
6
- import { useWorkspaceMembers as te } from "../hooks/useWorkspaceMembers.js";
7
- import { useWorkspacePermissions as ne } from "../hooks/useWorkspacePermissions.js";
8
- import { useProjects as i } from "../hooks/useProjects.js";
9
- import { useArchiveWorkspace as a } from "../hooks/useWorkspaceMutations.js";
10
- import { useWorkspaceActivity as o } from "../hooks/useWorkspaceActivity.js";
11
- import { useState as s } from "react";
12
- import { Activity as c, Archive as l, ArrowLeft as u, ChevronRight as d, FolderKanban as f, Settings as p, UserPlus as m, Users as h } from "lucide-react";
13
- import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
14
- import { AlertDialog as y, AlertDialogAction as b, AlertDialogCancel as x, AlertDialogContent as S, AlertDialogDescription as re, AlertDialogFooter as C, AlertDialogHeader as w, AlertDialogTitle as T, Badge as E, Button as D, CTAOverflowMenu as ie, CardContent as O, CardHeader as k, CardTitle as A, GlassCard as j, IllustratedEmptyState as M, NextSteps as N, PagePurpose as P, Skeleton as F } from "@burdenoff/fe-libs/ui";
15
- import { useI18n as I } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
16
- import { useNavigate as L, useParams as R } from "react-router";
17
- //#region src/pages/WorkspaceDetailPage.tsx
18
- function z() {
19
- let { workspaceId: z } = R();
20
- ee("workspaces.detail", {
21
- workspaceId: z,
3
+ import { useProjects as n } from "../hooks/useProjects.js";
4
+ import { useWorkspaceMembers as ee } from "../hooks/useWorkspaceMembers.js";
5
+ import { useWorkspaceActivity as r } from "../hooks/useWorkspaceActivity.js";
6
+ import { useWorkspacesContext as i } from "../providers/WorkspacesProvider.js";
7
+ import { useScopedNavigation as a } from "../hooks/useScopedNavigation.js";
8
+ import { useWorkspacePermissions as o } from "../hooks/useWorkspacePermissions.js";
9
+ import { useWorkspacesPageView as s } from "../hooks/useWorkspacesPageView.js";
10
+ import { useArchiveWorkspace as c } from "../hooks/useWorkspaceMutations.js";
11
+ import { useState as l } from "react";
12
+ import { Activity as u, Archive as te, ArrowLeft as d, ChevronRight as f, FolderKanban as p, Settings as m, UserPlus as h, Users as g } from "lucide-react";
13
+ import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
14
+ import { AlertDialog as b, AlertDialogAction as x, AlertDialogCancel as S, AlertDialogContent as C, AlertDialogDescription as w, AlertDialogFooter as T, AlertDialogHeader as E, AlertDialogTitle as ne, Badge as D, Button as O, CTAOverflowMenu as re, CardContent as k, CardHeader as A, CardTitle as j, GlassCard as M, IllustratedEmptyState as N, NextSteps as P, PagePurpose as F, Skeleton as I } from "@burdenoff/fe-libs/ui";
15
+ import { useI18n as L } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
16
+ import { useNavigate as R, useParams as z } from "react-router";
17
+ // src/pages/WorkspaceDetailPage.tsx
18
+ function B() {
19
+ let { workspaceId: B } = z();
20
+ s("workspaces.detail", {
21
+ workspaceId: B,
22
22
  requireParams: !0
23
23
  });
24
- let { t: B } = I(), V = L(), { basePath: H = "/" } = e(), { withCurrentSearch: U } = n(), [W, G] = s(!1), [K, q] = s(null), { mutate: J, isPending: Y } = a(), { data: X, isLoading: ae, error: oe } = t(z || ""), { data: se } = i({ workspaceId: z }, { limit: 1 }, z), { data: ce } = te(z || "", { limit: 1 }), { data: le } = o(z), { canViewWorkspace: ue, canUpdateWorkspace: Z, canArchiveWorkspace: de, canInviteMember: Q, isLoading: fe } = ne();
25
- if (fe) return /* @__PURE__ */ v("div", {
24
+ let { t: V } = L(), H = R(), { basePath: U = "/" } = i(), { withCurrentSearch: W } = a(), [ie, G] = l(!1), [K, q] = l(null), { mutate: J, isPending: Y } = c(), { data: X, isLoading: ae, error: oe } = t(B || ""), { data: se } = n({ workspaceId: B }, { limit: 1 }, B), { data: ce } = ee(B || "", { limit: 1 }), { data: le } = r(B), { canViewWorkspace: ue, canUpdateWorkspace: Z, canArchiveWorkspace: de, canInviteMember: Q, isLoading: fe } = o();
25
+ if (fe) return /* @__PURE__ */ y("div", {
26
26
  className: "space-y-4 sm:space-y-6 p-3 sm:p-6",
27
- children: [/* @__PURE__ */ _(F, { className: "h-10 w-1/3" }), /* @__PURE__ */ v("div", {
27
+ children: [/* @__PURE__ */ v(I, { className: "h-10 w-1/3" }), /* @__PURE__ */ y("div", {
28
28
  className: "grid grid-cols-1 md:grid-cols-3 gap-4",
29
29
  children: [
30
- /* @__PURE__ */ _(F, { className: "h-32" }),
31
- /* @__PURE__ */ _(F, { className: "h-32" }),
32
- /* @__PURE__ */ _(F, { className: "h-32" })
30
+ /* @__PURE__ */ v(I, { className: "h-32" }),
31
+ /* @__PURE__ */ v(I, { className: "h-32" }),
32
+ /* @__PURE__ */ v(I, { className: "h-32" })
33
33
  ]
34
34
  })]
35
35
  });
36
- if (!ue) return /* @__PURE__ */ _("div", {
36
+ if (!ue) return /* @__PURE__ */ v("div", {
37
37
  className: "flex items-center justify-center min-h-[400px]",
38
- children: /* @__PURE__ */ v("div", {
38
+ children: /* @__PURE__ */ y("div", {
39
39
  className: "text-center space-y-2",
40
- children: [/* @__PURE__ */ _("h2", {
40
+ children: [/* @__PURE__ */ v("h2", {
41
41
  className: "text-lg font-semibold",
42
- children: r(B, "workspaceDetail.accessDenied", "Access Denied")
43
- }), /* @__PURE__ */ _("p", {
42
+ children: e(V, "workspaceDetail.accessDenied", "Access Denied")
43
+ }), /* @__PURE__ */ v("p", {
44
44
  className: "text-sm text-text-secondary",
45
- children: r(B, "workspaceDetail.accessDeniedDesc", "You don't have permission to view this workspace.")
45
+ children: e(V, "workspaceDetail.accessDeniedDesc", "You don't have permission to view this workspace.")
46
46
  })]
47
47
  })
48
48
  });
49
- if (ae) return /* @__PURE__ */ v("div", {
49
+ if (ae) return /* @__PURE__ */ y("div", {
50
50
  className: "space-y-4 sm:space-y-6 p-3 sm:p-6",
51
- children: [/* @__PURE__ */ _(F, { className: "h-10 w-1/3" }), /* @__PURE__ */ v("div", {
51
+ children: [/* @__PURE__ */ v(I, { className: "h-10 w-1/3" }), /* @__PURE__ */ y("div", {
52
52
  className: "grid grid-cols-1 md:grid-cols-3 gap-4",
53
53
  children: [
54
- /* @__PURE__ */ _(F, { className: "h-32" }),
55
- /* @__PURE__ */ _(F, { className: "h-32" }),
56
- /* @__PURE__ */ _(F, { className: "h-32" })
54
+ /* @__PURE__ */ v(I, { className: "h-32" }),
55
+ /* @__PURE__ */ v(I, { className: "h-32" }),
56
+ /* @__PURE__ */ v(I, { className: "h-32" })
57
57
  ]
58
58
  })]
59
59
  });
60
- if (oe || !X) return /* @__PURE__ */ v("div", {
60
+ if (oe || !X) return /* @__PURE__ */ y("div", {
61
61
  className: "space-y-4 p-6",
62
- children: [/* @__PURE__ */ v(D, {
62
+ children: [/* @__PURE__ */ y(O, {
63
63
  variant: "ghost",
64
- onClick: () => V(U(`${H}/list`)),
64
+ onClick: () => H(W(`${U}/list`)),
65
65
  className: "gap-2",
66
- children: [/* @__PURE__ */ _(u, { size: 20 }), r(B, "workspaceDetail.backToWorkspaces", "Back to Workspaces")]
67
- }), /* @__PURE__ */ _(M, {
66
+ children: [/* @__PURE__ */ v(d, { size: 20 }), e(V, "workspaceDetail.backToWorkspaces", "Back to Workspaces")]
67
+ }), /* @__PURE__ */ v(N, {
68
68
  illustration: "empty-search",
69
- title: r(B, "workspaceDetail.notFound", "Workspace not found"),
70
- description: r(B, "workspaceDetail.notFoundDescription", "This workspace doesn't exist or you don't have permission to view it.")
69
+ title: e(V, "workspaceDetail.notFound", "Workspace not found"),
70
+ description: e(V, "workspaceDetail.notFoundDescription", "This workspace doesn't exist or you don't have permission to view it.")
71
71
  })]
72
72
  });
73
73
  let $ = (e, t) => {
74
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), V(t));
74
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), H(t));
75
75
  }, pe = () => {
76
- z && (q(null), J(z, {
76
+ B && (q(null), J(B, {
77
77
  onSuccess: () => {
78
- G(!1), V(U(`${H}/list`));
78
+ G(!1), H(W(`${U}/list`));
79
79
  },
80
80
  onError: () => {
81
- q(r(B, "workspaceDetail.archiveFailed", "The workspace could not be archived. Please try again."));
81
+ q(e(V, "workspaceDetail.archiveFailed", "The workspace could not be archived. Please try again."));
82
82
  }
83
83
  }));
84
84
  };
85
- return /* @__PURE__ */ v("div", {
85
+ return /* @__PURE__ */ y("div", {
86
86
  className: "space-y-4 sm:space-y-6 p-3 sm:p-6",
87
87
  children: [
88
- /* @__PURE__ */ v("div", {
88
+ /* @__PURE__ */ y("div", {
89
89
  className: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",
90
- children: [/* @__PURE__ */ v("div", { children: [
91
- /* @__PURE__ */ v(D, {
90
+ children: [/* @__PURE__ */ y("div", { children: [
91
+ /* @__PURE__ */ y(O, {
92
92
  variant: "ghost",
93
- onClick: () => V(U(`${H}/list`)),
93
+ onClick: () => H(W(`${U}/list`)),
94
94
  className: "gap-2 mb-2 -ml-2",
95
- children: [/* @__PURE__ */ _(u, { size: 20 }), r(B, "workspaceDetail.backToWorkspaces", "Back to Workspaces")]
95
+ children: [/* @__PURE__ */ v(d, { size: 20 }), e(V, "workspaceDetail.backToWorkspaces", "Back to Workspaces")]
96
96
  }),
97
- /* @__PURE__ */ _("h1", {
97
+ /* @__PURE__ */ v("h1", {
98
98
  className: "text-2xl sm:text-3xl font-bold",
99
99
  children: X.name
100
100
  }),
101
- /* @__PURE__ */ v("div", {
101
+ /* @__PURE__ */ y("div", {
102
102
  className: "flex items-center gap-2 mt-2",
103
- children: [/* @__PURE__ */ _(E, {
103
+ children: [/* @__PURE__ */ v(D, {
104
104
  variant: "outline",
105
105
  children: X.type
106
- }), /* @__PURE__ */ _(E, { children: X.status })]
106
+ }), /* @__PURE__ */ v(D, { children: X.status })]
107
107
  })
108
- ] }), /* @__PURE__ */ _(ie, {
108
+ ] }), /* @__PURE__ */ v(re, {
109
109
  primary: Z ? {
110
- label: r(B, "workspaceDetail.settings", "Settings"),
111
- icon: /* @__PURE__ */ _(p, { size: 18 }),
112
- onSelect: () => V(U(`${H}/${z}/settings`))
110
+ label: e(V, "workspaceDetail.settings", "Settings"),
111
+ icon: /* @__PURE__ */ v(m, { size: 18 }),
112
+ onSelect: () => H(W(`${U}/${B}/settings`))
113
113
  } : Q ? {
114
- label: r(B, "workspaceDetail.inviteMembers", "Invite Member"),
115
- icon: /* @__PURE__ */ _(m, { size: 18 }),
116
- onSelect: () => V(U(`${H}/${z}/invite`))
114
+ label: e(V, "workspaceDetail.inviteMembers", "Invite Member"),
115
+ icon: /* @__PURE__ */ v(h, { size: 18 }),
116
+ onSelect: () => H(W(`${U}/${B}/invite`))
117
117
  } : void 0,
118
118
  actions: [...Z && Q ? [{
119
- label: r(B, "workspaceDetail.inviteMembers", "Invite Member"),
120
- icon: /* @__PURE__ */ _(m, { size: 16 }),
121
- onSelect: () => V(U(`${H}/${z}/invite`))
119
+ label: e(V, "workspaceDetail.inviteMembers", "Invite Member"),
120
+ icon: /* @__PURE__ */ v(h, { size: 16 }),
121
+ onSelect: () => H(W(`${U}/${B}/invite`))
122
122
  }] : [], ...de ? [{
123
- label: r(B, "workspaceDetail.archiveWorkspace", "Archive Workspace"),
124
- icon: /* @__PURE__ */ _(l, { size: 16 }),
123
+ label: e(V, "workspaceDetail.archiveWorkspace", "Archive Workspace"),
124
+ icon: /* @__PURE__ */ v(te, { size: 16 }),
125
125
  onSelect: () => G(!0)
126
126
  }] : []]
127
127
  })]
128
128
  }),
129
- /* @__PURE__ */ _(P, { children: r(B, "workspaceDetail.purpose", "This is the home for a single workspace — the hub that ties together its projects, the people who collaborate in it, and everything that happens inside. Use the cards below to jump into work, manage who has access, or review recent activity.") }),
130
- /* @__PURE__ */ _(N, {
129
+ /* @__PURE__ */ v(F, { children: e(V, "workspaceDetail.purpose", "This is the home for a single workspace — the hub that ties together its projects, the people who collaborate in it, and everything that happens inside. Use the cards below to jump into work, manage who has access, or review recent activity.") }),
130
+ /* @__PURE__ */ v(P, {
131
131
  storageKey: "workspaces-workspace-detail",
132
132
  steps: [
133
133
  {
134
134
  id: "open-projects",
135
- label: r(B, "workspaceDetail.stepProjects", "Open the projects board"),
136
- description: r(B, "workspaceDetail.stepProjectsDesc", "Projects are where the actual work lives — start or pick one up."),
137
- icon: /* @__PURE__ */ _(f, { size: 16 }),
138
- onClick: () => V(U(`${H}/${z}/projects`))
135
+ label: e(V, "workspaceDetail.stepProjects", "Open the projects board"),
136
+ description: e(V, "workspaceDetail.stepProjectsDesc", "Projects are where the actual work lives — start or pick one up."),
137
+ icon: /* @__PURE__ */ v(p, { size: 16 }),
138
+ onClick: () => H(W(`${U}/${B}/projects`))
139
139
  },
140
140
  ...Q ? [{
141
141
  id: "invite-member",
142
- label: r(B, "workspaceDetail.stepInvite", "Invite a teammate"),
143
- description: r(B, "workspaceDetail.stepInviteDesc", "Bring people into this workspace so they can collaborate."),
144
- icon: /* @__PURE__ */ _(m, { size: 16 }),
145
- onClick: () => V(U(`${H}/${z}/invite`))
142
+ label: e(V, "workspaceDetail.stepInvite", "Invite a teammate"),
143
+ description: e(V, "workspaceDetail.stepInviteDesc", "Bring people into this workspace so they can collaborate."),
144
+ icon: /* @__PURE__ */ v(h, { size: 16 }),
145
+ onClick: () => H(W(`${U}/${B}/invite`))
146
146
  }] : [],
147
147
  {
148
148
  id: "review-members",
149
- label: r(B, "workspaceDetail.stepMembers", "Review who has access"),
150
- description: r(B, "workspaceDetail.stepMembersDesc", "Check the current members and their roles."),
151
- icon: /* @__PURE__ */ _(h, { size: 16 }),
152
- onClick: () => V(U(`${H}/${z}/members`))
149
+ label: e(V, "workspaceDetail.stepMembers", "Review who has access"),
150
+ description: e(V, "workspaceDetail.stepMembersDesc", "Check the current members and their roles."),
151
+ icon: /* @__PURE__ */ v(g, { size: 16 }),
152
+ onClick: () => H(W(`${U}/${B}/members`))
153
153
  },
154
154
  ...Z ? [{
155
155
  id: "configure-settings",
156
- label: r(B, "workspaceDetail.stepSettings", "Configure workspace settings"),
157
- description: r(B, "workspaceDetail.stepSettingsDesc", "Set the name, domain and contact details for this workspace."),
158
- icon: /* @__PURE__ */ _(p, { size: 16 }),
159
- onClick: () => V(U(`${H}/${z}/settings`))
156
+ label: e(V, "workspaceDetail.stepSettings", "Configure workspace settings"),
157
+ description: e(V, "workspaceDetail.stepSettingsDesc", "Set the name, domain and contact details for this workspace."),
158
+ icon: /* @__PURE__ */ v(m, { size: 16 }),
159
+ onClick: () => H(W(`${U}/${B}/settings`))
160
160
  }] : []
161
161
  ]
162
162
  }),
163
- /* @__PURE__ */ v("div", {
163
+ /* @__PURE__ */ y("div", {
164
164
  className: "grid grid-cols-1 lg:grid-cols-3 gap-4 sm:gap-6",
165
- children: [/* @__PURE__ */ _("div", {
165
+ children: [/* @__PURE__ */ v("div", {
166
166
  className: "lg:col-span-2 space-y-4 sm:space-y-6",
167
- children: /* @__PURE__ */ v("div", {
167
+ children: /* @__PURE__ */ y("div", {
168
168
  className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
169
169
  children: [
170
- /* @__PURE__ */ v(j, {
170
+ /* @__PURE__ */ y(M, {
171
171
  treatment: "metric",
172
172
  glow: !0,
173
173
  className: "cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-action-primary-bg/50",
174
- onClick: () => V(U(`${H}/${z}/projects`)),
174
+ onClick: () => H(W(`${U}/${B}/projects`)),
175
175
  role: "button",
176
176
  tabIndex: 0,
177
- onKeyDown: (e) => $(e, U(`${H}/${z}/projects`)),
178
- children: [/* @__PURE__ */ v(k, {
177
+ onKeyDown: (e) => $(e, W(`${U}/${B}/projects`)),
178
+ children: [/* @__PURE__ */ y(A, {
179
179
  className: "flex flex-row items-center justify-between pb-2",
180
- children: [/* @__PURE__ */ v(A, {
180
+ children: [/* @__PURE__ */ y(j, {
181
181
  className: "flex items-center gap-2 text-text-secondary text-sm font-medium",
182
- children: [/* @__PURE__ */ _(f, {
182
+ children: [/* @__PURE__ */ v(p, {
183
183
  size: 18,
184
184
  className: "text-text-muted"
185
- }), r(B, "workspaceDetail.projects", "Projects")]
186
- }), /* @__PURE__ */ _(d, {
185
+ }), e(V, "workspaceDetail.projects", "Projects")]
186
+ }), /* @__PURE__ */ v(f, {
187
187
  size: 18,
188
188
  className: "text-text-muted"
189
189
  })]
190
- }), /* @__PURE__ */ v(O, { children: [/* @__PURE__ */ _("p", {
190
+ }), /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v("p", {
191
191
  className: "text-3xl font-bold tabular-nums",
192
192
  children: se?.total ?? X.projectCount ?? 0
193
- }), /* @__PURE__ */ _("p", {
193
+ }), /* @__PURE__ */ v("p", {
194
194
  className: "text-sm text-text-muted",
195
- children: r(B, "workspaceDetail.projectsDesc", "Projects in this workspace")
195
+ children: e(V, "workspaceDetail.projectsDesc", "Projects in this workspace")
196
196
  })] })]
197
197
  }),
198
- /* @__PURE__ */ v(j, {
198
+ /* @__PURE__ */ y(M, {
199
199
  treatment: "metric",
200
200
  className: "cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-action-primary-bg/50",
201
- onClick: () => V(U(`${H}/${z}/members`)),
201
+ onClick: () => H(W(`${U}/${B}/members`)),
202
202
  role: "button",
203
203
  tabIndex: 0,
204
- onKeyDown: (e) => $(e, U(`${H}/${z}/members`)),
205
- children: [/* @__PURE__ */ v(k, {
204
+ onKeyDown: (e) => $(e, W(`${U}/${B}/members`)),
205
+ children: [/* @__PURE__ */ y(A, {
206
206
  className: "flex flex-row items-center justify-between pb-2",
207
- children: [/* @__PURE__ */ v(A, {
207
+ children: [/* @__PURE__ */ y(j, {
208
208
  className: "flex items-center gap-2 text-text-secondary text-sm font-medium",
209
- children: [/* @__PURE__ */ _(h, {
209
+ children: [/* @__PURE__ */ v(g, {
210
210
  size: 18,
211
211
  className: "text-text-muted"
212
- }), r(B, "workspaceDetail.members", "Members")]
213
- }), /* @__PURE__ */ _(d, {
212
+ }), e(V, "workspaceDetail.members", "Members")]
213
+ }), /* @__PURE__ */ v(f, {
214
214
  size: 18,
215
215
  className: "text-text-muted"
216
216
  })]
217
- }), /* @__PURE__ */ v(O, { children: [/* @__PURE__ */ _("p", {
217
+ }), /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v("p", {
218
218
  className: "text-3xl font-bold tabular-nums",
219
219
  children: ce?.total ?? X.memberCount ?? 0
220
- }), /* @__PURE__ */ _("p", {
220
+ }), /* @__PURE__ */ v("p", {
221
221
  className: "text-sm text-text-muted",
222
- children: r(B, "workspaceDetail.membersDesc", "Workspace members")
222
+ children: e(V, "workspaceDetail.membersDesc", "Workspace members")
223
223
  })] })]
224
224
  }),
225
- /* @__PURE__ */ v(j, {
225
+ /* @__PURE__ */ y(M, {
226
226
  treatment: "metric",
227
227
  className: "cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-action-primary-bg/50",
228
- onClick: () => V(U(`${H}/${z}/activity`)),
228
+ onClick: () => H(W(`${U}/${B}/activity`)),
229
229
  role: "button",
230
230
  tabIndex: 0,
231
- onKeyDown: (e) => $(e, U(`${H}/${z}/activity`)),
232
- children: [/* @__PURE__ */ v(k, {
231
+ onKeyDown: (e) => $(e, W(`${U}/${B}/activity`)),
232
+ children: [/* @__PURE__ */ y(A, {
233
233
  className: "flex flex-row items-center justify-between pb-2",
234
- children: [/* @__PURE__ */ v(A, {
234
+ children: [/* @__PURE__ */ y(j, {
235
235
  className: "flex items-center gap-2 text-text-secondary text-sm font-medium",
236
- children: [/* @__PURE__ */ _(c, {
236
+ children: [/* @__PURE__ */ v(u, {
237
237
  size: 18,
238
238
  className: "text-text-muted"
239
- }), r(B, "workspaceDetail.activity", "Activity")]
240
- }), /* @__PURE__ */ _(d, {
239
+ }), e(V, "workspaceDetail.activity", "Activity")]
240
+ }), /* @__PURE__ */ v(f, {
241
241
  size: 18,
242
242
  className: "text-text-muted"
243
243
  })]
244
- }), /* @__PURE__ */ v(O, { children: [/* @__PURE__ */ _("p", {
244
+ }), /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v("p", {
245
245
  className: "text-3xl font-bold tabular-nums",
246
246
  children: le?.length ?? 0
247
- }), /* @__PURE__ */ _("p", {
247
+ }), /* @__PURE__ */ v("p", {
248
248
  className: "text-sm text-text-muted",
249
- children: r(B, "workspaceDetail.activityDesc", "Recent activity items")
249
+ children: e(V, "workspaceDetail.activityDesc", "Recent activity items")
250
250
  })] })]
251
251
  })
252
252
  ]
253
253
  })
254
- }), /* @__PURE__ */ _("aside", {
254
+ }), /* @__PURE__ */ v("aside", {
255
255
  className: "lg:sticky lg:top-6 lg:self-start",
256
- children: /* @__PURE__ */ v(j, {
256
+ children: /* @__PURE__ */ y(M, {
257
257
  treatment: "plain",
258
258
  className: "border-border-seam",
259
- children: [/* @__PURE__ */ _(k, { children: /* @__PURE__ */ _(A, { children: r(B, "workspaceDetail.workspaceInformation", "Workspace Information") }) }), /* @__PURE__ */ _(O, {
259
+ children: [/* @__PURE__ */ v(A, { children: /* @__PURE__ */ v(j, { children: e(V, "workspaceDetail.workspaceInformation", "Workspace Information") }) }), /* @__PURE__ */ v(k, {
260
260
  className: "space-y-2",
261
- children: /* @__PURE__ */ v("div", {
261
+ children: /* @__PURE__ */ y("div", {
262
262
  className: "grid grid-cols-2 gap-2 text-sm",
263
263
  children: [
264
- /* @__PURE__ */ _("span", {
264
+ /* @__PURE__ */ v("span", {
265
265
  className: "text-text-muted",
266
- children: r(B, "workspaceDetail.id", "ID:")
266
+ children: e(V, "workspaceDetail.id", "ID:")
267
267
  }),
268
- /* @__PURE__ */ _("span", {
268
+ /* @__PURE__ */ v("span", {
269
269
  className: "font-mono text-xs break-all",
270
270
  children: X.id
271
271
  }),
272
- X.domain && /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("span", {
272
+ X.domain && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("span", {
273
273
  className: "text-text-muted",
274
- children: r(B, "workspaceDetail.domain", "Domain:")
275
- }), /* @__PURE__ */ _("span", { children: X.domain })] }),
276
- X.contactEmail && /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("span", {
274
+ children: e(V, "workspaceDetail.domain", "Domain:")
275
+ }), /* @__PURE__ */ v("span", { children: X.domain })] }),
276
+ X.contactEmail && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("span", {
277
277
  className: "text-text-muted",
278
- children: r(B, "workspaceDetail.contactEmail", "Contact Email:")
279
- }), /* @__PURE__ */ _("span", {
278
+ children: e(V, "workspaceDetail.contactEmail", "Contact Email:")
279
+ }), /* @__PURE__ */ v("span", {
280
280
  className: "break-all",
281
281
  children: X.contactEmail
282
282
  })] }),
283
- X.website && /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("span", {
283
+ X.website && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("span", {
284
284
  className: "text-text-muted",
285
- children: r(B, "workspaceDetail.website", "Website:")
286
- }), /* @__PURE__ */ _("a", {
285
+ children: e(V, "workspaceDetail.website", "Website:")
286
+ }), /* @__PURE__ */ v("a", {
287
287
  href: X.website,
288
288
  target: "_blank",
289
289
  rel: "noopener noreferrer",
290
290
  className: "text-primary hover:underline transition-colors duration-200 break-all",
291
291
  children: X.website
292
292
  })] }),
293
- /* @__PURE__ */ _("span", {
293
+ /* @__PURE__ */ v("span", {
294
294
  className: "text-text-muted",
295
- children: r(B, "workspaceDetail.created", "Created:")
295
+ children: e(V, "workspaceDetail.created", "Created:")
296
296
  }),
297
- /* @__PURE__ */ _("span", { children: new Date(X.createdAt).toLocaleDateString() })
297
+ /* @__PURE__ */ v("span", { children: new Date(X.createdAt).toLocaleDateString() })
298
298
  ]
299
299
  })
300
300
  })]
301
301
  })
302
302
  })]
303
303
  }),
304
- /* @__PURE__ */ _(y, {
305
- open: W,
304
+ /* @__PURE__ */ v(b, {
305
+ open: ie,
306
306
  onOpenChange: (e) => {
307
307
  G(e), e || q(null);
308
308
  },
309
- children: /* @__PURE__ */ v(S, { children: [
310
- /* @__PURE__ */ v(w, { children: [/* @__PURE__ */ _(T, { children: r(B, "workspaceDetail.archiveTitle", "Archive workspace?") }), /* @__PURE__ */ _(re, { children: r(B, "workspaceDetail.archiveDescription", "This removes the workspace from active work while preserving its data.") })] }),
311
- K && /* @__PURE__ */ _("p", {
309
+ children: /* @__PURE__ */ y(C, { children: [
310
+ /* @__PURE__ */ y(E, { children: [/* @__PURE__ */ v(ne, { children: e(V, "workspaceDetail.archiveTitle", "Archive workspace?") }), /* @__PURE__ */ v(w, { children: e(V, "workspaceDetail.archiveDescription", "This removes the workspace from active work while preserving its data.") })] }),
311
+ K && /* @__PURE__ */ v("p", {
312
312
  className: "text-sm text-status-error-text",
313
313
  children: K
314
314
  }),
315
- /* @__PURE__ */ v(C, { children: [/* @__PURE__ */ _(x, {
315
+ /* @__PURE__ */ y(T, { children: [/* @__PURE__ */ v(S, {
316
316
  disabled: Y,
317
- children: r(B, "common.cancel", "Cancel")
318
- }), /* @__PURE__ */ _(b, {
317
+ children: e(V, "common.cancel", "Cancel")
318
+ }), /* @__PURE__ */ v(x, {
319
319
  disabled: Y,
320
320
  onClick: (e) => {
321
321
  e.preventDefault(), pe();
322
322
  },
323
- children: Y ? r(B, "workspaceDetail.archiving", "Archiving...") : r(B, "workspaceDetail.archive", "Archive")
323
+ children: Y ? e(V, "workspaceDetail.archiving", "Archiving...") : e(V, "workspaceDetail.archive", "Archive")
324
324
  })] })
325
325
  ] })
326
326
  })
327
327
  ]
328
328
  });
329
329
  }
330
- //#endregion
331
- export { z as WorkspaceDetailPage };
330
+ export { B as WorkspaceDetailPage };