@burdenoff/microfe-workspaces 2026.1113.1 → 2026.1114.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/WorkspacesRoot.js +31 -25
- package/dist/WorkspacesRoutes.js +56 -55
- package/dist/components/CreateProjectDialog.js +81 -78
- package/dist/components/CreateWorkspaceDialog.js +41 -41
- package/dist/components/InviteMemberDialog.js +54 -54
- package/dist/components/MemberListItem.js +53 -53
- package/dist/components/PendingInvitesRoute.d.ts +7 -0
- package/dist/components/PendingInvitesRoute.js +15 -0
- package/dist/components/ProjectCard.js +82 -82
- package/dist/components/ProjectMemberPickerDialog.js +46 -46
- package/dist/components/RenameProjectDialog.js +16 -16
- package/dist/components/WorkspaceCard.js +18 -18
- package/dist/components/WorkspacesErrorBoundary.js +25 -25
- package/dist/components/tags/ProjectTagsWidget.js +50 -50
- package/dist/components/tags/WorkspaceTagsEditor.js +9 -9
- package/dist/constants/navigationV2.d.ts +12 -0
- package/dist/constants/navigationV2.js +3 -0
- package/dist/hooks/useNavigationV2.d.ts +6 -0
- package/dist/hooks/useNavigationV2.js +6 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -14
- package/dist/pages/ActivityListPage.js +30 -30
- package/dist/pages/CreateWorkspacePage.js +205 -173
- package/dist/pages/InviteAcceptancePage.js +210 -200
- package/dist/pages/MembersListPage.js +165 -164
- package/dist/pages/PendingInvitesPage.js +67 -67
- package/dist/pages/ProjectDetailPage.js +297 -272
- package/dist/pages/ProjectMembersPage.js +59 -59
- package/dist/pages/ProjectsListPage.js +275 -244
- package/dist/pages/WorkspaceDetailPage.js +175 -172
- package/dist/pages/WorkspaceInvitePage.js +606 -503
- package/dist/pages/WorkspaceSettingsPage.js +48 -48
- package/dist/pages/WorkspacesListPage.js +55 -55
- package/dist/pages/dashboard/DashboardCustomizer.js +27 -27
- package/dist/pages/dashboard/DashboardPage.js +35 -35
- package/dist/pages/dashboard/WidgetWrapper.js +21 -21
- package/dist/pages/dashboard/widgets/AgentsWidget.js +25 -25
- package/dist/pages/dashboard/widgets/GroupsWidget.js +14 -14
- package/dist/pages/dashboard/widgets/MembersWidget.js +15 -15
- package/dist/pages/dashboard/widgets/ProjectsWidget.js +20 -20
- package/dist/pages/dashboard/widgets/QuickActionsWidget.js +7 -7
- package/dist/pages/dashboard/widgets/RecentActivityWidget.js +16 -16
- package/dist/pages/dashboard/widgets/SessionsWidget.js +15 -15
- package/dist/pages/dashboard/widgets/TagCloudWidget.js +11 -11
- package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +16 -16
- package/dist/pages/dashboard/widgets/VibesWidget.js +13 -13
- package/dist/pages/dashboard/widgets/WelcomeWidget.js +23 -23
- package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +26 -26
- package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +21 -21
- package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +22 -22
- package/dist/pages/dashboard/widgets/WorkspacesWidget.js +16 -16
- package/dist/providers/WorkspacesProvider.d.ts +5 -0
- package/dist/providers/WorkspacesProvider.js +2 -2
- package/dist/types/index.d.ts +11 -1
- package/dist/utils/createForms.d.ts +21 -0
- package/dist/utils/createForms.js +20 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/invitationPayload.d.ts +18 -0
- package/dist/utils/invitationPayload.js +13 -0
- package/package.json +2 -2
|
@@ -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 {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { AlertDialog as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
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
|
|
24
|
-
let { t:
|
|
25
|
-
|
|
26
|
-
workspaceId:
|
|
27
|
-
projectId:
|
|
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
|
|
31
|
-
tags:
|
|
32
|
-
tagAssignments:
|
|
33
|
-
}), [
|
|
34
|
-
if (
|
|
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__ */
|
|
37
|
+
children: [/* @__PURE__ */ E(w, { className: "h-10 w-1/3" }), /* @__PURE__ */ E(w, { className: "h-64" })]
|
|
37
38
|
});
|
|
38
|
-
if (!
|
|
39
|
+
if (!tt) return /* @__PURE__ */ E("div", {
|
|
39
40
|
className: "flex items-center justify-center min-h-[400px]",
|
|
40
|
-
children: /* @__PURE__ */
|
|
41
|
+
children: /* @__PURE__ */ D("div", {
|
|
41
42
|
className: "text-center space-y-2",
|
|
42
|
-
children: [/* @__PURE__ */
|
|
43
|
+
children: [/* @__PURE__ */ E("h2", {
|
|
43
44
|
className: "text-lg font-semibold",
|
|
44
|
-
children: t(
|
|
45
|
-
}), /* @__PURE__ */
|
|
45
|
+
children: t(O, "projectDetail.accessDenied", "Access Denied")
|
|
46
|
+
}), /* @__PURE__ */ E("p", {
|
|
46
47
|
className: "text-sm text-text-secondary",
|
|
47
|
-
children: t(
|
|
48
|
+
children: t(O, "projectDetail.noPermissionToViewProject", "You don't have permission to view this project.")
|
|
48
49
|
})]
|
|
49
50
|
})
|
|
50
51
|
});
|
|
51
|
-
let
|
|
52
|
-
N(
|
|
53
|
-
},
|
|
54
|
-
|
|
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
|
-
} }) :
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
66
|
+
n("success"), F(!1), j(N(`${M}/${k}/projects`));
|
|
63
67
|
},
|
|
64
68
|
onError: (e) => {
|
|
65
|
-
|
|
69
|
+
n("error"), console.error("Failed to delete project:", e);
|
|
66
70
|
}
|
|
67
71
|
}));
|
|
68
|
-
},
|
|
69
|
-
N(
|
|
70
|
-
},
|
|
71
|
-
if (!
|
|
72
|
-
let t = e.map((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
|
|
75
|
-
id:
|
|
78
|
+
await $e({
|
|
79
|
+
id: P.id,
|
|
76
80
|
input: { tags: t }
|
|
77
81
|
});
|
|
78
82
|
} catch (e) {
|
|
79
|
-
|
|
83
|
+
n("warning"), console.error("Failed to sync legacy project tag mirror after updating structured project tags:", e);
|
|
80
84
|
}
|
|
81
|
-
},
|
|
82
|
-
if (
|
|
83
|
-
await
|
|
84
|
-
entityId:
|
|
85
|
+
}, ut = async (e) => {
|
|
86
|
+
if (P) try {
|
|
87
|
+
await Ye({
|
|
88
|
+
entityId: P.id,
|
|
85
89
|
tagId: e.id
|
|
86
|
-
}), await
|
|
90
|
+
}), await lt([...Z, r(e)]);
|
|
87
91
|
} catch (e) {
|
|
88
|
-
throw
|
|
92
|
+
throw n("error"), e;
|
|
89
93
|
}
|
|
90
|
-
},
|
|
91
|
-
if (!
|
|
92
|
-
let t =
|
|
94
|
+
}, dt = async (e) => {
|
|
95
|
+
if (!P) return;
|
|
96
|
+
let t = P.tagAssignments?.find((t) => t.tagId === e)?.id;
|
|
93
97
|
try {
|
|
94
|
-
await
|
|
95
|
-
entityId:
|
|
98
|
+
await Ze({
|
|
99
|
+
entityId: P.id,
|
|
96
100
|
tagId: e,
|
|
97
101
|
assignmentId: t
|
|
98
|
-
}), await
|
|
102
|
+
}), await lt(Z.filter((t) => t.tagId !== e && t.id !== e));
|
|
99
103
|
} catch (e) {
|
|
100
|
-
throw
|
|
104
|
+
throw n("error"), e;
|
|
101
105
|
}
|
|
102
106
|
};
|
|
103
|
-
return
|
|
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__ */
|
|
107
|
-
/* @__PURE__ */
|
|
108
|
-
/* @__PURE__ */
|
|
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__ */
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
-
/* @__PURE__ */
|
|
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__ */
|
|
120
|
+
/* @__PURE__ */ E(w, { className: "h-48" })
|
|
117
121
|
]
|
|
118
|
-
}) :
|
|
122
|
+
}) : Ue || !P ? /* @__PURE__ */ D("div", {
|
|
119
123
|
className: "space-y-4 p-6",
|
|
120
|
-
children: [/* @__PURE__ */
|
|
124
|
+
children: [/* @__PURE__ */ D(_, {
|
|
121
125
|
variant: "ghost",
|
|
122
|
-
onClick:
|
|
126
|
+
onClick: Q,
|
|
123
127
|
className: "gap-2",
|
|
124
|
-
children: [/* @__PURE__ */
|
|
125
|
-
}), /* @__PURE__ */
|
|
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(
|
|
128
|
-
description: t(
|
|
129
|
-
action: /* @__PURE__ */
|
|
130
|
-
onClick:
|
|
131
|
-
children: [/* @__PURE__ */
|
|
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(
|
|
138
|
+
}), t(O, "projectDetail.backToProjects", "Back to Projects")]
|
|
135
139
|
})
|
|
136
140
|
})]
|
|
137
|
-
}) : /* @__PURE__ */
|
|
141
|
+
}) : /* @__PURE__ */ D("div", {
|
|
138
142
|
className: "space-y-4 sm:space-y-6 p-3 sm:p-6",
|
|
139
143
|
children: [
|
|
140
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ D("div", {
|
|
141
145
|
className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",
|
|
142
|
-
children: [/* @__PURE__ */
|
|
143
|
-
/* @__PURE__ */
|
|
146
|
+
children: [/* @__PURE__ */ D("div", { children: [
|
|
147
|
+
/* @__PURE__ */ D(_, {
|
|
144
148
|
variant: "ghost",
|
|
145
|
-
onClick:
|
|
149
|
+
onClick: Q,
|
|
146
150
|
className: "gap-2 mb-2 -ml-2",
|
|
147
|
-
children: [/* @__PURE__ */
|
|
151
|
+
children: [/* @__PURE__ */ E(o, { size: 20 }), t(O, "projectDetail.backToProjects", "Back to Projects")]
|
|
148
152
|
}),
|
|
149
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ D("div", {
|
|
150
154
|
className: "flex items-center gap-3",
|
|
151
|
-
children: [/* @__PURE__ */
|
|
155
|
+
children: [/* @__PURE__ */ E("div", {
|
|
152
156
|
className: "p-3 rounded-lg bg-action-primary-bg/10",
|
|
153
|
-
children: /* @__PURE__ */
|
|
157
|
+
children: /* @__PURE__ */ E(s, {
|
|
154
158
|
className: "text-primary",
|
|
155
159
|
size: 28
|
|
156
160
|
})
|
|
157
|
-
}), /* @__PURE__ */
|
|
161
|
+
}), /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h1", {
|
|
158
162
|
className: "text-2xl sm:text-3xl font-bold",
|
|
159
|
-
children:
|
|
160
|
-
}), /* @__PURE__ */
|
|
163
|
+
children: P.name
|
|
164
|
+
}), V ? null : /* @__PURE__ */ E("p", {
|
|
161
165
|
className: "text-sm text-text-secondary font-mono",
|
|
162
|
-
children:
|
|
166
|
+
children: P.key
|
|
163
167
|
})] })]
|
|
164
168
|
}),
|
|
165
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ D("div", {
|
|
166
170
|
className: "flex items-center gap-2 mt-3",
|
|
167
|
-
children: [/* @__PURE__ */
|
|
168
|
-
className: `border ${
|
|
169
|
-
children:
|
|
170
|
-
}),
|
|
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__ */
|
|
177
|
+
children: [/* @__PURE__ */ E(Se, {
|
|
174
178
|
size: 12,
|
|
175
179
|
className: "mr-1"
|
|
176
|
-
}), t(
|
|
180
|
+
}), t(O, "projectDetail.archived", "Archived")]
|
|
177
181
|
})]
|
|
178
182
|
})
|
|
179
|
-
] }), /* @__PURE__ */
|
|
183
|
+
] }), /* @__PURE__ */ E("div", {
|
|
180
184
|
className: "flex items-center gap-2",
|
|
181
|
-
children: /* @__PURE__ */
|
|
185
|
+
children: /* @__PURE__ */ D(Oe, { children: [/* @__PURE__ */ E(Ae, {
|
|
182
186
|
asChild: !0,
|
|
183
|
-
children: /* @__PURE__ */
|
|
187
|
+
children: /* @__PURE__ */ E(_, {
|
|
184
188
|
variant: "outline",
|
|
185
189
|
size: "icon",
|
|
186
|
-
"aria-label": t(
|
|
187
|
-
children: /* @__PURE__ */
|
|
190
|
+
"aria-label": t(O, "projectDetail.openProjectActionsAriaLabel", "Open project actions"),
|
|
191
|
+
children: /* @__PURE__ */ E(we, { size: 20 })
|
|
188
192
|
})
|
|
189
|
-
}), /* @__PURE__ */
|
|
193
|
+
}), /* @__PURE__ */ D(ke, {
|
|
190
194
|
align: "end",
|
|
191
195
|
children: [
|
|
192
|
-
|
|
193
|
-
onClick: () =>
|
|
194
|
-
children: [/* @__PURE__ */
|
|
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(
|
|
201
|
+
}), t(O, "projectDetail.renameProject", "Rename Project")]
|
|
198
202
|
}),
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
onClick:
|
|
202
|
-
disabled:
|
|
203
|
-
children: [/* @__PURE__ */
|
|
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
|
-
}),
|
|
210
|
+
}), U || W ? t(O, "projectDetail.processing", "Processing...") : P.archived ? t(O, "projectDetail.unarchive", "Unarchive") : t(O, "projectDetail.archive", "Archive")]
|
|
207
211
|
}),
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
onClick: () =>
|
|
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(
|
|
216
|
+
children: t(O, "projectDetail.deleteProject", "Delete Project")
|
|
213
217
|
})
|
|
214
218
|
]
|
|
215
219
|
})] })
|
|
216
220
|
})]
|
|
217
221
|
}),
|
|
218
|
-
/* @__PURE__ */
|
|
219
|
-
/* @__PURE__ */
|
|
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
|
-
...
|
|
226
|
+
...X ? [{
|
|
223
227
|
id: "add-member",
|
|
224
|
-
label: t(
|
|
225
|
-
description: t(
|
|
226
|
-
icon: /* @__PURE__ */
|
|
227
|
-
onClick: () =>
|
|
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(
|
|
232
|
-
description: t(
|
|
233
|
-
icon: /* @__PURE__ */
|
|
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
|
-
...
|
|
245
|
+
...Y ? [{
|
|
242
246
|
id: "manage-members",
|
|
243
|
-
label: t(
|
|
244
|
-
description: t(
|
|
245
|
-
icon: /* @__PURE__ */
|
|
246
|
-
onClick:
|
|
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(
|
|
251
|
-
description: t(
|
|
252
|
-
icon: /* @__PURE__ */
|
|
253
|
-
onClick: () => N(
|
|
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__ */
|
|
261
|
+
/* @__PURE__ */ D("div", {
|
|
258
262
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-4 sm:gap-6",
|
|
259
|
-
children: [/* @__PURE__ */
|
|
263
|
+
children: [/* @__PURE__ */ D("div", {
|
|
260
264
|
className: "lg:col-span-2 space-y-4 sm:space-y-6",
|
|
261
|
-
children: [/* @__PURE__ */
|
|
265
|
+
children: [/* @__PURE__ */ D("div", {
|
|
262
266
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
263
|
-
children: [/* @__PURE__ */
|
|
267
|
+
children: [/* @__PURE__ */ D(C, {
|
|
264
268
|
treatment: "metric",
|
|
265
269
|
glow: !0,
|
|
266
|
-
children: [/* @__PURE__ */
|
|
270
|
+
children: [/* @__PURE__ */ E(y, {
|
|
267
271
|
className: "flex flex-row items-center justify-between pb-2",
|
|
268
|
-
children: /* @__PURE__ */
|
|
272
|
+
children: /* @__PURE__ */ D(b, {
|
|
269
273
|
className: "flex items-center gap-2 text-sm font-medium text-text-secondary",
|
|
270
|
-
children: [/* @__PURE__ */
|
|
274
|
+
children: [/* @__PURE__ */ E(l, {
|
|
271
275
|
size: 18,
|
|
272
276
|
className: "text-text-muted"
|
|
273
|
-
}), t(
|
|
277
|
+
}), t(O, "projectDetail.membersCardTitle", "Members")]
|
|
274
278
|
})
|
|
275
|
-
}), /* @__PURE__ */
|
|
279
|
+
}), /* @__PURE__ */ D(v, {
|
|
276
280
|
className: "space-y-4",
|
|
277
281
|
children: [
|
|
278
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ E("p", {
|
|
279
283
|
className: "text-3xl font-bold tabular-nums",
|
|
280
|
-
children:
|
|
284
|
+
children: rt ?? 0
|
|
281
285
|
}),
|
|
282
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ E("p", {
|
|
283
287
|
className: "text-sm text-text-muted",
|
|
284
|
-
children: t(
|
|
288
|
+
children: t(O, "projectDetail.projectMembers", "Project members")
|
|
285
289
|
}),
|
|
286
|
-
|
|
290
|
+
X || Y ? /* @__PURE__ */ D("div", {
|
|
287
291
|
className: "flex flex-wrap gap-2",
|
|
288
|
-
children: [
|
|
292
|
+
children: [X ? /* @__PURE__ */ D(_, {
|
|
289
293
|
size: "sm",
|
|
290
|
-
onClick: () =>
|
|
291
|
-
children: [/* @__PURE__ */
|
|
294
|
+
onClick: () => L(!0),
|
|
295
|
+
children: [/* @__PURE__ */ E(c, {
|
|
292
296
|
size: 16,
|
|
293
297
|
className: "mr-2"
|
|
294
|
-
}), t(
|
|
295
|
-
}) : null,
|
|
298
|
+
}), t(O, "projectDetail.addProjectMember", "Add Member")]
|
|
299
|
+
}) : null, Y ? /* @__PURE__ */ D(_, {
|
|
296
300
|
variant: "outline",
|
|
297
301
|
size: "sm",
|
|
298
|
-
onClick:
|
|
299
|
-
children: [/* @__PURE__ */
|
|
302
|
+
onClick: $,
|
|
303
|
+
children: [/* @__PURE__ */ E(l, {
|
|
300
304
|
size: 16,
|
|
301
305
|
className: "mr-2"
|
|
302
|
-
}), t(
|
|
306
|
+
}), t(O, "projectDetail.manageProjectMembers", "Manage Members")]
|
|
303
307
|
}) : null]
|
|
304
308
|
}) : null
|
|
305
309
|
]
|
|
306
310
|
})]
|
|
307
|
-
}), /* @__PURE__ */
|
|
311
|
+
}), /* @__PURE__ */ D(C, {
|
|
308
312
|
treatment: "metric",
|
|
309
|
-
children: [/* @__PURE__ */
|
|
313
|
+
children: [/* @__PURE__ */ E(y, {
|
|
310
314
|
className: "flex flex-row items-center justify-between pb-2",
|
|
311
|
-
children: /* @__PURE__ */
|
|
315
|
+
children: /* @__PURE__ */ D(b, {
|
|
312
316
|
className: "flex items-center gap-2 text-sm font-medium text-text-secondary",
|
|
313
|
-
children: [/* @__PURE__ */
|
|
317
|
+
children: [/* @__PURE__ */ E(a, {
|
|
314
318
|
size: 18,
|
|
315
319
|
className: "text-text-muted"
|
|
316
|
-
}), t(
|
|
320
|
+
}), t(O, "projectDetail.activityCardTitle", "Activity")]
|
|
317
321
|
})
|
|
318
|
-
}), /* @__PURE__ */
|
|
322
|
+
}), /* @__PURE__ */ D(v, { children: [/* @__PURE__ */ E("p", {
|
|
319
323
|
className: "text-3xl font-bold tabular-nums",
|
|
320
|
-
children:
|
|
321
|
-
}), /* @__PURE__ */
|
|
324
|
+
children: at
|
|
325
|
+
}), /* @__PURE__ */ E("p", {
|
|
322
326
|
className: "text-sm text-text-muted",
|
|
323
|
-
children: t(
|
|
327
|
+
children: t(O, "projectDetail.recentActivityItems", "Recent activity items")
|
|
324
328
|
})] })]
|
|
325
329
|
})]
|
|
326
|
-
}), /* @__PURE__ */
|
|
330
|
+
}), /* @__PURE__ */ D(C, {
|
|
327
331
|
treatment: "plain",
|
|
328
332
|
id: "project-tags-section",
|
|
329
333
|
className: "border-border-seam",
|
|
330
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
336
|
+
children: [/* @__PURE__ */ E("p", {
|
|
333
337
|
className: "text-sm text-text-muted",
|
|
334
|
-
children: t(
|
|
335
|
-
}), /* @__PURE__ */
|
|
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:
|
|
338
|
-
workspaceId:
|
|
339
|
-
tags:
|
|
340
|
-
onAdd:
|
|
341
|
-
onRemove:
|
|
342
|
-
className:
|
|
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__ */
|
|
350
|
+
}), /* @__PURE__ */ E("aside", {
|
|
347
351
|
className: "lg:sticky lg:top-6 lg:self-start",
|
|
348
|
-
children: /* @__PURE__ */
|
|
352
|
+
children: /* @__PURE__ */ D(C, {
|
|
349
353
|
treatment: "plain",
|
|
350
354
|
className: "border-border-seam",
|
|
351
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
358
|
+
/* @__PURE__ */ D("div", {
|
|
355
359
|
className: "grid grid-cols-1 gap-4 text-sm",
|
|
356
360
|
children: [
|
|
357
|
-
/* @__PURE__ */
|
|
361
|
+
V ? null : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D("div", {
|
|
358
362
|
className: "space-y-1",
|
|
359
|
-
children: [/* @__PURE__ */
|
|
363
|
+
children: [/* @__PURE__ */ D("span", {
|
|
360
364
|
className: "text-text-muted flex items-center gap-2",
|
|
361
|
-
children: [/* @__PURE__ */
|
|
362
|
-
}), /* @__PURE__ */
|
|
365
|
+
children: [/* @__PURE__ */ E(s, { size: 14 }), t(O, "projectDetail.projectId", "Project ID")]
|
|
366
|
+
}), /* @__PURE__ */ E("button", {
|
|
363
367
|
type: "button",
|
|
364
|
-
onClick: () =>
|
|
365
|
-
id:
|
|
366
|
-
name:
|
|
368
|
+
onClick: () => Ve.show({
|
|
369
|
+
id: P.id,
|
|
370
|
+
name: P.name,
|
|
367
371
|
type: "Project",
|
|
368
|
-
details:
|
|
372
|
+
details: P.key ? [{
|
|
369
373
|
label: "Key",
|
|
370
|
-
value:
|
|
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(
|
|
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__ */
|
|
382
|
+
children: [/* @__PURE__ */ D("span", {
|
|
380
383
|
className: "text-text-secondary flex items-center gap-2",
|
|
381
|
-
children: [/* @__PURE__ */
|
|
382
|
-
}), /* @__PURE__ */
|
|
384
|
+
children: [/* @__PURE__ */ E(s, { size: 14 }), t(O, "projectDetail.projectKey", "Project Key")]
|
|
385
|
+
}), /* @__PURE__ */ E("span", {
|
|
383
386
|
className: "font-medium",
|
|
384
|
-
children:
|
|
387
|
+
children: P.key
|
|
385
388
|
})]
|
|
386
|
-
}),
|
|
387
|
-
/* @__PURE__ */
|
|
389
|
+
})] }),
|
|
390
|
+
/* @__PURE__ */ D("div", {
|
|
388
391
|
className: "space-y-1",
|
|
389
|
-
children: [/* @__PURE__ */
|
|
392
|
+
children: [/* @__PURE__ */ D("span", {
|
|
390
393
|
className: "text-text-secondary flex items-center gap-2",
|
|
391
|
-
children: [/* @__PURE__ */
|
|
392
|
-
}), /* @__PURE__ */
|
|
394
|
+
children: [/* @__PURE__ */ E(Ce, { size: 14 }), t(O, "projectDetail.created", "Created")]
|
|
395
|
+
}), /* @__PURE__ */ E("span", { children: de(P.createdAt) })]
|
|
393
396
|
}),
|
|
394
|
-
/* @__PURE__ */
|
|
397
|
+
/* @__PURE__ */ D("div", {
|
|
395
398
|
className: "space-y-1",
|
|
396
|
-
children: [/* @__PURE__ */
|
|
399
|
+
children: [/* @__PURE__ */ D("span", {
|
|
397
400
|
className: "text-text-secondary flex items-center gap-2",
|
|
398
|
-
children: [/* @__PURE__ */
|
|
399
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
404
|
+
V ? null : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D("div", {
|
|
402
405
|
className: "space-y-1",
|
|
403
|
-
children: [/* @__PURE__ */
|
|
406
|
+
children: [/* @__PURE__ */ D("span", {
|
|
404
407
|
className: "text-text-secondary flex items-center gap-2",
|
|
405
|
-
children: [/* @__PURE__ */
|
|
406
|
-
}), /* @__PURE__ */
|
|
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:
|
|
411
|
+
children: P.workspaceId
|
|
409
412
|
})]
|
|
410
|
-
}),
|
|
411
|
-
/* @__PURE__ */ g("div", {
|
|
413
|
+
}), /* @__PURE__ */ D("div", {
|
|
412
414
|
className: "space-y-1",
|
|
413
|
-
children: [/* @__PURE__ */
|
|
415
|
+
children: [/* @__PURE__ */ D("span", {
|
|
414
416
|
className: "text-text-secondary flex items-center gap-2",
|
|
415
|
-
children: [/* @__PURE__ */
|
|
416
|
-
}), /* @__PURE__ */
|
|
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:
|
|
420
|
+
children: P.creatorId
|
|
419
421
|
})]
|
|
420
|
-
})
|
|
422
|
+
})] })
|
|
421
423
|
]
|
|
422
424
|
}),
|
|
423
|
-
|
|
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__ */
|
|
436
|
+
children: [/* @__PURE__ */ E("h4", {
|
|
426
437
|
className: "text-sm font-medium mb-2",
|
|
427
|
-
children: t(
|
|
428
|
-
}), /* @__PURE__ */
|
|
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(
|
|
441
|
+
children: JSON.stringify(P.config, null, 2)
|
|
431
442
|
})]
|
|
432
443
|
}),
|
|
433
|
-
/* @__PURE__ */
|
|
444
|
+
/* @__PURE__ */ E(Fe, {
|
|
434
445
|
collapsedHeight: 0,
|
|
435
|
-
label: t(
|
|
436
|
-
children: /* @__PURE__ */
|
|
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
|
-
|
|
450
|
+
Y ? /* @__PURE__ */ D(_, {
|
|
440
451
|
variant: "outline",
|
|
441
452
|
size: "sm",
|
|
442
453
|
className: "justify-start",
|
|
443
|
-
onClick:
|
|
444
|
-
children: [/* @__PURE__ */
|
|
454
|
+
onClick: $,
|
|
455
|
+
children: [/* @__PURE__ */ E(l, {
|
|
445
456
|
size: 16,
|
|
446
457
|
className: "mr-2"
|
|
447
|
-
}), t(
|
|
458
|
+
}), t(O, "projectDetail.projectMembersPage", "Project Members")]
|
|
448
459
|
}) : null,
|
|
449
|
-
/* @__PURE__ */
|
|
460
|
+
/* @__PURE__ */ D(_, {
|
|
450
461
|
variant: "outline",
|
|
451
462
|
size: "sm",
|
|
452
463
|
className: "justify-start",
|
|
453
|
-
onClick: () => N(
|
|
454
|
-
children: [/* @__PURE__ */
|
|
464
|
+
onClick: () => j(N(`${M}/${k}/members`)),
|
|
465
|
+
children: [/* @__PURE__ */ E(l, {
|
|
455
466
|
size: 16,
|
|
456
467
|
className: "mr-2"
|
|
457
|
-
}), t(
|
|
468
|
+
}), t(O, "projectDetail.workspaceMembers", "Workspace Members")]
|
|
458
469
|
}),
|
|
459
|
-
/* @__PURE__ */
|
|
470
|
+
/* @__PURE__ */ D(_, {
|
|
460
471
|
variant: "outline",
|
|
461
472
|
size: "sm",
|
|
462
473
|
className: "justify-start",
|
|
463
|
-
onClick: () => N(
|
|
464
|
-
children: [/* @__PURE__ */
|
|
474
|
+
onClick: () => j(N(`${M}/${k}/activity`)),
|
|
475
|
+
children: [/* @__PURE__ */ E(a, {
|
|
465
476
|
size: 16,
|
|
466
477
|
className: "mr-2"
|
|
467
|
-
}), t(
|
|
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__ */
|
|
478
|
-
open:
|
|
479
|
-
onOpenChange:
|
|
480
|
-
children: /* @__PURE__ */
|
|
481
|
-
disabled:
|
|
482
|
-
children: t(
|
|
483
|
-
}), /* @__PURE__ */
|
|
484
|
-
|
|
485
|
-
|
|
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:
|
|
512
|
+
children: G ? t(O, "projectDetail.deleting", "Deleting...") : t(O, "projectDetail.deleteProject", "Delete Project")
|
|
488
513
|
})] })] })
|
|
489
514
|
}),
|
|
490
|
-
|
|
491
|
-
open:
|
|
492
|
-
onOpenChange:
|
|
493
|
-
workspaceId:
|
|
494
|
-
projectId:
|
|
495
|
-
projectName:
|
|
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
|
-
|
|
522
|
+
R && /* @__PURE__ */ E(be, {
|
|
498
523
|
project: {
|
|
499
|
-
id:
|
|
500
|
-
name:
|
|
501
|
-
workspaceId:
|
|
524
|
+
id: P.id,
|
|
525
|
+
name: P.name,
|
|
526
|
+
workspaceId: P.workspaceId
|
|
502
527
|
},
|
|
503
|
-
open:
|
|
504
|
-
onOpenChange:
|
|
528
|
+
open: R,
|
|
529
|
+
onOpenChange: z
|
|
505
530
|
}),
|
|
506
|
-
/* @__PURE__ */
|
|
531
|
+
/* @__PURE__ */ E(je, { control: Ve })
|
|
507
532
|
]
|
|
508
533
|
});
|
|
509
534
|
}
|
|
510
|
-
export {
|
|
535
|
+
export { O as ProjectDetailPage };
|