@burdenoff/microfe-workspaces 2026.1109.1 → 2026.1110.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/WorkspacesRoot.js +10 -9
- package/dist/WorkspacesRoutes.js +1 -2
- package/dist/components/CreateProjectDialog.js +22 -22
- package/dist/components/CreateWorkspaceDialog.js +8 -9
- package/dist/components/InviteMemberDialog.js +18 -23
- package/dist/components/MemberListItem.js +16 -17
- package/dist/components/ProjectCard.js +14 -15
- package/dist/components/ProjectMemberPickerDialog.js +92 -93
- package/dist/components/RenameProjectDialog.js +12 -17
- package/dist/components/WorkspaceCard.js +6 -7
- package/dist/components/WorkspaceContextPathSync.js +4 -5
- package/dist/components/WorkspacesErrorBoundary.js +6 -11
- package/dist/components/index.js +8 -7
- package/dist/components/tags/ProjectTagsWidget.js +56 -57
- package/dist/components/tags/WorkspaceTagsEditor.js +2 -3
- package/dist/constants/permissions.js +1 -2
- package/dist/generated/global-operations.js +1 -2
- package/dist/generated/wspace-operations.js +1 -2
- package/dist/hooks/index.js +9 -8
- package/dist/hooks/useMemberMutations.js +165 -166
- package/dist/hooks/useOpenWorkspace.js +1 -2
- package/dist/hooks/useOrgsWithPermission.js +2 -3
- package/dist/hooks/usePendingInvitations.d.ts +1 -1
- package/dist/hooks/usePendingInvitations.js +2 -3
- package/dist/hooks/useProjectMemberMutations.js +23 -24
- package/dist/hooks/useProjectMembers.d.ts +2 -2
- package/dist/hooks/useProjectMembers.js +2 -3
- package/dist/hooks/useProjectMutations.js +68 -69
- package/dist/hooks/useProjects.d.ts +3 -3
- package/dist/hooks/useProjects.js +5 -6
- package/dist/hooks/useScopedNavigation.js +1 -2
- package/dist/hooks/useTenants.d.ts +2 -2
- package/dist/hooks/useTenants.js +3 -4
- package/dist/hooks/useTr.js +1 -2
- package/dist/hooks/useWorkspaceActivity.d.ts +1 -1
- package/dist/hooks/useWorkspaceActivity.js +2 -3
- package/dist/hooks/useWorkspaceMembers.d.ts +5 -5
- package/dist/hooks/useWorkspaceMembers.js +7 -8
- package/dist/hooks/useWorkspaceMutations.js +70 -71
- package/dist/hooks/useWorkspacePermissions.js +1 -2
- package/dist/hooks/useWorkspaceRoles.d.ts +1 -1
- package/dist/hooks/useWorkspaceRoles.js +3 -4
- package/dist/hooks/useWorkspaces.d.ts +3 -3
- package/dist/hooks/useWorkspaces.js +4 -5
- package/dist/hooks/useWorkspacesEventEmitter.js +1 -2
- package/dist/hooks/useWorkspacesPageView.js +1 -2
- package/dist/index.js +15 -15
- package/dist/pages/ActivityListPage.js +28 -29
- package/dist/pages/CreateWorkspacePage.js +137 -138
- package/dist/pages/InviteAcceptancePage.js +65 -66
- package/dist/pages/MembersListPage.js +203 -204
- package/dist/pages/PendingInvitesPage.js +63 -64
- package/dist/pages/ProjectDetailPage.js +71 -72
- package/dist/pages/ProjectMembersPage.js +116 -117
- package/dist/pages/ProjectsListPage.js +62 -67
- package/dist/pages/WorkspaceDetailPage.js +153 -154
- package/dist/pages/WorkspaceInvitePage.js +88 -92
- package/dist/pages/WorkspaceSettingsPage.js +32 -33
- package/dist/pages/WorkspacesListPage.js +40 -41
- package/dist/pages/dashboard/DashboardCustomizer.js +98 -94
- package/dist/pages/dashboard/DashboardGrid.js +1 -2
- package/dist/pages/dashboard/DashboardPage.js +12 -13
- package/dist/pages/dashboard/WidgetWrapper.js +3 -3
- package/dist/pages/dashboard/config.js +3 -4
- package/dist/pages/dashboard/hooks/useDashboardData.d.ts +5 -5
- package/dist/pages/dashboard/hooks/useDashboardData.js +9 -10
- package/dist/pages/dashboard/hooks/useDashboardPreferences.js +7 -8
- package/dist/pages/dashboard/reorder.js +11 -14
- package/dist/pages/dashboard/widgets/AgentsWidget.js +13 -14
- package/dist/pages/dashboard/widgets/GroupsWidget.js +9 -10
- package/dist/pages/dashboard/widgets/MembersWidget.js +10 -11
- package/dist/pages/dashboard/widgets/ProjectsWidget.js +11 -12
- package/dist/pages/dashboard/widgets/QuickActionsWidget.js +28 -29
- package/dist/pages/dashboard/widgets/RecentActivityWidget.js +22 -23
- package/dist/pages/dashboard/widgets/SessionsWidget.js +28 -29
- package/dist/pages/dashboard/widgets/StorageWidget.js +19 -20
- package/dist/pages/dashboard/widgets/TagCloudWidget.js +9 -10
- package/dist/pages/dashboard/widgets/TipsWidget.js +5 -6
- package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +17 -18
- package/dist/pages/dashboard/widgets/VibesWidget.js +13 -14
- package/dist/pages/dashboard/widgets/WelcomeWidget.js +11 -12
- package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +16 -17
- package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +11 -12
- package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +17 -18
- package/dist/pages/dashboard/widgets/WorkspacesWidget.js +7 -8
- package/dist/pages/dashboard/widgets/tipsCatalog.js +1 -2
- package/dist/providers/WorkspacesProvider.js +1 -2
- package/dist/store/workspacesStore.d.ts +1 -1
- package/dist/store/workspacesStore.js +1 -2
- package/dist/test/happydom.d.ts +1 -0
- package/dist/translations/en.js +1 -2
- package/dist/utils/formatters.js +1 -2
- package/dist/utils/i18n.js +1 -2
- package/dist/utils/invitationDisplay.js +1 -2
- package/dist/utils/nativeBridge.js +1 -2
- package/dist/utils/pinnedRequest.js +2 -3
- package/dist/utils/projectTags.js +2 -3
- package/dist/utils/slug.js +1 -2
- package/dist/utils/telemetryError.js +13 -16
- package/dist/utils/tokenHelpers.js +1 -2
- package/dist/utils/workspaceBulkInviteCsv.js +3 -8
- package/package.json +72 -55
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { ProjectTagsWidget as he } from "../components/tags/ProjectTagsWidget.js";
|
|
1
|
+
import { ProjectTagsWidget as e } from "../components/tags/ProjectTagsWidget.js";
|
|
2
|
+
import { tWithFallback as t } from "../utils/i18n.js";
|
|
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";
|
|
15
14
|
import { ProjectMemberPickerDialog as o } from "../components/ProjectMemberPickerDialog.js";
|
|
15
|
+
import { RenameProjectDialog as he } from "../components/RenameProjectDialog.js";
|
|
16
16
|
import { useMemo as ge, useState as s } from "react";
|
|
17
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
18
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
19
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
20
|
import { useI18n as Pe } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
21
21
|
import { useNavigate as O, useParams as Fe } from "react-router";
|
|
22
|
-
|
|
22
|
+
// src/pages/ProjectDetailPage.tsx
|
|
23
23
|
function k() {
|
|
24
24
|
let { t: k } = Pe(), A = Ne(), { workspaceId: j, projectId: M } = Fe();
|
|
25
|
-
|
|
25
|
+
a("workspaces.project-detail", {
|
|
26
26
|
workspaceId: j,
|
|
27
27
|
projectId: M,
|
|
28
28
|
requireParams: !0
|
|
29
29
|
});
|
|
30
|
-
let N = O(), { basePath: P = "/workspaces" } =
|
|
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
31
|
tags: I?.tags ?? [],
|
|
32
32
|
tagAssignments: I?.tagAssignments
|
|
33
|
-
}), [I?.tags, I?.tagAssignments]), { data: Ze } =
|
|
33
|
+
}), [I?.tags, I?.tagAssignments]), { data: Ze } = fe(j), Qe = (Ze ?? []).filter((e) => e.resourceId === M || e.resourceType?.toLowerCase() === "project").length, $e = X;
|
|
34
34
|
if (Ye) return /* @__PURE__ */ g("div", {
|
|
35
35
|
className: "space-y-4 p-6",
|
|
36
36
|
children: [/* @__PURE__ */ h(D, { className: "h-10 w-1/3" }), /* @__PURE__ */ h(D, { className: "h-64" })]
|
|
@@ -41,10 +41,10 @@ function k() {
|
|
|
41
41
|
className: "text-center space-y-2",
|
|
42
42
|
children: [/* @__PURE__ */ h("h2", {
|
|
43
43
|
className: "text-lg font-semibold",
|
|
44
|
-
children:
|
|
44
|
+
children: t(k, "projectDetail.accessDenied", "Access Denied")
|
|
45
45
|
}), /* @__PURE__ */ h("p", {
|
|
46
46
|
className: "text-sm text-text-secondary",
|
|
47
|
-
children:
|
|
47
|
+
children: t(k, "projectDetail.noPermissionToViewProject", "You don't have permission to view this project.")
|
|
48
48
|
})]
|
|
49
49
|
})
|
|
50
50
|
});
|
|
@@ -57,7 +57,7 @@ function k() {
|
|
|
57
57
|
console.error("Failed to archive project:", e);
|
|
58
58
|
} }));
|
|
59
59
|
}, tt = () => {
|
|
60
|
-
I && (
|
|
60
|
+
I && (le("medium"), Ve(I.id, {
|
|
61
61
|
onSuccess: () => {
|
|
62
62
|
r("success"), L(!1), N(F(`${P}/${j}/projects`));
|
|
63
63
|
},
|
|
@@ -69,7 +69,7 @@ function k() {
|
|
|
69
69
|
N(F(`${P}/${j}/projects/${M}/members`));
|
|
70
70
|
}, $ = async (e) => {
|
|
71
71
|
if (!I) return;
|
|
72
|
-
let t = e.map((e) =>
|
|
72
|
+
let t = e.map((e) => i(e));
|
|
73
73
|
try {
|
|
74
74
|
await Ke({
|
|
75
75
|
id: I.id,
|
|
@@ -83,7 +83,7 @@ function k() {
|
|
|
83
83
|
await He({
|
|
84
84
|
entityId: I.id,
|
|
85
85
|
tagId: e.id
|
|
86
|
-
}), await $([...X,
|
|
86
|
+
}), await $([...X, i(e)]);
|
|
87
87
|
} catch (e) {
|
|
88
88
|
throw r("error"), e;
|
|
89
89
|
}
|
|
@@ -121,17 +121,17 @@ function k() {
|
|
|
121
121
|
variant: "ghost",
|
|
122
122
|
onClick: Z,
|
|
123
123
|
className: "gap-2",
|
|
124
|
-
children: [/* @__PURE__ */ h(u, { size: 20 }),
|
|
124
|
+
children: [/* @__PURE__ */ h(u, { size: 20 }), t(k, "projectDetail.backToProjects", "Back to Projects")]
|
|
125
125
|
}), /* @__PURE__ */ h(ke, {
|
|
126
126
|
illustration: "empty-search",
|
|
127
|
-
title:
|
|
128
|
-
description:
|
|
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
129
|
action: /* @__PURE__ */ g(v, {
|
|
130
130
|
onClick: Z,
|
|
131
131
|
children: [/* @__PURE__ */ h(u, {
|
|
132
132
|
size: 16,
|
|
133
133
|
className: "mr-2"
|
|
134
|
-
}),
|
|
134
|
+
}), t(k, "projectDetail.backToProjects", "Back to Projects")]
|
|
135
135
|
})
|
|
136
136
|
})]
|
|
137
137
|
}) : /* @__PURE__ */ g("div", {
|
|
@@ -144,7 +144,7 @@ function k() {
|
|
|
144
144
|
variant: "ghost",
|
|
145
145
|
onClick: Z,
|
|
146
146
|
className: "gap-2 mb-2 -ml-2",
|
|
147
|
-
children: [/* @__PURE__ */ h(u, { size: 20 }),
|
|
147
|
+
children: [/* @__PURE__ */ h(u, { size: 20 }), t(k, "projectDetail.backToProjects", "Back to Projects")]
|
|
148
148
|
}),
|
|
149
149
|
/* @__PURE__ */ g("div", {
|
|
150
150
|
className: "flex items-center gap-3",
|
|
@@ -165,7 +165,7 @@ function k() {
|
|
|
165
165
|
/* @__PURE__ */ g("div", {
|
|
166
166
|
className: "flex items-center gap-2 mt-3",
|
|
167
167
|
children: [/* @__PURE__ */ h(_, {
|
|
168
|
-
className: `border ${
|
|
168
|
+
className: `border ${de(I.status)}`,
|
|
169
169
|
children: I.status
|
|
170
170
|
}), I.archived && /* @__PURE__ */ g(_, {
|
|
171
171
|
variant: "outline",
|
|
@@ -173,7 +173,7 @@ function k() {
|
|
|
173
173
|
children: [/* @__PURE__ */ h(l, {
|
|
174
174
|
size: 12,
|
|
175
175
|
className: "mr-1"
|
|
176
|
-
}),
|
|
176
|
+
}), t(k, "projectDetail.archived", "Archived")]
|
|
177
177
|
})]
|
|
178
178
|
})
|
|
179
179
|
] }), /* @__PURE__ */ h("div", {
|
|
@@ -183,7 +183,7 @@ function k() {
|
|
|
183
183
|
children: /* @__PURE__ */ h(v, {
|
|
184
184
|
variant: "outline",
|
|
185
185
|
size: "icon",
|
|
186
|
-
"aria-label":
|
|
186
|
+
"aria-label": t(k, "projectDetail.openProjectActionsAriaLabel", "Open project actions"),
|
|
187
187
|
children: /* @__PURE__ */ h(_e, { size: 20 })
|
|
188
188
|
})
|
|
189
189
|
}), /* @__PURE__ */ g(Oe, {
|
|
@@ -194,7 +194,7 @@ function k() {
|
|
|
194
194
|
children: [/* @__PURE__ */ h(ve, {
|
|
195
195
|
size: 16,
|
|
196
196
|
className: "mr-2"
|
|
197
|
-
}),
|
|
197
|
+
}), t(k, "projectDetail.renameProject", "Rename Project")]
|
|
198
198
|
}),
|
|
199
199
|
G && (q || K) && /* @__PURE__ */ h(C, {}),
|
|
200
200
|
q && /* @__PURE__ */ g(S, {
|
|
@@ -203,33 +203,33 @@ function k() {
|
|
|
203
203
|
children: [/* @__PURE__ */ h(l, {
|
|
204
204
|
size: 16,
|
|
205
205
|
className: "mr-2"
|
|
206
|
-
}), H || U ?
|
|
206
|
+
}), H || U ? t(k, "projectDetail.processing", "Processing...") : I.archived ? t(k, "projectDetail.unarchive", "Unarchive") : t(k, "projectDetail.archive", "Archive")]
|
|
207
207
|
}),
|
|
208
208
|
q && K && /* @__PURE__ */ h(C, {}),
|
|
209
209
|
K && /* @__PURE__ */ h(S, {
|
|
210
210
|
onClick: () => L(!0),
|
|
211
211
|
className: "text-status-error-text",
|
|
212
|
-
children:
|
|
212
|
+
children: t(k, "projectDetail.deleteProject", "Delete Project")
|
|
213
213
|
})
|
|
214
214
|
]
|
|
215
215
|
})] })
|
|
216
216
|
})]
|
|
217
217
|
}),
|
|
218
|
-
/* @__PURE__ */ h(je, { children:
|
|
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
219
|
/* @__PURE__ */ h(Ae, {
|
|
220
220
|
storageKey: "workspaces-project-detail",
|
|
221
221
|
steps: [
|
|
222
222
|
...Y ? [{
|
|
223
223
|
id: "add-member",
|
|
224
|
-
label:
|
|
225
|
-
description:
|
|
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
226
|
icon: /* @__PURE__ */ h(p, { size: 16 }),
|
|
227
227
|
onClick: () => z(!0)
|
|
228
228
|
}] : [],
|
|
229
229
|
{
|
|
230
230
|
id: "tag-project",
|
|
231
|
-
label:
|
|
232
|
-
description:
|
|
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
233
|
icon: /* @__PURE__ */ h(f, { size: 16 }),
|
|
234
234
|
onClick: () => {
|
|
235
235
|
document.getElementById("project-tags-section")?.scrollIntoView({
|
|
@@ -240,15 +240,15 @@ function k() {
|
|
|
240
240
|
},
|
|
241
241
|
...J ? [{
|
|
242
242
|
id: "manage-members",
|
|
243
|
-
label:
|
|
244
|
-
description:
|
|
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
245
|
icon: /* @__PURE__ */ h(m, { size: 16 }),
|
|
246
246
|
onClick: Q
|
|
247
247
|
}] : [],
|
|
248
248
|
{
|
|
249
249
|
id: "review-activity",
|
|
250
|
-
label:
|
|
251
|
-
description:
|
|
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
252
|
icon: /* @__PURE__ */ h(c, { size: 16 }),
|
|
253
253
|
onClick: () => N(F(`${P}/${j}/activity`))
|
|
254
254
|
}
|
|
@@ -270,7 +270,7 @@ function k() {
|
|
|
270
270
|
children: [/* @__PURE__ */ h(m, {
|
|
271
271
|
size: 18,
|
|
272
272
|
className: "text-text-muted"
|
|
273
|
-
}),
|
|
273
|
+
}), t(k, "projectDetail.membersCardTitle", "Members")]
|
|
274
274
|
})
|
|
275
275
|
}), /* @__PURE__ */ g(y, {
|
|
276
276
|
className: "space-y-4",
|
|
@@ -281,7 +281,7 @@ function k() {
|
|
|
281
281
|
}),
|
|
282
282
|
/* @__PURE__ */ h("p", {
|
|
283
283
|
className: "text-sm text-text-muted",
|
|
284
|
-
children:
|
|
284
|
+
children: t(k, "projectDetail.projectMembers", "Project members")
|
|
285
285
|
}),
|
|
286
286
|
Y || J ? /* @__PURE__ */ g("div", {
|
|
287
287
|
className: "flex flex-wrap gap-2",
|
|
@@ -291,7 +291,7 @@ function k() {
|
|
|
291
291
|
children: [/* @__PURE__ */ h(p, {
|
|
292
292
|
size: 16,
|
|
293
293
|
className: "mr-2"
|
|
294
|
-
}),
|
|
294
|
+
}), t(k, "projectDetail.addProjectMember", "Add Member")]
|
|
295
295
|
}) : null, J ? /* @__PURE__ */ g(v, {
|
|
296
296
|
variant: "outline",
|
|
297
297
|
size: "sm",
|
|
@@ -299,7 +299,7 @@ function k() {
|
|
|
299
299
|
children: [/* @__PURE__ */ h(m, {
|
|
300
300
|
size: 16,
|
|
301
301
|
className: "mr-2"
|
|
302
|
-
}),
|
|
302
|
+
}), t(k, "projectDetail.manageProjectMembers", "Manage Members")]
|
|
303
303
|
}) : null]
|
|
304
304
|
}) : null
|
|
305
305
|
]
|
|
@@ -313,26 +313,26 @@ function k() {
|
|
|
313
313
|
children: [/* @__PURE__ */ h(c, {
|
|
314
314
|
size: 18,
|
|
315
315
|
className: "text-text-muted"
|
|
316
|
-
}),
|
|
316
|
+
}), t(k, "projectDetail.activityCardTitle", "Activity")]
|
|
317
317
|
})
|
|
318
318
|
}), /* @__PURE__ */ g(y, { children: [/* @__PURE__ */ h("p", {
|
|
319
319
|
className: "text-3xl font-bold tabular-nums",
|
|
320
320
|
children: Qe
|
|
321
321
|
}), /* @__PURE__ */ h("p", {
|
|
322
322
|
className: "text-sm text-text-muted",
|
|
323
|
-
children:
|
|
323
|
+
children: t(k, "projectDetail.recentActivityItems", "Recent activity items")
|
|
324
324
|
})] })]
|
|
325
325
|
})]
|
|
326
326
|
}), /* @__PURE__ */ g(E, {
|
|
327
327
|
treatment: "plain",
|
|
328
328
|
id: "project-tags-section",
|
|
329
329
|
className: "border-border-seam",
|
|
330
|
-
children: [/* @__PURE__ */ h(b, { children: /* @__PURE__ */ h(x, { children:
|
|
330
|
+
children: [/* @__PURE__ */ h(b, { children: /* @__PURE__ */ h(x, { children: t(k, "projectDetail.tagsTitle", "Tags") }) }), /* @__PURE__ */ g(y, {
|
|
331
331
|
className: "space-y-3",
|
|
332
332
|
children: [/* @__PURE__ */ h("p", {
|
|
333
333
|
className: "text-sm text-text-muted",
|
|
334
|
-
children:
|
|
335
|
-
}), /* @__PURE__ */ h(
|
|
334
|
+
children: t(k, "projectDetail.tagsDescription", "Use universal tags to classify and filter this project across the workspace.")
|
|
335
|
+
}), /* @__PURE__ */ h(e, {
|
|
336
336
|
entityType: "Project",
|
|
337
337
|
entityId: I.id,
|
|
338
338
|
workspaceId: j,
|
|
@@ -348,7 +348,7 @@ function k() {
|
|
|
348
348
|
children: /* @__PURE__ */ g(E, {
|
|
349
349
|
treatment: "plain",
|
|
350
350
|
className: "border-border-seam",
|
|
351
|
-
children: [/* @__PURE__ */ h(b, { children: /* @__PURE__ */ h(x, { children:
|
|
351
|
+
children: [/* @__PURE__ */ h(b, { children: /* @__PURE__ */ h(x, { children: t(k, "projectDetail.projectInformation", "Project Information") }) }), /* @__PURE__ */ g(y, {
|
|
352
352
|
className: "space-y-4",
|
|
353
353
|
children: [
|
|
354
354
|
/* @__PURE__ */ g("div", {
|
|
@@ -358,7 +358,7 @@ function k() {
|
|
|
358
358
|
className: "space-y-1",
|
|
359
359
|
children: [/* @__PURE__ */ g("span", {
|
|
360
360
|
className: "text-text-muted flex items-center gap-2",
|
|
361
|
-
children: [/* @__PURE__ */ h(f, { size: 14 }),
|
|
361
|
+
children: [/* @__PURE__ */ h(f, { size: 14 }), t(k, "projectDetail.projectId", "Project ID")]
|
|
362
362
|
}), /* @__PURE__ */ h("button", {
|
|
363
363
|
type: "button",
|
|
364
364
|
onClick: () => A.show({
|
|
@@ -371,14 +371,14 @@ function k() {
|
|
|
371
371
|
}] : void 0
|
|
372
372
|
}),
|
|
373
373
|
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:
|
|
374
|
+
children: t(k, "projectDetail.getId", "Get ID")
|
|
375
375
|
})]
|
|
376
376
|
}),
|
|
377
377
|
/* @__PURE__ */ g("div", {
|
|
378
378
|
className: "space-y-1",
|
|
379
379
|
children: [/* @__PURE__ */ g("span", {
|
|
380
380
|
className: "text-text-secondary flex items-center gap-2",
|
|
381
|
-
children: [/* @__PURE__ */ h(f, { size: 14 }),
|
|
381
|
+
children: [/* @__PURE__ */ h(f, { size: 14 }), t(k, "projectDetail.projectKey", "Project Key")]
|
|
382
382
|
}), /* @__PURE__ */ h("span", {
|
|
383
383
|
className: "font-medium",
|
|
384
384
|
children: I.key
|
|
@@ -388,21 +388,21 @@ function k() {
|
|
|
388
388
|
className: "space-y-1",
|
|
389
389
|
children: [/* @__PURE__ */ g("span", {
|
|
390
390
|
className: "text-text-secondary flex items-center gap-2",
|
|
391
|
-
children: [/* @__PURE__ */ h(d, { size: 14 }),
|
|
392
|
-
}), /* @__PURE__ */ h("span", { children:
|
|
391
|
+
children: [/* @__PURE__ */ h(d, { size: 14 }), t(k, "projectDetail.created", "Created")]
|
|
392
|
+
}), /* @__PURE__ */ h("span", { children: n(I.createdAt) })]
|
|
393
393
|
}),
|
|
394
394
|
/* @__PURE__ */ g("div", {
|
|
395
395
|
className: "space-y-1",
|
|
396
396
|
children: [/* @__PURE__ */ g("span", {
|
|
397
397
|
className: "text-text-secondary flex items-center gap-2",
|
|
398
|
-
children: [/* @__PURE__ */ h(d, { size: 14 }),
|
|
399
|
-
}), /* @__PURE__ */ h("span", { children:
|
|
398
|
+
children: [/* @__PURE__ */ h(d, { size: 14 }), t(k, "projectDetail.lastUpdated", "Last Updated")]
|
|
399
|
+
}), /* @__PURE__ */ h("span", { children: n(I.updatedAt) })]
|
|
400
400
|
}),
|
|
401
401
|
/* @__PURE__ */ g("div", {
|
|
402
402
|
className: "space-y-1",
|
|
403
403
|
children: [/* @__PURE__ */ g("span", {
|
|
404
404
|
className: "text-text-secondary flex items-center gap-2",
|
|
405
|
-
children: [/* @__PURE__ */ h(m, { size: 14 }),
|
|
405
|
+
children: [/* @__PURE__ */ h(m, { size: 14 }), t(k, "projectDetail.workspaceId", "Workspace ID")]
|
|
406
406
|
}), /* @__PURE__ */ h("span", {
|
|
407
407
|
className: "font-mono text-xs block",
|
|
408
408
|
children: I.workspaceId
|
|
@@ -412,7 +412,7 @@ function k() {
|
|
|
412
412
|
className: "space-y-1",
|
|
413
413
|
children: [/* @__PURE__ */ g("span", {
|
|
414
414
|
className: "text-text-secondary flex items-center gap-2",
|
|
415
|
-
children: [/* @__PURE__ */ h(m, { size: 14 }),
|
|
415
|
+
children: [/* @__PURE__ */ h(m, { size: 14 }), t(k, "projectDetail.creatorId", "Creator ID")]
|
|
416
416
|
}), /* @__PURE__ */ h("span", {
|
|
417
417
|
className: "font-mono text-xs block",
|
|
418
418
|
children: I.creatorId
|
|
@@ -424,7 +424,7 @@ function k() {
|
|
|
424
424
|
className: "pt-4 border-t border-border-seam",
|
|
425
425
|
children: [/* @__PURE__ */ h("h4", {
|
|
426
426
|
className: "text-sm font-medium mb-2",
|
|
427
|
-
children:
|
|
427
|
+
children: t(k, "projectDetail.configuration", "Configuration")
|
|
428
428
|
}), /* @__PURE__ */ h("pre", {
|
|
429
429
|
className: "text-xs bg-bg-sunken p-3 rounded-lg overflow-auto",
|
|
430
430
|
children: JSON.stringify(I.config, null, 2)
|
|
@@ -432,7 +432,7 @@ function k() {
|
|
|
432
432
|
}),
|
|
433
433
|
/* @__PURE__ */ h(Me, {
|
|
434
434
|
collapsedHeight: 0,
|
|
435
|
-
label:
|
|
435
|
+
label: t(k, "projectDetail.quickActions", "Quick Actions"),
|
|
436
436
|
children: /* @__PURE__ */ g("div", {
|
|
437
437
|
className: "flex flex-col gap-2 pt-2",
|
|
438
438
|
children: [
|
|
@@ -444,7 +444,7 @@ function k() {
|
|
|
444
444
|
children: [/* @__PURE__ */ h(m, {
|
|
445
445
|
size: 16,
|
|
446
446
|
className: "mr-2"
|
|
447
|
-
}),
|
|
447
|
+
}), t(k, "projectDetail.projectMembersPage", "Project Members")]
|
|
448
448
|
}) : null,
|
|
449
449
|
/* @__PURE__ */ g(v, {
|
|
450
450
|
variant: "outline",
|
|
@@ -454,7 +454,7 @@ function k() {
|
|
|
454
454
|
children: [/* @__PURE__ */ h(m, {
|
|
455
455
|
size: 16,
|
|
456
456
|
className: "mr-2"
|
|
457
|
-
}),
|
|
457
|
+
}), t(k, "projectDetail.workspaceMembers", "Workspace Members")]
|
|
458
458
|
}),
|
|
459
459
|
/* @__PURE__ */ g(v, {
|
|
460
460
|
variant: "outline",
|
|
@@ -464,7 +464,7 @@ function k() {
|
|
|
464
464
|
children: [/* @__PURE__ */ h(c, {
|
|
465
465
|
size: 16,
|
|
466
466
|
className: "mr-2"
|
|
467
|
-
}),
|
|
467
|
+
}), t(k, "projectDetail.workspaceActivity", "Workspace Activity")]
|
|
468
468
|
})
|
|
469
469
|
]
|
|
470
470
|
})
|
|
@@ -477,14 +477,14 @@ function k() {
|
|
|
477
477
|
/* @__PURE__ */ h(ye, {
|
|
478
478
|
open: Re,
|
|
479
479
|
onOpenChange: L,
|
|
480
|
-
children: /* @__PURE__ */ g(Se, { children: [/* @__PURE__ */ g(Te, { children: [/* @__PURE__ */ h(Ee, { children:
|
|
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
481
|
disabled: W,
|
|
482
|
-
children:
|
|
482
|
+
children: t(k, "projectDetail.cancel", "Cancel")
|
|
483
483
|
}), /* @__PURE__ */ h(be, {
|
|
484
484
|
onClick: tt,
|
|
485
485
|
disabled: W,
|
|
486
486
|
className: "bg-status-error-bg text-status-error-text hover:bg-status-error-bg/90",
|
|
487
|
-
children: W ?
|
|
487
|
+
children: W ? t(k, "projectDetail.deleting", "Deleting...") : t(k, "projectDetail.deleteProject", "Delete Project")
|
|
488
488
|
})] })] })
|
|
489
489
|
}),
|
|
490
490
|
j && M && R ? /* @__PURE__ */ h(o, {
|
|
@@ -494,7 +494,7 @@ function k() {
|
|
|
494
494
|
projectId: M,
|
|
495
495
|
projectName: I.name
|
|
496
496
|
}) : null,
|
|
497
|
-
B && /* @__PURE__ */ h(
|
|
497
|
+
B && /* @__PURE__ */ h(he, {
|
|
498
498
|
project: {
|
|
499
499
|
id: I.id,
|
|
500
500
|
name: I.name,
|
|
@@ -507,5 +507,4 @@ function k() {
|
|
|
507
507
|
]
|
|
508
508
|
});
|
|
509
509
|
}
|
|
510
|
-
//#endregion
|
|
511
510
|
export { k as ProjectDetailPage };
|