@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,13 +1,13 @@
1
1
  import { useWorkspacesStore as e } from "../store/workspacesStore.js";
2
- import { tWithFallback as t } from "../utils/i18n.js";
3
- import { useWorkspacesPageView as n } from "../hooks/useWorkspacesPageView.js";
4
- import { nativeConfirm as r, nativeImpact as i } from "../utils/nativeBridge.js";
5
- import { useWorkspacePermissions as a } from "../hooks/useWorkspacePermissions.js";
6
- import { useMyProjects as o } from "../hooks/useProjects.js";
7
- import { useArchiveProject as s, useDeleteProject as c, useUnarchiveProject as l } from "../hooks/useProjectMutations.js";
2
+ import { nativeConfirm as t, nativeImpact as n } from "../utils/nativeBridge.js";
3
+ import { useMyProjects as r } from "../hooks/useProjects.js";
4
+ import { useArchiveProject as i, useDeleteProject as a, useUnarchiveProject as o } from "../hooks/useProjectMutations.js";
5
+ import { ProjectCard as s } from "../components/ProjectCard.js";
6
+ import { CreateProjectDialog as c } from "../components/CreateProjectDialog.js";
7
+ import { useWorkspacePermissions as l } from "../hooks/useWorkspacePermissions.js";
8
+ import { useWorkspacesPageView as u } from "../hooks/useWorkspacesPageView.js";
9
+ import { tWithFallback as d } from "../utils/i18n.js";
8
10
  import { getProjectDisplayTags as ee } from "../utils/projectTags.js";
9
- import { ProjectCard as u } from "../components/ProjectCard.js";
10
- import { CreateProjectDialog as d } from "../components/CreateProjectDialog.js";
11
11
  import { useEffect as f, useMemo as p, useState as m } from "react";
12
12
  import { Grid3x3 as te, List as ne, Plus as h, Search as re } from "lucide-react";
13
13
  import { Fragment as ie, jsx as g, jsxs as _ } from "react/jsx-runtime";
@@ -16,10 +16,10 @@ import { useI18n as ue } from "@burdenoff/fe-libs/shared/providers/shell/I18nPro
16
16
  import { useParams as de } from "react-router";
17
17
  import { useDebounce as fe } from "@burdenoff/fe-libs/shared/hooks";
18
18
  import { TagBadge as pe } from "@burdenoff/fe-libs/tag";
19
- //#region src/pages/ProjectsListPage.tsx
19
+ // src/pages/ProjectsListPage.tsx
20
20
  function D() {
21
21
  let { t: D } = ue(), { workspaceId: O } = de();
22
- n("workspaces.projects", {
22
+ u("workspaces.projects", {
23
23
  workspaceId: O,
24
24
  requireParams: !0
25
25
  });
@@ -27,16 +27,12 @@ function D() {
27
27
  f(() => {
28
28
  M({ search: H });
29
29
  }, [H, M]), f(() => {
30
- if (R.length === 0) {
31
- M({
32
- tagIds: void 0,
33
- tagHierarchyPaths: void 0,
34
- matchAllTags: void 0,
35
- includeDescendants: void 0
36
- });
37
- return;
38
- }
39
- M({
30
+ R.length === 0 ? M({
31
+ tagIds: void 0,
32
+ tagHierarchyPaths: void 0,
33
+ matchAllTags: void 0,
34
+ includeDescendants: void 0
35
+ }) : M({
40
36
  tagIds: R.map((e) => e.tagId),
41
37
  tagHierarchyPaths: R.map((e) => e.hierarchyPath).filter((e) => typeof e == "string" && e.length > 0),
42
38
  matchAllTags: B,
@@ -47,7 +43,7 @@ function D() {
47
43
  B,
48
44
  M
49
45
  ]), f(() => () => F(), [F]);
50
- let { data: U, isLoading: W, error: G } = o({
46
+ let { data: U, isLoading: W, error: G } = r({
51
47
  limit: 500,
52
48
  offset: 0
53
49
  }), K = p(() => {
@@ -67,7 +63,7 @@ function D() {
67
63
  U?.hasMore,
68
64
  j,
69
65
  O
70
- ]), { mutateAsync: _e } = s(O), { mutateAsync: ve } = l(O), { mutateAsync: ye } = c(O), q = p(() => K?.items.filter((e) => N.has(e.id)) ?? [], [K?.items, N]), J = p(() => q.filter((e) => !e.archived), [q]), Y = p(() => q.filter((e) => e.archived), [q]), X = (K?.items.length ?? 0) > 0 && (K?.items ?? []).every((e) => N.has(e.id)), be = (K?.items ?? []).some((e) => N.has(e.id)) && !X, { canCreateProject: Z, canUpdateProject: xe, canDeleteProject: Se, canArchiveProject: Q, isLoading: Ce } = a();
66
+ ]), { mutateAsync: _e } = i(O), { mutateAsync: ve } = o(O), { mutateAsync: ye } = a(O), q = p(() => K?.items.filter((e) => N.has(e.id)) ?? [], [K?.items, N]), J = p(() => q.filter((e) => !e.archived), [q]), Y = p(() => q.filter((e) => e.archived), [q]), X = (K?.items.length ?? 0) > 0 && (K?.items ?? []).every((e) => N.has(e.id)), be = (K?.items ?? []).some((e) => N.has(e.id)) && !X, { canCreateProject: Z, canUpdateProject: xe, canDeleteProject: Se, canArchiveProject: Q, isLoading: Ce } = l();
71
67
  if (Ce) return /* @__PURE__ */ _("div", {
72
68
  className: "space-y-4 p-6",
73
69
  children: [/* @__PURE__ */ g(E, { className: "h-10 w-1/3" }), /* @__PURE__ */ _("div", {
@@ -109,10 +105,10 @@ function D() {
109
105
  className: "flex flex-col sm:flex-row sm:items-center justify-between gap-4",
110
106
  children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("h1", {
111
107
  className: "text-2xl sm:text-3xl font-bold",
112
- children: t(D, "projectsList.pageTitle", "Projects")
108
+ children: d(D, "projectsList.pageTitle", "Projects")
113
109
  }), /* @__PURE__ */ g("p", {
114
110
  className: "text-text-secondary",
115
- children: t(D, "projectsList.pageSubtitle", "Manage and organize your projects")
111
+ children: d(D, "projectsList.pageSubtitle", "Manage and organize your projects")
116
112
  })] }), /* @__PURE__ */ _("div", {
117
113
  className: "flex items-center gap-2",
118
114
  children: [/* @__PURE__ */ _("div", {
@@ -122,26 +118,26 @@ function D() {
122
118
  size: "sm",
123
119
  onClick: () => A("grid"),
124
120
  className: "size-8 p-0",
125
- "aria-label": t(D, "projectsList.gridViewAriaLabel", "Show projects in grid view"),
121
+ "aria-label": d(D, "projectsList.gridViewAriaLabel", "Show projects in grid view"),
126
122
  children: /* @__PURE__ */ g(te, { size: 16 })
127
123
  }), /* @__PURE__ */ g(v, {
128
124
  variant: k === "list" ? "secondary" : "ghost",
129
125
  size: "sm",
130
126
  onClick: () => A("list"),
131
127
  className: "size-8 p-0",
132
- "aria-label": t(D, "projectsList.listViewAriaLabel", "Show projects in list view"),
128
+ "aria-label": d(D, "projectsList.listViewAriaLabel", "Show projects in list view"),
133
129
  children: /* @__PURE__ */ g(ne, { size: 16 })
134
130
  })]
135
131
  }), Z && /* @__PURE__ */ _(v, {
136
132
  onClick: we,
137
133
  children: [/* @__PURE__ */ g(h, { className: "size-4 sm:mr-2" }), /* @__PURE__ */ g("span", {
138
134
  className: "hidden sm:inline",
139
- children: t(D, "projectsList.createProject", "Create Project")
135
+ children: d(D, "projectsList.createProject", "Create Project")
140
136
  })]
141
137
  })]
142
138
  })]
143
139
  }),
144
- /* @__PURE__ */ g(le, { children: t(D, "projectsList.purpose", "Projects are the individual streams of work inside your workspaces — a launch, a client engagement, a feature. Each carries its own members, tags and activity. Use search, status and tag filters to find the one you need, or create a new project to start tracking work.") }),
140
+ /* @__PURE__ */ g(le, { children: d(D, "projectsList.purpose", "Projects are the individual streams of work inside your workspaces — a launch, a client engagement, a feature. Each carries its own members, tags and activity. Use search, status and tag filters to find the one you need, or create a new project to start tracking work.") }),
145
141
  /* @__PURE__ */ _("div", {
146
142
  className: "flex flex-col sm:flex-row gap-3",
147
143
  children: [
@@ -151,7 +147,7 @@ function D() {
151
147
  className: "absolute left-3 top-1/2 transform -translate-y-1/2 text-text-secondary",
152
148
  size: 18
153
149
  }), /* @__PURE__ */ g(se, {
154
- placeholder: t(D, "projectsList.searchPlaceholder", "Search projects..."),
150
+ placeholder: d(D, "projectsList.searchPlaceholder", "Search projects..."),
155
151
  value: I,
156
152
  onChange: (e) => L(e.target.value),
157
153
  className: "pl-[3.25rem]"
@@ -162,19 +158,19 @@ function D() {
162
158
  onValueChange: Te,
163
159
  children: [/* @__PURE__ */ g(w, {
164
160
  className: "w-full sm:w-[180px]",
165
- children: /* @__PURE__ */ g(T, { placeholder: t(D, "projectsList.filterByStatus", "Filter by status") })
161
+ children: /* @__PURE__ */ g(T, { placeholder: d(D, "projectsList.filterByStatus", "Filter by status") })
166
162
  }), /* @__PURE__ */ _(S, { children: [
167
163
  /* @__PURE__ */ g(C, {
168
164
  value: "all",
169
- children: t(D, "projectsList.statusAll", "All Statuses")
165
+ children: d(D, "projectsList.statusAll", "All Statuses")
170
166
  }),
171
167
  /* @__PURE__ */ g(C, {
172
168
  value: "ACTIVE",
173
- children: t(D, "projectsList.statusActive", "Active")
169
+ children: d(D, "projectsList.statusActive", "Active")
174
170
  }),
175
171
  /* @__PURE__ */ g(C, {
176
172
  value: "INACTIVE",
177
- children: t(D, "projectsList.statusInactive", "Inactive")
173
+ children: d(D, "projectsList.statusInactive", "Inactive")
178
174
  })
179
175
  ] })]
180
176
  }),
@@ -183,26 +179,26 @@ function D() {
183
179
  onValueChange: Ee,
184
180
  children: [/* @__PURE__ */ g(w, {
185
181
  className: "w-full sm:w-[180px]",
186
- children: /* @__PURE__ */ g(T, { placeholder: t(D, "projectsList.filterByArchive", "Filter by archive") })
182
+ children: /* @__PURE__ */ g(T, { placeholder: d(D, "projectsList.filterByArchive", "Filter by archive") })
187
183
  }), /* @__PURE__ */ _(S, { children: [
188
184
  /* @__PURE__ */ g(C, {
189
185
  value: "all",
190
- children: t(D, "projectsList.archiveAll", "All Projects")
186
+ children: d(D, "projectsList.archiveAll", "All Projects")
191
187
  }),
192
188
  /* @__PURE__ */ g(C, {
193
189
  value: "false",
194
- children: t(D, "projectsList.archiveActiveProjects", "Active Projects")
190
+ children: d(D, "projectsList.archiveActiveProjects", "Active Projects")
195
191
  }),
196
192
  /* @__PURE__ */ g(C, {
197
193
  value: "true",
198
- children: t(D, "projectsList.archiveArchived", "Archived")
194
+ children: d(D, "projectsList.archiveArchived", "Archived")
199
195
  })
200
196
  ] })]
201
197
  }),
202
198
  (j.search || j.status || j.archived !== void 0 || R.length > 0) && /* @__PURE__ */ g(v, {
203
199
  variant: "outline",
204
200
  onClick: De,
205
- children: t(D, "projectsList.clearFilters", "Clear Filters")
201
+ children: d(D, "projectsList.clearFilters", "Clear Filters")
206
202
  })
207
203
  ]
208
204
  }),
@@ -212,22 +208,22 @@ function D() {
212
208
  className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
213
209
  children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
214
210
  className: "text-sm font-medium",
215
- children: t(D, "projectsList.activeTagFilters", "Active tag filters")
211
+ children: d(D, "projectsList.activeTagFilters", "Active tag filters")
216
212
  }), /* @__PURE__ */ g("p", {
217
213
  className: "text-xs text-text-secondary",
218
- children: t(D, "projectsList.activeTagFiltersDescription", "Click a project tag to add or remove it from the current filter set.")
214
+ children: d(D, "projectsList.activeTagFiltersDescription", "Click a project tag to add or remove it from the current filter set.")
219
215
  })] }), /* @__PURE__ */ _(x, {
220
216
  value: B ? "all" : "any",
221
217
  onValueChange: (e) => V(e === "all"),
222
218
  children: [/* @__PURE__ */ g(w, {
223
219
  className: "w-full sm:w-[180px]",
224
- children: /* @__PURE__ */ g(T, { placeholder: t(D, "projectsList.tagMatchMode", "Tag match mode") })
220
+ children: /* @__PURE__ */ g(T, { placeholder: d(D, "projectsList.tagMatchMode", "Tag match mode") })
225
221
  }), /* @__PURE__ */ _(S, { children: [/* @__PURE__ */ g(C, {
226
222
  value: "all",
227
- children: t(D, "projectsList.tagMatchAll", "Match all tags")
223
+ children: d(D, "projectsList.tagMatchAll", "Match all tags")
228
224
  }), /* @__PURE__ */ g(C, {
229
225
  value: "any",
230
- children: t(D, "projectsList.tagMatchAny", "Match any tag")
226
+ children: d(D, "projectsList.tagMatchAny", "Match any tag")
231
227
  })] })]
232
228
  })]
233
229
  }), /* @__PURE__ */ g("div", {
@@ -253,10 +249,10 @@ function D() {
253
249
  className: "flex flex-col items-center justify-center py-8 text-center",
254
250
  children: [/* @__PURE__ */ g("p", {
255
251
  className: "text-status-error-text font-semibold mb-2",
256
- children: t(D, "projectsList.errorLoading", "Error loading projects")
252
+ children: d(D, "projectsList.errorLoading", "Error loading projects")
257
253
  }), /* @__PURE__ */ g("p", {
258
254
  className: "text-sm text-text-secondary",
259
- children: G instanceof Error ? G.message : t(D, "projectsList.unknownError", "An unknown error occurred")
255
+ children: G instanceof Error ? G.message : d(D, "projectsList.unknownError", "An unknown error occurred")
260
256
  })]
261
257
  })
262
258
  })
@@ -285,14 +281,14 @@ function D() {
285
281
  className: "pt-6",
286
282
  children: /* @__PURE__ */ g(oe, {
287
283
  illustration: j.search ? "empty-search" : "empty-data",
288
- title: t(D, "projectsList.noProjectsFound", "No projects found"),
289
- description: j.search ? t(D, "projectsList.adjustSearchOrFilters", "Try adjusting your search or filters") : t(D, "projectsList.createFirstProject", "Create your first project to get started organizing your work"),
284
+ title: d(D, "projectsList.noProjectsFound", "No projects found"),
285
+ description: j.search ? d(D, "projectsList.adjustSearchOrFilters", "Try adjusting your search or filters") : d(D, "projectsList.createFirstProject", "Create your first project to get started organizing your work"),
290
286
  action: !j.search && Z ? /* @__PURE__ */ _(v, {
291
287
  onClick: we,
292
288
  children: [/* @__PURE__ */ g(h, {
293
289
  size: 16,
294
290
  className: "mr-2"
295
- }), t(D, "projectsList.createProject", "Create Project")]
291
+ }), d(D, "projectsList.createProject", "Create Project")]
296
292
  }) : void 0
297
293
  })
298
294
  })
@@ -309,9 +305,9 @@ function D() {
309
305
  e && (e.indeterminate = be && !X);
310
306
  },
311
307
  onChange: (e) => Oe(e.target.checked),
312
- "aria-label": t(D, "projectsList.selectAllAriaLabel", "Select all projects"),
308
+ "aria-label": d(D, "projectsList.selectAllAriaLabel", "Select all projects"),
313
309
  className: "size-4 rounded border-border-subtle text-primary"
314
- }), /* @__PURE__ */ g("span", { children: t(D, "projectsList.selectAllVisible", "Select all visible") })]
310
+ }), /* @__PURE__ */ g("span", { children: d(D, "projectsList.selectAllVisible", "Select all visible") })]
315
311
  }), /* @__PURE__ */ _("div", {
316
312
  className: "flex flex-wrap items-center gap-2",
317
313
  children: [
@@ -320,14 +316,14 @@ function D() {
320
316
  children: [
321
317
  N.size,
322
318
  " ",
323
- t(D, "projectsList.selected", "selected")
319
+ d(D, "projectsList.selected", "selected")
324
320
  ]
325
321
  }),
326
322
  N.size > 0 && /* @__PURE__ */ g(v, {
327
323
  variant: "ghost",
328
324
  size: "sm",
329
325
  onClick: F,
330
- children: t(D, "projectsList.clearSelection", "Clear selection")
326
+ children: d(D, "projectsList.clearSelection", "Clear selection")
331
327
  }),
332
328
  O && Q && /* @__PURE__ */ _(v, {
333
329
  variant: "outline",
@@ -336,7 +332,7 @@ function D() {
336
332
  J.length !== 0 && (await Promise.allSettled(J.map((e) => _e(e.id))), F());
337
333
  },
338
334
  disabled: J.length === 0,
339
- children: [t(D, "projectsList.archiveSelected", "Archive Selected"), J.length > 0 ? ` (${J.length})` : ""]
335
+ children: [d(D, "projectsList.archiveSelected", "Archive Selected"), J.length > 0 ? ` (${J.length})` : ""]
340
336
  }),
341
337
  O && Q && /* @__PURE__ */ _(v, {
342
338
  variant: "outline",
@@ -345,32 +341,32 @@ function D() {
345
341
  Y.length !== 0 && (await Promise.allSettled(Y.map((e) => ve(e.id))), F());
346
342
  },
347
343
  disabled: Y.length === 0,
348
- children: [t(D, "projectsList.unarchiveSelected", "Unarchive Selected"), Y.length > 0 ? ` (${Y.length})` : ""]
344
+ children: [d(D, "projectsList.unarchiveSelected", "Unarchive Selected"), Y.length > 0 ? ` (${Y.length})` : ""]
349
345
  }),
350
346
  O && Se && /* @__PURE__ */ _(v, {
351
347
  variant: "outline",
352
348
  size: "sm",
353
349
  onClick: async () => {
354
350
  if (q.length === 0) return;
355
- i("medium");
356
- let e = t(D, "projectsList.bulkDeleteConfirmPrefix", "Delete ") + q.length + " " + t(D, "projectsList.bulkDeleteConfirmProject", "selected project") + (q.length === 1 ? "" : t(D, "projectsList.bulkDeleteConfirmPluralSuffix", "s")) + t(D, "projectsList.bulkDeleteConfirmSuffix", "? This cannot be undone."), n = await r({
357
- title: t(D, "projectsList.deleteProjectsTitle", "Delete projects"),
351
+ n("medium");
352
+ let e = d(D, "projectsList.bulkDeleteConfirmPrefix", "Delete ") + q.length + " " + d(D, "projectsList.bulkDeleteConfirmProject", "selected project") + (q.length === 1 ? "" : d(D, "projectsList.bulkDeleteConfirmPluralSuffix", "s")) + d(D, "projectsList.bulkDeleteConfirmSuffix", "? This cannot be undone."), r = await t({
353
+ title: d(D, "projectsList.deleteProjectsTitle", "Delete projects"),
358
354
  message: e,
359
- okButtonTitle: t(D, "common.delete", "Delete"),
360
- cancelButtonTitle: t(D, "common.cancel", "Cancel")
355
+ okButtonTitle: d(D, "common.delete", "Delete"),
356
+ cancelButtonTitle: d(D, "common.cancel", "Cancel")
361
357
  });
362
- (n === null ? window.confirm(e) : n) && (await Promise.allSettled(q.map((e) => ye(e.id))), F());
358
+ (r === null ? window.confirm(e) : r) && (await Promise.allSettled(q.map((e) => ye(e.id))), F());
363
359
  },
364
360
  disabled: q.length === 0,
365
361
  className: "text-status-error-text",
366
- children: [t(D, "projectsList.deleteSelected", "Delete Selected"), q.length > 0 ? ` (${q.length})` : ""]
362
+ children: [d(D, "projectsList.deleteSelected", "Delete Selected"), q.length > 0 ? ` (${q.length})` : ""]
367
363
  })
368
364
  ]
369
365
  })]
370
366
  }),
371
367
  /* @__PURE__ */ g("div", {
372
368
  className: k === "list" ? "space-y-3" : "grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",
373
- children: K.items.map((e) => /* @__PURE__ */ g(u, {
369
+ children: K.items.map((e) => /* @__PURE__ */ g(s, {
374
370
  project: e,
375
371
  selected: N.has(e.id),
376
372
  canArchive: Q,
@@ -385,22 +381,21 @@ function D() {
385
381
  K.total > K.items.length && /* @__PURE__ */ _("div", {
386
382
  className: "text-center text-sm text-text-secondary",
387
383
  children: [
388
- t(D, "projectsList.showingPrefix", "Showing"),
384
+ d(D, "projectsList.showingPrefix", "Showing"),
389
385
  " ",
390
386
  K.items.length,
391
387
  " ",
392
- t(D, "projectsList.showingOf", "of"),
388
+ d(D, "projectsList.showingOf", "of"),
393
389
  " ",
394
390
  K.total,
395
391
  " ",
396
- t(D, "projectsList.showingProjects", "projects")
392
+ d(D, "projectsList.showingProjects", "projects")
397
393
  ]
398
394
  })
399
395
  ] }),
400
- ge && /* @__PURE__ */ g(d, { workspaceId: O })
396
+ ge && /* @__PURE__ */ g(c, { workspaceId: O })
401
397
  ]
402
398
  })
403
399
  });
404
400
  }
405
- //#endregion
406
401
  export { D as ProjectsListPage };