@burdenoff/microfe-workspaces 2026.1119.1 → 2026.1121.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/WorkspacesRoutes.js +83 -59
- package/dist/components/ProjectCard.js +48 -47
- package/dist/constants/navigationV2.d.ts +5 -0
- package/dist/constants/navigationV2.js +2 -2
- package/dist/generated/global-operations.d.ts +11 -1
- package/dist/generated/global-types.d.ts +9866 -574
- package/dist/generated/wspace-operations.d.ts +171 -2
- package/dist/generated/wspace-operations.js +1088 -52
- package/dist/generated/wspace-types.d.ts +193797 -41883
- package/dist/hooks/v2/useWorkspacePagesV2Data.d.ts +89 -0
- package/dist/hooks/v2/useWorkspacePagesV2Data.js +211 -0
- package/dist/index.d.ts +1 -1
- package/dist/pages/ActivityListPage.js +2 -1
- package/dist/pages/MembersListPage.js +103 -100
- package/dist/pages/PendingInvitesPage.js +2 -1
- package/dist/pages/ProjectDetailPage.js +2 -1
- package/dist/pages/ProjectMembersPage.js +117 -115
- package/dist/pages/ProjectsListPage.js +235 -232
- package/dist/pages/WorkspaceDetailPage.js +2 -1
- package/dist/pages/WorkspaceInvitePage.js +3 -1
- package/dist/pages/WorkspacesListPage.js +2 -1
- package/dist/pages/dashboard/widgets/AgentsWidget.js +2 -1
- package/dist/pages/dashboard/widgets/GroupsWidget.js +2 -1
- package/dist/pages/dashboard/widgets/ProjectsWidget.js +3 -1
- package/dist/pages/dashboard/widgets/RecentActivityWidget.js +3 -1
- package/dist/pages/dashboard/widgets/SessionsWidget.js +2 -1
- package/dist/pages/dashboard/widgets/TagCloudWidget.js +2 -1
- package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +3 -1
- package/dist/pages/dashboard/widgets/VibesWidget.js +2 -1
- package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +3 -1
- package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +3 -1
- package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +3 -1
- package/dist/pages/dashboard/widgets/WorkspacesWidget.js +3 -1
- package/dist/pages/v2/ActivityPage.d.ts +1 -0
- package/dist/pages/v2/ActivityPage.js +150 -0
- package/dist/pages/v2/InvitePeopleDialog.d.ts +11 -0
- package/dist/pages/v2/InvitePeopleDialog.js +208 -0
- package/dist/pages/v2/InvitedTab.d.ts +9 -0
- package/dist/pages/v2/InvitedTab.js +223 -0
- package/dist/pages/v2/MembersPage.d.ts +1 -0
- package/dist/pages/v2/MembersPage.js +120 -0
- package/dist/pages/v2/PeopleTab.d.ts +20 -0
- package/dist/pages/v2/PeopleTab.js +253 -0
- package/dist/pages/v2/ProjectsPage.d.ts +1 -0
- package/dist/pages/v2/ProjectsPage.js +242 -0
- package/dist/pages/v2/WorkspacesPage.d.ts +3 -0
- package/dist/pages/v2/WorkspacesPage.js +247 -0
- package/dist/pages/v2/activitySentences.d.ts +50 -0
- package/dist/pages/v2/activitySentences.js +288 -0
- package/dist/pages/v2/inviteEmails.d.ts +12 -0
- package/dist/pages/v2/inviteEmails.js +18 -0
- package/dist/pages/v2/memberRows.d.ts +54 -0
- package/dist/pages/v2/memberRows.js +51 -0
- package/dist/pages/v2/projectRows.d.ts +10 -0
- package/dist/pages/v2/projectRows.js +10 -0
- package/dist/pages/v2/relativeTime.d.ts +6 -0
- package/dist/pages/v2/relativeTime.js +30 -0
- package/dist/store/workspacesStore.d.ts +2 -1
- package/dist/store/workspacesStore.js +1 -1
- package/dist/translations/en.d.ts +382 -0
- package/dist/translations/en.js +382 -0
- package/dist/types/index.d.ts +19 -0
- package/dist/utils/nativeBridge.js +1 -1
- package/package.json +3 -3
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { tWithFallback as
|
|
3
|
-
import { WORKSPACE_PERMISSIONS as
|
|
4
|
-
import { useWorkspacePermissions as
|
|
5
|
-
import { useWorkspacesStore as
|
|
6
|
-
import { useWorkspaceInvitations as
|
|
7
|
-
import { useRemoveUserFromWorkspace as
|
|
8
|
-
import { useIsFluidGridsVariant as
|
|
9
|
-
import { useTr as
|
|
10
|
-
import { useWorkspacesPageView as
|
|
11
|
-
import { MemberListItem as
|
|
12
|
-
import { useScopedNavigation as
|
|
1
|
+
import { nativeImpact as e } from "../utils/nativeBridge.js";
|
|
2
|
+
import { tWithFallback as t } from "../utils/i18n.js";
|
|
3
|
+
import { WORKSPACE_PERMISSIONS as n } from "../constants/permissions.js";
|
|
4
|
+
import { useWorkspacePermissions as r } from "../hooks/useWorkspacePermissions.js";
|
|
5
|
+
import { useWorkspacesStore as i } from "../store/workspacesStore.js";
|
|
6
|
+
import { useWorkspaceInvitations as a, useWorkspaceMembers as ee } from "../hooks/useWorkspaceMembers.js";
|
|
7
|
+
import { useRemoveUserFromWorkspace as te, useResendInvitation as ne } from "../hooks/useMemberMutations.js";
|
|
8
|
+
import { useIsFluidGridsVariant as re, useWorkspacesContext as o } from "../providers/WorkspacesProvider.js";
|
|
9
|
+
import { useTr as ie } from "../hooks/useTr.js";
|
|
10
|
+
import { useWorkspacesPageView as ae } from "../hooks/useWorkspacesPageView.js";
|
|
11
|
+
import { MemberListItem as oe } from "../components/MemberListItem.js";
|
|
12
|
+
import { useScopedNavigation as se } from "../hooks/useScopedNavigation.js";
|
|
13
13
|
import { useEffect as s, useMemo as c, useState as l } from "react";
|
|
14
|
-
import { AlertCircle as
|
|
15
|
-
import { Badge as d, Button as f, IllustratedEmptyState as p, Input as
|
|
14
|
+
import { AlertCircle as ce, RefreshCw as le, Search as ue, UserPlus as u, Users as de } from "lucide-react";
|
|
15
|
+
import { Badge as d, Button as f, IllustratedEmptyState as p, Input as fe, PageContainer as pe, PagePurpose as me, Skeleton as m, useConfirm as he } from "@burdenoff/fe-libs/ui";
|
|
16
16
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
17
17
|
import { useI18n as ge } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
18
18
|
import { useNavigate as _e, useParams as ve, useSearchParams as ye } from "react-router";
|
|
@@ -21,16 +21,16 @@ import { PermissionButton as _ } from "@burdenoff/fe-libs/shared/components";
|
|
|
21
21
|
import { useActorProfiles as xe } from "@burdenoff/fe-libs/shared";
|
|
22
22
|
// src/pages/MembersListPage.tsx
|
|
23
23
|
function v() {
|
|
24
|
-
let { t: v } = ge(), y =
|
|
25
|
-
|
|
24
|
+
let { t: v } = ge(), y = ie(), Se = re(), Ce = he(), { memberFilters: we, setMemberFilters: b, selectedMemberIds: x, toggleMemberSelection: S, clearMemberSelection: C } = i(), w = _e(), { workspaceId: Te } = o(), { basePath: T = "/workspaces" } = o(), { withCurrentSearch: E } = se(), { workspaceId: Ee } = ve(), D = Ee || Te;
|
|
25
|
+
ae("workspaces.members", {
|
|
26
26
|
workspaceId: D,
|
|
27
27
|
requireParams: !0
|
|
28
28
|
});
|
|
29
|
-
let [O,
|
|
29
|
+
let [O, De] = l(we.search || ""), k = be(O, 500);
|
|
30
30
|
s(() => {
|
|
31
31
|
b({ search: k });
|
|
32
32
|
}, [k, b]);
|
|
33
|
-
let { data: A, isLoading:
|
|
33
|
+
let { data: A, isLoading: Oe, error: j } = ee(D || ""), { data: M, isLoading: ke } = a(D || "", "PENDING"), { mutate: N, isPending: P } = ne(), { mutate: Ae, isPending: je } = te(), [F, I] = l(null), [L, R] = l(/* @__PURE__ */ new Set()), Me = (e) => {
|
|
34
34
|
I(e), N(e, {
|
|
35
35
|
onSuccess: () => {
|
|
36
36
|
I(null);
|
|
@@ -39,13 +39,13 @@ function v() {
|
|
|
39
39
|
console.error("Failed to resend invitation:", e), I(null);
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
}, z = c(() => A?.items || [], [A?.items]), B = c(() => M?.items || [], [M?.items]), V =
|
|
42
|
+
}, z = c(() => A?.items || [], [A?.items]), B = c(() => M?.items || [], [M?.items]), V = Oe || ke, H = z.length > 0, U = B.length > 0, { apiGatewayUrl: Ne, authToken: Pe, organizationId: Fe } = o(), Ie = c(() => z.map((e) => ({
|
|
43
43
|
actorId: e.userId,
|
|
44
44
|
actorType: "user"
|
|
45
|
-
})), [z]), W = xe(
|
|
46
|
-
apiGatewayUrl:
|
|
47
|
-
authToken:
|
|
48
|
-
orgId:
|
|
45
|
+
})), [z]), W = xe(Ie, {
|
|
46
|
+
apiGatewayUrl: Ne,
|
|
47
|
+
authToken: Pe,
|
|
48
|
+
orgId: Fe,
|
|
49
49
|
workspaceId: D
|
|
50
50
|
}), G = z.filter((e) => {
|
|
51
51
|
if (!k) return !0;
|
|
@@ -53,7 +53,7 @@ function v() {
|
|
|
53
53
|
if (n && (n.displayName.toLowerCase().includes(t) || n.email?.toLowerCase().includes(t))) return !0;
|
|
54
54
|
let r = e.context?.metadata, i = typeof r?.email == "string" ? r.email : "", a = typeof r?.displayName == "string" ? r.displayName : typeof r?.name == "string" ? r.name : "";
|
|
55
55
|
return i.toLowerCase().includes(t) || a.toLowerCase().includes(t) ? !0 : e.userId.toLowerCase().includes(t);
|
|
56
|
-
}), K = c(() => G.filter((e) => x.has(e.id)), [G, x]), q = c(() => B.filter((e) => L.has(e.id)), [B, L]), J = G.length > 0 && G.every((e) => x.has(e.id)),
|
|
56
|
+
}), K = c(() => G.filter((e) => x.has(e.id)), [G, x]), q = c(() => B.filter((e) => L.has(e.id)), [B, L]), J = G.length > 0 && G.every((e) => x.has(e.id)), Le = G.some((e) => x.has(e.id)) && !J, Y = B.length > 0 && B.every((e) => L.has(e.id)), Re = B.some((e) => L.has(e.id)) && !Y;
|
|
57
57
|
s(() => () => C(), [C]);
|
|
58
58
|
let [X, Z] = ye();
|
|
59
59
|
s(() => {
|
|
@@ -69,55 +69,56 @@ function v() {
|
|
|
69
69
|
E,
|
|
70
70
|
T
|
|
71
71
|
]);
|
|
72
|
-
let { canListMembers:
|
|
73
|
-
if (
|
|
72
|
+
let { canListMembers: ze, canInviteMember: Q, canRemoveMember: Be, isLoading: Ve } = r();
|
|
73
|
+
if (Ve) return /* @__PURE__ */ g("div", {
|
|
74
74
|
className: "space-y-4 p-6",
|
|
75
75
|
children: [/* @__PURE__ */ h(m, { className: "h-10 w-1/3" }), /* @__PURE__ */ h(m, { className: "h-64" })]
|
|
76
76
|
});
|
|
77
|
-
if (!
|
|
77
|
+
if (!ze && !Q) return /* @__PURE__ */ h("div", {
|
|
78
78
|
className: "flex items-center justify-center min-h-[400px]",
|
|
79
79
|
children: /* @__PURE__ */ g("div", {
|
|
80
80
|
className: "text-center space-y-2",
|
|
81
81
|
children: [/* @__PURE__ */ h("h2", {
|
|
82
82
|
className: "text-lg font-semibold",
|
|
83
|
-
children:
|
|
83
|
+
children: t(v, "membersList.accessDenied", "Access Denied")
|
|
84
84
|
}), /* @__PURE__ */ h("p", {
|
|
85
85
|
className: "text-sm text-text-secondary",
|
|
86
|
-
children:
|
|
86
|
+
children: t(v, "membersList.noPermissionToViewMembers", "You don't have permission to view workspace members.")
|
|
87
87
|
})]
|
|
88
88
|
})
|
|
89
89
|
});
|
|
90
|
-
let
|
|
90
|
+
let $ = () => {
|
|
91
91
|
D && w(E(`${T}/${D}/invite`));
|
|
92
|
-
},
|
|
92
|
+
}, He = (e) => {
|
|
93
93
|
G.forEach((t) => {
|
|
94
94
|
e !== x.has(t.id) && S(t.id);
|
|
95
95
|
});
|
|
96
|
-
},
|
|
96
|
+
}, Ue = (e, t) => {
|
|
97
97
|
R((n) => {
|
|
98
98
|
let r = new Set(n);
|
|
99
99
|
return t ? r.add(e) : r.delete(e), r;
|
|
100
100
|
});
|
|
101
|
-
},
|
|
101
|
+
}, We = (e) => {
|
|
102
102
|
R((t) => {
|
|
103
103
|
let n = new Set(t);
|
|
104
104
|
return B.forEach((t) => {
|
|
105
105
|
e ? n.add(t.id) : n.delete(t.id);
|
|
106
106
|
}), n;
|
|
107
107
|
});
|
|
108
|
-
},
|
|
108
|
+
}, Ge = async () => {
|
|
109
109
|
if (K.length === 0) return;
|
|
110
|
-
|
|
111
|
-
let
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
110
|
+
e("medium");
|
|
111
|
+
let n = Se ? y("membersList.bulkRemoveConfirmNamed", "Remove {{names}} from this workspace? They lose access to its projects and data straight away. They stay in the organization, and you can invite them again later.", { names: K.map((e) => W[e.userId]?.displayName ?? W[e.userId]?.email ?? y("memberListItem.thisMemberFallback", "this member")).join(", ") }) : `${t(v, "membersList.bulkRemoveConfirmPrefix", "Remove")} ${K.length} ${K.length === 1 ? t(v, "membersList.bulkRemoveConfirmSingular", "selected member") : t(v, "membersList.bulkRemoveConfirmPlural", "selected members")} ${t(v, "membersList.bulkRemoveConfirmSuffix", "from this workspace?")}`;
|
|
112
|
+
await Ce({
|
|
113
|
+
title: t(v, "membersList.removeMembersTitle", "Remove members"),
|
|
114
|
+
description: n,
|
|
115
|
+
tone: "danger",
|
|
116
|
+
confirmLabel: t(v, "membersList.removeButton", "Remove"),
|
|
117
|
+
cancelLabel: t(v, "common.cancel", "Cancel")
|
|
118
|
+
}) && (K.forEach((e) => {
|
|
119
|
+
Ae(e.userId);
|
|
119
120
|
}), C());
|
|
120
|
-
},
|
|
121
|
+
}, Ke = () => {
|
|
121
122
|
q.length !== 0 && q.forEach((e) => {
|
|
122
123
|
N(e.id, { onSuccess: () => {
|
|
123
124
|
R((t) => {
|
|
@@ -127,7 +128,7 @@ function v() {
|
|
|
127
128
|
} });
|
|
128
129
|
});
|
|
129
130
|
};
|
|
130
|
-
return /* @__PURE__ */ h(
|
|
131
|
+
return /* @__PURE__ */ h(pe, {
|
|
131
132
|
padded: !1,
|
|
132
133
|
children: /* @__PURE__ */ g("div", {
|
|
133
134
|
className: "space-y-4 sm:space-y-6 p-3 sm:p-6",
|
|
@@ -136,36 +137,36 @@ function v() {
|
|
|
136
137
|
className: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",
|
|
137
138
|
children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("h1", {
|
|
138
139
|
className: "text-2xl sm:text-3xl font-bold",
|
|
139
|
-
children:
|
|
140
|
+
children: t(v, "membersList.pageTitle", "Members")
|
|
140
141
|
}), /* @__PURE__ */ h("p", {
|
|
141
142
|
className: "text-text-secondary text-sm sm:text-base",
|
|
142
|
-
children:
|
|
143
|
+
children: t(v, "membersList.pageSubtitle", "Manage workspace members and invitations")
|
|
143
144
|
})] }), /* @__PURE__ */ h("div", {
|
|
144
145
|
className: "flex gap-2",
|
|
145
146
|
children: /* @__PURE__ */ h(_, {
|
|
146
|
-
permission:
|
|
147
|
+
permission: n.MEMBER_CREATE,
|
|
147
148
|
deniedBehavior: "disable",
|
|
148
|
-
deniedTooltip:
|
|
149
|
+
deniedTooltip: t(v, "membersList.noPermissionToInvite", "You don't have permission to invite members"),
|
|
149
150
|
children: /* @__PURE__ */ g(f, {
|
|
150
|
-
onClick:
|
|
151
|
+
onClick: $,
|
|
151
152
|
disabled: !D,
|
|
152
153
|
children: [/* @__PURE__ */ h(u, { className: "size-4 sm:mr-2" }), /* @__PURE__ */ h("span", {
|
|
153
154
|
className: "hidden sm:inline",
|
|
154
|
-
children:
|
|
155
|
+
children: t(v, "membersList.inviteMember", "Invite Member")
|
|
155
156
|
})]
|
|
156
157
|
})
|
|
157
158
|
})
|
|
158
159
|
})]
|
|
159
160
|
}),
|
|
160
|
-
/* @__PURE__ */ h(
|
|
161
|
+
/* @__PURE__ */ h(me, { children: t(v, "membersList.purpose", "Members are the people who belong to this workspace. From here you invite teammates, see who has accepted, resend or track invitations that are still pending, and remove people who no longer need access. Search by name or email to find someone quickly.") }),
|
|
161
162
|
/* @__PURE__ */ g("div", {
|
|
162
163
|
className: "flex flex-col sm:flex-row gap-3 sm:gap-4",
|
|
163
164
|
children: [/* @__PURE__ */ g("div", {
|
|
164
165
|
className: "relative flex-1",
|
|
165
|
-
children: [/* @__PURE__ */ h(
|
|
166
|
-
placeholder:
|
|
166
|
+
children: [/* @__PURE__ */ h(ue, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-text-secondary" }), /* @__PURE__ */ h(fe, {
|
|
167
|
+
placeholder: t(v, "membersList.searchPlaceholder", "Search members..."),
|
|
167
168
|
value: O,
|
|
168
|
-
onChange: (e) =>
|
|
169
|
+
onChange: (e) => De(e.target.value),
|
|
169
170
|
className: "pl-9"
|
|
170
171
|
})]
|
|
171
172
|
}), U && /* @__PURE__ */ h("div", {
|
|
@@ -176,7 +177,7 @@ function v() {
|
|
|
176
177
|
children: [
|
|
177
178
|
B.length,
|
|
178
179
|
" ",
|
|
179
|
-
B.length === 1 ?
|
|
180
|
+
B.length === 1 ? t(v, "membersList.pendingInvitation", "Pending Invitation") : t(v, "membersList.pendingInvitations", "Pending Invitations")
|
|
180
181
|
]
|
|
181
182
|
})
|
|
182
183
|
})]
|
|
@@ -189,12 +190,12 @@ function v() {
|
|
|
189
190
|
type: "checkbox",
|
|
190
191
|
checked: J,
|
|
191
192
|
ref: (e) => {
|
|
192
|
-
e && (e.indeterminate =
|
|
193
|
+
e && (e.indeterminate = Le && !J);
|
|
193
194
|
},
|
|
194
|
-
onChange: (e) =>
|
|
195
|
-
"aria-label":
|
|
195
|
+
onChange: (e) => He(e.target.checked),
|
|
196
|
+
"aria-label": t(v, "membersList.selectAllMembersAriaLabel", "Select all workspace members"),
|
|
196
197
|
className: "size-4 rounded border-border-subtle text-primary"
|
|
197
|
-
}), /* @__PURE__ */ h("span", { children:
|
|
198
|
+
}), /* @__PURE__ */ h("span", { children: t(v, "membersList.selectAllVisibleMembers", "Select all visible members") })]
|
|
198
199
|
}), /* @__PURE__ */ g("div", {
|
|
199
200
|
className: "flex flex-wrap items-center gap-2",
|
|
200
201
|
children: [
|
|
@@ -203,22 +204,22 @@ function v() {
|
|
|
203
204
|
children: [
|
|
204
205
|
x.size,
|
|
205
206
|
" ",
|
|
206
|
-
|
|
207
|
+
t(v, "membersList.selected", "selected")
|
|
207
208
|
]
|
|
208
209
|
}),
|
|
209
210
|
x.size > 0 && /* @__PURE__ */ h(f, {
|
|
210
211
|
variant: "ghost",
|
|
211
212
|
size: "sm",
|
|
212
213
|
onClick: C,
|
|
213
|
-
children:
|
|
214
|
+
children: t(v, "membersList.clearSelection", "Clear selection")
|
|
214
215
|
}),
|
|
215
|
-
|
|
216
|
+
Be && /* @__PURE__ */ g(f, {
|
|
216
217
|
variant: "outline",
|
|
217
218
|
size: "sm",
|
|
218
|
-
onClick:
|
|
219
|
-
disabled: K.length === 0 ||
|
|
219
|
+
onClick: Ge,
|
|
220
|
+
disabled: K.length === 0 || je,
|
|
220
221
|
className: "text-status-error-text",
|
|
221
|
-
children: [
|
|
222
|
+
children: [t(v, "membersList.removeSelected", "Remove Selected"), K.length > 0 ? ` (${K.length})` : ""]
|
|
222
223
|
})
|
|
223
224
|
]
|
|
224
225
|
})]
|
|
@@ -238,44 +239,46 @@ function v() {
|
|
|
238
239
|
children: [
|
|
239
240
|
/* @__PURE__ */ h("div", {
|
|
240
241
|
className: "rounded-full bg-status-error-bg/10 p-6 mb-4",
|
|
241
|
-
children: /* @__PURE__ */ h(
|
|
242
|
+
children: /* @__PURE__ */ h(ce, {
|
|
242
243
|
size: 48,
|
|
243
244
|
className: "text-status-error-text"
|
|
244
245
|
})
|
|
245
246
|
}),
|
|
246
247
|
/* @__PURE__ */ h("h3", {
|
|
247
248
|
className: "text-lg font-semibold mb-2",
|
|
248
|
-
children:
|
|
249
|
+
children: t(v, "membersList.failedToLoad", "Failed to Load Members")
|
|
249
250
|
}),
|
|
250
251
|
/* @__PURE__ */ h("p", {
|
|
251
252
|
className: "text-text-secondary max-w-sm",
|
|
252
|
-
children: j instanceof Error ? j.message :
|
|
253
|
+
children: j instanceof Error ? j.message : t(v, "membersList.errorLoadingMembers", "An error occurred while loading members")
|
|
253
254
|
})
|
|
254
255
|
]
|
|
255
256
|
}),
|
|
256
257
|
!V && !j && !D && /* @__PURE__ */ h(p, {
|
|
257
258
|
illustration: "empty-people",
|
|
258
|
-
title:
|
|
259
|
-
description:
|
|
259
|
+
title: t(v, "membersList.noWorkspaceSelected", "No Workspace Selected"),
|
|
260
|
+
description: t(v, "membersList.selectWorkspacePrompt", "Select a workspace to view and manage its members"),
|
|
261
|
+
glassIllustration: "places"
|
|
260
262
|
}),
|
|
261
263
|
!V && !j && D && !H && /* @__PURE__ */ h(p, {
|
|
262
264
|
illustration: "empty-people",
|
|
263
|
-
title:
|
|
264
|
-
description:
|
|
265
|
+
title: t(v, "membersList.noMembersYet", "No Members Yet"),
|
|
266
|
+
description: t(v, "membersList.noMembersPrompt", "Start building your team by inviting members to this workspace"),
|
|
265
267
|
action: /* @__PURE__ */ h(_, {
|
|
266
|
-
permission:
|
|
268
|
+
permission: n.MEMBER_CREATE,
|
|
267
269
|
deniedBehavior: "disable",
|
|
268
|
-
deniedTooltip:
|
|
270
|
+
deniedTooltip: t(v, "membersList.noPermissionToInvite", "You don't have permission to invite members"),
|
|
269
271
|
children: /* @__PURE__ */ g(f, {
|
|
270
|
-
onClick:
|
|
271
|
-
children: [/* @__PURE__ */ h(u, { className: "mr-2 size-4" }),
|
|
272
|
+
onClick: $,
|
|
273
|
+
children: [/* @__PURE__ */ h(u, { className: "mr-2 size-4" }), t(v, "membersList.inviteFirstMember", "Invite Your First Member")]
|
|
272
274
|
})
|
|
273
275
|
})
|
|
274
276
|
}),
|
|
275
277
|
!V && !j && D && H && G.length === 0 && /* @__PURE__ */ h(p, {
|
|
276
278
|
illustration: "empty-search",
|
|
277
|
-
title:
|
|
278
|
-
description:
|
|
279
|
+
title: t(v, "membersList.noMembersFound", "No Members Found"),
|
|
280
|
+
description: t(v, "membersList.noMembersFoundPrompt", "No members match your search criteria. Try adjusting your search."),
|
|
281
|
+
kind: "no-results"
|
|
279
282
|
}),
|
|
280
283
|
!V && G.length > 0 && /* @__PURE__ */ g("div", {
|
|
281
284
|
className: "space-y-3",
|
|
@@ -284,7 +287,7 @@ function v() {
|
|
|
284
287
|
children: /* @__PURE__ */ g("h2", {
|
|
285
288
|
className: "text-lg font-semibold",
|
|
286
289
|
children: [
|
|
287
|
-
|
|
290
|
+
t(v, "membersList.activeMembers", "Active Members"),
|
|
288
291
|
" (",
|
|
289
292
|
G.length,
|
|
290
293
|
")"
|
|
@@ -292,13 +295,13 @@ function v() {
|
|
|
292
295
|
})
|
|
293
296
|
}), /* @__PURE__ */ h("div", {
|
|
294
297
|
className: "space-y-2",
|
|
295
|
-
children: G.map((e) => /* @__PURE__ */ h(
|
|
298
|
+
children: G.map((e) => /* @__PURE__ */ h(oe, {
|
|
296
299
|
member: e,
|
|
297
300
|
selected: x.has(e.id),
|
|
298
301
|
onToggleSelect: (t) => {
|
|
299
302
|
t !== x.has(e.id) && S(e.id);
|
|
300
303
|
},
|
|
301
|
-
canRemove:
|
|
304
|
+
canRemove: Be
|
|
302
305
|
}, e.id))
|
|
303
306
|
})]
|
|
304
307
|
}),
|
|
@@ -307,7 +310,7 @@ function v() {
|
|
|
307
310
|
children: [
|
|
308
311
|
/* @__PURE__ */ h("h2", {
|
|
309
312
|
className: "text-lg font-semibold",
|
|
310
|
-
children:
|
|
313
|
+
children: t(v, "membersList.pendingInvitationsHeader", "Pending Invitations")
|
|
311
314
|
}),
|
|
312
315
|
/* @__PURE__ */ g("div", {
|
|
313
316
|
className: "flex flex-col gap-3 rounded-lg border border-border-seam bg-bg-surface p-4 sm:flex-row sm:items-center sm:justify-between",
|
|
@@ -317,12 +320,12 @@ function v() {
|
|
|
317
320
|
type: "checkbox",
|
|
318
321
|
checked: Y,
|
|
319
322
|
ref: (e) => {
|
|
320
|
-
e && (e.indeterminate =
|
|
323
|
+
e && (e.indeterminate = Re && !Y);
|
|
321
324
|
},
|
|
322
|
-
onChange: (e) =>
|
|
323
|
-
"aria-label":
|
|
325
|
+
onChange: (e) => We(e.target.checked),
|
|
326
|
+
"aria-label": t(v, "membersList.selectAllInvitationsAriaLabel", "Select all pending invitations"),
|
|
324
327
|
className: "size-4 rounded border-border-subtle text-primary"
|
|
325
|
-
}), /* @__PURE__ */ h("span", { children:
|
|
328
|
+
}), /* @__PURE__ */ h("span", { children: t(v, "membersList.selectAllInvitations", "Select all invitations") })]
|
|
326
329
|
}), /* @__PURE__ */ g("div", {
|
|
327
330
|
className: "flex flex-wrap items-center gap-2",
|
|
328
331
|
children: [
|
|
@@ -331,21 +334,21 @@ function v() {
|
|
|
331
334
|
children: [
|
|
332
335
|
L.size,
|
|
333
336
|
" ",
|
|
334
|
-
|
|
337
|
+
t(v, "membersList.selected", "selected")
|
|
335
338
|
]
|
|
336
339
|
}),
|
|
337
340
|
L.size > 0 && /* @__PURE__ */ h(f, {
|
|
338
341
|
variant: "ghost",
|
|
339
342
|
size: "sm",
|
|
340
343
|
onClick: () => R(/* @__PURE__ */ new Set()),
|
|
341
|
-
children:
|
|
344
|
+
children: t(v, "membersList.clearSelection", "Clear selection")
|
|
342
345
|
}),
|
|
343
346
|
Q && /* @__PURE__ */ g(f, {
|
|
344
347
|
variant: "outline",
|
|
345
348
|
size: "sm",
|
|
346
|
-
onClick:
|
|
349
|
+
onClick: Ke,
|
|
347
350
|
disabled: q.length === 0 || P,
|
|
348
|
-
children: [
|
|
351
|
+
children: [t(v, "membersList.resendSelected", "Resend Selected"), q.length > 0 ? ` (${q.length})` : ""]
|
|
349
352
|
})
|
|
350
353
|
]
|
|
351
354
|
})]
|
|
@@ -360,13 +363,13 @@ function v() {
|
|
|
360
363
|
/* @__PURE__ */ h("input", {
|
|
361
364
|
type: "checkbox",
|
|
362
365
|
checked: L.has(e.id),
|
|
363
|
-
onChange: (t) =>
|
|
364
|
-
"aria-label": `${
|
|
366
|
+
onChange: (t) => Ue(e.id, t.target.checked),
|
|
367
|
+
"aria-label": `${t(v, "membersList.selectInvitationAriaLabel", "Select invitation")} ${e.email}`,
|
|
365
368
|
className: "size-4 rounded border-border-subtle text-primary"
|
|
366
369
|
}),
|
|
367
370
|
/* @__PURE__ */ h("div", {
|
|
368
371
|
className: "size-10 rounded-full bg-status-warning/10 flex items-center justify-center transition-colors",
|
|
369
|
-
children: /* @__PURE__ */ h(
|
|
372
|
+
children: /* @__PURE__ */ h(de, { className: "size-5 text-status-warning" })
|
|
370
373
|
}),
|
|
371
374
|
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
372
375
|
className: "font-medium text-sm",
|
|
@@ -374,7 +377,7 @@ function v() {
|
|
|
374
377
|
}), /* @__PURE__ */ g("p", {
|
|
375
378
|
className: "text-xs text-text-secondary",
|
|
376
379
|
children: [
|
|
377
|
-
|
|
380
|
+
t(v, "membersList.invited", "Invited"),
|
|
378
381
|
" ",
|
|
379
382
|
new Date(e.createdAt).toLocaleDateString()
|
|
380
383
|
]
|
|
@@ -383,20 +386,20 @@ function v() {
|
|
|
383
386
|
}), /* @__PURE__ */ g("div", {
|
|
384
387
|
className: "flex items-center gap-2",
|
|
385
388
|
children: [/* @__PURE__ */ h(_, {
|
|
386
|
-
permission:
|
|
389
|
+
permission: n.MEMBER_CREATE,
|
|
387
390
|
deniedBehavior: "disable",
|
|
388
|
-
deniedTooltip:
|
|
391
|
+
deniedTooltip: t(v, "membersList.noPermissionToResend", "You don't have permission to resend invitations"),
|
|
389
392
|
children: /* @__PURE__ */ g(f, {
|
|
390
393
|
variant: "outline",
|
|
391
394
|
size: "sm",
|
|
392
|
-
onClick: () =>
|
|
395
|
+
onClick: () => Me(e.id),
|
|
393
396
|
disabled: P && F === e.id,
|
|
394
|
-
children: [/* @__PURE__ */ h(
|
|
397
|
+
children: [/* @__PURE__ */ h(le, { className: `size-4 mr-1 ${P && F === e.id ? "animate-spin" : ""}` }), P && F === e.id ? t(v, "membersList.sending", "Sending...") : t(v, "membersList.resend", "Resend")]
|
|
395
398
|
})
|
|
396
399
|
}), /* @__PURE__ */ h(d, {
|
|
397
400
|
variant: "outline",
|
|
398
401
|
className: "bg-status-warning/10 text-status-warning border-status-warning/30 transition-colors",
|
|
399
|
-
children:
|
|
402
|
+
children: t(v, "membersList.pending", "Pending")
|
|
400
403
|
})]
|
|
401
404
|
})]
|
|
402
405
|
}, e.id))
|
|
@@ -131,7 +131,8 @@ function j() {
|
|
|
131
131
|
}) : G.length === 0 ? /* @__PURE__ */ w(b, {
|
|
132
132
|
illustration: "empty-notifications",
|
|
133
133
|
title: e(j, "pendingInvites.emptyTitle", "No pending invites"),
|
|
134
|
-
description: e(j, "pendingInvites.emptyDescription", "When someone invites you to a workspace, it will appear here.")
|
|
134
|
+
description: e(j, "pendingInvites.emptyDescription", "When someone invites you to a workspace, it will appear here."),
|
|
135
|
+
kind: "all-done"
|
|
135
136
|
}) : /* @__PURE__ */ w("div", {
|
|
136
137
|
className: "space-y-4",
|
|
137
138
|
children: G.map((i, a) => {
|