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