@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.
Files changed (64) hide show
  1. package/dist/WorkspacesRoutes.js +83 -59
  2. package/dist/components/ProjectCard.js +48 -47
  3. package/dist/constants/navigationV2.d.ts +5 -0
  4. package/dist/constants/navigationV2.js +2 -2
  5. package/dist/generated/global-operations.d.ts +11 -1
  6. package/dist/generated/global-types.d.ts +9866 -574
  7. package/dist/generated/wspace-operations.d.ts +171 -2
  8. package/dist/generated/wspace-operations.js +1088 -52
  9. package/dist/generated/wspace-types.d.ts +193797 -41883
  10. package/dist/hooks/v2/useWorkspacePagesV2Data.d.ts +89 -0
  11. package/dist/hooks/v2/useWorkspacePagesV2Data.js +211 -0
  12. package/dist/index.d.ts +1 -1
  13. package/dist/pages/ActivityListPage.js +2 -1
  14. package/dist/pages/MembersListPage.js +103 -100
  15. package/dist/pages/PendingInvitesPage.js +2 -1
  16. package/dist/pages/ProjectDetailPage.js +2 -1
  17. package/dist/pages/ProjectMembersPage.js +117 -115
  18. package/dist/pages/ProjectsListPage.js +235 -232
  19. package/dist/pages/WorkspaceDetailPage.js +2 -1
  20. package/dist/pages/WorkspaceInvitePage.js +3 -1
  21. package/dist/pages/WorkspacesListPage.js +2 -1
  22. package/dist/pages/dashboard/widgets/AgentsWidget.js +2 -1
  23. package/dist/pages/dashboard/widgets/GroupsWidget.js +2 -1
  24. package/dist/pages/dashboard/widgets/ProjectsWidget.js +3 -1
  25. package/dist/pages/dashboard/widgets/RecentActivityWidget.js +3 -1
  26. package/dist/pages/dashboard/widgets/SessionsWidget.js +2 -1
  27. package/dist/pages/dashboard/widgets/TagCloudWidget.js +2 -1
  28. package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +3 -1
  29. package/dist/pages/dashboard/widgets/VibesWidget.js +2 -1
  30. package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +3 -1
  31. package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +3 -1
  32. package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +3 -1
  33. package/dist/pages/dashboard/widgets/WorkspacesWidget.js +3 -1
  34. package/dist/pages/v2/ActivityPage.d.ts +1 -0
  35. package/dist/pages/v2/ActivityPage.js +150 -0
  36. package/dist/pages/v2/InvitePeopleDialog.d.ts +11 -0
  37. package/dist/pages/v2/InvitePeopleDialog.js +208 -0
  38. package/dist/pages/v2/InvitedTab.d.ts +9 -0
  39. package/dist/pages/v2/InvitedTab.js +223 -0
  40. package/dist/pages/v2/MembersPage.d.ts +1 -0
  41. package/dist/pages/v2/MembersPage.js +120 -0
  42. package/dist/pages/v2/PeopleTab.d.ts +20 -0
  43. package/dist/pages/v2/PeopleTab.js +253 -0
  44. package/dist/pages/v2/ProjectsPage.d.ts +1 -0
  45. package/dist/pages/v2/ProjectsPage.js +242 -0
  46. package/dist/pages/v2/WorkspacesPage.d.ts +3 -0
  47. package/dist/pages/v2/WorkspacesPage.js +247 -0
  48. package/dist/pages/v2/activitySentences.d.ts +50 -0
  49. package/dist/pages/v2/activitySentences.js +288 -0
  50. package/dist/pages/v2/inviteEmails.d.ts +12 -0
  51. package/dist/pages/v2/inviteEmails.js +18 -0
  52. package/dist/pages/v2/memberRows.d.ts +54 -0
  53. package/dist/pages/v2/memberRows.js +51 -0
  54. package/dist/pages/v2/projectRows.d.ts +10 -0
  55. package/dist/pages/v2/projectRows.js +10 -0
  56. package/dist/pages/v2/relativeTime.d.ts +6 -0
  57. package/dist/pages/v2/relativeTime.js +30 -0
  58. package/dist/store/workspacesStore.d.ts +2 -1
  59. package/dist/store/workspacesStore.js +1 -1
  60. package/dist/translations/en.d.ts +382 -0
  61. package/dist/translations/en.js +382 -0
  62. package/dist/types/index.d.ts +19 -0
  63. package/dist/utils/nativeBridge.js +1 -1
  64. package/package.json +3 -3
@@ -1,265 +1,265 @@
1
1
  import { useWorkspacesStore as e } from "../store/workspacesStore.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 ee, useUnarchiveProject as te } from "../hooks/useProjectMutations.js";
5
- import { ProjectCard as ne } from "../components/ProjectCard.js";
6
- import { CreateProjectDialog as re } from "../components/CreateProjectDialog.js";
7
- import { useWorkspacePermissions as a } from "../hooks/useWorkspacePermissions.js";
2
+ import { nativeImpact as t } from "../utils/nativeBridge.js";
3
+ import { useMyProjects as n } from "../hooks/useProjects.js";
4
+ import { useArchiveProject as ee, useDeleteProject as r, useUnarchiveProject as i } from "../hooks/useProjectMutations.js";
5
+ import { ProjectCard as te } from "../components/ProjectCard.js";
6
+ import { CreateProjectDialog as a } from "../components/CreateProjectDialog.js";
7
+ import { useWorkspacePermissions as ne } from "../hooks/useWorkspacePermissions.js";
8
8
  import { useWorkspacesPageView as o } from "../hooks/useWorkspacesPageView.js";
9
9
  import { tWithFallback as s } from "../utils/i18n.js";
10
- import { useTr as ie } from "../hooks/useTr.js";
11
- import { useIsFluidGridsVariant as ae } from "../providers/WorkspacesProvider.js";
12
- import { getProjectDisplayTags as oe } from "../utils/projectTags.js";
13
- import { useEffect as c, useMemo as l, useState as u } from "react";
14
- import { Grid3x3 as se, List as ce, ListChecks as le, Plus as d, Search as ue, SlidersHorizontal as de } from "lucide-react";
15
- import { Button as f, Card as fe, CardContent as p, GlassCard as m, IllustratedEmptyState as pe, Input as me, PageContainer as he, PagePurpose as ge, Select as h, SelectContent as g, SelectItem as _, SelectTrigger as v, SelectValue as y, Skeleton as b } from "@burdenoff/fe-libs/ui";
16
- import { Fragment as _e, jsx as x, jsxs as S } from "react/jsx-runtime";
17
- import { useI18n as ve } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
18
- import { useParams as ye } from "react-router";
19
- import { useDebounce as be } from "@burdenoff/fe-libs/shared/hooks";
20
- import { TagBadge as xe } from "@burdenoff/fe-libs/tag";
10
+ import { useTr as c } from "../hooks/useTr.js";
11
+ import { useIsFluidGridsVariant as re } from "../providers/WorkspacesProvider.js";
12
+ import { getProjectDisplayTags as ie } from "../utils/projectTags.js";
13
+ import { useEffect as l, useMemo as u, useState as d } from "react";
14
+ import { Grid3x3 as ae, List as oe, ListChecks as se, Plus as f, Search as ce, SlidersHorizontal as le } from "lucide-react";
15
+ import { Button as p, Card as ue, CardContent as m, GlassCard as h, IllustratedEmptyState as de, Input as fe, PageContainer as pe, PagePurpose as me, Select as g, SelectContent as _, SelectItem as v, SelectTrigger as y, SelectValue as b, Skeleton as x, useConfirm as he } from "@burdenoff/fe-libs/ui";
16
+ import { Fragment as ge, jsx as S, jsxs as C } from "react/jsx-runtime";
17
+ import { useI18n as _e } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
18
+ import { useParams as ve } from "react-router";
19
+ import { useDebounce as ye } from "@burdenoff/fe-libs/shared/hooks";
20
+ import { TagBadge as be } from "@burdenoff/fe-libs/tag";
21
21
  // src/pages/ProjectsListPage.tsx
22
- function C() {
23
- let { t: C } = ve(), w = ie(), T = ae(), { workspaceId: E } = ye();
22
+ function w() {
23
+ let { t: w } = _e(), T = c(), E = re(), xe = he(), { workspaceId: D } = ve();
24
24
  o("workspaces.projects", {
25
- workspaceId: E,
25
+ workspaceId: D,
26
26
  requireParams: !0
27
27
  });
28
- let { viewMode: D, setViewMode: O, projectFilters: k, setProjectFilters: A, clearProjectFilters: Se, selectedProjectIds: j, toggleProjectSelection: M, clearProjectSelection: N, openCreateProjectDialog: Ce, isCreateProjectDialogOpen: we } = e(), [P, F] = u(k.search || ""), [I, L] = u([]), [R, z] = u(!0), [B, Te] = u(() => !!k.status || k.archived !== void 0), [V, Ee] = u(!1), De = !T || B, Oe = !T || V, ke = be(P, 500);
29
- c(() => {
30
- A({ search: ke });
31
- }, [ke, A]), c(() => {
32
- I.length === 0 ? A({
28
+ let { viewMode: O, setViewMode: k, projectFilters: A, setProjectFilters: j, clearProjectFilters: Se, selectedProjectIds: M, toggleProjectSelection: N, clearProjectSelection: P, openCreateProjectDialog: Ce, isCreateProjectDialogOpen: we } = e(), [F, I] = d(A.search || ""), [L, R] = d([]), [z, B] = d(!0), [V, Te] = d(() => !!A.status || A.archived !== void 0), [H, Ee] = d(!1), De = !E || V, Oe = !E || H, ke = ye(F, 500);
29
+ l(() => {
30
+ j({ search: ke });
31
+ }, [ke, j]), l(() => {
32
+ L.length === 0 ? j({
33
33
  tagIds: void 0,
34
34
  tagHierarchyPaths: void 0,
35
35
  matchAllTags: void 0,
36
36
  includeDescendants: void 0
37
- }) : A({
38
- tagIds: I.map((e) => e.tagId),
39
- tagHierarchyPaths: I.map((e) => e.hierarchyPath).filter((e) => typeof e == "string" && e.length > 0),
40
- matchAllTags: R,
37
+ }) : j({
38
+ tagIds: L.map((e) => e.tagId),
39
+ tagHierarchyPaths: L.map((e) => e.hierarchyPath).filter((e) => typeof e == "string" && e.length > 0),
40
+ matchAllTags: z,
41
41
  includeDescendants: !0
42
42
  });
43
43
  }, [
44
- I,
45
- R,
46
- A
47
- ]), c(() => () => N(), [N]);
48
- let { data: H, isLoading: U, error: W } = r({
44
+ L,
45
+ z,
46
+ j
47
+ ]), l(() => () => P(), [P]);
48
+ let { data: U, isLoading: W, error: G } = n({
49
49
  limit: 500,
50
50
  offset: 0
51
- }), G = l(() => {
52
- let e = H?.items ?? [], t = (k.search ?? "").trim().toLowerCase(), n = k.tagIds ?? [], r = k.matchAllTags ?? !0, i = (e) => !E || e.workspaceId === E, ee = (e) => !t || e.name.toLowerCase().includes(t) || e.key.toLowerCase().includes(t), te = (e) => !k.status || e.status === k.status, ne = (e) => k.archived === void 0 || e.archived === k.archived, re = (e) => {
51
+ }), K = u(() => {
52
+ let e = U?.items ?? [], t = (A.search ?? "").trim().toLowerCase(), n = A.tagIds ?? [], ee = A.matchAllTags ?? !0, r = (e) => !D || e.workspaceId === D, i = (e) => !t || e.name.toLowerCase().includes(t) || e.key.toLowerCase().includes(t), te = (e) => !A.status || e.status === A.status, a = (e) => A.archived === void 0 || e.archived === A.archived, ne = (e) => {
53
53
  if (n.length === 0) return !0;
54
- let t = new Set(oe(e).map((e) => e.tagId));
55
- return r ? n.every((e) => t.has(e)) : n.some((e) => t.has(e));
56
- }, a = e.filter((e) => i(e) && ee(e) && te(e) && ne(e) && re(e)), o = H?.total ?? a.length, s = H?.hasMore ?? !1;
54
+ let t = new Set(ie(e).map((e) => e.tagId));
55
+ return ee ? n.every((e) => t.has(e)) : n.some((e) => t.has(e));
56
+ }, o = e.filter((e) => r(e) && i(e) && te(e) && a(e) && ne(e)), s = U?.total ?? o.length, c = U?.hasMore ?? !1;
57
57
  return {
58
- items: a,
59
- total: E || n.length > 0 ? a.length : o,
60
- hasMore: s
58
+ items: o,
59
+ total: D || n.length > 0 ? o.length : s,
60
+ hasMore: c
61
61
  };
62
62
  }, [
63
- H?.items,
64
- H?.total,
65
- H?.hasMore,
66
- k,
67
- E
68
- ]), { mutateAsync: Ae } = i(E), { mutateAsync: je } = te(E), { mutateAsync: Me } = ee(E), K = l(() => G?.items.filter((e) => j.has(e.id)) ?? [], [G?.items, j]), q = l(() => K.filter((e) => !e.archived), [K]), J = l(() => K.filter((e) => e.archived), [K]), Y = (G?.items.length ?? 0) > 0 && (G?.items ?? []).every((e) => j.has(e.id)), Ne = (G?.items ?? []).some((e) => j.has(e.id)) && !Y, { canCreateProject: X, canUpdateProject: Pe, canDeleteProject: Z, canArchiveProject: Q, isLoading: Fe } = a();
69
- if (Fe) return /* @__PURE__ */ S("div", {
63
+ U?.items,
64
+ U?.total,
65
+ U?.hasMore,
66
+ A,
67
+ D
68
+ ]), { mutateAsync: Ae } = ee(D), { mutateAsync: je } = i(D), { mutateAsync: Me } = r(D), q = u(() => K?.items.filter((e) => M.has(e.id)) ?? [], [K?.items, M]), J = u(() => q.filter((e) => !e.archived), [q]), Y = u(() => q.filter((e) => e.archived), [q]), X = (K?.items.length ?? 0) > 0 && (K?.items ?? []).every((e) => M.has(e.id)), Ne = (K?.items ?? []).some((e) => M.has(e.id)) && !X, { canCreateProject: Pe, canUpdateProject: Fe, canDeleteProject: Z, canArchiveProject: Q, isLoading: Ie } = ne();
69
+ if (Ie) return /* @__PURE__ */ C("div", {
70
70
  className: "space-y-4 p-6",
71
- children: [/* @__PURE__ */ x(b, { className: "h-10 w-1/3" }), /* @__PURE__ */ S("div", {
71
+ children: [/* @__PURE__ */ S(x, { className: "h-10 w-1/3" }), /* @__PURE__ */ C("div", {
72
72
  className: "grid grid-cols-1 md:grid-cols-3 gap-4",
73
73
  children: [
74
- /* @__PURE__ */ x(b, { className: "h-32" }),
75
- /* @__PURE__ */ x(b, { className: "h-32" }),
76
- /* @__PURE__ */ x(b, { className: "h-32" })
74
+ /* @__PURE__ */ S(x, { className: "h-32" }),
75
+ /* @__PURE__ */ S(x, { className: "h-32" }),
76
+ /* @__PURE__ */ S(x, { className: "h-32" })
77
77
  ]
78
78
  })]
79
79
  });
80
- let Ie = () => {
80
+ let Le = () => {
81
81
  Ce({});
82
- }, Le = (e) => {
83
- if (e === "all") {
84
- let e = { ...k };
85
- delete e.status, A(e);
86
- } else A({ status: e });
87
82
  }, Re = (e) => {
88
83
  if (e === "all") {
89
- let e = { ...k };
90
- delete e.archived, A(e);
91
- } else A({ archived: e === "true" });
84
+ let e = { ...A };
85
+ delete e.status, j(e);
86
+ } else j({ status: e });
87
+ }, ze = (e) => {
88
+ if (e === "all") {
89
+ let e = { ...A };
90
+ delete e.archived, j(e);
91
+ } else j({ archived: e === "true" });
92
92
  }, $ = (e) => {
93
- L((t) => t.some((t) => t.tagId === e.tagId) ? t.filter((t) => t.tagId !== e.tagId) : [...t, e]);
94
- }, ze = () => {
95
- F(""), L([]), z(!0), Se();
96
- }, Be = (e) => {
97
- (G?.items ?? []).forEach((t) => {
98
- e !== j.has(t.id) && M(t.id);
93
+ R((t) => t.some((t) => t.tagId === e.tagId) ? t.filter((t) => t.tagId !== e.tagId) : [...t, e]);
94
+ }, Be = () => {
95
+ I(""), R([]), B(!0), Se();
96
+ }, Ve = (e) => {
97
+ (K?.items ?? []).forEach((t) => {
98
+ e !== M.has(t.id) && N(t.id);
99
99
  });
100
100
  };
101
- return /* @__PURE__ */ x(he, {
101
+ return /* @__PURE__ */ S(pe, {
102
102
  padded: !1,
103
- children: /* @__PURE__ */ S("div", {
103
+ children: /* @__PURE__ */ C("div", {
104
104
  className: "space-y-4 sm:space-y-6 p-3 sm:p-6",
105
105
  children: [
106
- /* @__PURE__ */ S("div", {
106
+ /* @__PURE__ */ C("div", {
107
107
  className: "flex flex-col sm:flex-row sm:items-center justify-between gap-4",
108
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("h1", {
108
+ children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h1", {
109
109
  className: "text-2xl sm:text-3xl font-bold",
110
- children: s(C, "projectsList.pageTitle", "Projects")
111
- }), /* @__PURE__ */ x("p", {
110
+ children: s(w, "projectsList.pageTitle", "Projects")
111
+ }), /* @__PURE__ */ S("p", {
112
112
  className: "text-text-secondary",
113
- children: s(C, "projectsList.pageSubtitle", "Manage and organize your projects")
114
- })] }), /* @__PURE__ */ S("div", {
113
+ children: s(w, "projectsList.pageSubtitle", "Manage and organize your projects")
114
+ })] }), /* @__PURE__ */ C("div", {
115
115
  className: "flex items-center gap-2",
116
116
  children: [
117
- T && E && (Q || Z) && (G?.items.length ?? 0) > 0 ? /* @__PURE__ */ S(f, {
118
- variant: V ? "secondary" : "outline",
117
+ E && D && (Q || Z) && (K?.items.length ?? 0) > 0 ? /* @__PURE__ */ C(p, {
118
+ variant: H ? "secondary" : "outline",
119
119
  size: "sm",
120
- "aria-pressed": V,
120
+ "aria-pressed": H,
121
121
  onClick: () => {
122
- V && N(), Ee(!V);
122
+ H && P(), Ee(!H);
123
123
  },
124
- children: [/* @__PURE__ */ x(le, {
124
+ children: [/* @__PURE__ */ S(se, {
125
125
  className: "size-4 sm:mr-2",
126
126
  "aria-hidden": "true"
127
- }), /* @__PURE__ */ x("span", {
127
+ }), /* @__PURE__ */ S("span", {
128
128
  className: "sr-only sm:not-sr-only",
129
- children: w("projectsList.select", "Select")
129
+ children: T("projectsList.select", "Select")
130
130
  })]
131
131
  }) : null,
132
- /* @__PURE__ */ S("div", {
132
+ /* @__PURE__ */ C("div", {
133
133
  className: "flex items-center gap-1 border rounded-lg p-1",
134
- children: [/* @__PURE__ */ x(f, {
135
- variant: D === "grid" ? "secondary" : "ghost",
134
+ children: [/* @__PURE__ */ S(p, {
135
+ variant: O === "grid" ? "secondary" : "ghost",
136
136
  size: "sm",
137
- onClick: () => O("grid"),
137
+ onClick: () => k("grid"),
138
138
  className: "size-8 p-0",
139
- "aria-label": s(C, "projectsList.gridViewAriaLabel", "Show projects in grid view"),
140
- children: /* @__PURE__ */ x(se, { size: 16 })
141
- }), /* @__PURE__ */ x(f, {
142
- variant: D === "list" ? "secondary" : "ghost",
139
+ "aria-label": s(w, "projectsList.gridViewAriaLabel", "Show projects in grid view"),
140
+ children: /* @__PURE__ */ S(ae, { size: 16 })
141
+ }), /* @__PURE__ */ S(p, {
142
+ variant: O === "list" ? "secondary" : "ghost",
143
143
  size: "sm",
144
- onClick: () => O("list"),
144
+ onClick: () => k("list"),
145
145
  className: "size-8 p-0",
146
- "aria-label": s(C, "projectsList.listViewAriaLabel", "Show projects in list view"),
147
- children: /* @__PURE__ */ x(ce, { size: 16 })
146
+ "aria-label": s(w, "projectsList.listViewAriaLabel", "Show projects in list view"),
147
+ children: /* @__PURE__ */ S(oe, { size: 16 })
148
148
  })]
149
149
  }),
150
- X && /* @__PURE__ */ S(f, {
151
- onClick: Ie,
152
- children: [/* @__PURE__ */ x(d, { className: "size-4 sm:mr-2" }), /* @__PURE__ */ x("span", {
150
+ Pe && /* @__PURE__ */ C(p, {
151
+ onClick: Le,
152
+ children: [/* @__PURE__ */ S(f, { className: "size-4 sm:mr-2" }), /* @__PURE__ */ S("span", {
153
153
  className: "hidden sm:inline",
154
- children: s(C, "projectsList.createProject", "Create Project")
154
+ children: s(w, "projectsList.createProject", "Create Project")
155
155
  })]
156
156
  })
157
157
  ]
158
158
  })]
159
159
  }),
160
- /* @__PURE__ */ x(ge, { children: s(C, "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.") }),
161
- /* @__PURE__ */ S("div", {
160
+ /* @__PURE__ */ S(me, { children: s(w, "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.") }),
161
+ /* @__PURE__ */ C("div", {
162
162
  className: "flex flex-col sm:flex-row gap-3",
163
163
  children: [
164
- /* @__PURE__ */ S("div", {
164
+ /* @__PURE__ */ C("div", {
165
165
  className: "relative flex-1",
166
- children: [/* @__PURE__ */ x(ue, {
166
+ children: [/* @__PURE__ */ S(ce, {
167
167
  className: "absolute left-3 top-1/2 transform -translate-y-1/2 text-text-secondary",
168
168
  size: 18
169
- }), /* @__PURE__ */ x(me, {
170
- placeholder: s(C, "projectsList.searchPlaceholder", "Search projects..."),
171
- value: P,
172
- onChange: (e) => F(e.target.value),
169
+ }), /* @__PURE__ */ S(fe, {
170
+ placeholder: s(w, "projectsList.searchPlaceholder", "Search projects..."),
171
+ value: F,
172
+ onChange: (e) => I(e.target.value),
173
173
  className: "pl-[3.25rem]"
174
174
  })]
175
175
  }),
176
- T ? /* @__PURE__ */ S(f, {
177
- variant: B ? "secondary" : "outline",
178
- "aria-expanded": B,
179
- onClick: () => Te(!B),
180
- children: [/* @__PURE__ */ x(de, {
176
+ E ? /* @__PURE__ */ C(p, {
177
+ variant: V ? "secondary" : "outline",
178
+ "aria-expanded": V,
179
+ onClick: () => Te(!V),
180
+ children: [/* @__PURE__ */ S(le, {
181
181
  className: "size-4 mr-2",
182
182
  "aria-hidden": "true"
183
- }), w("projectsList.filters", "Filters")]
183
+ }), T("projectsList.filters", "Filters")]
184
184
  }) : null,
185
- De ? /* @__PURE__ */ S(_e, { children: [
186
- /* @__PURE__ */ S(h, {
187
- value: k.status || "all",
188
- onValueChange: Le,
189
- children: [/* @__PURE__ */ x(v, {
185
+ De ? /* @__PURE__ */ C(ge, { children: [
186
+ /* @__PURE__ */ C(g, {
187
+ value: A.status || "all",
188
+ onValueChange: Re,
189
+ children: [/* @__PURE__ */ S(y, {
190
190
  className: "w-full sm:w-[180px]",
191
- children: /* @__PURE__ */ x(y, { placeholder: s(C, "projectsList.filterByStatus", "Filter by status") })
192
- }), /* @__PURE__ */ S(g, { children: [
193
- /* @__PURE__ */ x(_, {
191
+ children: /* @__PURE__ */ S(b, { placeholder: s(w, "projectsList.filterByStatus", "Filter by status") })
192
+ }), /* @__PURE__ */ C(_, { children: [
193
+ /* @__PURE__ */ S(v, {
194
194
  value: "all",
195
- children: s(C, "projectsList.statusAll", "All Statuses")
195
+ children: s(w, "projectsList.statusAll", "All Statuses")
196
196
  }),
197
- /* @__PURE__ */ x(_, {
197
+ /* @__PURE__ */ S(v, {
198
198
  value: "ACTIVE",
199
- children: s(C, "projectsList.statusActive", "Active")
199
+ children: s(w, "projectsList.statusActive", "Active")
200
200
  }),
201
- /* @__PURE__ */ x(_, {
201
+ /* @__PURE__ */ S(v, {
202
202
  value: "INACTIVE",
203
- children: s(C, "projectsList.statusInactive", "Inactive")
203
+ children: s(w, "projectsList.statusInactive", "Inactive")
204
204
  })
205
205
  ] })]
206
206
  }),
207
- /* @__PURE__ */ S(h, {
208
- value: k.archived === void 0 ? "all" : k.archived ? "true" : "false",
209
- onValueChange: Re,
210
- children: [/* @__PURE__ */ x(v, {
207
+ /* @__PURE__ */ C(g, {
208
+ value: A.archived === void 0 ? "all" : A.archived ? "true" : "false",
209
+ onValueChange: ze,
210
+ children: [/* @__PURE__ */ S(y, {
211
211
  className: "w-full sm:w-[180px]",
212
- children: /* @__PURE__ */ x(y, { placeholder: s(C, "projectsList.filterByArchive", "Filter by archive") })
213
- }), /* @__PURE__ */ S(g, { children: [
214
- /* @__PURE__ */ x(_, {
212
+ children: /* @__PURE__ */ S(b, { placeholder: s(w, "projectsList.filterByArchive", "Filter by archive") })
213
+ }), /* @__PURE__ */ C(_, { children: [
214
+ /* @__PURE__ */ S(v, {
215
215
  value: "all",
216
- children: s(C, "projectsList.archiveAll", "All Projects")
216
+ children: s(w, "projectsList.archiveAll", "All Projects")
217
217
  }),
218
- /* @__PURE__ */ x(_, {
218
+ /* @__PURE__ */ S(v, {
219
219
  value: "false",
220
- children: T ? w("projectsList.archiveNotArchived", "Not archived") : s(C, "projectsList.archiveActiveProjects", "Active Projects")
220
+ children: E ? T("projectsList.archiveNotArchived", "Not archived") : s(w, "projectsList.archiveActiveProjects", "Active Projects")
221
221
  }),
222
- /* @__PURE__ */ x(_, {
222
+ /* @__PURE__ */ S(v, {
223
223
  value: "true",
224
- children: s(C, "projectsList.archiveArchived", "Archived")
224
+ children: s(w, "projectsList.archiveArchived", "Archived")
225
225
  })
226
226
  ] })]
227
227
  }),
228
- (k.search || k.status || k.archived !== void 0 || I.length > 0) && /* @__PURE__ */ x(f, {
228
+ (A.search || A.status || A.archived !== void 0 || L.length > 0) && /* @__PURE__ */ S(p, {
229
229
  variant: "outline",
230
- onClick: ze,
231
- children: s(C, "projectsList.clearFilters", "Clear Filters")
230
+ onClick: Be,
231
+ children: s(w, "projectsList.clearFilters", "Clear Filters")
232
232
  })
233
233
  ] }) : null
234
234
  ]
235
235
  }),
236
- I.length > 0 && /* @__PURE__ */ S("div", {
236
+ L.length > 0 && /* @__PURE__ */ C("div", {
237
237
  className: "flex flex-col gap-3 rounded-lg border border-border-seam bg-bg-surface px-4 py-3",
238
- children: [/* @__PURE__ */ S("div", {
238
+ children: [/* @__PURE__ */ C("div", {
239
239
  className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
240
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
240
+ children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
241
241
  className: "text-sm font-medium",
242
- children: s(C, "projectsList.activeTagFilters", "Active tag filters")
243
- }), /* @__PURE__ */ x("p", {
242
+ children: s(w, "projectsList.activeTagFilters", "Active tag filters")
243
+ }), /* @__PURE__ */ S("p", {
244
244
  className: "text-xs text-text-secondary",
245
- children: s(C, "projectsList.activeTagFiltersDescription", "Click a project tag to add or remove it from the current filter set.")
246
- })] }), /* @__PURE__ */ S(h, {
247
- value: R ? "all" : "any",
248
- onValueChange: (e) => z(e === "all"),
249
- children: [/* @__PURE__ */ x(v, {
245
+ children: s(w, "projectsList.activeTagFiltersDescription", "Click a project tag to add or remove it from the current filter set.")
246
+ })] }), /* @__PURE__ */ C(g, {
247
+ value: z ? "all" : "any",
248
+ onValueChange: (e) => B(e === "all"),
249
+ children: [/* @__PURE__ */ S(y, {
250
250
  className: "w-full sm:w-[180px]",
251
- children: /* @__PURE__ */ x(y, { placeholder: s(C, "projectsList.tagMatchMode", "Tag match mode") })
252
- }), /* @__PURE__ */ S(g, { children: [/* @__PURE__ */ x(_, {
251
+ children: /* @__PURE__ */ S(b, { placeholder: s(w, "projectsList.tagMatchMode", "Tag match mode") })
252
+ }), /* @__PURE__ */ C(_, { children: [/* @__PURE__ */ S(v, {
253
253
  value: "all",
254
- children: s(C, "projectsList.tagMatchAll", "Match all tags")
255
- }), /* @__PURE__ */ x(_, {
254
+ children: s(w, "projectsList.tagMatchAll", "Match all tags")
255
+ }), /* @__PURE__ */ S(v, {
256
256
  value: "any",
257
- children: s(C, "projectsList.tagMatchAny", "Match any tag")
257
+ children: s(w, "projectsList.tagMatchAny", "Match any tag")
258
258
  })] })]
259
259
  })]
260
- }), /* @__PURE__ */ x("div", {
260
+ }), /* @__PURE__ */ S("div", {
261
261
  className: "flex flex-wrap gap-2",
262
- children: I.map((e) => /* @__PURE__ */ x(xe, {
262
+ children: L.map((e) => /* @__PURE__ */ S(be, {
263
263
  id: e.tagId,
264
264
  label: e.label,
265
265
  color: e.color ?? void 0,
@@ -271,162 +271,165 @@ function C() {
271
271
  }, e.tagId))
272
272
  })]
273
273
  }),
274
- W && /* @__PURE__ */ x(m, {
274
+ G && /* @__PURE__ */ S(h, {
275
275
  treatment: "plain",
276
276
  className: "border-status-error-border",
277
- children: /* @__PURE__ */ x(p, {
277
+ children: /* @__PURE__ */ S(m, {
278
278
  className: "pt-6",
279
- children: /* @__PURE__ */ S("div", {
279
+ children: /* @__PURE__ */ C("div", {
280
280
  className: "flex flex-col items-center justify-center py-8 text-center",
281
- children: [/* @__PURE__ */ x("p", {
281
+ children: [/* @__PURE__ */ S("p", {
282
282
  className: "text-status-error-text font-semibold mb-2",
283
- children: s(C, "projectsList.errorLoading", "Error loading projects")
284
- }), /* @__PURE__ */ x("p", {
283
+ children: s(w, "projectsList.errorLoading", "Error loading projects")
284
+ }), /* @__PURE__ */ S("p", {
285
285
  className: "text-sm text-text-secondary",
286
- children: W instanceof Error ? W.message : s(C, "projectsList.unknownError", "An unknown error occurred")
286
+ children: G instanceof Error ? G.message : s(w, "projectsList.unknownError", "An unknown error occurred")
287
287
  })]
288
288
  })
289
289
  })
290
290
  }),
291
- U && /* @__PURE__ */ x("div", {
291
+ W && /* @__PURE__ */ S("div", {
292
292
  className: "grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",
293
- children: Array.from({ length: 6 }).map((e, t) => /* @__PURE__ */ x(fe, {
293
+ children: Array.from({ length: 6 }).map((e, t) => /* @__PURE__ */ S(ue, {
294
294
  className: "border-border-seam",
295
- children: /* @__PURE__ */ x(p, {
295
+ children: /* @__PURE__ */ S(m, {
296
296
  className: "pt-6",
297
- children: /* @__PURE__ */ S("div", {
297
+ children: /* @__PURE__ */ C("div", {
298
298
  className: "space-y-3",
299
299
  children: [
300
- /* @__PURE__ */ x(b, { className: "size-12 rounded-lg" }),
301
- /* @__PURE__ */ x(b, { className: "h-4 w-3/4" }),
302
- /* @__PURE__ */ x(b, { className: "h-4 w-1/2" })
300
+ /* @__PURE__ */ S(x, { className: "size-12 rounded-lg" }),
301
+ /* @__PURE__ */ S(x, { className: "h-4 w-3/4" }),
302
+ /* @__PURE__ */ S(x, { className: "h-4 w-1/2" })
303
303
  ]
304
304
  })
305
305
  })
306
306
  }, t))
307
307
  }),
308
- !U && !W && G?.items.length === 0 && /* @__PURE__ */ x(m, {
308
+ !W && !G && K?.items.length === 0 && /* @__PURE__ */ S(h, {
309
309
  treatment: "plain",
310
310
  className: "border-border-seam",
311
- children: /* @__PURE__ */ x(p, {
311
+ children: /* @__PURE__ */ S(m, {
312
312
  className: "pt-6",
313
- children: /* @__PURE__ */ x(pe, {
314
- illustration: k.search ? "empty-search" : "empty-data",
315
- title: s(C, "projectsList.noProjectsFound", "No projects found"),
316
- description: k.search ? s(C, "projectsList.adjustSearchOrFilters", "Try adjusting your search or filters") : s(C, "projectsList.createFirstProject", "Create your first project to get started organizing your work"),
317
- action: !k.search && X ? /* @__PURE__ */ S(f, {
318
- onClick: Ie,
319
- children: [/* @__PURE__ */ x(d, {
313
+ children: /* @__PURE__ */ S(de, {
314
+ illustration: A.search ? "empty-search" : "empty-data",
315
+ title: s(w, "projectsList.noProjectsFound", "No projects found"),
316
+ description: A.search ? s(w, "projectsList.adjustSearchOrFilters", "Try adjusting your search or filters") : s(w, "projectsList.createFirstProject", "Create your first project to get started organizing your work"),
317
+ action: !A.search && Pe ? /* @__PURE__ */ C(p, {
318
+ onClick: Le,
319
+ children: [/* @__PURE__ */ S(f, {
320
320
  size: 16,
321
321
  className: "mr-2"
322
- }), s(C, "projectsList.createProject", "Create Project")]
323
- }) : void 0
322
+ }), s(w, "projectsList.createProject", "Create Project")]
323
+ }) : void 0,
324
+ kind: A.search ? "no-results" : "first-use",
325
+ glassIllustration: "files"
324
326
  })
325
327
  })
326
328
  }),
327
- !U && !W && G && G.items.length > 0 && /* @__PURE__ */ S(_e, { children: [
328
- Oe ? /* @__PURE__ */ S("div", {
329
+ !W && !G && K && K.items.length > 0 && /* @__PURE__ */ C(ge, { children: [
330
+ Oe ? /* @__PURE__ */ C("div", {
329
331
  className: "flex flex-col gap-3 rounded-lg border border-border-seam bg-bg-surface p-4 sm:flex-row sm:items-center sm:justify-between",
330
- children: [/* @__PURE__ */ S("label", {
332
+ children: [/* @__PURE__ */ C("label", {
331
333
  className: "flex items-center gap-2 text-sm text-text-primary",
332
- children: [/* @__PURE__ */ x("input", {
334
+ children: [/* @__PURE__ */ S("input", {
333
335
  type: "checkbox",
334
- checked: Y,
336
+ checked: X,
335
337
  ref: (e) => {
336
- e && (e.indeterminate = Ne && !Y);
338
+ e && (e.indeterminate = Ne && !X);
337
339
  },
338
- onChange: (e) => Be(e.target.checked),
339
- "aria-label": s(C, "projectsList.selectAllAriaLabel", "Select all projects"),
340
+ onChange: (e) => Ve(e.target.checked),
341
+ "aria-label": s(w, "projectsList.selectAllAriaLabel", "Select all projects"),
340
342
  className: "size-4 rounded border-border-subtle text-primary"
341
- }), /* @__PURE__ */ x("span", { children: s(C, "projectsList.selectAllVisible", "Select all visible") })]
342
- }), /* @__PURE__ */ S("div", {
343
+ }), /* @__PURE__ */ S("span", { children: s(w, "projectsList.selectAllVisible", "Select all visible") })]
344
+ }), /* @__PURE__ */ C("div", {
343
345
  className: "flex flex-wrap items-center gap-2",
344
346
  children: [
345
- /* @__PURE__ */ S("span", {
347
+ /* @__PURE__ */ C("span", {
346
348
  className: "text-sm text-text-secondary",
347
349
  children: [
348
- j.size,
350
+ M.size,
349
351
  " ",
350
- s(C, "projectsList.selected", "selected")
352
+ s(w, "projectsList.selected", "selected")
351
353
  ]
352
354
  }),
353
- j.size > 0 && /* @__PURE__ */ x(f, {
355
+ M.size > 0 && /* @__PURE__ */ S(p, {
354
356
  variant: "ghost",
355
357
  size: "sm",
356
- onClick: N,
357
- children: s(C, "projectsList.clearSelection", "Clear selection")
358
+ onClick: P,
359
+ children: s(w, "projectsList.clearSelection", "Clear selection")
358
360
  }),
359
- E && Q && /* @__PURE__ */ S(f, {
361
+ D && Q && /* @__PURE__ */ C(p, {
360
362
  variant: "outline",
361
363
  size: "sm",
362
364
  onClick: async () => {
363
- q.length !== 0 && (await Promise.allSettled(q.map((e) => Ae(e.id))), N());
365
+ J.length !== 0 && (await Promise.allSettled(J.map((e) => Ae(e.id))), P());
364
366
  },
365
- disabled: q.length === 0,
366
- children: [s(C, "projectsList.archiveSelected", "Archive Selected"), q.length > 0 ? ` (${q.length})` : ""]
367
+ disabled: J.length === 0,
368
+ children: [s(w, "projectsList.archiveSelected", "Archive Selected"), J.length > 0 ? ` (${J.length})` : ""]
367
369
  }),
368
- E && Q && /* @__PURE__ */ S(f, {
370
+ D && Q && /* @__PURE__ */ C(p, {
369
371
  variant: "outline",
370
372
  size: "sm",
371
373
  onClick: async () => {
372
- J.length !== 0 && (await Promise.allSettled(J.map((e) => je(e.id))), N());
374
+ Y.length !== 0 && (await Promise.allSettled(Y.map((e) => je(e.id))), P());
373
375
  },
374
- disabled: J.length === 0,
375
- children: [s(C, "projectsList.unarchiveSelected", "Unarchive Selected"), J.length > 0 ? ` (${J.length})` : ""]
376
+ disabled: Y.length === 0,
377
+ children: [s(w, "projectsList.unarchiveSelected", "Unarchive Selected"), Y.length > 0 ? ` (${Y.length})` : ""]
376
378
  }),
377
- E && Z && /* @__PURE__ */ S(f, {
379
+ D && Z && /* @__PURE__ */ C(p, {
378
380
  variant: "outline",
379
381
  size: "sm",
380
382
  onClick: async () => {
381
- if (K.length === 0) return;
382
- n("medium");
383
- let e = T ? w("projectsList.bulkDeleteConfirmNamed", "Delete {{names}}? All of their data is removed for good. This cannot be undone.", { names: K.map((e) => `"${e.name}"`).join(", ") }) : s(C, "projectsList.bulkDeleteConfirmPrefix", "Delete ") + K.length + " " + s(C, "projectsList.bulkDeleteConfirmProject", "selected project") + (K.length === 1 ? "" : s(C, "projectsList.bulkDeleteConfirmPluralSuffix", "s")) + s(C, "projectsList.bulkDeleteConfirmSuffix", "? This cannot be undone."), r = await t({
384
- title: s(C, "projectsList.deleteProjectsTitle", "Delete projects"),
385
- message: e,
386
- okButtonTitle: s(C, "common.delete", "Delete"),
387
- cancelButtonTitle: s(C, "common.cancel", "Cancel")
388
- });
389
- (r === null ? window.confirm(e) : r) && (await Promise.allSettled(K.map((e) => Me(e.id))), N());
383
+ if (q.length === 0) return;
384
+ t("medium");
385
+ let e = E ? T("projectsList.bulkDeleteConfirmNamed", "Delete {{names}}? All of their data is removed for good. This cannot be undone.", { names: q.map((e) => `"${e.name}"`).join(", ") }) : s(w, "projectsList.bulkDeleteConfirmPrefix", "Delete ") + q.length + " " + s(w, "projectsList.bulkDeleteConfirmProject", "selected project") + (q.length === 1 ? "" : s(w, "projectsList.bulkDeleteConfirmPluralSuffix", "s")) + s(w, "projectsList.bulkDeleteConfirmSuffix", "? This cannot be undone.");
386
+ await xe({
387
+ title: s(w, "projectsList.deleteProjectsTitle", "Delete projects"),
388
+ description: e,
389
+ tone: "danger",
390
+ confirmLabel: s(w, "common.delete", "Delete"),
391
+ cancelLabel: s(w, "common.cancel", "Cancel")
392
+ }) && (await Promise.allSettled(q.map((e) => Me(e.id))), P());
390
393
  },
391
- disabled: K.length === 0,
394
+ disabled: q.length === 0,
392
395
  className: "text-status-error-text",
393
- children: [s(C, "projectsList.deleteSelected", "Delete Selected"), K.length > 0 ? ` (${K.length})` : ""]
396
+ children: [s(w, "projectsList.deleteSelected", "Delete Selected"), q.length > 0 ? ` (${q.length})` : ""]
394
397
  })
395
398
  ]
396
399
  })]
397
400
  }) : null,
398
- /* @__PURE__ */ x("div", {
399
- className: D === "list" ? "space-y-3" : "grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",
400
- children: G.items.map((e) => /* @__PURE__ */ x(ne, {
401
+ /* @__PURE__ */ S("div", {
402
+ className: O === "list" ? "space-y-3" : "grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",
403
+ children: K.items.map((e) => /* @__PURE__ */ S(te, {
401
404
  project: e,
402
- selected: j.has(e.id),
405
+ selected: M.has(e.id),
403
406
  canArchive: Q,
404
407
  canDelete: Z,
405
- canRename: Pe,
408
+ canRename: Fe,
406
409
  onTagClick: $,
407
410
  onToggleSelect: Oe ? (t) => {
408
- t !== j.has(e.id) && M(e.id);
411
+ t !== M.has(e.id) && N(e.id);
409
412
  } : void 0
410
413
  }, e.id))
411
414
  }),
412
- G.total > G.items.length && /* @__PURE__ */ S("div", {
415
+ K.total > K.items.length && /* @__PURE__ */ C("div", {
413
416
  className: "text-center text-sm text-text-secondary",
414
417
  children: [
415
- s(C, "projectsList.showingPrefix", "Showing"),
418
+ s(w, "projectsList.showingPrefix", "Showing"),
416
419
  " ",
417
- G.items.length,
420
+ K.items.length,
418
421
  " ",
419
- s(C, "projectsList.showingOf", "of"),
422
+ s(w, "projectsList.showingOf", "of"),
420
423
  " ",
421
- G.total,
424
+ K.total,
422
425
  " ",
423
- s(C, "projectsList.showingProjects", "projects")
426
+ s(w, "projectsList.showingProjects", "projects")
424
427
  ]
425
428
  })
426
429
  ] }),
427
- we && /* @__PURE__ */ x(re, { workspaceId: E })
430
+ we && /* @__PURE__ */ S(a, { workspaceId: D })
428
431
  ]
429
432
  })
430
433
  });
431
434
  }
432
- export { C as ProjectsListPage };
435
+ export { w as ProjectsListPage };