@burdenoff/microfe-workspaces 2026.1120.1 → 2026.1123.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 (56) hide show
  1. package/dist/WorkspacesRoot.js +39 -31
  2. package/dist/WorkspacesRoutes.js +91 -59
  3. package/dist/components/ProjectCard.js +48 -47
  4. package/dist/constants/navigationV2.d.ts +5 -0
  5. package/dist/constants/navigationV2.js +2 -2
  6. package/dist/generated/global-operations.d.ts +11 -1
  7. package/dist/generated/global-types.d.ts +9866 -574
  8. package/dist/generated/wspace-operations.d.ts +631 -2
  9. package/dist/generated/wspace-operations.js +5428 -1376
  10. package/dist/generated/wspace-types.d.ts +200319 -48046
  11. package/dist/generated/wspace-types.js +19 -0
  12. package/dist/hooks/useCollaboration.d.ts +143 -0
  13. package/dist/hooks/useCollaboration.js +119 -0
  14. package/dist/hooks/useCollaborationMutations.d.ts +177 -0
  15. package/dist/hooks/useCollaborationMutations.js +126 -0
  16. package/dist/hooks/v2/useWorkspacePagesV2Data.d.ts +89 -0
  17. package/dist/hooks/v2/useWorkspacePagesV2Data.js +211 -0
  18. package/dist/index.d.ts +1 -1
  19. package/dist/node_modules/sonner/dist/index.js +167 -0
  20. package/dist/pages/CollaborationConsolePage.d.ts +1 -0
  21. package/dist/pages/CollaborationConsolePage.js +1059 -0
  22. package/dist/pages/MembersListPage.js +101 -100
  23. package/dist/pages/ProjectMembersPage.js +116 -115
  24. package/dist/pages/ProjectsListPage.js +233 -232
  25. package/dist/pages/WorkspacesListPage.js +79 -68
  26. package/dist/pages/v2/ActivityPage.d.ts +1 -0
  27. package/dist/pages/v2/ActivityPage.js +150 -0
  28. package/dist/pages/v2/InvitePeopleDialog.d.ts +11 -0
  29. package/dist/pages/v2/InvitePeopleDialog.js +208 -0
  30. package/dist/pages/v2/InvitedTab.d.ts +9 -0
  31. package/dist/pages/v2/InvitedTab.js +223 -0
  32. package/dist/pages/v2/MembersPage.d.ts +1 -0
  33. package/dist/pages/v2/MembersPage.js +120 -0
  34. package/dist/pages/v2/PeopleTab.d.ts +20 -0
  35. package/dist/pages/v2/PeopleTab.js +253 -0
  36. package/dist/pages/v2/ProjectsPage.d.ts +1 -0
  37. package/dist/pages/v2/ProjectsPage.js +242 -0
  38. package/dist/pages/v2/WorkspacesPage.d.ts +3 -0
  39. package/dist/pages/v2/WorkspacesPage.js +247 -0
  40. package/dist/pages/v2/activitySentences.d.ts +50 -0
  41. package/dist/pages/v2/activitySentences.js +288 -0
  42. package/dist/pages/v2/inviteEmails.d.ts +12 -0
  43. package/dist/pages/v2/inviteEmails.js +18 -0
  44. package/dist/pages/v2/memberRows.d.ts +54 -0
  45. package/dist/pages/v2/memberRows.js +51 -0
  46. package/dist/pages/v2/projectRows.d.ts +10 -0
  47. package/dist/pages/v2/projectRows.js +10 -0
  48. package/dist/pages/v2/relativeTime.d.ts +6 -0
  49. package/dist/pages/v2/relativeTime.js +30 -0
  50. package/dist/store/workspacesStore.d.ts +2 -1
  51. package/dist/store/workspacesStore.js +1 -1
  52. package/dist/translations/en.d.ts +436 -0
  53. package/dist/translations/en.js +436 -0
  54. package/dist/types/index.d.ts +19 -0
  55. package/dist/utils/nativeBridge.js +1 -1
  56. package/package.json +3 -3
@@ -2,78 +2,86 @@ import { WorkspacesProvider as e } from "./providers/WorkspacesProvider.js";
2
2
  import { WorkspacesErrorBoundary as t } from "./components/WorkspacesErrorBoundary.js";
3
3
  import { WorkspacesRoutes as n } from "./WorkspacesRoutes.js";
4
4
  import { useEffect as r, useMemo as i } from "react";
5
- import { Activity as a, Building2 as o, FolderKanban as s, Users as c } from "lucide-react";
6
- import { FeatureFlagProvider as l, useFeatureFlags as u } from "@burdenoff/fe-libs/shared/feature-flags";
7
- import { useHeadingDocumentTitle as d } from "@burdenoff/fe-libs/ui";
8
- import { jsx as f } from "react/jsx-runtime";
5
+ import { Activity as a, Building2 as o, FolderKanban as s, Globe as c, Users as l } from "lucide-react";
6
+ import { FeatureFlagProvider as u, useFeatureFlags as d } from "@burdenoff/fe-libs/shared/feature-flags";
7
+ import { useHeadingDocumentTitle as f } from "@burdenoff/fe-libs/ui";
8
+ import { jsx as p } from "react/jsx-runtime";
9
9
  // src/WorkspacesRoot.tsx
10
- var p = (p) => {
11
- let { registerNavItems: m, registerFooterItems: h, basePath: g = "/" } = p, { isEnabled: _, evaluations: v } = u();
12
- d({
13
- enabled: p.variant === "fluidgrids",
10
+ var m = (m) => {
11
+ let { registerNavItems: h, registerFooterItems: g, basePath: _ = "/" } = m, { isEnabled: v, evaluations: y } = d();
12
+ f({
13
+ enabled: m.variant === "fluidgrids",
14
14
  suffix: "FluidGrids"
15
15
  });
16
- let y = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`), b = i(() => ({
17
- isEnabled: _,
18
- evaluations: v
19
- }), [v, _]);
16
+ let b = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`), x = i(() => ({
17
+ isEnabled: v,
18
+ evaluations: y
19
+ }), [y, v]);
20
20
  return r(() => {
21
- if (!m) return;
21
+ if (!h) return;
22
22
  let e = [
23
23
  {
24
24
  id: "workspaces-all",
25
25
  label: "All Workspaces",
26
- path: y(g, "list"),
27
- icon: /* @__PURE__ */ f(o, { size: 20 }),
26
+ path: b(_, "list"),
27
+ icon: /* @__PURE__ */ p(o, { size: 20 }),
28
28
  order: 10,
29
29
  group: "workspaces"
30
30
  },
31
31
  {
32
32
  id: "workspaces-projects",
33
33
  label: "Projects",
34
- path: y(g, "projects"),
35
- icon: /* @__PURE__ */ f(s, { size: 20 }),
34
+ path: b(_, "projects"),
35
+ icon: /* @__PURE__ */ p(s, { size: 20 }),
36
36
  order: 20,
37
37
  group: "workspaces"
38
38
  },
39
39
  {
40
40
  id: "workspaces-members",
41
41
  label: "Members",
42
- path: y(g, "members"),
43
- icon: /* @__PURE__ */ f(c, { size: 20 }),
42
+ path: b(_, "members"),
43
+ icon: /* @__PURE__ */ p(l, { size: 20 }),
44
44
  order: 30,
45
45
  group: "workspaces"
46
46
  },
47
47
  {
48
48
  id: "workspaces-activity",
49
49
  label: "Activity",
50
- path: y(g, "activity"),
51
- icon: /* @__PURE__ */ f(a, { size: 20 }),
50
+ path: b(_, "activity"),
51
+ icon: /* @__PURE__ */ p(a, { size: 20 }),
52
52
  order: 40,
53
53
  group: "workspaces"
54
+ },
55
+ {
56
+ id: "workspaces-collaboration",
57
+ label: "Multi-Org & Sharing",
58
+ path: b(_, "collaboration"),
59
+ icon: /* @__PURE__ */ p(c, { size: 20 }),
60
+ order: 50,
61
+ group: "workspaces"
54
62
  }
55
63
  ];
56
- return m(e);
64
+ return h(e);
57
65
  }, [
58
- m,
59
- g,
60
- b
66
+ h,
67
+ _,
68
+ x
61
69
  ]), r(() => {
62
- if (h) return h([{
70
+ if (g) return g([{
63
71
  id: "workspaces-status",
64
72
  label: "Workspaces Ready",
65
73
  type: "status",
66
74
  order: 10,
67
75
  section: "left"
68
76
  }]);
69
- }, [h]), /* @__PURE__ */ f(l, {
77
+ }, [g]), /* @__PURE__ */ p(u, {
70
78
  workspaceId: null,
71
79
  gateway: "global",
72
80
  defaultEnabled: !0,
73
- children: /* @__PURE__ */ f(t, { children: /* @__PURE__ */ f(e, {
74
- ...p,
75
- children: /* @__PURE__ */ f(n, {})
81
+ children: /* @__PURE__ */ p(t, { children: /* @__PURE__ */ p(e, {
82
+ ...m,
83
+ children: /* @__PURE__ */ p(n, {})
76
84
  }) })
77
85
  });
78
86
  };
79
- export { p as WorkspacesRoot };
87
+ export { m as WorkspacesRoot };
@@ -4,130 +4,162 @@ import { PendingInvitesRoute as n } from "./components/PendingInvitesRoute.js";
4
4
  import { WorkspacesListPage as r } from "./pages/WorkspacesListPage.js";
5
5
  import { Suspense as i, lazy as a } from "react";
6
6
  import { FeatureGate as o } from "@burdenoff/fe-libs/shared/feature-flags";
7
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
- import { Navigate as l, Route as u, Routes as d } from "react-router";
7
+ import { useWorkspacePagesV2 as s } from "@burdenoff/fe-libs/ui";
8
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
9
+ import { Navigate as u, Route as d, Routes as f, useLocation as p, useParams as m } from "react-router";
9
10
  // src/WorkspacesRoutes.tsx
10
- var f = a(() => import("./pages/CreateWorkspacePage.js").then((e) => ({ default: e.CreateWorkspacePage }))), p = a(() => import("./pages/WorkspaceDetailPage.js").then((e) => ({ default: e.WorkspaceDetailPage }))), m = a(() => import("./pages/WorkspaceSettingsPage.js").then((e) => ({ default: e.WorkspaceSettingsPage }))), h = a(() => import("./pages/ProjectsListPage.js").then((e) => ({ default: e.ProjectsListPage }))), g = a(() => import("./pages/ProjectDetailPage.js").then((e) => ({ default: e.ProjectDetailPage }))), _ = a(() => import("./pages/ProjectMembersPage.js").then((e) => ({ default: e.ProjectMembersPage }))), v = a(() => import("./pages/MembersListPage.js").then((e) => ({ default: e.MembersListPage }))), y = a(() => import("./pages/ActivityListPage.js").then((e) => ({ default: e.ActivityListPage }))), b = a(() => import("./pages/InviteAcceptancePage.js").then((e) => ({ default: e.InviteAcceptancePage }))), x = a(() => import("./pages/WorkspaceInvitePage.js").then((e) => ({ default: e.WorkspaceInvitePage })));
11
- function S() {
12
- return /* @__PURE__ */ s("div", {
11
+ var h = a(() => import("./pages/CreateWorkspacePage.js").then((e) => ({ default: e.CreateWorkspacePage }))), g = a(() => import("./pages/WorkspaceDetailPage.js").then((e) => ({ default: e.WorkspaceDetailPage }))), _ = a(() => import("./pages/WorkspaceSettingsPage.js").then((e) => ({ default: e.WorkspaceSettingsPage }))), v = a(() => import("./pages/ProjectsListPage.js").then((e) => ({ default: e.ProjectsListPage }))), y = a(() => import("./pages/ProjectDetailPage.js").then((e) => ({ default: e.ProjectDetailPage }))), b = a(() => import("./pages/ProjectMembersPage.js").then((e) => ({ default: e.ProjectMembersPage }))), x = a(() => import("./pages/MembersListPage.js").then((e) => ({ default: e.MembersListPage }))), S = a(() => import("./pages/ActivityListPage.js").then((e) => ({ default: e.ActivityListPage }))), C = a(() => import("./pages/InviteAcceptancePage.js").then((e) => ({ default: e.InviteAcceptancePage }))), w = a(() => import("./pages/WorkspaceInvitePage.js").then((e) => ({ default: e.WorkspaceInvitePage }))), T = a(() => import("./pages/CollaborationConsolePage.js").then((e) => ({ default: e.CollaborationConsolePage }))), E = a(() => import("./pages/v2/WorkspacesPage.js").then((e) => ({ default: e.WorkspacesPageV2 }))), D = a(() => import("./pages/v2/MembersPage.js").then((e) => ({ default: e.MembersPageV2 }))), O = a(() => import("./pages/v2/ProjectsPage.js").then((e) => ({ default: e.ProjectsPageV2 }))), k = a(() => import("./pages/v2/ActivityPage.js").then((e) => ({ default: e.ActivityPageV2 })));
12
+ function A() {
13
+ return /* @__PURE__ */ c("div", {
13
14
  className: "flex items-center justify-center h-64",
14
- children: /* @__PURE__ */ s("div", { className: "animate-spin rounded-full size-8 border-b-2 border-primary" })
15
+ children: /* @__PURE__ */ c("div", { className: "animate-spin rounded-full size-8 border-b-2 border-primary" })
15
16
  });
16
17
  }
17
- function C() {
18
- return /* @__PURE__ */ s("div", {
18
+ function j() {
19
+ return /* @__PURE__ */ c("div", {
19
20
  className: "flex h-full items-center justify-center p-8 text-center",
20
- children: /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("h2", {
21
+ children: /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("h2", {
21
22
  className: "text-lg font-semibold mb-2 text-text-primary",
22
23
  children: "Feature Not Available"
23
- }), /* @__PURE__ */ s("p", {
24
+ }), /* @__PURE__ */ c("p", {
24
25
  className: "text-sm text-text-secondary",
25
26
  children: "This feature is not currently available. Enable it under Feature Previews to access this functionality."
26
27
  })] })
27
28
  });
28
29
  }
29
- function w(e, t, n = !1) {
30
- return /* @__PURE__ */ s(o, {
30
+ function M(e, t, n = !1) {
31
+ return /* @__PURE__ */ c(o, {
31
32
  flag: e,
32
33
  defaultValue: n,
33
- fallback: /* @__PURE__ */ s(C, {}),
34
+ fallback: /* @__PURE__ */ c(j, {}),
34
35
  children: t
35
36
  });
36
37
  }
37
- function T() {
38
+ function N() {
38
39
  let { basePath: t = "/workspaces" } = e();
39
- return /* @__PURE__ */ s(l, {
40
+ return /* @__PURE__ */ c(u, {
40
41
  to: `${t}/list`,
41
42
  replace: !0
42
43
  });
43
44
  }
44
- function E() {
45
+ function P() {
45
46
  let { basePath: t = "/workspaces", workspaceId: n } = e();
46
- return n ? /* @__PURE__ */ s(l, {
47
+ return n ? /* @__PURE__ */ c(u, {
47
48
  to: `${t}/${n}/invite`,
48
49
  replace: !0
49
- }) : /* @__PURE__ */ s(x, {});
50
+ }) : /* @__PURE__ */ c(w, {});
50
51
  }
51
- function D() {
52
- return /* @__PURE__ */ c(i, {
53
- fallback: /* @__PURE__ */ s(S, {}),
54
- children: [/* @__PURE__ */ s(t, {}), /* @__PURE__ */ c(d, { children: [
55
- /* @__PURE__ */ s(u, {
52
+ function F({ to: e, set: t }) {
53
+ let { search: n } = p(), r = new URLSearchParams(n);
54
+ for (let [e, n] of Object.entries(t ?? {})) r.set(e, n);
55
+ let i = r.toString();
56
+ return /* @__PURE__ */ c(u, {
57
+ to: i ? `${e}?${i}` : e,
58
+ replace: !0
59
+ });
60
+ }
61
+ function I() {
62
+ let { basePath: t = "/workspaces" } = e(), { workspaceId: n } = m();
63
+ return /* @__PURE__ */ c(F, {
64
+ to: `${t}/${n}/members`,
65
+ set: { dialog: "invite" }
66
+ });
67
+ }
68
+ function L() {
69
+ let a = s(), { basePath: o = "/workspaces" } = e();
70
+ return /* @__PURE__ */ l(i, {
71
+ fallback: /* @__PURE__ */ c(A, {}),
72
+ children: [/* @__PURE__ */ c(t, {}), /* @__PURE__ */ l(f, { children: [
73
+ /* @__PURE__ */ c(d, {
56
74
  index: !0,
57
- element: /* @__PURE__ */ s(l, {
75
+ element: a ? /* @__PURE__ */ c(F, { to: `${o}/list` }) : /* @__PURE__ */ c(u, {
58
76
  to: "list",
59
77
  replace: !0
60
78
  })
61
79
  }),
62
- /* @__PURE__ */ s(u, {
80
+ /* @__PURE__ */ c(d, {
63
81
  path: "list",
64
- element: /* @__PURE__ */ s(r, {})
82
+ element: c(a ? E : r, {})
65
83
  }),
66
- /* @__PURE__ */ s(u, {
84
+ /* @__PURE__ */ c(d, {
67
85
  path: "new",
68
- element: /* @__PURE__ */ s(f, {})
86
+ element: /* @__PURE__ */ c(h, {})
87
+ }),
88
+ /* @__PURE__ */ c(d, {
89
+ path: "collaboration",
90
+ element: /* @__PURE__ */ c(T, {})
91
+ }),
92
+ /* @__PURE__ */ c(d, {
93
+ path: "msp",
94
+ element: /* @__PURE__ */ c(T, {})
69
95
  }),
70
- /* @__PURE__ */ s(u, {
96
+ /* @__PURE__ */ c(d, {
71
97
  path: "invites",
72
- element: /* @__PURE__ */ s(n, {})
98
+ element: a ? /* @__PURE__ */ c(F, {
99
+ to: `${o}/list`,
100
+ set: { tab: "invites" }
101
+ }) : /* @__PURE__ */ c(n, {})
73
102
  }),
74
- /* @__PURE__ */ s(u, {
103
+ /* @__PURE__ */ c(d, {
75
104
  path: "invite",
76
- element: /* @__PURE__ */ s(E, {})
105
+ element: a ? /* @__PURE__ */ c(F, {
106
+ to: `${o}/list`,
107
+ set: { dialog: "invite" }
108
+ }) : /* @__PURE__ */ c(P, {})
77
109
  }),
78
- /* @__PURE__ */ s(u, {
110
+ /* @__PURE__ */ c(d, {
79
111
  path: "invite/:invitationId",
80
- element: /* @__PURE__ */ s(b, {})
112
+ element: /* @__PURE__ */ c(C, {})
81
113
  }),
82
- /* @__PURE__ */ s(u, {
114
+ /* @__PURE__ */ c(d, {
83
115
  path: ":workspaceId",
84
- element: /* @__PURE__ */ s(p, {})
116
+ element: /* @__PURE__ */ c(g, {})
85
117
  }),
86
- /* @__PURE__ */ s(u, {
118
+ /* @__PURE__ */ c(d, {
87
119
  path: ":workspaceId/settings",
88
- element: w("workspaces.settings", /* @__PURE__ */ s(m, {}), !0)
120
+ element: M("workspaces.settings", /* @__PURE__ */ c(_, {}), !0)
89
121
  }),
90
- /* @__PURE__ */ s(u, {
122
+ /* @__PURE__ */ c(d, {
91
123
  path: ":workspaceId/invite",
92
- element: /* @__PURE__ */ s(x, {})
124
+ element: c(a ? I : w, {})
93
125
  }),
94
- /* @__PURE__ */ s(u, {
126
+ /* @__PURE__ */ c(d, {
95
127
  path: "projects",
96
- element: /* @__PURE__ */ s(h, {})
128
+ element: c(a ? O : v, {})
97
129
  }),
98
- /* @__PURE__ */ s(u, {
130
+ /* @__PURE__ */ c(d, {
99
131
  path: ":workspaceId/projects",
100
- element: /* @__PURE__ */ s(h, {})
132
+ element: c(a ? O : v, {})
101
133
  }),
102
- /* @__PURE__ */ s(u, {
134
+ /* @__PURE__ */ c(d, {
103
135
  path: ":workspaceId/projects/:projectId",
104
- element: /* @__PURE__ */ s(g, {})
136
+ element: /* @__PURE__ */ c(y, {})
105
137
  }),
106
- /* @__PURE__ */ s(u, {
138
+ /* @__PURE__ */ c(d, {
107
139
  path: ":workspaceId/projects/:projectId/members",
108
- element: /* @__PURE__ */ s(_, {})
140
+ element: /* @__PURE__ */ c(b, {})
109
141
  }),
110
- /* @__PURE__ */ s(u, {
142
+ /* @__PURE__ */ c(d, {
111
143
  path: "members",
112
- element: /* @__PURE__ */ s(v, {})
144
+ element: c(a ? D : x, {})
113
145
  }),
114
- /* @__PURE__ */ s(u, {
146
+ /* @__PURE__ */ c(d, {
115
147
  path: ":workspaceId/members",
116
- element: /* @__PURE__ */ s(v, {})
148
+ element: c(a ? D : x, {})
117
149
  }),
118
- /* @__PURE__ */ s(u, {
150
+ /* @__PURE__ */ c(d, {
119
151
  path: "activity",
120
- element: /* @__PURE__ */ s(y, {})
152
+ element: c(a ? k : S, {})
121
153
  }),
122
- /* @__PURE__ */ s(u, {
154
+ /* @__PURE__ */ c(d, {
123
155
  path: ":workspaceId/activity",
124
- element: /* @__PURE__ */ s(y, {})
156
+ element: c(a ? k : S, {})
125
157
  }),
126
- /* @__PURE__ */ s(u, {
158
+ /* @__PURE__ */ c(d, {
127
159
  path: "*",
128
- element: /* @__PURE__ */ s(T, {})
160
+ element: /* @__PURE__ */ c(N, {})
129
161
  })
130
162
  ] })]
131
163
  });
132
164
  }
133
- export { D as WorkspacesRoutes };
165
+ export { L as WorkspacesRoutes };
@@ -2,24 +2,24 @@ import { formatDate as e } from "../utils/formatters.js";
2
2
  import { getProjectDisplayTags as t } from "../utils/projectTags.js";
3
3
  import { getProjectStatusClasses as n } from "../utils/tokenHelpers.js";
4
4
  import { useArchiveProject as r, useDeleteProject as i, useUnarchiveProject as a } from "../hooks/useProjectMutations.js";
5
- import { useIsFluidGridsVariant as o, useWorkspacesContext as ee } from "../providers/WorkspacesProvider.js";
6
- import { useScopedNavigation as s } from "../hooks/useScopedNavigation.js";
7
- import { nativeConfirm as c, nativeImpact as l } from "../utils/nativeBridge.js";
5
+ import { useIsFluidGridsVariant as o, useWorkspacesContext as s } from "../providers/WorkspacesProvider.js";
6
+ import { useScopedNavigation as c } from "../hooks/useScopedNavigation.js";
7
+ import { nativeImpact as l } from "../utils/nativeBridge.js";
8
8
  import { RenameProjectDialog as u } from "./RenameProjectDialog.js";
9
9
  import { useTr as d } from "../hooks/useTr.js";
10
10
  import { useState as f } from "react";
11
11
  import { Archive as p, Fingerprint as m, FolderKanban as h, MoreVertical as g, Pencil as _ } from "lucide-react";
12
- import { Badge as v, Button as te, CardContent as y, CardHeader as b, CardTitle as x, DropdownMenu as S, DropdownMenuContent as C, DropdownMenuItem as w, DropdownMenuTrigger as T, EntityIdModal as E, GlassCard as D, useEntityIdModal as O } from "@burdenoff/fe-libs/ui";
13
- import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
14
- import { useNavigate as M } from "react-router";
15
- import { TagBadge as N } from "@burdenoff/fe-libs/tag";
12
+ import { Badge as v, Button as ee, CardContent as y, CardHeader as b, CardTitle as x, DropdownMenu as S, DropdownMenuContent as C, DropdownMenuItem as w, DropdownMenuTrigger as T, EntityIdModal as E, GlassCard as D, useConfirm as O, useEntityIdModal as k } from "@burdenoff/fe-libs/ui";
13
+ import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
14
+ import { useNavigate as N } from "react-router";
15
+ import { TagBadge as te } from "@burdenoff/fe-libs/tag";
16
16
  // src/components/ProjectCard.tsx
17
17
  function P({ project: P, selected: F = !1, onToggleSelect: I, onTagClick: L, canArchive: R = !1, canDelete: z = !1, canRename: B = !1 }) {
18
- let V = M(), { basePath: H = "/workspaces" } = ee(), { withCurrentSearch: U } = s(), { mutate: W } = r(P.workspaceId), { mutate: G } = a(P.workspaceId), { mutate: K } = i(P.workspaceId), q = O(), [J, Y] = f(!1), X = t(P), Z = d(), Q = o(), $ = () => {
18
+ let V = N(), { basePath: H = "/workspaces" } = s(), { withCurrentSearch: U } = c(), { mutate: W } = r(P.workspaceId), { mutate: G } = a(P.workspaceId), { mutate: K } = i(P.workspaceId), q = k(), [J, Y] = f(!1), X = t(P), Z = d(), Q = o(), ne = O(), $ = () => {
19
19
  V(U(`${H}/${P.workspaceId}/projects/${P.id}`));
20
20
  };
21
- return /* @__PURE__ */ j(k, { children: [
22
- /* @__PURE__ */ j(D, {
21
+ return /* @__PURE__ */ M(A, { children: [
22
+ /* @__PURE__ */ M(D, {
23
23
  treatment: "insight",
24
24
  className: `cursor-pointer relative focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-action-primary-bg/50 ${F ? "ring-2 ring-primary/25 border-primary/50" : ""}`,
25
25
  onClick: $,
@@ -29,12 +29,12 @@ function P({ project: P, selected: F = !1, onToggleSelect: I, onTagClick: L, can
29
29
  role: "button",
30
30
  tabIndex: 0,
31
31
  "aria-label": Z("projectCard.openProjectAriaLabel", "Open project {{name}}", { name: P.name }),
32
- children: [/* @__PURE__ */ A(b, { children: /* @__PURE__ */ j("div", {
32
+ children: [/* @__PURE__ */ j(b, { children: /* @__PURE__ */ M("div", {
33
33
  className: "flex items-start justify-between",
34
- children: [/* @__PURE__ */ j("div", {
34
+ children: [/* @__PURE__ */ M("div", {
35
35
  className: "flex items-center gap-3 flex-1",
36
36
  children: [
37
- I && /* @__PURE__ */ A("input", {
37
+ I && /* @__PURE__ */ j("input", {
38
38
  type: "checkbox",
39
39
  checked: F,
40
40
  onChange: (e) => I(e.target.checked),
@@ -42,40 +42,40 @@ function P({ project: P, selected: F = !1, onToggleSelect: I, onTagClick: L, can
42
42
  "aria-label": Z("projectCard.selectProjectAriaLabel", "Select project {{name}}", { name: P.name }),
43
43
  className: "mt-1 size-4 rounded border-border-subtle text-primary"
44
44
  }),
45
- /* @__PURE__ */ A("div", {
45
+ /* @__PURE__ */ j("div", {
46
46
  className: "p-3 rounded-lg bg-action-primary-bg/10 transition-colors",
47
- children: /* @__PURE__ */ A(h, {
47
+ children: /* @__PURE__ */ j(h, {
48
48
  className: "text-primary",
49
49
  size: 24
50
50
  })
51
51
  }),
52
- /* @__PURE__ */ j("div", {
52
+ /* @__PURE__ */ M("div", {
53
53
  className: "flex-1 min-w-0",
54
- children: [/* @__PURE__ */ A(x, {
54
+ children: [/* @__PURE__ */ j(x, {
55
55
  className: "truncate",
56
56
  children: P.name
57
- }), Q ? null : /* @__PURE__ */ A("p", {
57
+ }), Q ? null : /* @__PURE__ */ j("p", {
58
58
  className: "truncate text-sm text-text-secondary",
59
59
  children: P.key
60
60
  })]
61
61
  })
62
62
  ]
63
- }), /* @__PURE__ */ j(S, { children: [/* @__PURE__ */ A(T, {
63
+ }), /* @__PURE__ */ M(S, { children: [/* @__PURE__ */ j(T, {
64
64
  asChild: !0,
65
65
  onClick: (e) => e.stopPropagation(),
66
- children: /* @__PURE__ */ j(te, {
66
+ children: /* @__PURE__ */ M(ee, {
67
67
  variant: "ghost",
68
68
  size: "sm",
69
69
  className: "size-8 p-0",
70
- children: [/* @__PURE__ */ A(g, { size: 16 }), /* @__PURE__ */ A("span", {
70
+ children: [/* @__PURE__ */ j(g, { size: 16 }), /* @__PURE__ */ j("span", {
71
71
  className: "sr-only",
72
72
  children: Z("projectCard.openActions", "Open project actions")
73
73
  })]
74
74
  })
75
- }), /* @__PURE__ */ j(C, {
75
+ }), /* @__PURE__ */ M(C, {
76
76
  align: "end",
77
77
  children: [
78
- /* @__PURE__ */ j(w, {
78
+ /* @__PURE__ */ M(w, {
79
79
  onClick: (e) => {
80
80
  e.stopPropagation(), q.show({
81
81
  id: P.id,
@@ -90,70 +90,71 @@ function P({ project: P, selected: F = !1, onToggleSelect: I, onTagClick: L, can
90
90
  }]
91
91
  });
92
92
  },
93
- children: [/* @__PURE__ */ A(m, {
93
+ children: [/* @__PURE__ */ j(m, {
94
94
  size: 16,
95
95
  className: "mr-2"
96
96
  }), Z("projectCard.getId", "Get ID")]
97
97
  }),
98
- B && /* @__PURE__ */ j(w, {
98
+ B && /* @__PURE__ */ M(w, {
99
99
  onClick: (e) => {
100
100
  e.stopPropagation(), Y(!0);
101
101
  },
102
- children: [/* @__PURE__ */ A(_, {
102
+ children: [/* @__PURE__ */ j(_, {
103
103
  size: 16,
104
104
  className: "mr-2"
105
105
  }), Z("projectCard.rename", "Rename")]
106
106
  }),
107
- R && /* @__PURE__ */ j(w, {
107
+ R && /* @__PURE__ */ M(w, {
108
108
  onClick: (e) => {
109
109
  e.stopPropagation(), P.archived ? G(P.id) : W(P.id);
110
110
  },
111
- children: [/* @__PURE__ */ A(p, {
111
+ children: [/* @__PURE__ */ j(p, {
112
112
  size: 16,
113
113
  className: "mr-2"
114
114
  }), P.archived ? Z("projectCard.unarchive", "Unarchive") : Z("projectCard.archive", "Archive")]
115
115
  }),
116
- z && /* @__PURE__ */ A(w, {
116
+ z && /* @__PURE__ */ j(w, {
117
117
  onClick: async (e) => {
118
118
  e.stopPropagation(), l("medium");
119
- let t = Q ? Z("projectCard.deleteMessageNamed", "Delete \"{{name}}\"? All of its data is removed for good. This cannot be undone.", { name: P.name }) : Z("projectCard.deleteMessage", "Are you sure you want to delete \"{{name}}\"?", { name: P.name }), n = await c({
119
+ let t = Q ? Z("projectCard.deleteMessageNamed", "Delete \"{{name}}\"? All of its data is removed for good. This cannot be undone.", { name: P.name }) : Z("projectCard.deleteMessage", "Are you sure you want to delete \"{{name}}\"?", { name: P.name });
120
+ await ne({
120
121
  title: Z("projectCard.deleteTitle", "Delete project"),
121
- message: t,
122
- okButtonTitle: Z("common.delete", "Delete"),
123
- cancelButtonTitle: Z("common.cancel", "Cancel")
124
- });
125
- (n === null ? confirm(t) : n) && K(P.id);
122
+ description: t,
123
+ tone: "danger",
124
+ confirmLabel: Z("common.delete", "Delete"),
125
+ cancelLabel: Z("common.cancel", "Cancel")
126
+ }) && K(P.id);
126
127
  },
127
128
  className: "text-status-error-text",
128
129
  children: Z("projectCard.delete", "Delete")
129
130
  })
130
131
  ]
131
132
  })] })]
132
- }) }), /* @__PURE__ */ j(y, {
133
+ }) }), /* @__PURE__ */ M(y, {
133
134
  className: "space-y-3",
134
135
  children: [
135
- /* @__PURE__ */ j("div", {
136
+ /* @__PURE__ */ M("div", {
136
137
  className: "flex items-center gap-2",
137
- children: [/* @__PURE__ */ A(v, {
138
+ children: [/* @__PURE__ */ j(v, {
138
139
  className: `border ${n(P.status)}`,
139
140
  children: P.status
140
- }), P.archived && /* @__PURE__ */ j(v, {
141
+ }), P.archived && /* @__PURE__ */ M(v, {
141
142
  variant: "outline",
142
143
  className: "border-workspace-archived-border text-workspace-archived-text",
143
- children: [/* @__PURE__ */ A(p, {
144
+ children: [/* @__PURE__ */ j(p, {
144
145
  size: 12,
145
146
  className: "mr-1"
146
147
  }), Z("projectCard.archivedLabel", "Archived")]
147
148
  })]
148
149
  }),
149
- /* @__PURE__ */ A("div", {
150
+ /* @__PURE__ */ j("div", {
150
151
  className: "text-xs text-text-secondary",
151
152
  children: Z("projectCard.created", "Created {{date}}", { date: e(P.createdAt) })
152
153
  }),
153
- X.length > 0 && /* @__PURE__ */ j("div", {
154
+ X.length > 0 && /* @__PURE__ */ M("div", {
154
155
  className: "flex flex-wrap gap-1.5",
155
156
  "aria-label": Z("projectCard.projectTagsAriaLabel", "Project tags"),
156
- children: [X.slice(0, 4).map((e) => /* @__PURE__ */ A("span", {
157
+ children: [X.slice(0, 4).map((e) => /* @__PURE__ */ j("span", {
157
158
  ...L ? {
158
159
  role: "button",
159
160
  tabIndex: 0,
@@ -164,7 +165,7 @@ function P({ project: P, selected: F = !1, onToggleSelect: I, onTagClick: L, can
164
165
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), L(e));
165
166
  }
166
167
  } : {},
167
- children: /* @__PURE__ */ A(N, {
168
+ children: /* @__PURE__ */ j(te, {
168
169
  id: e.tagId,
169
170
  label: e.label,
170
171
  color: e.color ?? void 0,
@@ -173,7 +174,7 @@ function P({ project: P, selected: F = !1, onToggleSelect: I, onTagClick: L, can
173
174
  size: "sm",
174
175
  className: L ? "cursor-pointer" : void 0
175
176
  })
176
- }, e.tagId)), X.length > 4 && /* @__PURE__ */ j(v, {
177
+ }, e.tagId)), X.length > 4 && /* @__PURE__ */ M(v, {
177
178
  variant: "outline",
178
179
  className: "text-xs",
179
180
  children: ["+", X.length - 4]
@@ -182,8 +183,8 @@ function P({ project: P, selected: F = !1, onToggleSelect: I, onTagClick: L, can
182
183
  ]
183
184
  })]
184
185
  }),
185
- /* @__PURE__ */ A(E, { control: q }),
186
- J && /* @__PURE__ */ A(u, {
186
+ /* @__PURE__ */ j(E, { control: q }),
187
+ J && /* @__PURE__ */ j(u, {
187
188
  project: P,
188
189
  open: J,
189
190
  onOpenChange: Y
@@ -10,3 +10,8 @@ export declare const NAVIGATION_V2_MY_INVITES_PATH = "/organizations/invites";
10
10
  * workspace invite form.
11
11
  */
12
12
  export declare const NAVIGATION_V2_ORGANIZATION_INVITE_PATH = "/organizations/invite";
13
+ /**
14
+ * People & access (microfe-rbac, mounted at `/rbac` in FluidGrids): the sidebar parent of
15
+ * Members, which the redesigned Members page links back to on phones (BOFF-15736).
16
+ */
17
+ export declare const NAVIGATION_V2_PEOPLE_ACCESS_PATH = "/rbac";
@@ -1,3 +1,3 @@
1
1
  // src/constants/navigationV2.ts
2
- var e = "/organizations/invites", t = "/organizations/invite";
3
- export { e as NAVIGATION_V2_MY_INVITES_PATH, t as NAVIGATION_V2_ORGANIZATION_INVITE_PATH };
2
+ var e = "/organizations/invites", t = "/organizations/invite", n = "/rbac";
3
+ export { e as NAVIGATION_V2_MY_INVITES_PATH, t as NAVIGATION_V2_ORGANIZATION_INVITE_PATH, n as NAVIGATION_V2_PEOPLE_ACCESS_PATH };
@@ -27,7 +27,17 @@ export type CreateWorkspaceInput = {
27
27
  organizationId?: string | null | undefined;
28
28
  region?: string | null | undefined;
29
29
  slug: string;
30
- tenantId: string;
30
+ /**
31
+ * Optional. When omitted the server derives the tenant from the parent
32
+ * organization (a workspace always lives in its organization's tenant). With a
33
+ * single shared tenant there is nothing for the client to choose, so the tenant
34
+ * picker is hidden and this is left unset.
35
+ */
36
+ tenantId?: string | null | undefined;
37
+ /**
38
+ * Deprecated: workspaces no longer expose a user-facing type. New workspaces
39
+ * default to TEAM; the field is retained for backward compatibility only.
40
+ */
31
41
  type?: WorkspaceType | null | undefined;
32
42
  };
33
43
  /** Dashboard widget configuration for customization. */