@burdenoff/microfe-workspaces 2026.1110.2 → 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 +4 -4
@@ -1,236 +1,240 @@
1
1
  import { ProjectTagsWidget as e } from "../components/tags/ProjectTagsWidget.js";
2
2
  import { tWithFallback as t } from "../utils/i18n.js";
3
3
  import { useProject as ee, useProjectMembersCount as te } from "../hooks/useProjects.js";
4
- import { useWorkspacesContext as ne } from "../providers/WorkspacesProvider.js";
5
- import { useArchiveProject as re, useDeleteProject as ie, useTagProject as ae, useUnarchiveProject as oe, useUntagProject as se, useUpdateProject as ce } from "../hooks/useProjectMutations.js";
6
- import { formatDate as n } from "../utils/formatters.js";
7
- import { nativeImpact as le, nativeNotify as r } from "../utils/nativeBridge.js";
8
- import { getProjectDisplayTags as ue, toProjectTag as i } from "../utils/projectTags.js";
9
- import { getProjectStatusClasses as de } from "../utils/tokenHelpers.js";
10
- import { useWorkspaceActivity as fe } from "../hooks/useWorkspaceActivity.js";
11
- import { useScopedNavigation as pe } from "../hooks/useScopedNavigation.js";
12
- import { useWorkspacePermissions as me } from "../hooks/useWorkspacePermissions.js";
13
- import { useWorkspacesPageView as a } from "../hooks/useWorkspacesPageView.js";
14
- import { ProjectMemberPickerDialog as o } from "../components/ProjectMemberPickerDialog.js";
15
- import { RenameProjectDialog as he } from "../components/RenameProjectDialog.js";
16
- import { useMemo as ge, useState as s } from "react";
17
- import { Activity as c, Archive as l, ArrowLeft as u, Clock as d, FolderKanban as f, MoreVertical as _e, Pencil as ve, UserPlus as p, Users as m } from "lucide-react";
18
- import { jsx as h, jsxs as g } from "react/jsx-runtime";
19
- import { AlertDialog as ye, AlertDialogAction as be, AlertDialogCancel as xe, AlertDialogContent as Se, AlertDialogDescription as Ce, AlertDialogFooter as we, AlertDialogHeader as Te, AlertDialogTitle as Ee, Badge as _, Button as v, CardContent as y, CardHeader as b, CardTitle as x, DropdownMenu as De, DropdownMenuContent as Oe, DropdownMenuItem as S, DropdownMenuSeparator as C, DropdownMenuTrigger as w, EntityIdModal as T, GlassCard as E, IllustratedEmptyState as ke, NextSteps as Ae, PagePurpose as je, ShowMore as Me, Skeleton as D, useEntityIdModal as Ne } from "@burdenoff/fe-libs/ui";
20
- import { useI18n as Pe } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
21
- import { useNavigate as O, useParams as Fe } from "react-router";
4
+ import { useIsFluidGridsVariant as ne, useWorkspacesContext as re } from "../providers/WorkspacesProvider.js";
5
+ import { useTr as ie } from "../hooks/useTr.js";
6
+ import { useArchiveProject as ae, useDeleteProject as oe, useTagProject as se, useUnarchiveProject as ce, useUntagProject as le, useUpdateProject as ue } from "../hooks/useProjectMutations.js";
7
+ import { formatDate as de } from "../utils/formatters.js";
8
+ import { nativeImpact as fe, nativeNotify as n } from "../utils/nativeBridge.js";
9
+ import { getProjectDisplayTags as pe, toProjectTag as r } from "../utils/projectTags.js";
10
+ import { getProjectStatusClasses as me } from "../utils/tokenHelpers.js";
11
+ import { useWorkspaceActivity as he } from "../hooks/useWorkspaceActivity.js";
12
+ import { useScopedNavigation as ge } from "../hooks/useScopedNavigation.js";
13
+ import { useWorkspacePermissions as _e } from "../hooks/useWorkspacePermissions.js";
14
+ import { useWorkspacesPageView as ve } from "../hooks/useWorkspacesPageView.js";
15
+ import { ProjectMemberPickerDialog as ye } from "../components/ProjectMemberPickerDialog.js";
16
+ import { RenameProjectDialog as be } from "../components/RenameProjectDialog.js";
17
+ import { useMemo as xe, useState as i } from "react";
18
+ import { Activity as a, Archive as Se, ArrowLeft as o, Clock as Ce, FolderKanban as s, MoreVertical as we, Pencil as Te, UserPlus as c, Users as l } from "lucide-react";
19
+ import { AlertDialog as u, AlertDialogAction as d, AlertDialogCancel as f, AlertDialogContent as p, AlertDialogDescription as m, AlertDialogFooter as h, AlertDialogHeader as Ee, AlertDialogTitle as De, Badge as g, Button as _, CardContent as v, CardHeader as y, CardTitle as b, DropdownMenu as Oe, DropdownMenuContent as ke, DropdownMenuItem as x, DropdownMenuSeparator as S, DropdownMenuTrigger as Ae, EntityIdModal as je, GlassCard as C, IllustratedEmptyState as Me, NextSteps as Ne, PagePurpose as Pe, ShowMore as Fe, ShowTechnicalDetails as Ie, Skeleton as w, useEntityIdModal as Le } from "@burdenoff/fe-libs/ui";
20
+ import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
21
+ import { useI18n as Re } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
22
+ import { useNavigate as ze, useParams as Be } from "react-router";
22
23
  // src/pages/ProjectDetailPage.tsx
23
- function k() {
24
- let { t: k } = Pe(), A = Ne(), { workspaceId: j, projectId: M } = Fe();
25
- a("workspaces.project-detail", {
26
- workspaceId: j,
27
- projectId: M,
24
+ function O() {
25
+ let { t: O } = Re(), Ve = Le(), { workspaceId: k, projectId: A } = Be();
26
+ ve("workspaces.project-detail", {
27
+ workspaceId: k,
28
+ projectId: A,
28
29
  requireParams: !0
29
30
  });
30
- let N = O(), { basePath: P = "/workspaces" } = ne(), { withCurrentSearch: F } = pe(), { data: I, isLoading: Ie, error: Le } = ee(M || "", j), [Re, L] = s(!1), [R, z] = s(!1), [B, V] = s(!1), { mutate: ze, isPending: H } = re(j), { mutate: Be, isPending: U } = oe(j), { mutate: Ve, isPending: W } = ie(j), { mutateAsync: He, isPending: Ue } = ae(j), { mutateAsync: We, isPending: Ge } = se(j), { mutateAsync: Ke, isPending: qe } = ce(j), { canViewProject: Je, canUpdateProject: G, canDeleteProject: K, canArchiveProject: q, canListProjectMembers: J, canAddProjectMember: Y, isLoading: Ye } = me(), { data: Xe } = te(M || "", j), X = ge(() => ue({
31
- tags: I?.tags ?? [],
32
- tagAssignments: I?.tagAssignments
33
- }), [I?.tags, I?.tagAssignments]), { data: Ze } = fe(j), Qe = (Ze ?? []).filter((e) => e.resourceId === M || e.resourceType?.toLowerCase() === "project").length, $e = X;
34
- if (Ye) return /* @__PURE__ */ g("div", {
31
+ let j = ze(), { basePath: M = "/workspaces" } = re(), { withCurrentSearch: N } = ge(), { data: P, isLoading: He, error: Ue } = ee(A || "", k), [We, F] = i(!1), [I, L] = i(!1), [R, z] = i(!1), [Ge, B] = i(!1), V = ne(), H = ie(), { mutate: Ke, isPending: U } = ae(k), { mutate: qe, isPending: W } = ce(k), { mutate: Je, isPending: G } = oe(k), { mutateAsync: Ye, isPending: Xe } = se(k), { mutateAsync: Ze, isPending: Qe } = le(k), { mutateAsync: $e, isPending: et } = ue(k), { canViewProject: tt, canUpdateProject: K, canDeleteProject: q, canArchiveProject: J, canListProjectMembers: Y, canAddProjectMember: X, isLoading: nt } = _e(), { data: rt } = te(A || "", k), Z = xe(() => pe({
32
+ tags: P?.tags ?? [],
33
+ tagAssignments: P?.tagAssignments
34
+ }), [P?.tags, P?.tagAssignments]), { data: it } = he(k), at = (it ?? []).filter((e) => e.resourceId === A || e.resourceType?.toLowerCase() === "project").length, ot = Z;
35
+ if (nt) return /* @__PURE__ */ D("div", {
35
36
  className: "space-y-4 p-6",
36
- children: [/* @__PURE__ */ h(D, { className: "h-10 w-1/3" }), /* @__PURE__ */ h(D, { className: "h-64" })]
37
+ children: [/* @__PURE__ */ E(w, { className: "h-10 w-1/3" }), /* @__PURE__ */ E(w, { className: "h-64" })]
37
38
  });
38
- if (!Je) return /* @__PURE__ */ h("div", {
39
+ if (!tt) return /* @__PURE__ */ E("div", {
39
40
  className: "flex items-center justify-center min-h-[400px]",
40
- children: /* @__PURE__ */ g("div", {
41
+ children: /* @__PURE__ */ D("div", {
41
42
  className: "text-center space-y-2",
42
- children: [/* @__PURE__ */ h("h2", {
43
+ children: [/* @__PURE__ */ E("h2", {
43
44
  className: "text-lg font-semibold",
44
- children: t(k, "projectDetail.accessDenied", "Access Denied")
45
- }), /* @__PURE__ */ h("p", {
45
+ children: t(O, "projectDetail.accessDenied", "Access Denied")
46
+ }), /* @__PURE__ */ E("p", {
46
47
  className: "text-sm text-text-secondary",
47
- children: t(k, "projectDetail.noPermissionToViewProject", "You don't have permission to view this project.")
48
+ children: t(O, "projectDetail.noPermissionToViewProject", "You don't have permission to view this project.")
48
49
  })]
49
50
  })
50
51
  });
51
- let Z = () => {
52
- N(F(`${P}/${j}/projects`));
53
- }, et = () => {
54
- I && (I.archived ? Be(I.id, { onError: (e) => {
52
+ let Q = () => {
53
+ j(N(`${M}/${k}/projects`));
54
+ }, st = () => {
55
+ P && (P.archived ? qe(P.id, { onError: (e) => {
55
56
  console.error("Failed to unarchive project:", e);
56
- } }) : ze(I.id, { onError: (e) => {
57
- console.error("Failed to archive project:", e);
58
- } }));
59
- }, tt = () => {
60
- I && (le("medium"), Ve(I.id, {
57
+ } }) : Ke(P.id, {
58
+ onSuccess: () => B(!1),
59
+ onError: (e) => {
60
+ console.error("Failed to archive project:", e);
61
+ }
62
+ }));
63
+ }, ct = () => {
64
+ P && (fe("medium"), Je(P.id, {
61
65
  onSuccess: () => {
62
- r("success"), L(!1), N(F(`${P}/${j}/projects`));
66
+ n("success"), F(!1), j(N(`${M}/${k}/projects`));
63
67
  },
64
68
  onError: (e) => {
65
- r("error"), console.error("Failed to delete project:", e);
69
+ n("error"), console.error("Failed to delete project:", e);
66
70
  }
67
71
  }));
68
- }, Q = () => {
69
- N(F(`${P}/${j}/projects/${M}/members`));
70
- }, $ = async (e) => {
71
- if (!I) return;
72
- let t = e.map((e) => i(e));
72
+ }, $ = () => {
73
+ j(N(`${M}/${k}/projects/${A}/members`));
74
+ }, lt = async (e) => {
75
+ if (!P) return;
76
+ let t = e.map((e) => r(e));
73
77
  try {
74
- await Ke({
75
- id: I.id,
78
+ await $e({
79
+ id: P.id,
76
80
  input: { tags: t }
77
81
  });
78
82
  } catch (e) {
79
- r("warning"), console.error("Failed to sync legacy project tag mirror after updating structured project tags:", e);
83
+ n("warning"), console.error("Failed to sync legacy project tag mirror after updating structured project tags:", e);
80
84
  }
81
- }, nt = async (e) => {
82
- if (I) try {
83
- await He({
84
- entityId: I.id,
85
+ }, ut = async (e) => {
86
+ if (P) try {
87
+ await Ye({
88
+ entityId: P.id,
85
89
  tagId: e.id
86
- }), await $([...X, i(e)]);
90
+ }), await lt([...Z, r(e)]);
87
91
  } catch (e) {
88
- throw r("error"), e;
92
+ throw n("error"), e;
89
93
  }
90
- }, rt = async (e) => {
91
- if (!I) return;
92
- let t = I.tagAssignments?.find((t) => t.tagId === e)?.id;
94
+ }, dt = async (e) => {
95
+ if (!P) return;
96
+ let t = P.tagAssignments?.find((t) => t.tagId === e)?.id;
93
97
  try {
94
- await We({
95
- entityId: I.id,
98
+ await Ze({
99
+ entityId: P.id,
96
100
  tagId: e,
97
101
  assignmentId: t
98
- }), await $(X.filter((t) => t.tagId !== e && t.id !== e));
102
+ }), await lt(Z.filter((t) => t.tagId !== e && t.id !== e));
99
103
  } catch (e) {
100
- throw r("error"), e;
104
+ throw n("error"), e;
101
105
  }
102
106
  };
103
- return Ie ? /* @__PURE__ */ g("div", {
107
+ return He ? /* @__PURE__ */ D("div", {
104
108
  className: "space-y-4 sm:space-y-6 p-3 sm:p-6",
105
109
  children: [
106
- /* @__PURE__ */ h(D, { className: "h-10 w-32" }),
107
- /* @__PURE__ */ h(D, { className: "h-10 w-1/3" }),
108
- /* @__PURE__ */ g("div", {
110
+ /* @__PURE__ */ E(w, { className: "h-10 w-32" }),
111
+ /* @__PURE__ */ E(w, { className: "h-10 w-1/3" }),
112
+ /* @__PURE__ */ D("div", {
109
113
  className: "grid grid-cols-1 md:grid-cols-3 gap-4",
110
114
  children: [
111
- /* @__PURE__ */ h(D, { className: "h-32" }),
112
- /* @__PURE__ */ h(D, { className: "h-32" }),
113
- /* @__PURE__ */ h(D, { className: "h-32" })
115
+ /* @__PURE__ */ E(w, { className: "h-32" }),
116
+ /* @__PURE__ */ E(w, { className: "h-32" }),
117
+ /* @__PURE__ */ E(w, { className: "h-32" })
114
118
  ]
115
119
  }),
116
- /* @__PURE__ */ h(D, { className: "h-48" })
120
+ /* @__PURE__ */ E(w, { className: "h-48" })
117
121
  ]
118
- }) : Le || !I ? /* @__PURE__ */ g("div", {
122
+ }) : Ue || !P ? /* @__PURE__ */ D("div", {
119
123
  className: "space-y-4 p-6",
120
- children: [/* @__PURE__ */ g(v, {
124
+ children: [/* @__PURE__ */ D(_, {
121
125
  variant: "ghost",
122
- onClick: Z,
126
+ onClick: Q,
123
127
  className: "gap-2",
124
- children: [/* @__PURE__ */ h(u, { size: 20 }), t(k, "projectDetail.backToProjects", "Back to Projects")]
125
- }), /* @__PURE__ */ h(ke, {
128
+ children: [/* @__PURE__ */ E(o, { size: 20 }), t(O, "projectDetail.backToProjects", "Back to Projects")]
129
+ }), /* @__PURE__ */ E(Me, {
126
130
  illustration: "empty-search",
127
- title: t(k, "projectDetail.projectNotFound", "Project not found"),
128
- description: t(k, "projectDetail.projectNotFoundDescription", "The project you're looking for doesn't exist or you don't have permission to view it."),
129
- action: /* @__PURE__ */ g(v, {
130
- onClick: Z,
131
- children: [/* @__PURE__ */ h(u, {
131
+ title: t(O, "projectDetail.projectNotFound", "Project not found"),
132
+ description: t(O, "projectDetail.projectNotFoundDescription", "The project you're looking for doesn't exist or you don't have permission to view it."),
133
+ action: /* @__PURE__ */ D(_, {
134
+ onClick: Q,
135
+ children: [/* @__PURE__ */ E(o, {
132
136
  size: 16,
133
137
  className: "mr-2"
134
- }), t(k, "projectDetail.backToProjects", "Back to Projects")]
138
+ }), t(O, "projectDetail.backToProjects", "Back to Projects")]
135
139
  })
136
140
  })]
137
- }) : /* @__PURE__ */ g("div", {
141
+ }) : /* @__PURE__ */ D("div", {
138
142
  className: "space-y-4 sm:space-y-6 p-3 sm:p-6",
139
143
  children: [
140
- /* @__PURE__ */ g("div", {
144
+ /* @__PURE__ */ D("div", {
141
145
  className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",
142
- children: [/* @__PURE__ */ g("div", { children: [
143
- /* @__PURE__ */ g(v, {
146
+ children: [/* @__PURE__ */ D("div", { children: [
147
+ /* @__PURE__ */ D(_, {
144
148
  variant: "ghost",
145
- onClick: Z,
149
+ onClick: Q,
146
150
  className: "gap-2 mb-2 -ml-2",
147
- children: [/* @__PURE__ */ h(u, { size: 20 }), t(k, "projectDetail.backToProjects", "Back to Projects")]
151
+ children: [/* @__PURE__ */ E(o, { size: 20 }), t(O, "projectDetail.backToProjects", "Back to Projects")]
148
152
  }),
149
- /* @__PURE__ */ g("div", {
153
+ /* @__PURE__ */ D("div", {
150
154
  className: "flex items-center gap-3",
151
- children: [/* @__PURE__ */ h("div", {
155
+ children: [/* @__PURE__ */ E("div", {
152
156
  className: "p-3 rounded-lg bg-action-primary-bg/10",
153
- children: /* @__PURE__ */ h(f, {
157
+ children: /* @__PURE__ */ E(s, {
154
158
  className: "text-primary",
155
159
  size: 28
156
160
  })
157
- }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("h1", {
161
+ }), /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h1", {
158
162
  className: "text-2xl sm:text-3xl font-bold",
159
- children: I.name
160
- }), /* @__PURE__ */ h("p", {
163
+ children: P.name
164
+ }), V ? null : /* @__PURE__ */ E("p", {
161
165
  className: "text-sm text-text-secondary font-mono",
162
- children: I.key
166
+ children: P.key
163
167
  })] })]
164
168
  }),
165
- /* @__PURE__ */ g("div", {
169
+ /* @__PURE__ */ D("div", {
166
170
  className: "flex items-center gap-2 mt-3",
167
- children: [/* @__PURE__ */ h(_, {
168
- className: `border ${de(I.status)}`,
169
- children: I.status
170
- }), I.archived && /* @__PURE__ */ g(_, {
171
+ children: [/* @__PURE__ */ E(g, {
172
+ className: `border ${me(P.status)}`,
173
+ children: P.status
174
+ }), P.archived && /* @__PURE__ */ D(g, {
171
175
  variant: "outline",
172
176
  className: "border-workspace-archived-border text-workspace-archived-text",
173
- children: [/* @__PURE__ */ h(l, {
177
+ children: [/* @__PURE__ */ E(Se, {
174
178
  size: 12,
175
179
  className: "mr-1"
176
- }), t(k, "projectDetail.archived", "Archived")]
180
+ }), t(O, "projectDetail.archived", "Archived")]
177
181
  })]
178
182
  })
179
- ] }), /* @__PURE__ */ h("div", {
183
+ ] }), /* @__PURE__ */ E("div", {
180
184
  className: "flex items-center gap-2",
181
- children: /* @__PURE__ */ g(De, { children: [/* @__PURE__ */ h(w, {
185
+ children: /* @__PURE__ */ D(Oe, { children: [/* @__PURE__ */ E(Ae, {
182
186
  asChild: !0,
183
- children: /* @__PURE__ */ h(v, {
187
+ children: /* @__PURE__ */ E(_, {
184
188
  variant: "outline",
185
189
  size: "icon",
186
- "aria-label": t(k, "projectDetail.openProjectActionsAriaLabel", "Open project actions"),
187
- children: /* @__PURE__ */ h(_e, { size: 20 })
190
+ "aria-label": t(O, "projectDetail.openProjectActionsAriaLabel", "Open project actions"),
191
+ children: /* @__PURE__ */ E(we, { size: 20 })
188
192
  })
189
- }), /* @__PURE__ */ g(Oe, {
193
+ }), /* @__PURE__ */ D(ke, {
190
194
  align: "end",
191
195
  children: [
192
- G && /* @__PURE__ */ g(S, {
193
- onClick: () => V(!0),
194
- children: [/* @__PURE__ */ h(ve, {
196
+ K && /* @__PURE__ */ D(x, {
197
+ onClick: () => z(!0),
198
+ children: [/* @__PURE__ */ E(Te, {
195
199
  size: 16,
196
200
  className: "mr-2"
197
- }), t(k, "projectDetail.renameProject", "Rename Project")]
201
+ }), t(O, "projectDetail.renameProject", "Rename Project")]
198
202
  }),
199
- G && (q || K) && /* @__PURE__ */ h(C, {}),
200
- q && /* @__PURE__ */ g(S, {
201
- onClick: et,
202
- disabled: H || U,
203
- children: [/* @__PURE__ */ h(l, {
203
+ K && (J || q) && /* @__PURE__ */ E(S, {}),
204
+ J && /* @__PURE__ */ D(x, {
205
+ onClick: V && !P.archived ? () => B(!0) : st,
206
+ disabled: U || W,
207
+ children: [/* @__PURE__ */ E(Se, {
204
208
  size: 16,
205
209
  className: "mr-2"
206
- }), H || U ? t(k, "projectDetail.processing", "Processing...") : I.archived ? t(k, "projectDetail.unarchive", "Unarchive") : t(k, "projectDetail.archive", "Archive")]
210
+ }), U || W ? t(O, "projectDetail.processing", "Processing...") : P.archived ? t(O, "projectDetail.unarchive", "Unarchive") : t(O, "projectDetail.archive", "Archive")]
207
211
  }),
208
- q && K && /* @__PURE__ */ h(C, {}),
209
- K && /* @__PURE__ */ h(S, {
210
- onClick: () => L(!0),
212
+ J && q && /* @__PURE__ */ E(S, {}),
213
+ q && /* @__PURE__ */ E(x, {
214
+ onClick: () => F(!0),
211
215
  className: "text-status-error-text",
212
- children: t(k, "projectDetail.deleteProject", "Delete Project")
216
+ children: t(O, "projectDetail.deleteProject", "Delete Project")
213
217
  })
214
218
  ]
215
219
  })] })
216
220
  })]
217
221
  }),
218
- /* @__PURE__ */ h(je, { children: t(k, "projectDetail.purpose", "This is a single project — a focused stream of work within its workspace. From here you can manage the people working on it, organise it with tags so it surfaces in filters and reports, and keep track of related activity. Use the menu in the top-right to archive or delete it when it wraps up.") }),
219
- /* @__PURE__ */ h(Ae, {
222
+ /* @__PURE__ */ E(Pe, { children: t(O, "projectDetail.purpose", "This is a single project — a focused stream of work within its workspace. From here you can manage the people working on it, organise it with tags so it surfaces in filters and reports, and keep track of related activity. Use the menu in the top-right to archive or delete it when it wraps up.") }),
223
+ /* @__PURE__ */ E(Ne, {
220
224
  storageKey: "workspaces-project-detail",
221
225
  steps: [
222
- ...Y ? [{
226
+ ...X ? [{
223
227
  id: "add-member",
224
- label: t(k, "projectDetail.stepAddMember", "Add people to the project"),
225
- description: t(k, "projectDetail.stepAddMemberDesc", "Pull in the teammates who will actually work on this project."),
226
- icon: /* @__PURE__ */ h(p, { size: 16 }),
227
- onClick: () => z(!0)
228
+ label: t(O, "projectDetail.stepAddMember", "Add people to the project"),
229
+ description: t(O, "projectDetail.stepAddMemberDesc", "Pull in the teammates who will actually work on this project."),
230
+ icon: /* @__PURE__ */ E(c, { size: 16 }),
231
+ onClick: () => L(!0)
228
232
  }] : [],
229
233
  {
230
234
  id: "tag-project",
231
- label: t(k, "projectDetail.stepTag", "Tag the project"),
232
- description: t(k, "projectDetail.stepTagDesc", "Add tags so this project shows up in the right filters and views."),
233
- icon: /* @__PURE__ */ h(f, { size: 16 }),
235
+ label: t(O, "projectDetail.stepTag", "Tag the project"),
236
+ description: t(O, "projectDetail.stepTagDesc", "Add tags so this project shows up in the right filters and views."),
237
+ icon: /* @__PURE__ */ E(s, { size: 16 }),
234
238
  onClick: () => {
235
239
  document.getElementById("project-tags-section")?.scrollIntoView({
236
240
  behavior: "smooth",
@@ -238,233 +242,240 @@ function k() {
238
242
  });
239
243
  }
240
244
  },
241
- ...J ? [{
245
+ ...Y ? [{
242
246
  id: "manage-members",
243
- label: t(k, "projectDetail.stepManageMembers", "Review project members"),
244
- description: t(k, "projectDetail.stepManageMembersDesc", "See who has access and adjust their project roles."),
245
- icon: /* @__PURE__ */ h(m, { size: 16 }),
246
- onClick: Q
247
+ label: t(O, "projectDetail.stepManageMembers", "Review project members"),
248
+ description: t(O, "projectDetail.stepManageMembersDesc", "See who has access and adjust their project roles."),
249
+ icon: /* @__PURE__ */ E(l, { size: 16 }),
250
+ onClick: $
247
251
  }] : [],
248
252
  {
249
253
  id: "review-activity",
250
- label: t(k, "projectDetail.stepActivity", "Check recent activity"),
251
- description: t(k, "projectDetail.stepActivityDesc", "Catch up on what has changed across the workspace."),
252
- icon: /* @__PURE__ */ h(c, { size: 16 }),
253
- onClick: () => N(F(`${P}/${j}/activity`))
254
+ label: t(O, "projectDetail.stepActivity", "Check recent activity"),
255
+ description: t(O, "projectDetail.stepActivityDesc", "Catch up on what has changed across the workspace."),
256
+ icon: /* @__PURE__ */ E(a, { size: 16 }),
257
+ onClick: () => j(N(`${M}/${k}/activity`))
254
258
  }
255
259
  ]
256
260
  }),
257
- /* @__PURE__ */ g("div", {
261
+ /* @__PURE__ */ D("div", {
258
262
  className: "grid grid-cols-1 lg:grid-cols-3 gap-4 sm:gap-6",
259
- children: [/* @__PURE__ */ g("div", {
263
+ children: [/* @__PURE__ */ D("div", {
260
264
  className: "lg:col-span-2 space-y-4 sm:space-y-6",
261
- children: [/* @__PURE__ */ g("div", {
265
+ children: [/* @__PURE__ */ D("div", {
262
266
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
263
- children: [/* @__PURE__ */ g(E, {
267
+ children: [/* @__PURE__ */ D(C, {
264
268
  treatment: "metric",
265
269
  glow: !0,
266
- children: [/* @__PURE__ */ h(b, {
270
+ children: [/* @__PURE__ */ E(y, {
267
271
  className: "flex flex-row items-center justify-between pb-2",
268
- children: /* @__PURE__ */ g(x, {
272
+ children: /* @__PURE__ */ D(b, {
269
273
  className: "flex items-center gap-2 text-sm font-medium text-text-secondary",
270
- children: [/* @__PURE__ */ h(m, {
274
+ children: [/* @__PURE__ */ E(l, {
271
275
  size: 18,
272
276
  className: "text-text-muted"
273
- }), t(k, "projectDetail.membersCardTitle", "Members")]
277
+ }), t(O, "projectDetail.membersCardTitle", "Members")]
274
278
  })
275
- }), /* @__PURE__ */ g(y, {
279
+ }), /* @__PURE__ */ D(v, {
276
280
  className: "space-y-4",
277
281
  children: [
278
- /* @__PURE__ */ h("p", {
282
+ /* @__PURE__ */ E("p", {
279
283
  className: "text-3xl font-bold tabular-nums",
280
- children: Xe ?? 0
284
+ children: rt ?? 0
281
285
  }),
282
- /* @__PURE__ */ h("p", {
286
+ /* @__PURE__ */ E("p", {
283
287
  className: "text-sm text-text-muted",
284
- children: t(k, "projectDetail.projectMembers", "Project members")
288
+ children: t(O, "projectDetail.projectMembers", "Project members")
285
289
  }),
286
- Y || J ? /* @__PURE__ */ g("div", {
290
+ X || Y ? /* @__PURE__ */ D("div", {
287
291
  className: "flex flex-wrap gap-2",
288
- children: [Y ? /* @__PURE__ */ g(v, {
292
+ children: [X ? /* @__PURE__ */ D(_, {
289
293
  size: "sm",
290
- onClick: () => z(!0),
291
- children: [/* @__PURE__ */ h(p, {
294
+ onClick: () => L(!0),
295
+ children: [/* @__PURE__ */ E(c, {
292
296
  size: 16,
293
297
  className: "mr-2"
294
- }), t(k, "projectDetail.addProjectMember", "Add Member")]
295
- }) : null, J ? /* @__PURE__ */ g(v, {
298
+ }), t(O, "projectDetail.addProjectMember", "Add Member")]
299
+ }) : null, Y ? /* @__PURE__ */ D(_, {
296
300
  variant: "outline",
297
301
  size: "sm",
298
- onClick: Q,
299
- children: [/* @__PURE__ */ h(m, {
302
+ onClick: $,
303
+ children: [/* @__PURE__ */ E(l, {
300
304
  size: 16,
301
305
  className: "mr-2"
302
- }), t(k, "projectDetail.manageProjectMembers", "Manage Members")]
306
+ }), t(O, "projectDetail.manageProjectMembers", "Manage Members")]
303
307
  }) : null]
304
308
  }) : null
305
309
  ]
306
310
  })]
307
- }), /* @__PURE__ */ g(E, {
311
+ }), /* @__PURE__ */ D(C, {
308
312
  treatment: "metric",
309
- children: [/* @__PURE__ */ h(b, {
313
+ children: [/* @__PURE__ */ E(y, {
310
314
  className: "flex flex-row items-center justify-between pb-2",
311
- children: /* @__PURE__ */ g(x, {
315
+ children: /* @__PURE__ */ D(b, {
312
316
  className: "flex items-center gap-2 text-sm font-medium text-text-secondary",
313
- children: [/* @__PURE__ */ h(c, {
317
+ children: [/* @__PURE__ */ E(a, {
314
318
  size: 18,
315
319
  className: "text-text-muted"
316
- }), t(k, "projectDetail.activityCardTitle", "Activity")]
320
+ }), t(O, "projectDetail.activityCardTitle", "Activity")]
317
321
  })
318
- }), /* @__PURE__ */ g(y, { children: [/* @__PURE__ */ h("p", {
322
+ }), /* @__PURE__ */ D(v, { children: [/* @__PURE__ */ E("p", {
319
323
  className: "text-3xl font-bold tabular-nums",
320
- children: Qe
321
- }), /* @__PURE__ */ h("p", {
324
+ children: at
325
+ }), /* @__PURE__ */ E("p", {
322
326
  className: "text-sm text-text-muted",
323
- children: t(k, "projectDetail.recentActivityItems", "Recent activity items")
327
+ children: t(O, "projectDetail.recentActivityItems", "Recent activity items")
324
328
  })] })]
325
329
  })]
326
- }), /* @__PURE__ */ g(E, {
330
+ }), /* @__PURE__ */ D(C, {
327
331
  treatment: "plain",
328
332
  id: "project-tags-section",
329
333
  className: "border-border-seam",
330
- children: [/* @__PURE__ */ h(b, { children: /* @__PURE__ */ h(x, { children: t(k, "projectDetail.tagsTitle", "Tags") }) }), /* @__PURE__ */ g(y, {
334
+ children: [/* @__PURE__ */ E(y, { children: /* @__PURE__ */ E(b, { children: t(O, "projectDetail.tagsTitle", "Tags") }) }), /* @__PURE__ */ D(v, {
331
335
  className: "space-y-3",
332
- children: [/* @__PURE__ */ h("p", {
336
+ children: [/* @__PURE__ */ E("p", {
333
337
  className: "text-sm text-text-muted",
334
- children: t(k, "projectDetail.tagsDescription", "Use universal tags to classify and filter this project across the workspace.")
335
- }), /* @__PURE__ */ h(e, {
338
+ children: t(O, "projectDetail.tagsDescription", "Use universal tags to classify and filter this project across the workspace.")
339
+ }), /* @__PURE__ */ E(e, {
336
340
  entityType: "Project",
337
- entityId: I.id,
338
- workspaceId: j,
339
- tags: $e,
340
- onAdd: nt,
341
- onRemove: rt,
342
- className: Ue || Ge || qe ? "pointer-events-none opacity-75" : void 0
341
+ entityId: P.id,
342
+ workspaceId: k,
343
+ tags: ot,
344
+ onAdd: ut,
345
+ onRemove: dt,
346
+ className: Xe || Qe || et ? "pointer-events-none opacity-75" : void 0
343
347
  })]
344
348
  })]
345
349
  })]
346
- }), /* @__PURE__ */ h("aside", {
350
+ }), /* @__PURE__ */ E("aside", {
347
351
  className: "lg:sticky lg:top-6 lg:self-start",
348
- children: /* @__PURE__ */ g(E, {
352
+ children: /* @__PURE__ */ D(C, {
349
353
  treatment: "plain",
350
354
  className: "border-border-seam",
351
- children: [/* @__PURE__ */ h(b, { children: /* @__PURE__ */ h(x, { children: t(k, "projectDetail.projectInformation", "Project Information") }) }), /* @__PURE__ */ g(y, {
355
+ children: [/* @__PURE__ */ E(y, { children: /* @__PURE__ */ E(b, { children: t(O, "projectDetail.projectInformation", "Project Information") }) }), /* @__PURE__ */ D(v, {
352
356
  className: "space-y-4",
353
357
  children: [
354
- /* @__PURE__ */ g("div", {
358
+ /* @__PURE__ */ D("div", {
355
359
  className: "grid grid-cols-1 gap-4 text-sm",
356
360
  children: [
357
- /* @__PURE__ */ g("div", {
361
+ V ? null : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D("div", {
358
362
  className: "space-y-1",
359
- children: [/* @__PURE__ */ g("span", {
363
+ children: [/* @__PURE__ */ D("span", {
360
364
  className: "text-text-muted flex items-center gap-2",
361
- children: [/* @__PURE__ */ h(f, { size: 14 }), t(k, "projectDetail.projectId", "Project ID")]
362
- }), /* @__PURE__ */ h("button", {
365
+ children: [/* @__PURE__ */ E(s, { size: 14 }), t(O, "projectDetail.projectId", "Project ID")]
366
+ }), /* @__PURE__ */ E("button", {
363
367
  type: "button",
364
- onClick: () => A.show({
365
- id: I.id,
366
- name: I.name,
368
+ onClick: () => Ve.show({
369
+ id: P.id,
370
+ name: P.name,
367
371
  type: "Project",
368
- details: I.key ? [{
372
+ details: P.key ? [{
369
373
  label: "Key",
370
- value: I.key
374
+ value: P.key
371
375
  }] : void 0
372
376
  }),
373
377
  className: "inline-flex items-center gap-1.5 text-xs font-medium text-text-link hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)] rounded",
374
- children: t(k, "projectDetail.getId", "Get ID")
378
+ children: t(O, "projectDetail.getId", "Get ID")
375
379
  })]
376
- }),
377
- /* @__PURE__ */ g("div", {
380
+ }), /* @__PURE__ */ D("div", {
378
381
  className: "space-y-1",
379
- children: [/* @__PURE__ */ g("span", {
382
+ children: [/* @__PURE__ */ D("span", {
380
383
  className: "text-text-secondary flex items-center gap-2",
381
- children: [/* @__PURE__ */ h(f, { size: 14 }), t(k, "projectDetail.projectKey", "Project Key")]
382
- }), /* @__PURE__ */ h("span", {
384
+ children: [/* @__PURE__ */ E(s, { size: 14 }), t(O, "projectDetail.projectKey", "Project Key")]
385
+ }), /* @__PURE__ */ E("span", {
383
386
  className: "font-medium",
384
- children: I.key
387
+ children: P.key
385
388
  })]
386
- }),
387
- /* @__PURE__ */ g("div", {
389
+ })] }),
390
+ /* @__PURE__ */ D("div", {
388
391
  className: "space-y-1",
389
- children: [/* @__PURE__ */ g("span", {
392
+ children: [/* @__PURE__ */ D("span", {
390
393
  className: "text-text-secondary flex items-center gap-2",
391
- children: [/* @__PURE__ */ h(d, { size: 14 }), t(k, "projectDetail.created", "Created")]
392
- }), /* @__PURE__ */ h("span", { children: n(I.createdAt) })]
394
+ children: [/* @__PURE__ */ E(Ce, { size: 14 }), t(O, "projectDetail.created", "Created")]
395
+ }), /* @__PURE__ */ E("span", { children: de(P.createdAt) })]
393
396
  }),
394
- /* @__PURE__ */ g("div", {
397
+ /* @__PURE__ */ D("div", {
395
398
  className: "space-y-1",
396
- children: [/* @__PURE__ */ g("span", {
399
+ children: [/* @__PURE__ */ D("span", {
397
400
  className: "text-text-secondary flex items-center gap-2",
398
- children: [/* @__PURE__ */ h(d, { size: 14 }), t(k, "projectDetail.lastUpdated", "Last Updated")]
399
- }), /* @__PURE__ */ h("span", { children: n(I.updatedAt) })]
401
+ children: [/* @__PURE__ */ E(Ce, { size: 14 }), t(O, "projectDetail.lastUpdated", "Last Updated")]
402
+ }), /* @__PURE__ */ E("span", { children: de(P.updatedAt) })]
400
403
  }),
401
- /* @__PURE__ */ g("div", {
404
+ V ? null : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D("div", {
402
405
  className: "space-y-1",
403
- children: [/* @__PURE__ */ g("span", {
406
+ children: [/* @__PURE__ */ D("span", {
404
407
  className: "text-text-secondary flex items-center gap-2",
405
- children: [/* @__PURE__ */ h(m, { size: 14 }), t(k, "projectDetail.workspaceId", "Workspace ID")]
406
- }), /* @__PURE__ */ h("span", {
408
+ children: [/* @__PURE__ */ E(l, { size: 14 }), t(O, "projectDetail.workspaceId", "Workspace ID")]
409
+ }), /* @__PURE__ */ E("span", {
407
410
  className: "font-mono text-xs block",
408
- children: I.workspaceId
411
+ children: P.workspaceId
409
412
  })]
410
- }),
411
- /* @__PURE__ */ g("div", {
413
+ }), /* @__PURE__ */ D("div", {
412
414
  className: "space-y-1",
413
- children: [/* @__PURE__ */ g("span", {
415
+ children: [/* @__PURE__ */ D("span", {
414
416
  className: "text-text-secondary flex items-center gap-2",
415
- children: [/* @__PURE__ */ h(m, { size: 14 }), t(k, "projectDetail.creatorId", "Creator ID")]
416
- }), /* @__PURE__ */ h("span", {
417
+ children: [/* @__PURE__ */ E(l, { size: 14 }), t(O, "projectDetail.creatorId", "Creator ID")]
418
+ }), /* @__PURE__ */ E("span", {
417
419
  className: "font-mono text-xs block",
418
- children: I.creatorId
420
+ children: P.creatorId
419
421
  })]
420
- })
422
+ })] })
421
423
  ]
422
424
  }),
423
- I.config && Object.keys(I.config).length > 0 && /* @__PURE__ */ g("div", {
425
+ V ? /* @__PURE__ */ E(Ie, {
426
+ copyable: !0,
427
+ children: [
428
+ `${t(O, "projectDetail.projectId", "Project ID")}: ${P.id}`,
429
+ `${t(O, "projectDetail.projectKey", "Project Key")}: ${P.key}`,
430
+ `${t(O, "projectDetail.workspaceId", "Workspace ID")}: ${P.workspaceId}`,
431
+ `${t(O, "projectDetail.creatorId", "Creator ID")}: ${P.creatorId}`
432
+ ].join("\n")
433
+ }) : null,
434
+ P.config && Object.keys(P.config).length > 0 && /* @__PURE__ */ D("div", {
424
435
  className: "pt-4 border-t border-border-seam",
425
- children: [/* @__PURE__ */ h("h4", {
436
+ children: [/* @__PURE__ */ E("h4", {
426
437
  className: "text-sm font-medium mb-2",
427
- children: t(k, "projectDetail.configuration", "Configuration")
428
- }), /* @__PURE__ */ h("pre", {
438
+ children: t(O, "projectDetail.configuration", "Configuration")
439
+ }), /* @__PURE__ */ E("pre", {
429
440
  className: "text-xs bg-bg-sunken p-3 rounded-lg overflow-auto",
430
- children: JSON.stringify(I.config, null, 2)
441
+ children: JSON.stringify(P.config, null, 2)
431
442
  })]
432
443
  }),
433
- /* @__PURE__ */ h(Me, {
444
+ /* @__PURE__ */ E(Fe, {
434
445
  collapsedHeight: 0,
435
- label: t(k, "projectDetail.quickActions", "Quick Actions"),
436
- children: /* @__PURE__ */ g("div", {
446
+ label: t(O, "projectDetail.quickActions", "Quick Actions"),
447
+ children: /* @__PURE__ */ D("div", {
437
448
  className: "flex flex-col gap-2 pt-2",
438
449
  children: [
439
- J ? /* @__PURE__ */ g(v, {
450
+ Y ? /* @__PURE__ */ D(_, {
440
451
  variant: "outline",
441
452
  size: "sm",
442
453
  className: "justify-start",
443
- onClick: Q,
444
- children: [/* @__PURE__ */ h(m, {
454
+ onClick: $,
455
+ children: [/* @__PURE__ */ E(l, {
445
456
  size: 16,
446
457
  className: "mr-2"
447
- }), t(k, "projectDetail.projectMembersPage", "Project Members")]
458
+ }), t(O, "projectDetail.projectMembersPage", "Project Members")]
448
459
  }) : null,
449
- /* @__PURE__ */ g(v, {
460
+ /* @__PURE__ */ D(_, {
450
461
  variant: "outline",
451
462
  size: "sm",
452
463
  className: "justify-start",
453
- onClick: () => N(F(`${P}/${j}/members`)),
454
- children: [/* @__PURE__ */ h(m, {
464
+ onClick: () => j(N(`${M}/${k}/members`)),
465
+ children: [/* @__PURE__ */ E(l, {
455
466
  size: 16,
456
467
  className: "mr-2"
457
- }), t(k, "projectDetail.workspaceMembers", "Workspace Members")]
468
+ }), t(O, "projectDetail.workspaceMembers", "Workspace Members")]
458
469
  }),
459
- /* @__PURE__ */ g(v, {
470
+ /* @__PURE__ */ D(_, {
460
471
  variant: "outline",
461
472
  size: "sm",
462
473
  className: "justify-start",
463
- onClick: () => N(F(`${P}/${j}/activity`)),
464
- children: [/* @__PURE__ */ h(c, {
474
+ onClick: () => j(N(`${M}/${k}/activity`)),
475
+ children: [/* @__PURE__ */ E(a, {
465
476
  size: 16,
466
477
  className: "mr-2"
467
- }), t(k, "projectDetail.workspaceActivity", "Workspace Activity")]
478
+ }), t(O, "projectDetail.workspaceActivity", "Workspace Activity")]
468
479
  })
469
480
  ]
470
481
  })
@@ -474,37 +485,51 @@ function k() {
474
485
  })
475
486
  })]
476
487
  }),
477
- /* @__PURE__ */ h(ye, {
478
- open: Re,
479
- onOpenChange: L,
480
- children: /* @__PURE__ */ g(Se, { children: [/* @__PURE__ */ g(Te, { children: [/* @__PURE__ */ h(Ee, { children: t(k, "projectDetail.deleteDialogTitle", "Delete Project") }), /* @__PURE__ */ h(Ce, { children: t(k, "projectDetail.deleteConfirmPrefix", "Are you sure you want to delete \"") + I.name + t(k, "projectDetail.deleteConfirmSuffix", "\"? This action cannot be undone and all project data will be permanently removed.") })] }), /* @__PURE__ */ g(we, { children: [/* @__PURE__ */ h(xe, {
481
- disabled: W,
482
- children: t(k, "projectDetail.cancel", "Cancel")
483
- }), /* @__PURE__ */ h(be, {
484
- onClick: tt,
485
- disabled: W,
488
+ /* @__PURE__ */ E(u, {
489
+ open: Ge,
490
+ onOpenChange: B,
491
+ children: /* @__PURE__ */ D(p, { children: [/* @__PURE__ */ D(Ee, { children: [/* @__PURE__ */ E(De, { children: H("projectDetail.archiveDialogTitle", "Archive project?") }), /* @__PURE__ */ E(m, { children: H("projectDetail.archiveConfirmNamed", "Archive \"{{name}}\"? It moves out of the active project list and keeps all of its data. You can unarchive it at any time.", { name: P.name }) })] }), /* @__PURE__ */ D(h, { children: [/* @__PURE__ */ E(f, {
492
+ disabled: U,
493
+ children: t(O, "projectDetail.cancel", "Cancel")
494
+ }), /* @__PURE__ */ E(d, {
495
+ disabled: U,
496
+ onClick: (e) => {
497
+ e.preventDefault(), st();
498
+ },
499
+ children: U ? t(O, "projectDetail.processing", "Processing...") : t(O, "projectDetail.archive", "Archive")
500
+ })] })] })
501
+ }),
502
+ /* @__PURE__ */ E(u, {
503
+ open: We,
504
+ onOpenChange: F,
505
+ children: /* @__PURE__ */ D(p, { children: [/* @__PURE__ */ D(Ee, { children: [/* @__PURE__ */ E(De, { children: t(O, "projectDetail.deleteDialogTitle", "Delete Project") }), /* @__PURE__ */ E(m, { children: t(O, "projectDetail.deleteConfirmPrefix", "Are you sure you want to delete \"") + P.name + t(O, "projectDetail.deleteConfirmSuffix", "\"? This action cannot be undone and all project data will be permanently removed.") })] }), /* @__PURE__ */ D(h, { children: [/* @__PURE__ */ E(f, {
506
+ disabled: G,
507
+ children: t(O, "projectDetail.cancel", "Cancel")
508
+ }), /* @__PURE__ */ E(d, {
509
+ onClick: ct,
510
+ disabled: G,
486
511
  className: "bg-status-error-bg text-status-error-text hover:bg-status-error-bg/90",
487
- children: W ? t(k, "projectDetail.deleting", "Deleting...") : t(k, "projectDetail.deleteProject", "Delete Project")
512
+ children: G ? t(O, "projectDetail.deleting", "Deleting...") : t(O, "projectDetail.deleteProject", "Delete Project")
488
513
  })] })] })
489
514
  }),
490
- j && M && R ? /* @__PURE__ */ h(o, {
491
- open: R,
492
- onOpenChange: z,
493
- workspaceId: j,
494
- projectId: M,
495
- projectName: I.name
515
+ k && A && I ? /* @__PURE__ */ E(ye, {
516
+ open: I,
517
+ onOpenChange: L,
518
+ workspaceId: k,
519
+ projectId: A,
520
+ projectName: P.name
496
521
  }) : null,
497
- B && /* @__PURE__ */ h(he, {
522
+ R && /* @__PURE__ */ E(be, {
498
523
  project: {
499
- id: I.id,
500
- name: I.name,
501
- workspaceId: I.workspaceId
524
+ id: P.id,
525
+ name: P.name,
526
+ workspaceId: P.workspaceId
502
527
  },
503
- open: B,
504
- onOpenChange: V
528
+ open: R,
529
+ onOpenChange: z
505
530
  }),
506
- /* @__PURE__ */ h(T, { control: A })
531
+ /* @__PURE__ */ E(je, { control: Ve })
507
532
  ]
508
533
  });
509
534
  }
510
- export { k as ProjectDetailPage };
535
+ export { O as ProjectDetailPage };