@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
|
@@ -7,18 +7,18 @@ import { useWorkspacePermissions as a } from "../hooks/useWorkspacePermissions.j
|
|
|
7
7
|
import { useWorkspacesContext as ee } from "../providers/WorkspacesProvider.js";
|
|
8
8
|
import { formatRelativeTime as te } from "../utils/formatters.js";
|
|
9
9
|
import { tWithFallback as o } from "../utils/i18n.js";
|
|
10
|
-
import {
|
|
11
|
-
import { useWorkspacesPageView as
|
|
10
|
+
import { nativeImpact as s, nativeNotify as c } from "../utils/nativeBridge.js";
|
|
11
|
+
import { useWorkspacesPageView as l } from "../hooks/useWorkspacesPageView.js";
|
|
12
12
|
import { useMemo as u, useState as d } from "react";
|
|
13
|
-
import { ArrowLeft as
|
|
14
|
-
import { Badge as m, Button as h, IllustratedEmptyState as g, Input as _, PageContainer as v, PagePurpose as y, Skeleton as b } from "@burdenoff/fe-libs/ui";
|
|
15
|
-
import { jsx as
|
|
16
|
-
import { useI18n as
|
|
17
|
-
import { useNavigate as
|
|
18
|
-
import { ActorIdentity as
|
|
13
|
+
import { ArrowLeft as ne, Search as re, UserMinus as f, UserPlus as p } from "lucide-react";
|
|
14
|
+
import { Badge as m, Button as h, IllustratedEmptyState as g, Input as _, PageContainer as v, PagePurpose as y, Skeleton as b, useConfirm as x } from "@burdenoff/fe-libs/ui";
|
|
15
|
+
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
16
|
+
import { useI18n as ie } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
17
|
+
import { useNavigate as ae, useParams as oe } from "react-router";
|
|
18
|
+
import { ActorIdentity as se, useActorProfiles as ce } from "@burdenoff/fe-libs/shared";
|
|
19
19
|
// src/pages/ProjectMembersPage.tsx
|
|
20
|
-
var
|
|
21
|
-
function
|
|
20
|
+
var le = 100;
|
|
21
|
+
function w(e, t) {
|
|
22
22
|
let n = e[t.userId];
|
|
23
23
|
return n ? {
|
|
24
24
|
name: n.displayName,
|
|
@@ -28,198 +28,200 @@ function C(e, t) {
|
|
|
28
28
|
email: void 0
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
let { t:
|
|
33
|
-
|
|
34
|
-
workspaceId:
|
|
35
|
-
projectId:
|
|
31
|
+
function T() {
|
|
32
|
+
let { t: T } = ie(), ue = x(), de = ae(), { workspaceId: E, projectId: D } = oe(), { basePath: O = "/workspaces", apiGatewayUrl: k, authToken: A, organizationId: j } = ee(), { withCurrentSearch: M } = i(), [N, P] = d(""), [F, I] = d(!1), [L, R] = d(null), [z, B] = d(null);
|
|
33
|
+
l("workspaces.project-members", {
|
|
34
|
+
workspaceId: E,
|
|
35
|
+
projectId: D,
|
|
36
36
|
requireParams: !0
|
|
37
37
|
});
|
|
38
|
-
let { data:
|
|
38
|
+
let { data: V, isLoading: fe, error: H } = n(D || "", E), { data: U, isLoading: pe, error: W, hasNextPage: G, fetchNextPage: K, isFetchingNextPage: q } = t(D || "", E, le), { mutate: me, isPending: J } = r(E), { canViewProject: he, canListProjectMembers: ge, canAddProjectMember: Y, canRemoveProjectMember: _e, isLoading: ve } = a(), X = u(() => U?.pages.flatMap((e) => e.items) ?? [], [U?.pages]), Z = U?.pages[0]?.total ?? X.length, ye = u(() => X.map((e) => ({
|
|
39
39
|
actorId: e.userId,
|
|
40
40
|
actorType: "user"
|
|
41
|
-
})), [X]), Q =
|
|
42
|
-
apiGatewayUrl:
|
|
43
|
-
authToken:
|
|
44
|
-
orgId:
|
|
45
|
-
workspaceId:
|
|
41
|
+
})), [X]), Q = ce(ye, {
|
|
42
|
+
apiGatewayUrl: k,
|
|
43
|
+
authToken: A,
|
|
44
|
+
orgId: j,
|
|
45
|
+
workspaceId: E
|
|
46
46
|
}), $ = u(() => {
|
|
47
|
-
let e =
|
|
47
|
+
let e = N.trim().toLowerCase();
|
|
48
48
|
return e ? X.filter((t) => {
|
|
49
|
-
let n =
|
|
49
|
+
let n = w(Q, t);
|
|
50
50
|
return n.name.toLowerCase().includes(e) || n.email?.toLowerCase().includes(e) || t.userId.toLowerCase().includes(e);
|
|
51
51
|
}) : X;
|
|
52
52
|
}, [
|
|
53
53
|
Q,
|
|
54
54
|
X,
|
|
55
|
-
|
|
55
|
+
N
|
|
56
56
|
]);
|
|
57
|
-
if (
|
|
57
|
+
if (ve) return /* @__PURE__ */ C("div", {
|
|
58
58
|
className: "space-y-4 p-6",
|
|
59
59
|
children: [
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ S(b, { className: "h-10 w-40" }),
|
|
61
|
+
/* @__PURE__ */ S(b, { className: "h-10 w-64" }),
|
|
62
|
+
/* @__PURE__ */ S(b, { className: "h-40 w-full" })
|
|
63
63
|
]
|
|
64
64
|
});
|
|
65
|
-
if (!
|
|
65
|
+
if (!he || !ge) return /* @__PURE__ */ S("div", {
|
|
66
66
|
className: "flex min-h-[400px] items-center justify-center",
|
|
67
|
-
children: /* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ C("div", {
|
|
68
68
|
className: "space-y-2 text-center",
|
|
69
|
-
children: [/* @__PURE__ */
|
|
69
|
+
children: [/* @__PURE__ */ S("h2", {
|
|
70
70
|
className: "text-lg font-semibold",
|
|
71
|
-
children: o(
|
|
72
|
-
}), /* @__PURE__ */
|
|
71
|
+
children: o(T, "projectMembers.accessDenied", "Access Denied")
|
|
72
|
+
}), /* @__PURE__ */ S("p", {
|
|
73
73
|
className: "text-sm text-text-secondary",
|
|
74
|
-
children: o(
|
|
74
|
+
children: o(T, "projectMembers.noPermission", "You don't have permission to manage project members.")
|
|
75
75
|
})]
|
|
76
76
|
})
|
|
77
77
|
});
|
|
78
|
-
let
|
|
79
|
-
de(
|
|
80
|
-
},
|
|
81
|
-
let t =
|
|
82
|
-
|
|
83
|
-
let n = `${o(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
78
|
+
let be = () => {
|
|
79
|
+
de(M(`${O}/${E}/projects/${D}`));
|
|
80
|
+
}, xe = async (e) => {
|
|
81
|
+
let t = w(Q, e);
|
|
82
|
+
s("medium"), B(null);
|
|
83
|
+
let n = `${o(T, "projectMembers.removeConfirmPrefix", "Remove")} ${t.name} ${o(T, "projectMembers.removeConfirmSuffix", "from this project?")}`;
|
|
84
|
+
await ue({
|
|
85
|
+
title: o(T, "projectMembers.removeConfirmTitle", "Remove project member"),
|
|
86
|
+
description: n,
|
|
87
|
+
tone: "danger",
|
|
88
|
+
confirmLabel: o(T, "projectMembers.removeAction", "Remove"),
|
|
89
|
+
cancelLabel: o(T, "projectMembers.cancel", "Cancel")
|
|
90
|
+
}) && (R(e.userId), me({
|
|
90
91
|
projectId: e.projectId,
|
|
91
92
|
userId: e.userId
|
|
92
93
|
}, {
|
|
93
94
|
onSuccess: () => {
|
|
94
|
-
|
|
95
|
+
c("success"), R(null);
|
|
95
96
|
},
|
|
96
97
|
onError: () => {
|
|
97
|
-
|
|
98
|
+
c("error"), B(o(T, "projectMembers.removeError", "Failed to remove project member. Please try again.")), R(null);
|
|
98
99
|
}
|
|
99
100
|
}));
|
|
100
101
|
};
|
|
101
|
-
return /* @__PURE__ */
|
|
102
|
+
return /* @__PURE__ */ S(v, {
|
|
102
103
|
padded: !1,
|
|
103
|
-
children: /* @__PURE__ */
|
|
104
|
+
children: /* @__PURE__ */ C("div", {
|
|
104
105
|
className: "space-y-4 p-3 sm:space-y-6 sm:p-6",
|
|
105
106
|
children: [
|
|
106
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ C("div", {
|
|
107
108
|
className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
108
|
-
children: [/* @__PURE__ */
|
|
109
|
-
/* @__PURE__ */
|
|
109
|
+
children: [/* @__PURE__ */ C("div", { children: [
|
|
110
|
+
/* @__PURE__ */ C(h, {
|
|
110
111
|
variant: "ghost",
|
|
111
|
-
onClick:
|
|
112
|
+
onClick: be,
|
|
112
113
|
className: "mb-2 -ml-2 gap-2",
|
|
113
|
-
children: [/* @__PURE__ */
|
|
114
|
+
children: [/* @__PURE__ */ S(ne, { size: 20 }), o(T, "projectMembers.backToProject", "Back to Project")]
|
|
114
115
|
}),
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ S("h1", {
|
|
116
117
|
className: "text-2xl font-bold sm:text-3xl",
|
|
117
|
-
children: o(
|
|
118
|
+
children: o(T, "projectMembers.pageTitle", "Project Members")
|
|
118
119
|
}),
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
+
/* @__PURE__ */ S("p", {
|
|
120
121
|
className: "text-sm text-text-secondary sm:text-base",
|
|
121
|
-
children:
|
|
122
|
+
children: V?.name ? `${V.name} · ${o(T, "projectMembers.pageSubtitle", "Only existing workspace members can be added to this project.")}` : o(T, "projectMembers.pageSubtitle", "Only existing workspace members can be added to this project.")
|
|
122
123
|
})
|
|
123
|
-
] }), /* @__PURE__ */
|
|
124
|
+
] }), /* @__PURE__ */ C("div", {
|
|
124
125
|
className: "flex items-center gap-2",
|
|
125
|
-
children: [/* @__PURE__ */
|
|
126
|
+
children: [/* @__PURE__ */ S(m, {
|
|
126
127
|
variant: "secondary",
|
|
127
128
|
children: Z
|
|
128
|
-
}), Y ? /* @__PURE__ */
|
|
129
|
-
onClick: () =>
|
|
130
|
-
disabled: !
|
|
131
|
-
children: [/* @__PURE__ */
|
|
129
|
+
}), Y ? /* @__PURE__ */ C(h, {
|
|
130
|
+
onClick: () => I(!0),
|
|
131
|
+
disabled: !E || !D,
|
|
132
|
+
children: [/* @__PURE__ */ S(p, { className: "mr-2 size-4" }), o(T, "projectMembers.addMember", "Add Member")]
|
|
132
133
|
}) : null]
|
|
133
134
|
})]
|
|
134
135
|
}),
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ S(y, { children: o(T, "projectMembers.purpose", "This is the subset of workspace members who can work on this specific project. Add people here to give them project-level access, search to find someone, or remove members who have moved on. Only existing workspace members can be added.") }),
|
|
137
|
+
/* @__PURE__ */ C("div", {
|
|
137
138
|
className: "relative",
|
|
138
|
-
children: [/* @__PURE__ */
|
|
139
|
-
value:
|
|
140
|
-
onChange: (e) =>
|
|
141
|
-
placeholder: o(
|
|
139
|
+
children: [/* @__PURE__ */ S(re, { className: "absolute left-3 top-1/2 size-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ S(_, {
|
|
140
|
+
value: N,
|
|
141
|
+
onChange: (e) => P(e.target.value),
|
|
142
|
+
placeholder: o(T, "projectMembers.searchPlaceholder", "Search project members"),
|
|
142
143
|
className: "pl-9"
|
|
143
144
|
})]
|
|
144
145
|
}),
|
|
145
|
-
|
|
146
|
+
z ? /* @__PURE__ */ S("div", {
|
|
146
147
|
className: "rounded-lg border border-status-error-border/20 bg-status-error-bg/10 p-4 text-sm text-status-error-text",
|
|
147
|
-
children:
|
|
148
|
+
children: z
|
|
148
149
|
}) : null,
|
|
149
|
-
|
|
150
|
+
fe || pe ? /* @__PURE__ */ S("div", {
|
|
150
151
|
className: "space-y-4",
|
|
151
|
-
children: Array.from({ length: 4 }).map((e, t) => /* @__PURE__ */
|
|
152
|
+
children: Array.from({ length: 4 }).map((e, t) => /* @__PURE__ */ C("div", {
|
|
152
153
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
153
|
-
children: [/* @__PURE__ */
|
|
154
|
+
children: [/* @__PURE__ */ S(b, { className: "h-5 w-40" }), /* @__PURE__ */ S(b, { className: "mt-2 h-4 w-56" })]
|
|
154
155
|
}, t))
|
|
155
|
-
}) : H || W ? /* @__PURE__ */
|
|
156
|
+
}) : H || W ? /* @__PURE__ */ S("div", {
|
|
156
157
|
className: "rounded-lg border border-status-error-border/20 bg-status-error-bg/10 p-4 text-sm text-status-error-text",
|
|
157
|
-
children: W instanceof Error && W.message || H instanceof Error && H.message || o(
|
|
158
|
-
}) : $.length === 0 ? /* @__PURE__ */
|
|
159
|
-
illustration:
|
|
160
|
-
title:
|
|
161
|
-
description:
|
|
162
|
-
action: G || !
|
|
158
|
+
children: W instanceof Error && W.message || H instanceof Error && H.message || o(T, "projectMembers.loadError", "Failed to load project members")
|
|
159
|
+
}) : $.length === 0 ? /* @__PURE__ */ S(g, {
|
|
160
|
+
illustration: N ? "empty-search" : "empty-people",
|
|
161
|
+
title: N ? o(T, "projectMembers.noResultsTitle", "No matching members found") : o(T, "projectMembers.emptyTitle", "No project members yet"),
|
|
162
|
+
description: N ? o(T, "projectMembers.noResultsSubtitle", "Try a different search to find a project member.") : o(T, "projectMembers.emptySubtitle", "Add workspace members to this project so they can collaborate here."),
|
|
163
|
+
action: G || !N && Y ? /* @__PURE__ */ C("div", {
|
|
163
164
|
className: "flex flex-wrap items-center justify-center gap-2",
|
|
164
|
-
children: [G ? /* @__PURE__ */
|
|
165
|
+
children: [G ? /* @__PURE__ */ S(h, {
|
|
165
166
|
variant: "outline",
|
|
166
167
|
onClick: () => void K(),
|
|
167
168
|
disabled: q,
|
|
168
169
|
children: q ? "Loading more…" : "Load More Members"
|
|
169
|
-
}) : null, !
|
|
170
|
-
onClick: () =>
|
|
171
|
-
children: [/* @__PURE__ */
|
|
170
|
+
}) : null, !N && Y ? /* @__PURE__ */ C(h, {
|
|
171
|
+
onClick: () => I(!0),
|
|
172
|
+
children: [/* @__PURE__ */ S(p, { className: "mr-2 size-4" }), o(T, "projectMembers.addFirstMember", "Add First Member")]
|
|
172
173
|
}) : null]
|
|
173
|
-
}) : void 0
|
|
174
|
-
|
|
174
|
+
}) : void 0,
|
|
175
|
+
kind: N ? "no-results" : "first-use"
|
|
176
|
+
}) : /* @__PURE__ */ C("div", {
|
|
175
177
|
className: "space-y-3",
|
|
176
178
|
children: [$.map((e) => {
|
|
177
|
-
let t = Q[e.userId], n =
|
|
178
|
-
return /* @__PURE__ */
|
|
179
|
+
let t = Q[e.userId], n = w(Q, e), r = J && L === e.userId;
|
|
180
|
+
return /* @__PURE__ */ C("div", {
|
|
179
181
|
className: "flex items-center justify-between gap-4 rounded-card border border-border-seam bg-bg-surface p-4 shadow-elevation-1 transition-[box-shadow,transform] duration-200 ease-[var(--motion-easing-out)] hover:shadow-elevation-2 [@media(hover:none)]:",
|
|
180
|
-
children: [/* @__PURE__ */
|
|
182
|
+
children: [/* @__PURE__ */ C("div", {
|
|
181
183
|
className: "min-w-0 flex-1",
|
|
182
|
-
children: [t ? /* @__PURE__ */
|
|
184
|
+
children: [t ? /* @__PURE__ */ S(se, {
|
|
183
185
|
profile: t,
|
|
184
186
|
variant: "cell"
|
|
185
|
-
}) : /* @__PURE__ */
|
|
187
|
+
}) : /* @__PURE__ */ C("div", {
|
|
186
188
|
className: "min-w-0",
|
|
187
|
-
children: [/* @__PURE__ */
|
|
189
|
+
children: [/* @__PURE__ */ S("p", {
|
|
188
190
|
className: "truncate font-medium",
|
|
189
191
|
children: n.name
|
|
190
|
-
}), n.email ? /* @__PURE__ */
|
|
192
|
+
}), n.email ? /* @__PURE__ */ S("p", {
|
|
191
193
|
className: "truncate text-sm text-text-secondary",
|
|
192
194
|
children: n.email
|
|
193
|
-
}) : /* @__PURE__ */
|
|
195
|
+
}) : /* @__PURE__ */ S("p", {
|
|
194
196
|
className: "truncate text-xs text-text-secondary",
|
|
195
197
|
children: e.userId
|
|
196
198
|
})]
|
|
197
|
-
}), /* @__PURE__ */
|
|
199
|
+
}), /* @__PURE__ */ C("div", {
|
|
198
200
|
className: "mt-1 flex flex-wrap items-center gap-2",
|
|
199
|
-
children: [/* @__PURE__ */
|
|
201
|
+
children: [/* @__PURE__ */ S(m, {
|
|
200
202
|
variant: "secondary",
|
|
201
203
|
className: "text-xs",
|
|
202
|
-
children: o(
|
|
203
|
-
}), /* @__PURE__ */
|
|
204
|
+
children: o(T, "projectMembers.memberBadge", "Project member")
|
|
205
|
+
}), /* @__PURE__ */ C("span", {
|
|
204
206
|
className: "text-xs text-text-secondary",
|
|
205
207
|
children: [
|
|
206
|
-
o(
|
|
208
|
+
o(T, "projectMembers.addedLabel", "Added"),
|
|
207
209
|
" ",
|
|
208
210
|
te(e.createdAt)
|
|
209
211
|
]
|
|
210
212
|
})]
|
|
211
213
|
})]
|
|
212
|
-
}),
|
|
214
|
+
}), _e ? /* @__PURE__ */ C(h, {
|
|
213
215
|
variant: "outline",
|
|
214
216
|
size: "sm",
|
|
215
|
-
onClick: () => void
|
|
217
|
+
onClick: () => void xe(e),
|
|
216
218
|
disabled: J,
|
|
217
|
-
children: [/* @__PURE__ */
|
|
219
|
+
children: [/* @__PURE__ */ S(f, { className: "mr-2 size-4" }), r ? o(T, "projectMembers.removing", "Removing...") : o(T, "projectMembers.removeAction", "Remove")]
|
|
218
220
|
}) : null]
|
|
219
221
|
}, e.id);
|
|
220
|
-
}), G ? /* @__PURE__ */
|
|
222
|
+
}), G ? /* @__PURE__ */ C("div", {
|
|
221
223
|
className: "flex flex-col items-center gap-2 rounded-lg border border-dashed border-border-seam bg-bg-sunken/20 p-4 text-center",
|
|
222
|
-
children: [/* @__PURE__ */
|
|
224
|
+
children: [/* @__PURE__ */ C("p", {
|
|
223
225
|
className: "text-sm text-text-secondary",
|
|
224
226
|
children: [
|
|
225
227
|
"Showing ",
|
|
@@ -228,7 +230,7 @@ function w() {
|
|
|
228
230
|
Z,
|
|
229
231
|
" project members."
|
|
230
232
|
]
|
|
231
|
-
}), /* @__PURE__ */
|
|
233
|
+
}), /* @__PURE__ */ S(h, {
|
|
232
234
|
variant: "outline",
|
|
233
235
|
onClick: () => void K(),
|
|
234
236
|
disabled: q,
|
|
@@ -236,15 +238,15 @@ function w() {
|
|
|
236
238
|
})]
|
|
237
239
|
}) : null]
|
|
238
240
|
}),
|
|
239
|
-
|
|
240
|
-
open:
|
|
241
|
-
onOpenChange:
|
|
242
|
-
workspaceId:
|
|
243
|
-
projectId:
|
|
244
|
-
projectName:
|
|
241
|
+
E && D && F ? /* @__PURE__ */ S(e, {
|
|
242
|
+
open: F,
|
|
243
|
+
onOpenChange: I,
|
|
244
|
+
workspaceId: E,
|
|
245
|
+
projectId: D,
|
|
246
|
+
projectName: V?.name
|
|
245
247
|
}) : null
|
|
246
248
|
]
|
|
247
249
|
})
|
|
248
250
|
});
|
|
249
251
|
}
|
|
250
|
-
export {
|
|
252
|
+
export { T as ProjectMembersPage };
|