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