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