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