@burdenoff/microfe-workspaces 2026.1108.1 → 2026.1110.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/WorkspacesRoot.js +10 -9
- package/dist/WorkspacesRoutes.js +1 -2
- package/dist/components/CreateProjectDialog.js +22 -22
- package/dist/components/CreateWorkspaceDialog.js +8 -9
- package/dist/components/InviteMemberDialog.js +18 -23
- package/dist/components/MemberListItem.js +16 -17
- package/dist/components/ProjectCard.js +14 -15
- package/dist/components/ProjectMemberPickerDialog.js +92 -93
- package/dist/components/RenameProjectDialog.js +12 -17
- package/dist/components/WorkspaceCard.js +6 -7
- package/dist/components/WorkspaceContextPathSync.js +4 -5
- package/dist/components/WorkspacesErrorBoundary.js +6 -11
- package/dist/components/index.js +8 -7
- package/dist/components/tags/ProjectTagsWidget.js +56 -57
- package/dist/components/tags/WorkspaceTagsEditor.js +2 -3
- package/dist/constants/permissions.js +1 -2
- package/dist/generated/global-operations.js +1 -2
- package/dist/generated/wspace-operations.js +1 -2
- package/dist/hooks/index.js +9 -8
- package/dist/hooks/useMemberMutations.js +165 -166
- package/dist/hooks/useOpenWorkspace.js +1 -2
- package/dist/hooks/useOrgsWithPermission.js +2 -3
- package/dist/hooks/usePendingInvitations.d.ts +1 -1
- package/dist/hooks/usePendingInvitations.js +2 -3
- package/dist/hooks/useProjectMemberMutations.js +23 -24
- package/dist/hooks/useProjectMembers.d.ts +2 -2
- package/dist/hooks/useProjectMembers.js +2 -3
- package/dist/hooks/useProjectMutations.js +68 -69
- package/dist/hooks/useProjects.d.ts +3 -3
- package/dist/hooks/useProjects.js +5 -6
- package/dist/hooks/useScopedNavigation.js +1 -2
- package/dist/hooks/useTenants.d.ts +2 -2
- package/dist/hooks/useTenants.js +3 -4
- package/dist/hooks/useTr.js +1 -2
- package/dist/hooks/useWorkspaceActivity.d.ts +1 -1
- package/dist/hooks/useWorkspaceActivity.js +2 -3
- package/dist/hooks/useWorkspaceMembers.d.ts +5 -5
- package/dist/hooks/useWorkspaceMembers.js +7 -8
- package/dist/hooks/useWorkspaceMutations.js +70 -71
- package/dist/hooks/useWorkspacePermissions.js +1 -2
- package/dist/hooks/useWorkspaceRoles.d.ts +1 -1
- package/dist/hooks/useWorkspaceRoles.js +3 -4
- package/dist/hooks/useWorkspaces.d.ts +3 -3
- package/dist/hooks/useWorkspaces.js +4 -5
- package/dist/hooks/useWorkspacesEventEmitter.js +1 -2
- package/dist/hooks/useWorkspacesPageView.js +1 -2
- package/dist/index.js +15 -15
- package/dist/pages/ActivityListPage.js +28 -29
- package/dist/pages/CreateWorkspacePage.js +137 -138
- package/dist/pages/InviteAcceptancePage.js +65 -66
- package/dist/pages/MembersListPage.js +203 -204
- package/dist/pages/PendingInvitesPage.js +63 -64
- package/dist/pages/ProjectDetailPage.js +71 -72
- package/dist/pages/ProjectMembersPage.js +116 -117
- package/dist/pages/ProjectsListPage.js +62 -67
- package/dist/pages/WorkspaceDetailPage.js +153 -154
- package/dist/pages/WorkspaceInvitePage.js +88 -92
- package/dist/pages/WorkspaceSettingsPage.js +32 -33
- package/dist/pages/WorkspacesListPage.js +40 -41
- package/dist/pages/dashboard/DashboardCustomizer.js +98 -94
- package/dist/pages/dashboard/DashboardGrid.js +1 -2
- package/dist/pages/dashboard/DashboardPage.js +12 -13
- package/dist/pages/dashboard/WidgetWrapper.js +21 -21
- package/dist/pages/dashboard/config.js +3 -4
- package/dist/pages/dashboard/hooks/useDashboardData.d.ts +5 -5
- package/dist/pages/dashboard/hooks/useDashboardData.js +9 -10
- package/dist/pages/dashboard/hooks/useDashboardPreferences.js +7 -8
- package/dist/pages/dashboard/reorder.js +11 -14
- package/dist/pages/dashboard/widgets/AgentsWidget.js +13 -14
- package/dist/pages/dashboard/widgets/GroupsWidget.js +9 -10
- package/dist/pages/dashboard/widgets/MembersWidget.js +10 -11
- package/dist/pages/dashboard/widgets/ProjectsWidget.js +11 -12
- package/dist/pages/dashboard/widgets/QuickActionsWidget.js +28 -29
- package/dist/pages/dashboard/widgets/RecentActivityWidget.js +22 -23
- package/dist/pages/dashboard/widgets/SessionsWidget.js +28 -29
- package/dist/pages/dashboard/widgets/StorageWidget.js +19 -20
- package/dist/pages/dashboard/widgets/TagCloudWidget.js +9 -10
- package/dist/pages/dashboard/widgets/TipsWidget.js +5 -6
- package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +17 -18
- package/dist/pages/dashboard/widgets/VibesWidget.js +13 -14
- package/dist/pages/dashboard/widgets/WelcomeWidget.js +12 -13
- package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +16 -17
- package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +11 -12
- package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +17 -18
- package/dist/pages/dashboard/widgets/WorkspacesWidget.js +7 -8
- package/dist/pages/dashboard/widgets/tipsCatalog.js +1 -2
- package/dist/providers/WorkspacesProvider.js +1 -2
- package/dist/store/workspacesStore.d.ts +1 -1
- package/dist/store/workspacesStore.js +1 -2
- package/dist/test/happydom.d.ts +1 -0
- package/dist/translations/en.js +1 -2
- package/dist/utils/formatters.js +1 -2
- package/dist/utils/i18n.js +1 -2
- package/dist/utils/invitationDisplay.js +1 -2
- package/dist/utils/nativeBridge.js +1 -2
- package/dist/utils/pinnedRequest.js +2 -3
- package/dist/utils/projectTags.js +2 -3
- package/dist/utils/slug.js +1 -2
- package/dist/utils/telemetryError.js +13 -16
- package/dist/utils/tokenHelpers.js +1 -2
- package/dist/utils/workspaceBulkInviteCsv.js +3 -8
- package/package.json +72 -55
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { useWorkspacePermissions as
|
|
7
|
-
import {
|
|
1
|
+
import { ProjectMemberPickerDialog as e } from "../components/ProjectMemberPickerDialog.js";
|
|
2
|
+
import { useInfiniteProjectMembers as t } from "../hooks/useProjectMembers.js";
|
|
3
|
+
import { useProject as n } from "../hooks/useProjects.js";
|
|
4
|
+
import { useRemoveProjectMember as r } from "../hooks/useProjectMemberMutations.js";
|
|
5
|
+
import { useScopedNavigation as i } from "../hooks/useScopedNavigation.js";
|
|
6
|
+
import { useWorkspacePermissions as a } from "../hooks/useWorkspacePermissions.js";
|
|
7
|
+
import { useWorkspacesContext as ee } from "../providers/WorkspacesProvider.js";
|
|
8
8
|
import { formatRelativeTime as te } from "../utils/formatters.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
9
|
+
import { tWithFallback as o } from "../utils/i18n.js";
|
|
10
|
+
import { nativeConfirm as s, nativeImpact as c, nativeNotify as l } from "../utils/nativeBridge.js";
|
|
11
|
+
import { useWorkspacesPageView as u } from "../hooks/useWorkspacesPageView.js";
|
|
12
12
|
import { useMemo as d, useState as f } from "react";
|
|
13
|
-
import { ArrowLeft as ne, Search as re, UserMinus as
|
|
14
|
-
import { jsx as
|
|
15
|
-
import { Badge as
|
|
13
|
+
import { ArrowLeft as ne, Search as re, UserMinus as p, UserPlus as m } from "lucide-react";
|
|
14
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
15
|
+
import { Badge as _, Button as v, IllustratedEmptyState as y, Input as b, PageContainer as x, PagePurpose as ie, Skeleton as S } from "@burdenoff/fe-libs/ui";
|
|
16
16
|
import { useI18n as ae } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
17
17
|
import { useNavigate as oe, useParams as se } from "react-router";
|
|
18
18
|
import { ActorIdentity as ce, useActorProfiles as le } from "@burdenoff/fe-libs/shared";
|
|
19
|
-
|
|
19
|
+
// src/pages/ProjectMembersPage.tsx
|
|
20
20
|
var ue = 100;
|
|
21
21
|
function C(e, t) {
|
|
22
22
|
let n = e[t.userId];
|
|
@@ -29,22 +29,22 @@ function C(e, t) {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
function w() {
|
|
32
|
-
let { t: w } = ae(), de = oe(), { workspaceId: T, projectId: E } = se(), { basePath:
|
|
33
|
-
|
|
32
|
+
let { t: w } = ae(), de = oe(), { workspaceId: T, projectId: E } = se(), { basePath: D = "/workspaces", apiGatewayUrl: O, authToken: k, organizationId: A } = ee(), { withCurrentSearch: j } = i(), [M, N] = f(""), [P, F] = f(!1), [I, L] = f(null), [R, z] = f(null);
|
|
33
|
+
u("workspaces.project-members", {
|
|
34
34
|
workspaceId: T,
|
|
35
35
|
projectId: E,
|
|
36
36
|
requireParams: !0
|
|
37
37
|
});
|
|
38
|
-
let { data:
|
|
38
|
+
let { data: B, isLoading: V, error: H } = n(E || "", T), { data: U, isLoading: fe, error: W, hasNextPage: G, fetchNextPage: K, isFetchingNextPage: q } = t(E || "", T, ue), { mutate: pe, isPending: J } = r(T), { canViewProject: me, canListProjectMembers: he, canAddProjectMember: Y, canRemoveProjectMember: ge, isLoading: _e } = a(), X = d(() => U?.pages.flatMap((e) => e.items) ?? [], [U?.pages]), Z = U?.pages[0]?.total ?? X.length, ve = d(() => X.map((e) => ({
|
|
39
39
|
actorId: e.userId,
|
|
40
40
|
actorType: "user"
|
|
41
|
-
})), [X]), {
|
|
42
|
-
apiGatewayUrl:
|
|
43
|
-
authToken:
|
|
44
|
-
orgId:
|
|
41
|
+
})), [X]), Q = le(ve, {
|
|
42
|
+
apiGatewayUrl: O,
|
|
43
|
+
authToken: k,
|
|
44
|
+
orgId: A,
|
|
45
45
|
workspaceId: T
|
|
46
46
|
}), $ = d(() => {
|
|
47
|
-
let e =
|
|
47
|
+
let e = M.trim().toLowerCase();
|
|
48
48
|
return e ? X.filter((t) => {
|
|
49
49
|
let n = C(Q, t);
|
|
50
50
|
return n.name.toLowerCase().includes(e) || n.email?.toLowerCase().includes(e) || t.userId.toLowerCase().includes(e);
|
|
@@ -52,174 +52,174 @@ function w() {
|
|
|
52
52
|
}, [
|
|
53
53
|
Q,
|
|
54
54
|
X,
|
|
55
|
-
|
|
55
|
+
M
|
|
56
56
|
]);
|
|
57
|
-
if (
|
|
57
|
+
if (_e) return /* @__PURE__ */ g("div", {
|
|
58
58
|
className: "space-y-4 p-6",
|
|
59
59
|
children: [
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ h(S, { className: "h-10 w-40" }),
|
|
61
|
+
/* @__PURE__ */ h(S, { className: "h-10 w-64" }),
|
|
62
|
+
/* @__PURE__ */ h(S, { className: "h-40 w-full" })
|
|
63
63
|
]
|
|
64
64
|
});
|
|
65
|
-
if (!
|
|
65
|
+
if (!me || !he) return /* @__PURE__ */ h("div", {
|
|
66
66
|
className: "flex min-h-[400px] items-center justify-center",
|
|
67
|
-
children: /* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ g("div", {
|
|
68
68
|
className: "space-y-2 text-center",
|
|
69
|
-
children: [/* @__PURE__ */
|
|
69
|
+
children: [/* @__PURE__ */ h("h2", {
|
|
70
70
|
className: "text-lg font-semibold",
|
|
71
|
-
children:
|
|
72
|
-
}), /* @__PURE__ */
|
|
71
|
+
children: o(w, "projectMembers.accessDenied", "Access Denied")
|
|
72
|
+
}), /* @__PURE__ */ h("p", {
|
|
73
73
|
className: "text-sm text-text-secondary",
|
|
74
|
-
children:
|
|
74
|
+
children: o(w, "projectMembers.noPermission", "You don't have permission to manage project members.")
|
|
75
75
|
})]
|
|
76
76
|
})
|
|
77
77
|
});
|
|
78
|
-
let
|
|
79
|
-
de(
|
|
80
|
-
},
|
|
78
|
+
let ye = () => {
|
|
79
|
+
de(j(`${D}/${T}/projects/${E}`));
|
|
80
|
+
}, be = async (e) => {
|
|
81
81
|
let t = C(Q, e);
|
|
82
|
-
|
|
83
|
-
let
|
|
84
|
-
title:
|
|
85
|
-
message:
|
|
86
|
-
okButtonTitle:
|
|
87
|
-
cancelButtonTitle:
|
|
82
|
+
c("medium"), z(null);
|
|
83
|
+
let n = `${o(w, "projectMembers.removeConfirmPrefix", "Remove")} ${t.name} ${o(w, "projectMembers.removeConfirmSuffix", "from this project?")}`, r = await s({
|
|
84
|
+
title: o(w, "projectMembers.removeConfirmTitle", "Remove project member"),
|
|
85
|
+
message: n,
|
|
86
|
+
okButtonTitle: o(w, "projectMembers.removeAction", "Remove"),
|
|
87
|
+
cancelButtonTitle: o(w, "projectMembers.cancel", "Cancel")
|
|
88
88
|
});
|
|
89
|
-
(
|
|
89
|
+
(r === null ? window.confirm(n) : r) && (L(e.userId), pe({
|
|
90
90
|
projectId: e.projectId,
|
|
91
91
|
userId: e.userId
|
|
92
92
|
}, {
|
|
93
93
|
onSuccess: () => {
|
|
94
|
-
|
|
94
|
+
l("success"), L(null);
|
|
95
95
|
},
|
|
96
96
|
onError: () => {
|
|
97
|
-
|
|
97
|
+
l("error"), z(o(w, "projectMembers.removeError", "Failed to remove project member. Please try again.")), L(null);
|
|
98
98
|
}
|
|
99
99
|
}));
|
|
100
100
|
};
|
|
101
|
-
return /* @__PURE__ */
|
|
101
|
+
return /* @__PURE__ */ h(x, {
|
|
102
102
|
padded: !1,
|
|
103
|
-
children: /* @__PURE__ */
|
|
103
|
+
children: /* @__PURE__ */ g("div", {
|
|
104
104
|
className: "space-y-4 p-3 sm:space-y-6 sm:p-6",
|
|
105
105
|
children: [
|
|
106
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ g("div", {
|
|
107
107
|
className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
108
|
-
children: [/* @__PURE__ */
|
|
109
|
-
/* @__PURE__ */
|
|
108
|
+
children: [/* @__PURE__ */ g("div", { children: [
|
|
109
|
+
/* @__PURE__ */ g(v, {
|
|
110
110
|
variant: "ghost",
|
|
111
|
-
onClick:
|
|
111
|
+
onClick: ye,
|
|
112
112
|
className: "mb-2 -ml-2 gap-2",
|
|
113
|
-
children: [/* @__PURE__ */
|
|
113
|
+
children: [/* @__PURE__ */ h(ne, { size: 20 }), o(w, "projectMembers.backToProject", "Back to Project")]
|
|
114
114
|
}),
|
|
115
|
-
/* @__PURE__ */
|
|
115
|
+
/* @__PURE__ */ h("h1", {
|
|
116
116
|
className: "text-2xl font-bold sm:text-3xl",
|
|
117
|
-
children:
|
|
117
|
+
children: o(w, "projectMembers.pageTitle", "Project Members")
|
|
118
118
|
}),
|
|
119
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ h("p", {
|
|
120
120
|
className: "text-sm text-text-secondary sm:text-base",
|
|
121
|
-
children:
|
|
121
|
+
children: B?.name ? `${B.name} · ${o(w, "projectMembers.pageSubtitle", "Only existing workspace members can be added to this project.")}` : o(w, "projectMembers.pageSubtitle", "Only existing workspace members can be added to this project.")
|
|
122
122
|
})
|
|
123
|
-
] }), /* @__PURE__ */
|
|
123
|
+
] }), /* @__PURE__ */ g("div", {
|
|
124
124
|
className: "flex items-center gap-2",
|
|
125
|
-
children: [/* @__PURE__ */
|
|
125
|
+
children: [/* @__PURE__ */ h(_, {
|
|
126
126
|
variant: "secondary",
|
|
127
127
|
children: Z
|
|
128
|
-
}),
|
|
129
|
-
onClick: () =>
|
|
128
|
+
}), Y ? /* @__PURE__ */ g(v, {
|
|
129
|
+
onClick: () => F(!0),
|
|
130
130
|
disabled: !T || !E,
|
|
131
|
-
children: [/* @__PURE__ */ m
|
|
131
|
+
children: [/* @__PURE__ */ h(m, { className: "mr-2 size-4" }), o(w, "projectMembers.addMember", "Add Member")]
|
|
132
132
|
}) : null]
|
|
133
133
|
})]
|
|
134
134
|
}),
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ h(ie, { children: o(w, "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.") }),
|
|
136
|
+
/* @__PURE__ */ g("div", {
|
|
137
137
|
className: "relative",
|
|
138
|
-
children: [/* @__PURE__ */
|
|
139
|
-
value:
|
|
140
|
-
onChange: (e) =>
|
|
141
|
-
placeholder:
|
|
138
|
+
children: [/* @__PURE__ */ h(re, { className: "absolute left-3 top-1/2 size-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ h(b, {
|
|
139
|
+
value: M,
|
|
140
|
+
onChange: (e) => N(e.target.value),
|
|
141
|
+
placeholder: o(w, "projectMembers.searchPlaceholder", "Search project members"),
|
|
142
142
|
className: "pl-9"
|
|
143
143
|
})]
|
|
144
144
|
}),
|
|
145
|
-
|
|
145
|
+
R ? /* @__PURE__ */ h("div", {
|
|
146
146
|
className: "rounded-lg border border-status-error-border/20 bg-status-error-bg/10 p-4 text-sm text-status-error-text",
|
|
147
|
-
children:
|
|
147
|
+
children: R
|
|
148
148
|
}) : null,
|
|
149
|
-
|
|
149
|
+
V || fe ? /* @__PURE__ */ h("div", {
|
|
150
150
|
className: "space-y-4",
|
|
151
|
-
children: Array.from({ length: 4 }).map((e, t) => /* @__PURE__ */
|
|
151
|
+
children: Array.from({ length: 4 }).map((e, t) => /* @__PURE__ */ g("div", {
|
|
152
152
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
153
|
-
children: [/* @__PURE__ */
|
|
153
|
+
children: [/* @__PURE__ */ h(S, { className: "h-5 w-40" }), /* @__PURE__ */ h(S, { className: "mt-2 h-4 w-56" })]
|
|
154
154
|
}, t))
|
|
155
|
-
}) :
|
|
155
|
+
}) : H || W ? /* @__PURE__ */ h("div", {
|
|
156
156
|
className: "rounded-lg border border-status-error-border/20 bg-status-error-bg/10 p-4 text-sm text-status-error-text",
|
|
157
|
-
children:
|
|
158
|
-
}) : $.length === 0 ? /* @__PURE__ */
|
|
159
|
-
illustration:
|
|
160
|
-
title:
|
|
161
|
-
description:
|
|
162
|
-
action:
|
|
157
|
+
children: W instanceof Error && W.message || H instanceof Error && H.message || o(w, "projectMembers.loadError", "Failed to load project members")
|
|
158
|
+
}) : $.length === 0 ? /* @__PURE__ */ h(y, {
|
|
159
|
+
illustration: M ? "empty-search" : "empty-people",
|
|
160
|
+
title: M ? o(w, "projectMembers.noResultsTitle", "No matching members found") : o(w, "projectMembers.emptyTitle", "No project members yet"),
|
|
161
|
+
description: M ? o(w, "projectMembers.noResultsSubtitle", "Try a different search to find a project member.") : o(w, "projectMembers.emptySubtitle", "Add workspace members to this project so they can collaborate here."),
|
|
162
|
+
action: G || !M && Y ? /* @__PURE__ */ g("div", {
|
|
163
163
|
className: "flex flex-wrap items-center justify-center gap-2",
|
|
164
|
-
children: [
|
|
164
|
+
children: [G ? /* @__PURE__ */ h(v, {
|
|
165
165
|
variant: "outline",
|
|
166
|
-
onClick: () => void
|
|
167
|
-
disabled:
|
|
168
|
-
children:
|
|
169
|
-
}) : null, !
|
|
170
|
-
onClick: () =>
|
|
171
|
-
children: [/* @__PURE__ */ m
|
|
166
|
+
onClick: () => void K(),
|
|
167
|
+
disabled: q,
|
|
168
|
+
children: q ? "Loading more…" : "Load More Members"
|
|
169
|
+
}) : null, !M && Y ? /* @__PURE__ */ g(v, {
|
|
170
|
+
onClick: () => F(!0),
|
|
171
|
+
children: [/* @__PURE__ */ h(m, { className: "mr-2 size-4" }), o(w, "projectMembers.addFirstMember", "Add First Member")]
|
|
172
172
|
}) : null]
|
|
173
173
|
}) : void 0
|
|
174
|
-
}) : /* @__PURE__ */
|
|
174
|
+
}) : /* @__PURE__ */ g("div", {
|
|
175
175
|
className: "space-y-3",
|
|
176
176
|
children: [$.map((e) => {
|
|
177
|
-
let t = Q[e.userId],
|
|
178
|
-
return /* @__PURE__ */
|
|
177
|
+
let t = Q[e.userId], n = C(Q, e), r = J && I === e.userId;
|
|
178
|
+
return /* @__PURE__ */ g("div", {
|
|
179
179
|
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__ */
|
|
180
|
+
children: [/* @__PURE__ */ g("div", {
|
|
181
181
|
className: "min-w-0 flex-1",
|
|
182
|
-
children: [t ? /* @__PURE__ */
|
|
182
|
+
children: [t ? /* @__PURE__ */ h(ce, {
|
|
183
183
|
profile: t,
|
|
184
184
|
variant: "cell"
|
|
185
|
-
}) : /* @__PURE__ */
|
|
185
|
+
}) : /* @__PURE__ */ g("div", {
|
|
186
186
|
className: "min-w-0",
|
|
187
|
-
children: [/* @__PURE__ */
|
|
187
|
+
children: [/* @__PURE__ */ h("p", {
|
|
188
188
|
className: "truncate font-medium",
|
|
189
|
-
children:
|
|
190
|
-
}),
|
|
189
|
+
children: n.name
|
|
190
|
+
}), n.email ? /* @__PURE__ */ h("p", {
|
|
191
191
|
className: "truncate text-sm text-text-secondary",
|
|
192
|
-
children:
|
|
193
|
-
}) : /* @__PURE__ */
|
|
192
|
+
children: n.email
|
|
193
|
+
}) : /* @__PURE__ */ h("p", {
|
|
194
194
|
className: "truncate text-xs text-text-secondary",
|
|
195
195
|
children: e.userId
|
|
196
196
|
})]
|
|
197
|
-
}), /* @__PURE__ */
|
|
197
|
+
}), /* @__PURE__ */ g("div", {
|
|
198
198
|
className: "mt-1 flex flex-wrap items-center gap-2",
|
|
199
|
-
children: [/* @__PURE__ */
|
|
199
|
+
children: [/* @__PURE__ */ h(_, {
|
|
200
200
|
variant: "secondary",
|
|
201
201
|
className: "text-xs",
|
|
202
|
-
children:
|
|
203
|
-
}), /* @__PURE__ */
|
|
202
|
+
children: o(w, "projectMembers.memberBadge", "Project member")
|
|
203
|
+
}), /* @__PURE__ */ g("span", {
|
|
204
204
|
className: "text-xs text-text-secondary",
|
|
205
205
|
children: [
|
|
206
|
-
|
|
206
|
+
o(w, "projectMembers.addedLabel", "Added"),
|
|
207
207
|
" ",
|
|
208
208
|
te(e.createdAt)
|
|
209
209
|
]
|
|
210
210
|
})]
|
|
211
211
|
})]
|
|
212
|
-
}),
|
|
212
|
+
}), ge ? /* @__PURE__ */ g(v, {
|
|
213
213
|
variant: "outline",
|
|
214
214
|
size: "sm",
|
|
215
|
-
onClick: () => void
|
|
216
|
-
disabled:
|
|
217
|
-
children: [/* @__PURE__ */
|
|
215
|
+
onClick: () => void be(e),
|
|
216
|
+
disabled: J,
|
|
217
|
+
children: [/* @__PURE__ */ h(p, { className: "mr-2 size-4" }), r ? o(w, "projectMembers.removing", "Removing...") : o(w, "projectMembers.removeAction", "Remove")]
|
|
218
218
|
}) : null]
|
|
219
219
|
}, e.id);
|
|
220
|
-
}),
|
|
220
|
+
}), G ? /* @__PURE__ */ g("div", {
|
|
221
221
|
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__ */
|
|
222
|
+
children: [/* @__PURE__ */ g("p", {
|
|
223
223
|
className: "text-sm text-text-secondary",
|
|
224
224
|
children: [
|
|
225
225
|
"Showing ",
|
|
@@ -228,24 +228,23 @@ function w() {
|
|
|
228
228
|
Z,
|
|
229
229
|
" project members."
|
|
230
230
|
]
|
|
231
|
-
}), /* @__PURE__ */
|
|
231
|
+
}), /* @__PURE__ */ h(v, {
|
|
232
232
|
variant: "outline",
|
|
233
|
-
onClick: () => void
|
|
234
|
-
disabled:
|
|
235
|
-
children:
|
|
233
|
+
onClick: () => void K(),
|
|
234
|
+
disabled: q,
|
|
235
|
+
children: q ? "Loading more…" : "Load More Members"
|
|
236
236
|
})]
|
|
237
237
|
}) : null]
|
|
238
238
|
}),
|
|
239
|
-
T && E &&
|
|
240
|
-
open:
|
|
241
|
-
onOpenChange:
|
|
239
|
+
T && E && P ? /* @__PURE__ */ h(e, {
|
|
240
|
+
open: P,
|
|
241
|
+
onOpenChange: F,
|
|
242
242
|
workspaceId: T,
|
|
243
243
|
projectId: E,
|
|
244
|
-
projectName:
|
|
244
|
+
projectName: B?.name
|
|
245
245
|
}) : null
|
|
246
246
|
]
|
|
247
247
|
})
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
|
-
//#endregion
|
|
251
250
|
export { w as ProjectMembersPage };
|