@burdenoff/microfe-workspaces 2026.1121.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.
@@ -2,14 +2,14 @@ import { useWorkspacesStore as e } from "../store/workspacesStore.js";
2
2
  import { useMyWorkspaces as t } from "../hooks/useWorkspaces.js";
3
3
  import { useMyPendingInvitations as n } from "../hooks/usePendingInvitations.js";
4
4
  import { WorkspaceCard as r } from "../components/WorkspaceCard.js";
5
- import { useWorkspacesContext as i } from "../providers/WorkspacesProvider.js";
6
- import { WORKSPACE_PERMISSIONS as a } from "../constants/permissions.js";
7
- import { tWithFallback as o } from "../utils/i18n.js";
8
- import { useScopedNavigation as s } from "../hooks/useScopedNavigation.js";
9
- import { useWorkspacesPageView as c } from "../hooks/useWorkspacesPageView.js";
10
- import { useEffect as l, useState as u } from "react";
11
- import { Grid3X3 as d, List as f, Mail as p, MoreHorizontal as m, Plus as h, Search as g, UserPlus as _ } from "lucide-react";
12
- import { AuroraBackground as v, Badge as y, Button as b, DropdownMenu as x, DropdownMenuContent as S, DropdownMenuItem as C, DropdownMenuTrigger as w, GradientText as T, IllustratedEmptyState as E, Input as ee, PagePurpose as te, Skeleton as D } from "@burdenoff/fe-libs/ui";
5
+ import { useWorkspacesContext as ee } from "../providers/WorkspacesProvider.js";
6
+ import { WORKSPACE_PERMISSIONS as i } from "../constants/permissions.js";
7
+ import { tWithFallback as a } from "../utils/i18n.js";
8
+ import { useScopedNavigation as o } from "../hooks/useScopedNavigation.js";
9
+ import { useWorkspacesPageView as s } from "../hooks/useWorkspacesPageView.js";
10
+ import { useEffect as c, useState as l } from "react";
11
+ import { Globe as u, Grid3X3 as d, List as f, Mail as p, MoreHorizontal as m, Plus as h, Search as g, UserPlus as _ } from "lucide-react";
12
+ import { AuroraBackground as v, Badge as te, Button as y, DropdownMenu as ne, DropdownMenuContent as b, DropdownMenuItem as x, DropdownMenuTrigger as S, GradientText as C, IllustratedEmptyState as w, Input as T, PagePurpose as E, Skeleton as D } from "@burdenoff/fe-libs/ui";
13
13
  import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
14
14
  import { useI18n as j } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
15
15
  import { useNavigate as M } from "react-router";
@@ -17,20 +17,20 @@ import { useDebounce as N } from "@burdenoff/fe-libs/shared/hooks";
17
17
  import { PermissionButton as P } from "@burdenoff/fe-libs/shared/components";
18
18
  // src/pages/WorkspacesListPage.tsx
19
19
  function F() {
20
- c("workspaces.list");
21
- let { t: F } = j(), I = M(), { basePath: L = "/", currentUser: R, workspaceId: z } = i(), { withCurrentSearch: B } = s(), { viewMode: V, setViewMode: H, workspaceFilters: U, setWorkspaceFilters: W } = e(), G = () => {
20
+ s("workspaces.list");
21
+ let { t: F } = j(), I = M(), { basePath: L = "/", currentUser: R, workspaceId: z } = ee(), { withCurrentSearch: B } = o(), { viewMode: V, setViewMode: H, workspaceFilters: U, setWorkspaceFilters: W } = e(), G = () => {
22
22
  I(B(`${L}/new`));
23
- }, [K, q] = u(U.search || ""), J = N(K, 500);
24
- l(() => {
23
+ }, [K, q] = l(U.search || ""), J = N(K, 500);
24
+ c(() => {
25
25
  J !== U.search && W({ search: J });
26
26
  }, [
27
27
  J,
28
28
  U.search,
29
29
  W
30
30
  ]);
31
- let { data: Y, isLoading: X, error: Z } = t(), { data: ne = [] } = n(R?.email), Q = ne.length, re = () => {
31
+ let { data: Y, isLoading: X, error: Z } = t(), { data: re = [] } = n(R?.email), Q = re.length, ie = () => {
32
32
  I(B(`${L}/invites`));
33
- }, ie = () => {
33
+ }, ae = () => {
34
34
  z && I(B(`${L}/${z}/invite`));
35
35
  }, $ = Y ? {
36
36
  ...Y,
@@ -43,10 +43,10 @@ function F() {
43
43
  className: "flex flex-col items-center justify-center py-12",
44
44
  children: [/* @__PURE__ */ k("p", {
45
45
  className: "text-status-error-text text-lg font-semibold",
46
- children: o(F, "workspacesList.loadError", "Error loading workspaces")
46
+ children: a(F, "workspacesList.loadError", "Error loading workspaces")
47
47
  }), /* @__PURE__ */ k("p", {
48
48
  className: "text-text-secondary text-sm mt-2",
49
- children: Z instanceof Error ? Z.message : o(F, "workspacesList.unknownError", "Unknown error")
49
+ children: Z instanceof Error ? Z.message : a(F, "workspacesList.unknownError", "Unknown error")
50
50
  })]
51
51
  })
52
52
  }) : /* @__PURE__ */ A("div", {
@@ -59,75 +59,86 @@ function F() {
59
59
  /* @__PURE__ */ k(v, { intensity: "subtle" }),
60
60
  /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("h1", {
61
61
  className: "text-2xl sm:text-3xl font-bold",
62
- children: /* @__PURE__ */ k(T, { children: o(F, "workspacesList.title", "Workspaces") })
62
+ children: /* @__PURE__ */ k(C, { children: a(F, "workspacesList.title", "Workspaces") })
63
63
  }), /* @__PURE__ */ k("p", {
64
64
  className: "text-sm sm:text-base text-text-secondary",
65
- children: o(F, "workspacesList.description", "Manage and organize your workspaces")
65
+ children: a(F, "workspacesList.description", "Manage and organize your workspaces")
66
66
  })] }),
67
67
  /* @__PURE__ */ A("div", {
68
68
  className: "flex items-center gap-2",
69
69
  "data-tour": "workspaces-list-actions",
70
70
  children: [
71
- /* @__PURE__ */ k(b, {
71
+ /* @__PURE__ */ k(y, {
72
72
  variant: V === "grid" ? "default" : "outline",
73
73
  size: "icon",
74
74
  onClick: () => H("grid"),
75
75
  className: "hidden sm:flex",
76
- "aria-label": o(F, "workspacesList.gridViewAriaLabel", "Show workspaces in grid view"),
77
- title: o(F, "workspacesList.gridViewTitle", "Grid view"),
76
+ "aria-label": a(F, "workspacesList.gridViewAriaLabel", "Show workspaces in grid view"),
77
+ title: a(F, "workspacesList.gridViewTitle", "Grid view"),
78
78
  children: /* @__PURE__ */ k(d, { size: 20 })
79
79
  }),
80
- /* @__PURE__ */ k(b, {
80
+ /* @__PURE__ */ k(y, {
81
81
  variant: V === "list" ? "default" : "outline",
82
82
  size: "icon",
83
83
  onClick: () => H("list"),
84
84
  className: "hidden sm:flex",
85
- "aria-label": o(F, "workspacesList.listViewAriaLabel", "Show workspaces in list view"),
86
- title: o(F, "workspacesList.listViewTitle", "List view"),
85
+ "aria-label": a(F, "workspacesList.listViewAriaLabel", "Show workspaces in list view"),
86
+ title: a(F, "workspacesList.listViewTitle", "List view"),
87
87
  children: /* @__PURE__ */ k(f, { size: 20 })
88
88
  }),
89
- /* @__PURE__ */ A(x, { children: [/* @__PURE__ */ k(w, {
89
+ /* @__PURE__ */ A(ne, { children: [/* @__PURE__ */ k(S, {
90
90
  asChild: !0,
91
- children: /* @__PURE__ */ A(b, {
91
+ children: /* @__PURE__ */ A(y, {
92
92
  variant: "outline",
93
93
  size: "icon",
94
94
  "aria-label": "More actions",
95
95
  className: "relative",
96
96
  children: [/* @__PURE__ */ k(m, { size: 18 }), Q > 0 ? /* @__PURE__ */ k("span", { className: "absolute -top-1 -right-1 flex size-2 rounded-full bg-action-primary-bg" }) : null]
97
97
  })
98
- }), /* @__PURE__ */ A(S, {
98
+ }), /* @__PURE__ */ A(b, {
99
99
  align: "end",
100
- children: [/* @__PURE__ */ k(P, {
101
- permission: a.MEMBER_CREATE,
102
- deniedBehavior: "disable",
103
- deniedTooltip: o(F, "workspacesList.inviteDeniedTooltip", "You don't have permission to invite members into the current workspace"),
104
- children: /* @__PURE__ */ A(C, {
100
+ children: [
101
+ /* @__PURE__ */ k(P, {
102
+ permission: i.MEMBER_CREATE,
103
+ deniedBehavior: "disable",
104
+ deniedTooltip: a(F, "workspacesList.inviteDeniedTooltip", "You don't have permission to invite members into the current workspace"),
105
+ children: /* @__PURE__ */ A(x, {
106
+ onSelect: ae,
107
+ disabled: !z,
108
+ className: "gap-2",
109
+ children: [/* @__PURE__ */ k(_, { size: 16 }), a(F, "workspacesList.inviteMemberButton", "Invite Member")]
110
+ })
111
+ }),
112
+ /* @__PURE__ */ A(x, {
105
113
  onSelect: ie,
106
- disabled: !z,
107
114
  className: "gap-2",
108
- children: [/* @__PURE__ */ k(_, { size: 16 }), o(F, "workspacesList.inviteMemberButton", "Invite Member")]
109
- })
110
- }), /* @__PURE__ */ A(C, {
111
- onSelect: re,
112
- className: "gap-2",
113
- children: [
114
- /* @__PURE__ */ k(p, { size: 16 }),
115
- /* @__PURE__ */ k("span", {
115
+ children: [
116
+ /* @__PURE__ */ k(p, { size: 16 }),
117
+ /* @__PURE__ */ k("span", {
118
+ className: "flex-1",
119
+ children: a(F, "workspacesList.pendingInvitesButton", "Pending Invites")
120
+ }),
121
+ Q > 0 ? /* @__PURE__ */ k(te, {
122
+ variant: "secondary",
123
+ children: Q
124
+ }) : null
125
+ ]
126
+ }),
127
+ /* @__PURE__ */ A(x, {
128
+ onSelect: () => I(B(`${L}/collaboration`)),
129
+ className: "gap-2",
130
+ children: [/* @__PURE__ */ k(u, { size: 16 }), /* @__PURE__ */ k("span", {
116
131
  className: "flex-1",
117
- children: o(F, "workspacesList.pendingInvitesButton", "Pending Invites")
118
- }),
119
- Q > 0 ? /* @__PURE__ */ k(y, {
120
- variant: "secondary",
121
- children: Q
122
- }) : null
123
- ]
124
- })]
132
+ children: a(F, "workspacesList.collaborationConsoleButton", "Multi-Org & Sharing")
133
+ })]
134
+ })
135
+ ]
125
136
  })] }),
126
137
  /* @__PURE__ */ k(P, {
127
- permission: a.WORKSPACE_CREATE,
138
+ permission: i.WORKSPACE_CREATE,
128
139
  deniedBehavior: "disable",
129
- deniedTooltip: o(F, "workspacesList.createDeniedTooltip", "You don't have permission to create workspaces"),
130
- children: /* @__PURE__ */ A(b, {
140
+ deniedTooltip: a(F, "workspacesList.createDeniedTooltip", "You don't have permission to create workspaces"),
141
+ children: /* @__PURE__ */ A(y, {
131
142
  onClick: G,
132
143
  className: "gap-2",
133
144
  "data-tour": "workspaces-create-button",
@@ -135,11 +146,11 @@ function F() {
135
146
  /* @__PURE__ */ k(h, { size: 20 }),
136
147
  /* @__PURE__ */ k("span", {
137
148
  className: "hidden sm:inline",
138
- children: o(F, "workspacesList.createButton", "Create Workspace")
149
+ children: a(F, "workspacesList.createButton", "Create Workspace")
139
150
  }),
140
151
  /* @__PURE__ */ k("span", {
141
152
  className: "sm:hidden",
142
- children: o(F, "workspacesList.createButtonShort", "Create")
153
+ children: a(F, "workspacesList.createButtonShort", "Create")
143
154
  })
144
155
  ]
145
156
  })
@@ -148,15 +159,15 @@ function F() {
148
159
  })
149
160
  ]
150
161
  }),
151
- /* @__PURE__ */ k(te, { children: o(F, "workspacesList.purpose", "Workspaces are shared homes for a team or initiative — each one groups its own projects, members, agents and activity. Create one per team, client or product line to keep work isolated, then switch between them from the sidebar.") }),
162
+ /* @__PURE__ */ k(E, { children: a(F, "workspacesList.purpose", "Workspaces are shared homes for a team or initiative — each one groups its own projects, members, agents and activity. Create one per team, client or product line to keep work isolated, then switch between them from the sidebar.") }),
152
163
  /* @__PURE__ */ A("div", {
153
164
  className: "relative",
154
165
  "data-tour": "workspaces-search-input",
155
166
  children: [/* @__PURE__ */ k(g, {
156
167
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary",
157
168
  size: 20
158
- }), /* @__PURE__ */ k(ee, {
159
- placeholder: o(F, "workspacesList.searchPlaceholder", "Search workspaces..."),
169
+ }), /* @__PURE__ */ k(T, {
170
+ placeholder: a(F, "workspacesList.searchPlaceholder", "Search workspaces..."),
160
171
  value: K,
161
172
  onChange: (e) => {
162
173
  q(e.target.value);
@@ -179,18 +190,18 @@ function F() {
179
190
  })]
180
191
  }), /* @__PURE__ */ k(D, { className: "h-3 w-1/3" })]
181
192
  }, t))
182
- }) : $?.items.length === 0 ? /* @__PURE__ */ k(E, {
193
+ }) : $?.items.length === 0 ? /* @__PURE__ */ k(w, {
183
194
  illustration: U.search ? "empty-search" : "onboarding",
184
- title: o(F, "workspacesList.emptyTitle", "No workspaces found"),
185
- description: U.search ? o(F, "workspacesList.emptySearchHint", "Try adjusting your search criteria") : o(F, "workspacesList.emptyCreateHint", "Get started by creating your first workspace"),
195
+ title: a(F, "workspacesList.emptyTitle", "No workspaces found"),
196
+ description: U.search ? a(F, "workspacesList.emptySearchHint", "Try adjusting your search criteria") : a(F, "workspacesList.emptyCreateHint", "Get started by creating your first workspace"),
186
197
  action: U.search ? void 0 : /* @__PURE__ */ k(P, {
187
- permission: a.WORKSPACE_CREATE,
198
+ permission: i.WORKSPACE_CREATE,
188
199
  deniedBehavior: "disable",
189
- deniedTooltip: o(F, "workspacesList.createDeniedTooltip", "You don't have permission to create workspaces"),
190
- children: /* @__PURE__ */ A(b, {
200
+ deniedTooltip: a(F, "workspacesList.createDeniedTooltip", "You don't have permission to create workspaces"),
201
+ children: /* @__PURE__ */ A(y, {
191
202
  onClick: G,
192
203
  className: "gap-2",
193
- children: [/* @__PURE__ */ k(h, { size: 20 }), o(F, "workspacesList.createFirstButton", "Create Your First Workspace")]
204
+ children: [/* @__PURE__ */ k(h, { size: 20 }), a(F, "workspacesList.createFirstButton", "Create Your First Workspace")]
194
205
  })
195
206
  }),
196
207
  kind: U.search ? "no-results" : "first-use"
@@ -203,18 +214,18 @@ function F() {
203
214
  }), $ && $.total > 0 && /* @__PURE__ */ A("div", {
204
215
  className: "flex items-center justify-between text-sm text-text-secondary",
205
216
  children: [/* @__PURE__ */ A("p", { children: [
206
- o(F, "workspacesList.showing", "Showing"),
217
+ a(F, "workspacesList.showing", "Showing"),
207
218
  " ",
208
219
  $.items.length,
209
220
  " ",
210
- o(F, "workspacesList.of", "of"),
221
+ a(F, "workspacesList.of", "of"),
211
222
  " ",
212
223
  $.total,
213
224
  " ",
214
- $.total === 1 ? o(F, "workspacesList.workspace", "workspace") : o(F, "workspacesList.workspaces", "workspaces")
225
+ $.total === 1 ? a(F, "workspacesList.workspace", "workspace") : a(F, "workspacesList.workspaces", "workspaces")
215
226
  ] }), $.hasMore && /* @__PURE__ */ k("p", {
216
227
  className: "text-xs",
217
- children: o(F, "workspacesList.moreAvailable", "More workspaces available - pagination coming soon")
228
+ children: a(F, "workspacesList.moreAvailable", "More workspaces available - pagination coming soon")
218
229
  })]
219
230
  })] })
220
231
  })
@@ -23,6 +23,60 @@ export declare const enTranslations: {
23
23
  purpose: string;
24
24
  title: string;
25
25
  };
26
+ collaborationConsole: {
27
+ accessLevelLabel: string;
28
+ badgeDirect: string;
29
+ badgeMspManaged: string;
30
+ billingModeLabel: string;
31
+ closeButton: string;
32
+ createMspTitle: string;
33
+ createShareTitle: string;
34
+ currentWorkspace: string;
35
+ emptyPortfolio: string;
36
+ emptyPortfolioHint: string;
37
+ inspectOrg: string;
38
+ kpiActiveSuffix: string;
39
+ kpiLinksSuffix: string;
40
+ kpiManagedSuffix: string;
41
+ kpiOrgs: string;
42
+ kpiProjectsSuffix: string;
43
+ kpiSeats: string;
44
+ kpiShares: string;
45
+ kpiWorkspaces: string;
46
+ mspApproved: string;
47
+ mspCreated: string;
48
+ mspReactivated: string;
49
+ mspRevoked: string;
50
+ mspSuspended: string;
51
+ newMspLinkButton: string;
52
+ newShareButton: string;
53
+ noMspLinks: string;
54
+ noMspLinksHint: string;
55
+ noShares: string;
56
+ noSharesHint: string;
57
+ orgDrilldownTitle: string;
58
+ overviewError: string;
59
+ projectsLabel: string;
60
+ purpose: string;
61
+ resourceIdLabel: string;
62
+ resourceNameLabel: string;
63
+ resourceTypeLabel: string;
64
+ scopeRequired: string;
65
+ seatsLabel: string;
66
+ shareAccepted: string;
67
+ shareCreated: string;
68
+ shareRevoked: string;
69
+ subtitle: string;
70
+ switchButton: string;
71
+ switchedToast: string;
72
+ tabMsp: string;
73
+ tabPortfolio: string;
74
+ tabShares: string;
75
+ tabsAria: string;
76
+ targetWorkspaceLabel: string;
77
+ title: string;
78
+ workspaceRequired: string;
79
+ };
26
80
  common: {
27
81
  cancel: string;
28
82
  delete: string;
@@ -14,6 +14,60 @@ var e = {
14
14
  purpose: "This is the audit trail for the workspace — a running log of who did what and when. Use it to catch up after time away, confirm a change went through, or investigate when and by whom a project or member was modified.",
15
15
  title: "Activity"
16
16
  },
17
+ collaborationConsole: {
18
+ accessLevelLabel: "Access Level",
19
+ badgeDirect: "Direct Org",
20
+ badgeMspManaged: "MSP Delegated",
21
+ billingModeLabel: "Billing Mode",
22
+ closeButton: "Close",
23
+ createMspTitle: "Propose MSP Organization Link",
24
+ createShareTitle: "Offer Cross-Workspace Share",
25
+ currentWorkspace: "Active",
26
+ emptyPortfolio: "No accessible organizations yet",
27
+ emptyPortfolioHint: "Create a workspace or link a client organization to manage multiple tenants from one view.",
28
+ inspectOrg: "Summary",
29
+ kpiActiveSuffix: "active",
30
+ kpiLinksSuffix: "MSP links",
31
+ kpiManagedSuffix: "MSP-managed",
32
+ kpiOrgs: "Organizations",
33
+ kpiProjectsSuffix: "projects",
34
+ kpiSeats: "Aggregated Seats",
35
+ kpiShares: "Active Shares",
36
+ kpiWorkspaces: "Workspaces",
37
+ mspApproved: "MSP organization link approved",
38
+ mspCreated: "MSP link proposed — awaiting client organization approval",
39
+ mspReactivated: "MSP link reactivated",
40
+ mspRevoked: "MSP organization link revoked",
41
+ mspSuspended: "MSP link suspended",
42
+ newMspLinkButton: "Link Client Org",
43
+ newShareButton: "Share Resource",
44
+ noMspLinks: "No MSP organization links yet",
45
+ noMspLinksHint: "Link managed client organizations to oversee workspaces, delegated roles, and consolidated seat usage from one console.",
46
+ noShares: "No cross-workspace shares yet",
47
+ noSharesHint: "Share a channel, project, or cross-workspace mentions with a partner workspace. Target consent is always required.",
48
+ orgDrilldownTitle: "Organization Billing & Access Summary",
49
+ overviewError: "Unable to load multi-org overview",
50
+ projectsLabel: "Projects",
51
+ purpose: "Strict workspace isolation stays on by default. Every cross-workspace share (channels, projects, mentions) and MSP organization link starts pending and activates only after explicit target-side consent. Either organization can revoke access instantaneously.",
52
+ resourceIdLabel: "Resource ID *",
53
+ resourceNameLabel: "Display Name *",
54
+ resourceTypeLabel: "Resource Kind *",
55
+ scopeRequired: "Select at least one delegated permission scope",
56
+ seatsLabel: "Active Seats",
57
+ shareAccepted: "Share consent granted and activated",
58
+ shareCreated: "Cross-workspace share offered (pending target consent)",
59
+ shareRevoked: "Share revoked immediately",
60
+ subtitle: "Manage bilateral cross-workspace shares, delegated MSP client organizations, and aggregated seat billing without compromising workspace isolation.",
61
+ switchButton: "Switch",
62
+ switchedToast: "Switched active workspace to {{name}}",
63
+ tabMsp: "MSP Org Links",
64
+ tabPortfolio: "Portfolio & Billing",
65
+ tabShares: "Cross-Workspace Shares",
66
+ tabsAria: "Multi-org console sections",
67
+ targetWorkspaceLabel: "Target Workspace ID *",
68
+ title: "Multi-Org & Cross-Workspace Console",
69
+ workspaceRequired: "Select an active workspace first"
70
+ },
17
71
  common: {
18
72
  cancel: "Cancel",
19
73
  delete: "Delete"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-workspaces",
3
- "version": "2026.1121.1",
3
+ "version": "2026.1123.1",
4
4
  "description": "Workspaces microfrontend for Burdenoff products",
5
5
  "type": "module",
6
6
  "files": [