@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,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { WorkspaceTagsEditor as e } from "../components/tags/WorkspaceTagsEditor.js";
|
|
2
|
+
import { tWithFallback as t } from "../utils/i18n.js";
|
|
3
3
|
import { WORKSPACE_PERMISSIONS as n } from "../constants/permissions.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { useWorkspace as r } from "../hooks/useWorkspaces.js";
|
|
5
|
+
import { useUpdateWorkspace as i } from "../hooks/useWorkspaceMutations.js";
|
|
6
|
+
import { useWorkspacesContext as a } from "../providers/WorkspacesProvider.js";
|
|
7
|
+
import { useWorkspacesPageView as o } from "../hooks/useWorkspacesPageView.js";
|
|
8
8
|
import { ArrowLeft as s, Save as c } from "lucide-react";
|
|
9
9
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
10
|
import { Button as d, CardContent as f, CardHeader as p, CardTitle as m, GlassCard as h, OptionalFields as g, PagePurpose as _ } from "@burdenoff/fe-libs/ui";
|
|
@@ -12,7 +12,7 @@ import { useI18n as v } from "@burdenoff/fe-libs/shared/providers/shell/I18nProv
|
|
|
12
12
|
import { useNavigate as y, useParams as b } from "react-router";
|
|
13
13
|
import { AccessDenied as x, PermissionGate as S } from "@burdenoff/fe-libs/shared/components";
|
|
14
14
|
import { Form as C, FormControl as w, FormField as T, FormItem as E, FormLabel as D, FormMessage as O, Input as k, z as A } from "@burdenoff/fe-libs/form";
|
|
15
|
-
|
|
15
|
+
// src/pages/WorkspaceSettingsPage.tsx
|
|
16
16
|
var j = A.object({
|
|
17
17
|
name: A.string().min(2).max(100),
|
|
18
18
|
contactEmail: A.string().email().optional().or(A.literal("")),
|
|
@@ -21,14 +21,14 @@ var j = A.object({
|
|
|
21
21
|
});
|
|
22
22
|
function M() {
|
|
23
23
|
let { t: A } = v(), { workspaceId: M } = b();
|
|
24
|
-
|
|
24
|
+
o("workspaces.settings", {
|
|
25
25
|
workspaceId: M,
|
|
26
26
|
requireParams: !0
|
|
27
27
|
});
|
|
28
|
-
let N = y(), { basePath: P = "/" } =
|
|
28
|
+
let N = y(), { basePath: P = "/" } = a(), { data: F, isLoading: I } = r(M || ""), { mutate: L, isPending: R } = i();
|
|
29
29
|
return I ? /* @__PURE__ */ l("div", {
|
|
30
30
|
className: "p-6",
|
|
31
|
-
children:
|
|
31
|
+
children: t(A, "workspaceSettings.loading", "Loading...")
|
|
32
32
|
}) : F ? /* @__PURE__ */ l(S, {
|
|
33
33
|
permission: n.WORKSPACE_UPDATE,
|
|
34
34
|
fallback: /* @__PURE__ */ u("div", {
|
|
@@ -37,14 +37,14 @@ function M() {
|
|
|
37
37
|
variant: "ghost",
|
|
38
38
|
onClick: () => N(`${P}/${M}`),
|
|
39
39
|
className: "gap-2 mb-6 -ml-2",
|
|
40
|
-
children: [/* @__PURE__ */ l(s, { size: 20 }),
|
|
40
|
+
children: [/* @__PURE__ */ l(s, { size: 20 }), t(A, "workspaceSettings.backToWorkspace", "Back to Workspace")]
|
|
41
41
|
}), /* @__PURE__ */ l(x, {
|
|
42
42
|
variant: "card",
|
|
43
|
-
title:
|
|
44
|
-
description:
|
|
45
|
-
details:
|
|
43
|
+
title: t(A, "workspaceSettings.permissionRequired", "Permission Required"),
|
|
44
|
+
description: t(A, "workspaceSettings.permissionRequiredDesc", "You don't have permission to edit workspace settings."),
|
|
45
|
+
details: t(A, "workspaceSettings.permissionRequiredDetails", "Required: workspace:update"),
|
|
46
46
|
primaryAction: {
|
|
47
|
-
label:
|
|
47
|
+
label: t(A, "workspaceSettings.goBack", "Go Back"),
|
|
48
48
|
onClick: () => N(`${P}/${M}`)
|
|
49
49
|
}
|
|
50
50
|
})]
|
|
@@ -57,23 +57,23 @@ function M() {
|
|
|
57
57
|
variant: "ghost",
|
|
58
58
|
onClick: () => N(`${P}/${M}`),
|
|
59
59
|
className: "gap-2 mb-2 -ml-2",
|
|
60
|
-
children: [/* @__PURE__ */ l(s, { size: 20 }),
|
|
60
|
+
children: [/* @__PURE__ */ l(s, { size: 20 }), t(A, "workspaceSettings.backToWorkspace", "Back to Workspace")]
|
|
61
61
|
}),
|
|
62
62
|
/* @__PURE__ */ l("h1", {
|
|
63
63
|
className: "text-2xl sm:text-3xl font-bold",
|
|
64
|
-
children:
|
|
64
|
+
children: t(A, "workspaceSettings.title", "Workspace Settings")
|
|
65
65
|
}),
|
|
66
66
|
/* @__PURE__ */ l("p", {
|
|
67
67
|
className: "text-text-secondary",
|
|
68
|
-
children:
|
|
68
|
+
children: t(A, "workspaceSettings.subtitle", "Manage workspace configuration")
|
|
69
69
|
})
|
|
70
70
|
] }),
|
|
71
|
-
/* @__PURE__ */ l(_, { children:
|
|
71
|
+
/* @__PURE__ */ l(_, { children: t(A, "workspaceSettings.purpose", "This is where you control how the workspace presents itself and how it's organised — its display name, a contact email, an optional custom domain and website, and the tags used to classify and filter it. Update these to keep the workspace's identity accurate as your team grows.") }),
|
|
72
72
|
/* @__PURE__ */ u(h, {
|
|
73
73
|
treatment: "glass",
|
|
74
74
|
glow: !0,
|
|
75
75
|
className: "border-border-seam",
|
|
76
|
-
children: [/* @__PURE__ */ l(p, { children: /* @__PURE__ */ l(m, { children:
|
|
76
|
+
children: [/* @__PURE__ */ l(p, { children: /* @__PURE__ */ l(m, { children: t(A, "workspaceSettings.generalSettings", "General Settings") }) }), /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(C, {
|
|
77
77
|
schema: j,
|
|
78
78
|
onSubmit: (e) => {
|
|
79
79
|
M && L({
|
|
@@ -101,7 +101,7 @@ function M() {
|
|
|
101
101
|
control: e.control,
|
|
102
102
|
name: "name",
|
|
103
103
|
render: ({ field: e }) => /* @__PURE__ */ u(E, { children: [
|
|
104
|
-
/* @__PURE__ */ l(D, { children:
|
|
104
|
+
/* @__PURE__ */ l(D, { children: t(A, "workspaceSettings.workspaceName", "Workspace Name") }),
|
|
105
105
|
/* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(k, { ...e }) }),
|
|
106
106
|
/* @__PURE__ */ l(O, {})
|
|
107
107
|
] })
|
|
@@ -110,7 +110,7 @@ function M() {
|
|
|
110
110
|
control: e.control,
|
|
111
111
|
name: "contactEmail",
|
|
112
112
|
render: ({ field: e }) => /* @__PURE__ */ u(E, { children: [
|
|
113
|
-
/* @__PURE__ */ l(D, { children:
|
|
113
|
+
/* @__PURE__ */ l(D, { children: t(A, "workspaceSettings.contactEmail", "Contact Email") }),
|
|
114
114
|
/* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(k, {
|
|
115
115
|
type: "email",
|
|
116
116
|
...e
|
|
@@ -119,13 +119,13 @@ function M() {
|
|
|
119
119
|
] })
|
|
120
120
|
}),
|
|
121
121
|
/* @__PURE__ */ u(g, {
|
|
122
|
-
title:
|
|
123
|
-
description:
|
|
122
|
+
title: t(A, "workspaceSettings.advancedTitle", "Advanced settings"),
|
|
123
|
+
description: t(A, "workspaceSettings.advancedDescription", "Custom domain + website. Most workspaces leave these blank."),
|
|
124
124
|
children: [/* @__PURE__ */ l(T, {
|
|
125
125
|
control: e.control,
|
|
126
126
|
name: "domain",
|
|
127
127
|
render: ({ field: e }) => /* @__PURE__ */ u(E, { children: [
|
|
128
|
-
/* @__PURE__ */ l(D, { children:
|
|
128
|
+
/* @__PURE__ */ l(D, { children: t(A, "workspaceSettings.domain", "Domain") }),
|
|
129
129
|
/* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(k, { ...e }) }),
|
|
130
130
|
/* @__PURE__ */ l(O, {})
|
|
131
131
|
] })
|
|
@@ -133,7 +133,7 @@ function M() {
|
|
|
133
133
|
control: e.control,
|
|
134
134
|
name: "website",
|
|
135
135
|
render: ({ field: e }) => /* @__PURE__ */ u(E, { children: [
|
|
136
|
-
/* @__PURE__ */ l(D, { children:
|
|
136
|
+
/* @__PURE__ */ l(D, { children: t(A, "workspaceSettings.website", "Website") }),
|
|
137
137
|
/* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(k, {
|
|
138
138
|
type: "url",
|
|
139
139
|
...e
|
|
@@ -148,12 +148,12 @@ function M() {
|
|
|
148
148
|
type: "submit",
|
|
149
149
|
disabled: R,
|
|
150
150
|
className: "gap-2",
|
|
151
|
-
children: [/* @__PURE__ */ l(c, { size: 20 }), R ?
|
|
151
|
+
children: [/* @__PURE__ */ l(c, { size: 20 }), R ? t(A, "workspaceSettings.saving", "Saving...") : t(A, "workspaceSettings.saveChanges", "Save Changes")]
|
|
152
152
|
}), /* @__PURE__ */ l(d, {
|
|
153
153
|
type: "button",
|
|
154
154
|
variant: "outline",
|
|
155
155
|
onClick: () => N(`${P}/${M}`),
|
|
156
|
-
children:
|
|
156
|
+
children: t(A, "workspaceSettings.cancel", "Cancel")
|
|
157
157
|
})]
|
|
158
158
|
})
|
|
159
159
|
]
|
|
@@ -163,20 +163,19 @@ function M() {
|
|
|
163
163
|
M && /* @__PURE__ */ u(h, {
|
|
164
164
|
treatment: "plain",
|
|
165
165
|
className: "border-border-seam",
|
|
166
|
-
children: [/* @__PURE__ */ l(p, { children: /* @__PURE__ */ l(m, { children:
|
|
166
|
+
children: [/* @__PURE__ */ l(p, { children: /* @__PURE__ */ l(m, { children: t(A, "workspaceSettings.tags", "Tags") }) }), /* @__PURE__ */ u(f, {
|
|
167
167
|
className: "space-y-3",
|
|
168
168
|
children: [/* @__PURE__ */ l("p", {
|
|
169
169
|
className: "text-sm text-text-muted",
|
|
170
|
-
children:
|
|
171
|
-
}), /* @__PURE__ */ l(
|
|
170
|
+
children: t(A, "workspaceSettings.tagsDescription", "Use universal tags to classify and filter this workspace.")
|
|
171
|
+
}), /* @__PURE__ */ l(e, { workspaceId: M ?? "" }, M)]
|
|
172
172
|
})]
|
|
173
173
|
})
|
|
174
174
|
]
|
|
175
175
|
})
|
|
176
176
|
}) : /* @__PURE__ */ l("div", {
|
|
177
177
|
className: "p-6",
|
|
178
|
-
children:
|
|
178
|
+
children: t(A, "workspaceSettings.notFound", "Workspace not found")
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
//#endregion
|
|
182
181
|
export { M as WorkspaceSettingsPage };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { useWorkspacesStore as e } from "../store/workspacesStore.js";
|
|
2
|
+
import { useMyWorkspaces as t } from "../hooks/useWorkspaces.js";
|
|
3
|
+
import { useMyPendingInvitations as n } from "../hooks/usePendingInvitations.js";
|
|
4
|
+
import { WorkspaceCard as r } from "../components/WorkspaceCard.js";
|
|
5
|
+
import { useWorkspacesContext as i } from "../providers/WorkspacesProvider.js";
|
|
6
|
+
import { WORKSPACE_PERMISSIONS as a } from "../constants/permissions.js";
|
|
7
|
+
import { tWithFallback as o } from "../utils/i18n.js";
|
|
8
|
+
import { useScopedNavigation as s } from "../hooks/useScopedNavigation.js";
|
|
9
9
|
import { useWorkspacesPageView as c } from "../hooks/useWorkspacesPageView.js";
|
|
10
10
|
import { useEffect as l, useState as u } from "react";
|
|
11
11
|
import { Grid3X3 as d, List as f, Mail as p, MoreHorizontal as m, Plus as h, Search as g, UserPlus as _ } from "lucide-react";
|
|
@@ -15,10 +15,10 @@ import { useI18n as j } from "@burdenoff/fe-libs/shared/providers/shell/I18nProv
|
|
|
15
15
|
import { useNavigate as M } from "react-router";
|
|
16
16
|
import { useDebounce as N } from "@burdenoff/fe-libs/shared/hooks";
|
|
17
17
|
import { PermissionButton as P } from "@burdenoff/fe-libs/shared/components";
|
|
18
|
-
|
|
18
|
+
// src/pages/WorkspacesListPage.tsx
|
|
19
19
|
function F() {
|
|
20
20
|
c("workspaces.list");
|
|
21
|
-
let { t: F } = j(), I = M(), { basePath: L = "/", currentUser: R, workspaceId: z } =
|
|
21
|
+
let { t: F } = j(), I = M(), { basePath: L = "/", currentUser: R, workspaceId: z } = i(), { withCurrentSearch: B } = s(), { viewMode: V, setViewMode: H, workspaceFilters: U, setWorkspaceFilters: W } = e(), G = () => {
|
|
22
22
|
I(B(`${L}/new`));
|
|
23
23
|
}, [K, q] = u(U.search || ""), J = N(K, 500);
|
|
24
24
|
l(() => {
|
|
@@ -28,7 +28,7 @@ function F() {
|
|
|
28
28
|
U.search,
|
|
29
29
|
W
|
|
30
30
|
]);
|
|
31
|
-
let { data: Y, isLoading: X, error: Z } =
|
|
31
|
+
let { data: Y, isLoading: X, error: Z } = t(), { data: ne = [] } = n(R?.email), Q = ne.length, re = () => {
|
|
32
32
|
I(B(`${L}/invites`));
|
|
33
33
|
}, ie = () => {
|
|
34
34
|
z && I(B(`${L}/${z}/invite`));
|
|
@@ -43,10 +43,10 @@ function F() {
|
|
|
43
43
|
className: "flex flex-col items-center justify-center py-12",
|
|
44
44
|
children: [/* @__PURE__ */ y("p", {
|
|
45
45
|
className: "text-status-error-text text-lg font-semibold",
|
|
46
|
-
children:
|
|
46
|
+
children: o(F, "workspacesList.loadError", "Error loading workspaces")
|
|
47
47
|
}), /* @__PURE__ */ y("p", {
|
|
48
48
|
className: "text-text-secondary text-sm mt-2",
|
|
49
|
-
children: Z instanceof Error ? Z.message :
|
|
49
|
+
children: Z instanceof Error ? Z.message : o(F, "workspacesList.unknownError", "Unknown error")
|
|
50
50
|
})]
|
|
51
51
|
})
|
|
52
52
|
}) : /* @__PURE__ */ b("div", {
|
|
@@ -59,10 +59,10 @@ function F() {
|
|
|
59
59
|
/* @__PURE__ */ y(x, { intensity: "subtle" }),
|
|
60
60
|
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("h1", {
|
|
61
61
|
className: "text-2xl sm:text-3xl font-bold",
|
|
62
|
-
children: /* @__PURE__ */ y(te, { children:
|
|
62
|
+
children: /* @__PURE__ */ y(te, { children: o(F, "workspacesList.title", "Workspaces") })
|
|
63
63
|
}), /* @__PURE__ */ y("p", {
|
|
64
64
|
className: "text-sm sm:text-base text-text-secondary",
|
|
65
|
-
children:
|
|
65
|
+
children: o(F, "workspacesList.description", "Manage and organize your workspaces")
|
|
66
66
|
})] }),
|
|
67
67
|
/* @__PURE__ */ b("div", {
|
|
68
68
|
className: "flex items-center gap-2",
|
|
@@ -73,8 +73,8 @@ function F() {
|
|
|
73
73
|
size: "icon",
|
|
74
74
|
onClick: () => H("grid"),
|
|
75
75
|
className: "hidden sm:flex",
|
|
76
|
-
"aria-label":
|
|
77
|
-
title:
|
|
76
|
+
"aria-label": o(F, "workspacesList.gridViewAriaLabel", "Show workspaces in grid view"),
|
|
77
|
+
title: o(F, "workspacesList.gridViewTitle", "Grid view"),
|
|
78
78
|
children: /* @__PURE__ */ y(d, { size: 20 })
|
|
79
79
|
}),
|
|
80
80
|
/* @__PURE__ */ y(C, {
|
|
@@ -82,8 +82,8 @@ function F() {
|
|
|
82
82
|
size: "icon",
|
|
83
83
|
onClick: () => H("list"),
|
|
84
84
|
className: "hidden sm:flex",
|
|
85
|
-
"aria-label":
|
|
86
|
-
title:
|
|
85
|
+
"aria-label": o(F, "workspacesList.listViewAriaLabel", "Show workspaces in list view"),
|
|
86
|
+
title: o(F, "workspacesList.listViewTitle", "List view"),
|
|
87
87
|
children: /* @__PURE__ */ y(f, { size: 20 })
|
|
88
88
|
}),
|
|
89
89
|
/* @__PURE__ */ b(w, { children: [/* @__PURE__ */ y(ee, {
|
|
@@ -98,14 +98,14 @@ function F() {
|
|
|
98
98
|
}), /* @__PURE__ */ b(T, {
|
|
99
99
|
align: "end",
|
|
100
100
|
children: [/* @__PURE__ */ y(P, {
|
|
101
|
-
permission:
|
|
101
|
+
permission: a.MEMBER_CREATE,
|
|
102
102
|
deniedBehavior: "disable",
|
|
103
|
-
deniedTooltip:
|
|
103
|
+
deniedTooltip: o(F, "workspacesList.inviteDeniedTooltip", "You don't have permission to invite members into the current workspace"),
|
|
104
104
|
children: /* @__PURE__ */ b(E, {
|
|
105
105
|
onSelect: ie,
|
|
106
106
|
disabled: !z,
|
|
107
107
|
className: "gap-2",
|
|
108
|
-
children: [/* @__PURE__ */ y(_, { size: 16 }),
|
|
108
|
+
children: [/* @__PURE__ */ y(_, { size: 16 }), o(F, "workspacesList.inviteMemberButton", "Invite Member")]
|
|
109
109
|
})
|
|
110
110
|
}), /* @__PURE__ */ b(E, {
|
|
111
111
|
onSelect: re,
|
|
@@ -114,7 +114,7 @@ function F() {
|
|
|
114
114
|
/* @__PURE__ */ y(p, { size: 16 }),
|
|
115
115
|
/* @__PURE__ */ y("span", {
|
|
116
116
|
className: "flex-1",
|
|
117
|
-
children:
|
|
117
|
+
children: o(F, "workspacesList.pendingInvitesButton", "Pending Invites")
|
|
118
118
|
}),
|
|
119
119
|
Q > 0 ? /* @__PURE__ */ y(S, {
|
|
120
120
|
variant: "secondary",
|
|
@@ -124,9 +124,9 @@ function F() {
|
|
|
124
124
|
})]
|
|
125
125
|
})] }),
|
|
126
126
|
/* @__PURE__ */ y(P, {
|
|
127
|
-
permission:
|
|
127
|
+
permission: a.WORKSPACE_CREATE,
|
|
128
128
|
deniedBehavior: "disable",
|
|
129
|
-
deniedTooltip:
|
|
129
|
+
deniedTooltip: o(F, "workspacesList.createDeniedTooltip", "You don't have permission to create workspaces"),
|
|
130
130
|
children: /* @__PURE__ */ b(C, {
|
|
131
131
|
onClick: G,
|
|
132
132
|
className: "gap-2",
|
|
@@ -135,11 +135,11 @@ function F() {
|
|
|
135
135
|
/* @__PURE__ */ y(h, { size: 20 }),
|
|
136
136
|
/* @__PURE__ */ y("span", {
|
|
137
137
|
className: "hidden sm:inline",
|
|
138
|
-
children:
|
|
138
|
+
children: o(F, "workspacesList.createButton", "Create Workspace")
|
|
139
139
|
}),
|
|
140
140
|
/* @__PURE__ */ y("span", {
|
|
141
141
|
className: "sm:hidden",
|
|
142
|
-
children:
|
|
142
|
+
children: o(F, "workspacesList.createButtonShort", "Create")
|
|
143
143
|
})
|
|
144
144
|
]
|
|
145
145
|
})
|
|
@@ -148,7 +148,7 @@ function F() {
|
|
|
148
148
|
})
|
|
149
149
|
]
|
|
150
150
|
}),
|
|
151
|
-
/* @__PURE__ */ y(k, { children:
|
|
151
|
+
/* @__PURE__ */ y(k, { children: o(F, "workspacesList.purpose", "Workspaces are shared homes for a team or initiative — each one groups its own projects, members, agents and activity. Create one per team, client or product line to keep work isolated, then switch between them from the sidebar.") }),
|
|
152
152
|
/* @__PURE__ */ b("div", {
|
|
153
153
|
className: "relative",
|
|
154
154
|
"data-tour": "workspaces-search-input",
|
|
@@ -156,7 +156,7 @@ function F() {
|
|
|
156
156
|
className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary",
|
|
157
157
|
size: 20
|
|
158
158
|
}), /* @__PURE__ */ y(O, {
|
|
159
|
-
placeholder:
|
|
159
|
+
placeholder: o(F, "workspacesList.searchPlaceholder", "Search workspaces..."),
|
|
160
160
|
value: K,
|
|
161
161
|
onChange: (e) => {
|
|
162
162
|
q(e.target.value);
|
|
@@ -181,44 +181,43 @@ function F() {
|
|
|
181
181
|
}, t))
|
|
182
182
|
}) : $?.items.length === 0 ? /* @__PURE__ */ y(D, {
|
|
183
183
|
illustration: U.search ? "empty-search" : "onboarding",
|
|
184
|
-
title:
|
|
185
|
-
description: U.search ?
|
|
184
|
+
title: o(F, "workspacesList.emptyTitle", "No workspaces found"),
|
|
185
|
+
description: U.search ? o(F, "workspacesList.emptySearchHint", "Try adjusting your search criteria") : o(F, "workspacesList.emptyCreateHint", "Get started by creating your first workspace"),
|
|
186
186
|
action: U.search ? void 0 : /* @__PURE__ */ y(P, {
|
|
187
|
-
permission:
|
|
187
|
+
permission: a.WORKSPACE_CREATE,
|
|
188
188
|
deniedBehavior: "disable",
|
|
189
|
-
deniedTooltip:
|
|
189
|
+
deniedTooltip: o(F, "workspacesList.createDeniedTooltip", "You don't have permission to create workspaces"),
|
|
190
190
|
children: /* @__PURE__ */ b(C, {
|
|
191
191
|
onClick: G,
|
|
192
192
|
className: "gap-2",
|
|
193
|
-
children: [/* @__PURE__ */ y(h, { size: 20 }),
|
|
193
|
+
children: [/* @__PURE__ */ y(h, { size: 20 }), o(F, "workspacesList.createFirstButton", "Create Your First Workspace")]
|
|
194
194
|
})
|
|
195
195
|
})
|
|
196
196
|
}) : /* @__PURE__ */ b(v, { children: [V === "list" ? /* @__PURE__ */ y("div", {
|
|
197
197
|
className: "space-y-3",
|
|
198
|
-
children: $?.items.map((e) => /* @__PURE__ */ y(
|
|
198
|
+
children: $?.items.map((e) => /* @__PURE__ */ y(r, { workspace: e }, e.id))
|
|
199
199
|
}) : /* @__PURE__ */ y("div", {
|
|
200
200
|
className: "grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",
|
|
201
|
-
children: $?.items.map((e) => /* @__PURE__ */ y(
|
|
201
|
+
children: $?.items.map((e) => /* @__PURE__ */ y(r, { workspace: e }, e.id))
|
|
202
202
|
}), $ && $.total > 0 && /* @__PURE__ */ b("div", {
|
|
203
203
|
className: "flex items-center justify-between text-sm text-text-secondary",
|
|
204
204
|
children: [/* @__PURE__ */ b("p", { children: [
|
|
205
|
-
|
|
205
|
+
o(F, "workspacesList.showing", "Showing"),
|
|
206
206
|
" ",
|
|
207
207
|
$.items.length,
|
|
208
208
|
" ",
|
|
209
|
-
|
|
209
|
+
o(F, "workspacesList.of", "of"),
|
|
210
210
|
" ",
|
|
211
211
|
$.total,
|
|
212
212
|
" ",
|
|
213
|
-
$.total === 1 ?
|
|
213
|
+
$.total === 1 ? o(F, "workspacesList.workspace", "workspace") : o(F, "workspacesList.workspaces", "workspaces")
|
|
214
214
|
] }), $.hasMore && /* @__PURE__ */ y("p", {
|
|
215
215
|
className: "text-xs",
|
|
216
|
-
children:
|
|
216
|
+
children: o(F, "workspacesList.moreAvailable", "More workspaces available - pagination coming soon")
|
|
217
217
|
})]
|
|
218
218
|
})] })
|
|
219
219
|
})
|
|
220
220
|
]
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
|
-
//#endregion
|
|
224
223
|
export { F as WorkspacesListPage };
|