@burdenoff/microfe-workspaces 2026.1113.1 → 2026.1114.2

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 (60) hide show
  1. package/dist/WorkspacesRoot.js +31 -25
  2. package/dist/WorkspacesRoutes.js +56 -55
  3. package/dist/components/CreateProjectDialog.js +81 -78
  4. package/dist/components/CreateWorkspaceDialog.js +41 -41
  5. package/dist/components/InviteMemberDialog.js +54 -54
  6. package/dist/components/MemberListItem.js +53 -53
  7. package/dist/components/PendingInvitesRoute.d.ts +7 -0
  8. package/dist/components/PendingInvitesRoute.js +15 -0
  9. package/dist/components/ProjectCard.js +82 -82
  10. package/dist/components/ProjectMemberPickerDialog.js +46 -46
  11. package/dist/components/RenameProjectDialog.js +16 -16
  12. package/dist/components/WorkspaceCard.js +18 -18
  13. package/dist/components/WorkspacesErrorBoundary.js +25 -25
  14. package/dist/components/tags/ProjectTagsWidget.js +50 -50
  15. package/dist/components/tags/WorkspaceTagsEditor.js +9 -9
  16. package/dist/constants/navigationV2.d.ts +12 -0
  17. package/dist/constants/navigationV2.js +3 -0
  18. package/dist/hooks/useNavigationV2.d.ts +6 -0
  19. package/dist/hooks/useNavigationV2.js +6 -0
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +15 -14
  22. package/dist/pages/ActivityListPage.js +30 -30
  23. package/dist/pages/CreateWorkspacePage.js +205 -173
  24. package/dist/pages/InviteAcceptancePage.js +210 -200
  25. package/dist/pages/MembersListPage.js +165 -164
  26. package/dist/pages/PendingInvitesPage.js +67 -67
  27. package/dist/pages/ProjectDetailPage.js +297 -272
  28. package/dist/pages/ProjectMembersPage.js +59 -59
  29. package/dist/pages/ProjectsListPage.js +275 -244
  30. package/dist/pages/WorkspaceDetailPage.js +175 -172
  31. package/dist/pages/WorkspaceInvitePage.js +606 -503
  32. package/dist/pages/WorkspaceSettingsPage.js +48 -48
  33. package/dist/pages/WorkspacesListPage.js +55 -55
  34. package/dist/pages/dashboard/DashboardCustomizer.js +27 -27
  35. package/dist/pages/dashboard/DashboardPage.js +35 -35
  36. package/dist/pages/dashboard/WidgetWrapper.js +21 -21
  37. package/dist/pages/dashboard/widgets/AgentsWidget.js +25 -25
  38. package/dist/pages/dashboard/widgets/GroupsWidget.js +14 -14
  39. package/dist/pages/dashboard/widgets/MembersWidget.js +15 -15
  40. package/dist/pages/dashboard/widgets/ProjectsWidget.js +20 -20
  41. package/dist/pages/dashboard/widgets/QuickActionsWidget.js +7 -7
  42. package/dist/pages/dashboard/widgets/RecentActivityWidget.js +16 -16
  43. package/dist/pages/dashboard/widgets/SessionsWidget.js +15 -15
  44. package/dist/pages/dashboard/widgets/TagCloudWidget.js +11 -11
  45. package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +16 -16
  46. package/dist/pages/dashboard/widgets/VibesWidget.js +13 -13
  47. package/dist/pages/dashboard/widgets/WelcomeWidget.js +23 -23
  48. package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +26 -26
  49. package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +21 -21
  50. package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +22 -22
  51. package/dist/pages/dashboard/widgets/WorkspacesWidget.js +16 -16
  52. package/dist/providers/WorkspacesProvider.d.ts +5 -0
  53. package/dist/providers/WorkspacesProvider.js +2 -2
  54. package/dist/types/index.d.ts +11 -1
  55. package/dist/utils/createForms.d.ts +21 -0
  56. package/dist/utils/createForms.js +20 -0
  57. package/dist/utils/index.d.ts +1 -0
  58. package/dist/utils/invitationPayload.d.ts +18 -0
  59. package/dist/utils/invitationPayload.js +13 -0
  60. package/package.json +2 -2
@@ -8,11 +8,11 @@ import { useWorkspacesContext as ee } from "../providers/WorkspacesProvider.js";
8
8
  import { formatRelativeTime as te } from "../utils/formatters.js";
9
9
  import { tWithFallback as o } from "../utils/i18n.js";
10
10
  import { nativeConfirm as s, nativeImpact as c, nativeNotify as l } from "../utils/nativeBridge.js";
11
- import { useWorkspacesPageView as u } from "../hooks/useWorkspacesPageView.js";
12
- import { useMemo as d, useState as f } from "react";
13
- import { ArrowLeft as ne, Search as re, UserMinus as p, UserPlus as m } from "lucide-react";
14
- import { jsx as h, jsxs as g } from "react/jsx-runtime";
15
- import { Badge as _, Button as v, IllustratedEmptyState as y, Input as b, PageContainer as x, PagePurpose as ie, Skeleton as S } from "@burdenoff/fe-libs/ui";
11
+ import { useWorkspacesPageView as ne } from "../hooks/useWorkspacesPageView.js";
12
+ import { useMemo as u, useState as d } from "react";
13
+ import { ArrowLeft as re, Search as ie, UserMinus as f, UserPlus as p } from "lucide-react";
14
+ import { Badge as m, Button as h, IllustratedEmptyState as g, Input as _, PageContainer as v, PagePurpose as y, Skeleton as b } from "@burdenoff/fe-libs/ui";
15
+ import { jsx as x, jsxs as S } from "react/jsx-runtime";
16
16
  import { useI18n as ae } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
17
17
  import { useNavigate as oe, useParams as se } from "react-router";
18
18
  import { ActorIdentity as ce, useActorProfiles as le } from "@burdenoff/fe-libs/shared";
@@ -29,13 +29,13 @@ function C(e, t) {
29
29
  };
30
30
  }
31
31
  function w() {
32
- let { t: w } = ae(), de = oe(), { workspaceId: T, projectId: E } = se(), { basePath: D = "/workspaces", apiGatewayUrl: O, authToken: k, organizationId: A } = ee(), { withCurrentSearch: j } = i(), [M, N] = f(""), [P, F] = f(!1), [I, L] = f(null), [R, z] = f(null);
33
- u("workspaces.project-members", {
32
+ let { t: w } = ae(), de = oe(), { workspaceId: T, projectId: E } = se(), { basePath: D = "/workspaces", apiGatewayUrl: O, authToken: k, organizationId: A } = ee(), { withCurrentSearch: j } = i(), [M, N] = d(""), [P, F] = d(!1), [I, L] = d(null), [R, z] = d(null);
33
+ ne("workspaces.project-members", {
34
34
  workspaceId: T,
35
35
  projectId: E,
36
36
  requireParams: !0
37
37
  });
38
- let { data: B, isLoading: V, error: H } = n(E || "", T), { data: U, isLoading: fe, error: W, hasNextPage: G, fetchNextPage: K, isFetchingNextPage: q } = t(E || "", T, ue), { mutate: pe, isPending: J } = r(T), { canViewProject: me, canListProjectMembers: he, canAddProjectMember: Y, canRemoveProjectMember: ge, isLoading: _e } = a(), X = d(() => U?.pages.flatMap((e) => e.items) ?? [], [U?.pages]), Z = U?.pages[0]?.total ?? X.length, ve = d(() => X.map((e) => ({
38
+ let { data: B, isLoading: V, error: H } = n(E || "", T), { data: U, isLoading: fe, error: W, hasNextPage: G, fetchNextPage: K, isFetchingNextPage: q } = t(E || "", T, ue), { mutate: pe, isPending: J } = r(T), { canViewProject: me, canListProjectMembers: he, canAddProjectMember: Y, canRemoveProjectMember: ge, isLoading: _e } = a(), X = u(() => U?.pages.flatMap((e) => e.items) ?? [], [U?.pages]), Z = U?.pages[0]?.total ?? X.length, ve = u(() => X.map((e) => ({
39
39
  actorId: e.userId,
40
40
  actorType: "user"
41
41
  })), [X]), Q = le(ve, {
@@ -43,7 +43,7 @@ function w() {
43
43
  authToken: k,
44
44
  orgId: A,
45
45
  workspaceId: T
46
- }), $ = d(() => {
46
+ }), $ = u(() => {
47
47
  let e = M.trim().toLowerCase();
48
48
  return e ? X.filter((t) => {
49
49
  let n = C(Q, t);
@@ -54,22 +54,22 @@ function w() {
54
54
  X,
55
55
  M
56
56
  ]);
57
- if (_e) return /* @__PURE__ */ g("div", {
57
+ if (_e) return /* @__PURE__ */ S("div", {
58
58
  className: "space-y-4 p-6",
59
59
  children: [
60
- /* @__PURE__ */ h(S, { className: "h-10 w-40" }),
61
- /* @__PURE__ */ h(S, { className: "h-10 w-64" }),
62
- /* @__PURE__ */ h(S, { className: "h-40 w-full" })
60
+ /* @__PURE__ */ x(b, { className: "h-10 w-40" }),
61
+ /* @__PURE__ */ x(b, { className: "h-10 w-64" }),
62
+ /* @__PURE__ */ x(b, { className: "h-40 w-full" })
63
63
  ]
64
64
  });
65
- if (!me || !he) return /* @__PURE__ */ h("div", {
65
+ if (!me || !he) return /* @__PURE__ */ x("div", {
66
66
  className: "flex min-h-[400px] items-center justify-center",
67
- children: /* @__PURE__ */ g("div", {
67
+ children: /* @__PURE__ */ S("div", {
68
68
  className: "space-y-2 text-center",
69
- children: [/* @__PURE__ */ h("h2", {
69
+ children: [/* @__PURE__ */ x("h2", {
70
70
  className: "text-lg font-semibold",
71
71
  children: o(w, "projectMembers.accessDenied", "Access Denied")
72
- }), /* @__PURE__ */ h("p", {
72
+ }), /* @__PURE__ */ x("p", {
73
73
  className: "text-sm text-text-secondary",
74
74
  children: o(w, "projectMembers.noPermission", "You don't have permission to manage project members.")
75
75
  })]
@@ -98,109 +98,109 @@ function w() {
98
98
  }
99
99
  }));
100
100
  };
101
- return /* @__PURE__ */ h(x, {
101
+ return /* @__PURE__ */ x(v, {
102
102
  padded: !1,
103
- children: /* @__PURE__ */ g("div", {
103
+ children: /* @__PURE__ */ S("div", {
104
104
  className: "space-y-4 p-3 sm:space-y-6 sm:p-6",
105
105
  children: [
106
- /* @__PURE__ */ g("div", {
106
+ /* @__PURE__ */ S("div", {
107
107
  className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
108
- children: [/* @__PURE__ */ g("div", { children: [
109
- /* @__PURE__ */ g(v, {
108
+ children: [/* @__PURE__ */ S("div", { children: [
109
+ /* @__PURE__ */ S(h, {
110
110
  variant: "ghost",
111
111
  onClick: ye,
112
112
  className: "mb-2 -ml-2 gap-2",
113
- children: [/* @__PURE__ */ h(ne, { size: 20 }), o(w, "projectMembers.backToProject", "Back to Project")]
113
+ children: [/* @__PURE__ */ x(re, { size: 20 }), o(w, "projectMembers.backToProject", "Back to Project")]
114
114
  }),
115
- /* @__PURE__ */ h("h1", {
115
+ /* @__PURE__ */ x("h1", {
116
116
  className: "text-2xl font-bold sm:text-3xl",
117
117
  children: o(w, "projectMembers.pageTitle", "Project Members")
118
118
  }),
119
- /* @__PURE__ */ h("p", {
119
+ /* @__PURE__ */ x("p", {
120
120
  className: "text-sm text-text-secondary sm:text-base",
121
121
  children: B?.name ? `${B.name} · ${o(w, "projectMembers.pageSubtitle", "Only existing workspace members can be added to this project.")}` : o(w, "projectMembers.pageSubtitle", "Only existing workspace members can be added to this project.")
122
122
  })
123
- ] }), /* @__PURE__ */ g("div", {
123
+ ] }), /* @__PURE__ */ S("div", {
124
124
  className: "flex items-center gap-2",
125
- children: [/* @__PURE__ */ h(_, {
125
+ children: [/* @__PURE__ */ x(m, {
126
126
  variant: "secondary",
127
127
  children: Z
128
- }), Y ? /* @__PURE__ */ g(v, {
128
+ }), Y ? /* @__PURE__ */ S(h, {
129
129
  onClick: () => F(!0),
130
130
  disabled: !T || !E,
131
- children: [/* @__PURE__ */ h(m, { className: "mr-2 size-4" }), o(w, "projectMembers.addMember", "Add Member")]
131
+ children: [/* @__PURE__ */ x(p, { className: "mr-2 size-4" }), o(w, "projectMembers.addMember", "Add Member")]
132
132
  }) : null]
133
133
  })]
134
134
  }),
135
- /* @__PURE__ */ h(ie, { children: o(w, "projectMembers.purpose", "This is the subset of workspace members who can work on this specific project. Add people here to give them project-level access, search to find someone, or remove members who have moved on. Only existing workspace members can be added.") }),
136
- /* @__PURE__ */ g("div", {
135
+ /* @__PURE__ */ x(y, { children: o(w, "projectMembers.purpose", "This is the subset of workspace members who can work on this specific project. Add people here to give them project-level access, search to find someone, or remove members who have moved on. Only existing workspace members can be added.") }),
136
+ /* @__PURE__ */ S("div", {
137
137
  className: "relative",
138
- children: [/* @__PURE__ */ h(re, { className: "absolute left-3 top-1/2 size-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ h(b, {
138
+ children: [/* @__PURE__ */ x(ie, { className: "absolute left-3 top-1/2 size-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ x(_, {
139
139
  value: M,
140
140
  onChange: (e) => N(e.target.value),
141
141
  placeholder: o(w, "projectMembers.searchPlaceholder", "Search project members"),
142
142
  className: "pl-9"
143
143
  })]
144
144
  }),
145
- R ? /* @__PURE__ */ h("div", {
145
+ R ? /* @__PURE__ */ x("div", {
146
146
  className: "rounded-lg border border-status-error-border/20 bg-status-error-bg/10 p-4 text-sm text-status-error-text",
147
147
  children: R
148
148
  }) : null,
149
- V || fe ? /* @__PURE__ */ h("div", {
149
+ V || fe ? /* @__PURE__ */ x("div", {
150
150
  className: "space-y-4",
151
- children: Array.from({ length: 4 }).map((e, t) => /* @__PURE__ */ g("div", {
151
+ children: Array.from({ length: 4 }).map((e, t) => /* @__PURE__ */ S("div", {
152
152
  className: "rounded-lg border border-border-seam bg-bg-surface p-4",
153
- children: [/* @__PURE__ */ h(S, { className: "h-5 w-40" }), /* @__PURE__ */ h(S, { className: "mt-2 h-4 w-56" })]
153
+ children: [/* @__PURE__ */ x(b, { className: "h-5 w-40" }), /* @__PURE__ */ x(b, { className: "mt-2 h-4 w-56" })]
154
154
  }, t))
155
- }) : H || W ? /* @__PURE__ */ h("div", {
155
+ }) : H || W ? /* @__PURE__ */ x("div", {
156
156
  className: "rounded-lg border border-status-error-border/20 bg-status-error-bg/10 p-4 text-sm text-status-error-text",
157
157
  children: W instanceof Error && W.message || H instanceof Error && H.message || o(w, "projectMembers.loadError", "Failed to load project members")
158
- }) : $.length === 0 ? /* @__PURE__ */ h(y, {
158
+ }) : $.length === 0 ? /* @__PURE__ */ x(g, {
159
159
  illustration: M ? "empty-search" : "empty-people",
160
160
  title: M ? o(w, "projectMembers.noResultsTitle", "No matching members found") : o(w, "projectMembers.emptyTitle", "No project members yet"),
161
161
  description: M ? o(w, "projectMembers.noResultsSubtitle", "Try a different search to find a project member.") : o(w, "projectMembers.emptySubtitle", "Add workspace members to this project so they can collaborate here."),
162
- action: G || !M && Y ? /* @__PURE__ */ g("div", {
162
+ action: G || !M && Y ? /* @__PURE__ */ S("div", {
163
163
  className: "flex flex-wrap items-center justify-center gap-2",
164
- children: [G ? /* @__PURE__ */ h(v, {
164
+ children: [G ? /* @__PURE__ */ x(h, {
165
165
  variant: "outline",
166
166
  onClick: () => void K(),
167
167
  disabled: q,
168
168
  children: q ? "Loading more…" : "Load More Members"
169
- }) : null, !M && Y ? /* @__PURE__ */ g(v, {
169
+ }) : null, !M && Y ? /* @__PURE__ */ S(h, {
170
170
  onClick: () => F(!0),
171
- children: [/* @__PURE__ */ h(m, { className: "mr-2 size-4" }), o(w, "projectMembers.addFirstMember", "Add First Member")]
171
+ children: [/* @__PURE__ */ x(p, { className: "mr-2 size-4" }), o(w, "projectMembers.addFirstMember", "Add First Member")]
172
172
  }) : null]
173
173
  }) : void 0
174
- }) : /* @__PURE__ */ g("div", {
174
+ }) : /* @__PURE__ */ S("div", {
175
175
  className: "space-y-3",
176
176
  children: [$.map((e) => {
177
177
  let t = Q[e.userId], n = C(Q, e), r = J && I === e.userId;
178
- return /* @__PURE__ */ g("div", {
178
+ return /* @__PURE__ */ S("div", {
179
179
  className: "flex items-center justify-between gap-4 rounded-card border border-border-seam bg-bg-surface p-4 shadow-elevation-1 transition-[box-shadow,transform] duration-200 ease-[var(--motion-easing-out)] hover:shadow-elevation-2 [@media(hover:none)]:",
180
- children: [/* @__PURE__ */ g("div", {
180
+ children: [/* @__PURE__ */ S("div", {
181
181
  className: "min-w-0 flex-1",
182
- children: [t ? /* @__PURE__ */ h(ce, {
182
+ children: [t ? /* @__PURE__ */ x(ce, {
183
183
  profile: t,
184
184
  variant: "cell"
185
- }) : /* @__PURE__ */ g("div", {
185
+ }) : /* @__PURE__ */ S("div", {
186
186
  className: "min-w-0",
187
- children: [/* @__PURE__ */ h("p", {
187
+ children: [/* @__PURE__ */ x("p", {
188
188
  className: "truncate font-medium",
189
189
  children: n.name
190
- }), n.email ? /* @__PURE__ */ h("p", {
190
+ }), n.email ? /* @__PURE__ */ x("p", {
191
191
  className: "truncate text-sm text-text-secondary",
192
192
  children: n.email
193
- }) : /* @__PURE__ */ h("p", {
193
+ }) : /* @__PURE__ */ x("p", {
194
194
  className: "truncate text-xs text-text-secondary",
195
195
  children: e.userId
196
196
  })]
197
- }), /* @__PURE__ */ g("div", {
197
+ }), /* @__PURE__ */ S("div", {
198
198
  className: "mt-1 flex flex-wrap items-center gap-2",
199
- children: [/* @__PURE__ */ h(_, {
199
+ children: [/* @__PURE__ */ x(m, {
200
200
  variant: "secondary",
201
201
  className: "text-xs",
202
202
  children: o(w, "projectMembers.memberBadge", "Project member")
203
- }), /* @__PURE__ */ g("span", {
203
+ }), /* @__PURE__ */ S("span", {
204
204
  className: "text-xs text-text-secondary",
205
205
  children: [
206
206
  o(w, "projectMembers.addedLabel", "Added"),
@@ -209,17 +209,17 @@ function w() {
209
209
  ]
210
210
  })]
211
211
  })]
212
- }), ge ? /* @__PURE__ */ g(v, {
212
+ }), ge ? /* @__PURE__ */ S(h, {
213
213
  variant: "outline",
214
214
  size: "sm",
215
215
  onClick: () => void be(e),
216
216
  disabled: J,
217
- children: [/* @__PURE__ */ h(p, { className: "mr-2 size-4" }), r ? o(w, "projectMembers.removing", "Removing...") : o(w, "projectMembers.removeAction", "Remove")]
217
+ children: [/* @__PURE__ */ x(f, { className: "mr-2 size-4" }), r ? o(w, "projectMembers.removing", "Removing...") : o(w, "projectMembers.removeAction", "Remove")]
218
218
  }) : null]
219
219
  }, e.id);
220
- }), G ? /* @__PURE__ */ g("div", {
220
+ }), G ? /* @__PURE__ */ S("div", {
221
221
  className: "flex flex-col items-center gap-2 rounded-lg border border-dashed border-border-seam bg-bg-sunken/20 p-4 text-center",
222
- children: [/* @__PURE__ */ g("p", {
222
+ children: [/* @__PURE__ */ S("p", {
223
223
  className: "text-sm text-text-secondary",
224
224
  children: [
225
225
  "Showing ",
@@ -228,7 +228,7 @@ function w() {
228
228
  Z,
229
229
  " project members."
230
230
  ]
231
- }), /* @__PURE__ */ h(v, {
231
+ }), /* @__PURE__ */ x(h, {
232
232
  variant: "outline",
233
233
  onClick: () => void K(),
234
234
  disabled: q,
@@ -236,7 +236,7 @@ function w() {
236
236
  })]
237
237
  }) : null]
238
238
  }),
239
- T && E && P ? /* @__PURE__ */ h(e, {
239
+ T && E && P ? /* @__PURE__ */ x(e, {
240
240
  open: P,
241
241
  onOpenChange: F,
242
242
  workspaceId: T,