@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
@@ -5,8 +5,8 @@ import { generateSlug as i } from "../utils/slug.js";
5
5
  import { useTr as a } from "../hooks/useTr.js";
6
6
  import { useEffect as o, useMemo as s } from "react";
7
7
  import { AlertCircle as c } from "lucide-react";
8
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
9
- import { Button as d, ResponsiveDialog as f, ResponsiveDialogContent as p, ResponsiveDialogFooter as m, ResponsiveDialogHeader as h, ResponsiveDialogTitle as g, Skeleton as _ } from "@burdenoff/fe-libs/ui";
8
+ import { Button as l, ResponsiveDialog as u, ResponsiveDialogContent as d, ResponsiveDialogFooter as f, ResponsiveDialogHeader as p, ResponsiveDialogTitle as m, Skeleton as h } from "@burdenoff/fe-libs/ui";
9
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
10
10
  import { FormControl as v, FormDescription as y, FormField as b, FormItem as x, FormLabel as S, FormMessage as C, FormProvider as w, Input as T, Select as E, SelectContent as D, SelectItem as O, SelectTrigger as k, SelectValue as A, useForm as j, z as M } from "@burdenoff/fe-libs/form";
11
11
  // src/components/CreateWorkspaceDialog.tsx
12
12
  function N(e) {
@@ -46,100 +46,100 @@ function P() {
46
46
  F(), J.reset();
47
47
  } });
48
48
  };
49
- return /* @__PURE__ */ l(f, {
49
+ return /* @__PURE__ */ g(u, {
50
50
  open: P,
51
51
  onOpenChange: F,
52
- children: /* @__PURE__ */ u(p, {
52
+ children: /* @__PURE__ */ _(d, {
53
53
  className: "sm:max-w-[500px]",
54
- children: [/* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(g, { children: M("createWorkspaceDialog.title", "Create Workspace") }) }), /* @__PURE__ */ l(w, {
54
+ children: [/* @__PURE__ */ g(p, { children: /* @__PURE__ */ g(m, { children: M("createWorkspaceDialog.title", "Create Workspace") }) }), /* @__PURE__ */ g(w, {
55
55
  ...J,
56
- children: /* @__PURE__ */ u("form", {
56
+ children: /* @__PURE__ */ _("form", {
57
57
  onSubmit: J.handleSubmit(Q),
58
58
  className: "space-y-4",
59
59
  children: [
60
- /* @__PURE__ */ l(b, {
60
+ /* @__PURE__ */ g(b, {
61
61
  control: J.control,
62
62
  name: "name",
63
- render: ({ field: e }) => /* @__PURE__ */ u(x, { children: [
64
- /* @__PURE__ */ l(S, { children: M("createWorkspaceDialog.nameLabel", "Workspace Name *") }),
65
- /* @__PURE__ */ l(v, { children: /* @__PURE__ */ l(T, {
63
+ render: ({ field: e }) => /* @__PURE__ */ _(x, { children: [
64
+ /* @__PURE__ */ g(S, { children: M("createWorkspaceDialog.nameLabel", "Workspace Name *") }),
65
+ /* @__PURE__ */ g(v, { children: /* @__PURE__ */ g(T, {
66
66
  placeholder: M("createWorkspaceDialog.namePlaceholder", "My Workspace"),
67
67
  ...e
68
68
  }) }),
69
- /* @__PURE__ */ l(y, { children: M("createWorkspaceDialog.nameHint", "A descriptive name for your workspace") }),
70
- /* @__PURE__ */ l(C, {})
69
+ /* @__PURE__ */ g(y, { children: M("createWorkspaceDialog.nameHint", "A descriptive name for your workspace") }),
70
+ /* @__PURE__ */ g(C, {})
71
71
  ] })
72
72
  }),
73
- /* @__PURE__ */ l(b, {
73
+ /* @__PURE__ */ g(b, {
74
74
  control: J.control,
75
75
  name: "slug",
76
- render: ({ field: e }) => /* @__PURE__ */ u(x, { children: [
77
- /* @__PURE__ */ l(S, { children: M("createWorkspaceDialog.slugLabel", "Slug *") }),
78
- /* @__PURE__ */ l(v, { children: /* @__PURE__ */ l(T, {
76
+ render: ({ field: e }) => /* @__PURE__ */ _(x, { children: [
77
+ /* @__PURE__ */ g(S, { children: M("createWorkspaceDialog.slugLabel", "Slug *") }),
78
+ /* @__PURE__ */ g(v, { children: /* @__PURE__ */ g(T, {
79
79
  placeholder: M("createWorkspaceDialog.slugPlaceholder", "my-workspace"),
80
80
  ...e
81
81
  }) }),
82
- /* @__PURE__ */ l(y, { children: M("createWorkspaceDialog.slugHint", "URL-friendly identifier (auto-generated)") }),
83
- /* @__PURE__ */ l(C, {})
82
+ /* @__PURE__ */ g(y, { children: M("createWorkspaceDialog.slugHint", "URL-friendly identifier (auto-generated)") }),
83
+ /* @__PURE__ */ g(C, {})
84
84
  ] })
85
85
  }),
86
- G.length === 1 ? null : /* @__PURE__ */ l(b, {
86
+ G.length === 1 ? null : /* @__PURE__ */ g(b, {
87
87
  control: J.control,
88
88
  name: "tenantId",
89
- render: ({ field: e }) => /* @__PURE__ */ u(x, { children: [
90
- /* @__PURE__ */ l(S, { children: M("createWorkspaceDialog.tenantLabel", "Tenant *") }),
91
- z ? /* @__PURE__ */ l(_, { className: "h-10 w-full" }) : B ? /* @__PURE__ */ u("div", {
89
+ render: ({ field: e }) => /* @__PURE__ */ _(x, { children: [
90
+ /* @__PURE__ */ g(S, { children: M("createWorkspaceDialog.tenantLabel", "Tenant *") }),
91
+ z ? /* @__PURE__ */ g(h, { className: "h-10 w-full" }) : B ? /* @__PURE__ */ _("div", {
92
92
  className: "flex items-center gap-2 text-status-error-text text-sm",
93
- children: [/* @__PURE__ */ l(c, { size: 16 }), M("createWorkspaceDialog.failedToLoadTenants", "Failed to load tenants")]
94
- }) : G.length === 0 ? /* @__PURE__ */ l("div", {
93
+ children: [/* @__PURE__ */ g(c, { size: 16 }), M("createWorkspaceDialog.failedToLoadTenants", "Failed to load tenants")]
94
+ }) : G.length === 0 ? /* @__PURE__ */ g("div", {
95
95
  className: "text-text-secondary text-sm",
96
96
  children: M("createWorkspaceDialog.noTenantsAvailable", "No tenants available. Contact your administrator.")
97
- }) : /* @__PURE__ */ u(E, {
97
+ }) : /* @__PURE__ */ _(E, {
98
98
  onValueChange: e.onChange,
99
99
  value: e.value,
100
- children: [/* @__PURE__ */ l(v, { children: /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(A, { placeholder: M("createWorkspaceDialog.selectTenantPlaceholder", "Select a tenant") }) }) }), /* @__PURE__ */ l(D, { children: G.map((e) => /* @__PURE__ */ l(O, {
100
+ children: [/* @__PURE__ */ g(v, { children: /* @__PURE__ */ g(k, { children: /* @__PURE__ */ g(A, { placeholder: M("createWorkspaceDialog.selectTenantPlaceholder", "Select a tenant") }) }) }), /* @__PURE__ */ g(D, { children: G.map((e) => /* @__PURE__ */ g(O, {
101
101
  value: e.id,
102
102
  children: e.name
103
103
  }, e.id)) })]
104
104
  }),
105
- /* @__PURE__ */ l(y, { children: M("createWorkspaceDialog.tenantHint", "Select which tenant this workspace belongs to") }),
106
- /* @__PURE__ */ l(C, {})
105
+ /* @__PURE__ */ g(y, { children: M("createWorkspaceDialog.tenantHint", "Select which tenant this workspace belongs to") }),
106
+ /* @__PURE__ */ g(C, {})
107
107
  ] })
108
108
  }),
109
- /* @__PURE__ */ l(b, {
109
+ /* @__PURE__ */ g(b, {
110
110
  control: J.control,
111
111
  name: "organizationId",
112
- render: ({ field: e }) => /* @__PURE__ */ u(x, { children: [
113
- /* @__PURE__ */ l(S, { children: M("createWorkspaceDialog.organizationLabel", "Organization *") }),
114
- H ? /* @__PURE__ */ l(_, { className: "h-10 w-full" }) : U ? /* @__PURE__ */ u("div", {
112
+ render: ({ field: e }) => /* @__PURE__ */ _(x, { children: [
113
+ /* @__PURE__ */ g(S, { children: M("createWorkspaceDialog.organizationLabel", "Organization *") }),
114
+ H ? /* @__PURE__ */ g(h, { className: "h-10 w-full" }) : U ? /* @__PURE__ */ _("div", {
115
115
  className: "flex items-center gap-2 text-status-error-text text-sm",
116
- children: [/* @__PURE__ */ l(c, { size: 16 }), M("createWorkspaceDialog.failedToLoadOrganizations", "Failed to load organizations")]
117
- }) : Y ? Z.length === 0 ? /* @__PURE__ */ l("div", {
116
+ children: [/* @__PURE__ */ g(c, { size: 16 }), M("createWorkspaceDialog.failedToLoadOrganizations", "Failed to load organizations")]
117
+ }) : Y ? Z.length === 0 ? /* @__PURE__ */ g("div", {
118
118
  className: "text-text-secondary text-sm",
119
119
  children: M("createWorkspaceDialog.noOrganizationsFound", "No organizations found for this tenant")
120
- }) : /* @__PURE__ */ u(E, {
120
+ }) : /* @__PURE__ */ _(E, {
121
121
  onValueChange: e.onChange,
122
122
  value: e.value,
123
123
  disabled: !Y,
124
- children: [/* @__PURE__ */ l(v, { children: /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(A, { placeholder: M("createWorkspaceDialog.selectOrganizationPlaceholder", "Select an organization") }) }) }), /* @__PURE__ */ l(D, { children: Z.map((e) => /* @__PURE__ */ l(O, {
124
+ children: [/* @__PURE__ */ g(v, { children: /* @__PURE__ */ g(k, { children: /* @__PURE__ */ g(A, { placeholder: M("createWorkspaceDialog.selectOrganizationPlaceholder", "Select an organization") }) }) }), /* @__PURE__ */ g(D, { children: Z.map((e) => /* @__PURE__ */ g(O, {
125
125
  value: e.id,
126
126
  children: e.name
127
127
  }, e.id)) })]
128
- }) : /* @__PURE__ */ l("div", {
128
+ }) : /* @__PURE__ */ g("div", {
129
129
  className: "text-text-secondary text-sm",
130
130
  children: M("createWorkspaceDialog.selectTenantFirst", "Please select a tenant first")
131
131
  }),
132
- /* @__PURE__ */ l(y, { children: M("createWorkspaceDialog.organizationHint", "Select which organization owns this workspace") }),
133
- /* @__PURE__ */ l(C, {})
132
+ /* @__PURE__ */ g(y, { children: M("createWorkspaceDialog.organizationHint", "Select which organization owns this workspace") }),
133
+ /* @__PURE__ */ g(C, {})
134
134
  ] })
135
135
  }),
136
- /* @__PURE__ */ u(m, { children: [/* @__PURE__ */ l(d, {
136
+ /* @__PURE__ */ _(f, { children: [/* @__PURE__ */ g(l, {
137
137
  type: "button",
138
138
  variant: "outline",
139
139
  onClick: F,
140
140
  disabled: L,
141
141
  children: M("common.cancel", "Cancel")
142
- }), /* @__PURE__ */ l(d, {
142
+ }), /* @__PURE__ */ g(l, {
143
143
  type: "submit",
144
144
  disabled: L || z || H,
145
145
  children: L ? M("createWorkspaceDialog.creating", "Creating...") : M("createWorkspaceDialog.submit", "Create Workspace")
@@ -5,8 +5,8 @@ import { useProjects as r } from "../hooks/useProjects.js";
5
5
  import { useWorkspaceRoles as i } from "../hooks/useWorkspaceRoles.js";
6
6
  import { useMemo as a, useState as o } from "react";
7
7
  import { AlertCircle as s } from "lucide-react";
8
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
9
- import { Badge as u, Button as d, Checkbox as f, ResponsiveDialog as p, ResponsiveDialogContent as m, ResponsiveDialogDescription as h, ResponsiveDialogHeader as g, ResponsiveDialogTitle as _, Tooltip as v, TooltipContent as y, TooltipProvider as b, TooltipTrigger as x } from "@burdenoff/fe-libs/ui";
8
+ import { Badge as c, Button as l, Checkbox as u, ResponsiveDialog as d, ResponsiveDialogContent as f, ResponsiveDialogDescription as p, ResponsiveDialogHeader as m, ResponsiveDialogTitle as h, Tooltip as g, TooltipContent as _, TooltipProvider as v, TooltipTrigger as y } from "@burdenoff/fe-libs/ui";
9
+ import { jsx as b, jsxs as x } from "react/jsx-runtime";
10
10
  import { FormControl as S, FormDescription as C, FormField as w, FormItem as T, FormLabel as E, FormMessage as D, FormProvider as O, Input as k, useForm as A, z as j } from "@burdenoff/fe-libs/form";
11
11
  // src/components/InviteMemberDialog.tsx
12
12
  function M(e) {
@@ -45,31 +45,31 @@ function N({ workspaceId: j }) {
45
45
  }, J = (e) => {
46
46
  e || (F(), K.reset(), U(null));
47
47
  };
48
- return /* @__PURE__ */ c(p, {
48
+ return /* @__PURE__ */ b(d, {
49
49
  open: P,
50
50
  onOpenChange: J,
51
- children: /* @__PURE__ */ l(m, {
51
+ children: /* @__PURE__ */ x(f, {
52
52
  className: "z-[120] flex h-[min(88vh,900px)] flex-col overflow-hidden sm:max-w-[960px] lg:max-w-[1120px]",
53
- children: [/* @__PURE__ */ l(g, { children: [/* @__PURE__ */ c(_, { children: N("inviteMemberDialog.title", "Invite Member") }), /* @__PURE__ */ c(h, { children: N("inviteMemberDialog.description", "Invite a new member to this workspace by email. They'll receive an invitation link to join.") })] }), /* @__PURE__ */ c(O, {
53
+ children: [/* @__PURE__ */ x(m, { children: [/* @__PURE__ */ b(h, { children: N("inviteMemberDialog.title", "Invite Member") }), /* @__PURE__ */ b(p, { children: N("inviteMemberDialog.description", "Invite a new member to this workspace by email. They'll receive an invitation link to join.") })] }), /* @__PURE__ */ b(O, {
54
54
  ...K,
55
- children: /* @__PURE__ */ l("form", {
55
+ children: /* @__PURE__ */ x("form", {
56
56
  onSubmit: K.handleSubmit(q),
57
57
  className: "flex min-h-0 flex-1 flex-col",
58
- children: [/* @__PURE__ */ c("div", {
58
+ children: [/* @__PURE__ */ b("div", {
59
59
  className: "min-h-0 flex-1 overflow-y-auto pr-2",
60
- children: /* @__PURE__ */ l("div", {
60
+ children: /* @__PURE__ */ x("div", {
61
61
  className: "space-y-5 pb-4 pr-2",
62
62
  children: [
63
- H && /* @__PURE__ */ l("div", {
63
+ H && /* @__PURE__ */ x("div", {
64
64
  className: "flex items-center gap-2 rounded-md border border-status-error-border/20 bg-status-error-bg/10 p-3 text-sm text-status-error-text",
65
- children: [/* @__PURE__ */ c(s, { className: "size-4 flex-shrink-0" }), /* @__PURE__ */ c("span", { children: H })]
65
+ children: [/* @__PURE__ */ b(s, { className: "size-4 flex-shrink-0" }), /* @__PURE__ */ b("span", { children: H })]
66
66
  }),
67
- /* @__PURE__ */ c(w, {
67
+ /* @__PURE__ */ b(w, {
68
68
  control: K.control,
69
69
  name: "email",
70
- render: ({ field: e }) => /* @__PURE__ */ l(T, { children: [
71
- /* @__PURE__ */ c(E, { children: N("inviteMemberDialog.emailLabel", "Email Address *") }),
72
- /* @__PURE__ */ c(S, { children: /* @__PURE__ */ c(k, {
70
+ render: ({ field: e }) => /* @__PURE__ */ x(T, { children: [
71
+ /* @__PURE__ */ b(E, { children: N("inviteMemberDialog.emailLabel", "Email Address *") }),
72
+ /* @__PURE__ */ b(S, { children: /* @__PURE__ */ b(k, {
73
73
  type: "email",
74
74
  placeholder: N("inviteMemberDialog.emailPlaceholder", "member@example.com"),
75
75
  ...e,
@@ -78,23 +78,23 @@ function N({ workspaceId: j }) {
78
78
  e.onChange(t), U(null);
79
79
  }
80
80
  }) }),
81
- /* @__PURE__ */ c(C, { children: N("inviteMemberDialog.emailHint", "Enter the email address of the person you want to invite") }),
82
- /* @__PURE__ */ c(D, {})
81
+ /* @__PURE__ */ b(C, { children: N("inviteMemberDialog.emailHint", "Enter the email address of the person you want to invite") }),
82
+ /* @__PURE__ */ b(D, {})
83
83
  ] })
84
84
  }),
85
- /* @__PURE__ */ c(w, {
85
+ /* @__PURE__ */ b(w, {
86
86
  control: K.control,
87
87
  name: "roleIds",
88
- render: ({ field: e }) => /* @__PURE__ */ l(T, { children: [
89
- /* @__PURE__ */ l("div", {
88
+ render: ({ field: e }) => /* @__PURE__ */ x(T, { children: [
89
+ /* @__PURE__ */ x("div", {
90
90
  className: "flex flex-wrap items-center justify-between gap-2",
91
- children: [/* @__PURE__ */ l("div", {
91
+ children: [/* @__PURE__ */ x("div", {
92
92
  className: "space-y-1",
93
- children: [/* @__PURE__ */ c(E, { children: N("inviteMemberDialog.rolesLabel", "Roles (Optional)") }), /* @__PURE__ */ c("p", {
93
+ children: [/* @__PURE__ */ b(E, { children: N("inviteMemberDialog.rolesLabel", "Roles (Optional)") }), /* @__PURE__ */ b("p", {
94
94
  className: "text-sm text-text-secondary",
95
95
  children: N("inviteMemberDialog.rolesHint", "Choose roles. Hover any role to preview its full description.")
96
96
  })]
97
- }), e.value.length > 0 ? /* @__PURE__ */ l(u, {
97
+ }), e.value.length > 0 ? /* @__PURE__ */ x(c, {
98
98
  variant: "secondary",
99
99
  children: [
100
100
  e.value.length,
@@ -103,24 +103,24 @@ function N({ workspaceId: j }) {
103
103
  ]
104
104
  }) : null]
105
105
  }),
106
- /* @__PURE__ */ c(S, { children: /* @__PURE__ */ c(b, { children: /* @__PURE__ */ c("div", {
106
+ /* @__PURE__ */ b(S, { children: /* @__PURE__ */ b(v, { children: /* @__PURE__ */ b("div", {
107
107
  className: "grid grid-cols-1 gap-2 md:grid-cols-2 xl:grid-cols-3",
108
- children: z ? /* @__PURE__ */ c("p", {
108
+ children: z ? /* @__PURE__ */ b("p", {
109
109
  className: "text-sm text-text-secondary",
110
110
  children: N("inviteMemberDialog.loadingRoles", "Loading roles…")
111
- }) : R.length === 0 ? /* @__PURE__ */ c("p", {
111
+ }) : R.length === 0 ? /* @__PURE__ */ b("p", {
112
112
  className: "text-sm text-text-secondary",
113
113
  children: N("inviteMemberDialog.noRoles", "No assignable roles were returned for this workspace.")
114
114
  }) : R.map((t) => {
115
115
  let n = e.value.includes(t.id);
116
- return /* @__PURE__ */ l(v, { children: [/* @__PURE__ */ c(x, {
116
+ return /* @__PURE__ */ x(g, { children: [/* @__PURE__ */ b(y, {
117
117
  asChild: !0,
118
- children: /* @__PURE__ */ l("label", {
118
+ children: /* @__PURE__ */ x("label", {
119
119
  className: `flex cursor-pointer items-center justify-between gap-3 rounded-lg border px-3 py-3 text-left text-sm font-medium transition-colors focus-within:ring-2 focus-within:ring-[var(--color-focus-ring)] focus-within:ring-offset-2 ${n ? "border-primary bg-action-primary-bg/10 text-text-primary shadow-sm" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-accent"}`,
120
- children: [/* @__PURE__ */ c("span", {
120
+ children: [/* @__PURE__ */ b("span", {
121
121
  className: "min-w-0 flex-1 truncate",
122
122
  children: t.name
123
- }), /* @__PURE__ */ c(f, {
123
+ }), /* @__PURE__ */ b(u, {
124
124
  checked: n,
125
125
  disabled: L,
126
126
  onCheckedChange: (n) => {
@@ -130,18 +130,18 @@ function N({ workspaceId: j }) {
130
130
  "aria-label": N("inviteMemberDialog.selectRoleAriaLabel", "Select {{roleName}}", { roleName: t.name })
131
131
  })]
132
132
  })
133
- }), /* @__PURE__ */ l(y, {
133
+ }), /* @__PURE__ */ x(_, {
134
134
  className: "max-w-xs text-sm leading-6",
135
135
  children: [
136
- /* @__PURE__ */ c("p", {
136
+ /* @__PURE__ */ b("p", {
137
137
  className: "font-medium",
138
138
  children: t.name
139
139
  }),
140
- /* @__PURE__ */ c("p", {
140
+ /* @__PURE__ */ b("p", {
141
141
  className: "mt-1 text-text-secondary",
142
142
  children: t.description || N("inviteMemberDialog.noRoleDescription", "No description available for this role.")
143
143
  }),
144
- t.isSystem ? /* @__PURE__ */ c("p", {
144
+ t.isSystem ? /* @__PURE__ */ b("p", {
145
145
  className: "mt-2 text-xs",
146
146
  children: N("inviteMemberDialog.systemRole", "System role")
147
147
  }) : null
@@ -149,22 +149,22 @@ function N({ workspaceId: j }) {
149
149
  })] }, t.id);
150
150
  })
151
151
  }) }) }),
152
- /* @__PURE__ */ c(D, {})
152
+ /* @__PURE__ */ b(D, {})
153
153
  ] })
154
154
  }),
155
- /* @__PURE__ */ c(w, {
155
+ /* @__PURE__ */ b(w, {
156
156
  control: K.control,
157
157
  name: "projectIds",
158
- render: ({ field: e }) => /* @__PURE__ */ l(T, { children: [
159
- /* @__PURE__ */ l("div", {
158
+ render: ({ field: e }) => /* @__PURE__ */ x(T, { children: [
159
+ /* @__PURE__ */ x("div", {
160
160
  className: "flex flex-wrap items-center justify-between gap-2",
161
- children: [/* @__PURE__ */ l("div", {
161
+ children: [/* @__PURE__ */ x("div", {
162
162
  className: "space-y-1",
163
- children: [/* @__PURE__ */ c(E, { children: N("inviteMemberDialog.projectsLabel", "Projects to add on acceptance (Optional)") }), /* @__PURE__ */ c("p", {
163
+ children: [/* @__PURE__ */ b(E, { children: N("inviteMemberDialog.projectsLabel", "Projects to add on acceptance (Optional)") }), /* @__PURE__ */ b("p", {
164
164
  className: "text-sm text-text-secondary",
165
165
  children: N("inviteMemberDialog.projectsHint", "The invited user will be added to these projects automatically after they accept the workspace invitation.")
166
166
  })]
167
- }), e.value.length > 0 ? /* @__PURE__ */ l(u, {
167
+ }), e.value.length > 0 ? /* @__PURE__ */ x(c, {
168
168
  variant: "secondary",
169
169
  children: [
170
170
  e.value.length,
@@ -173,34 +173,34 @@ function N({ workspaceId: j }) {
173
173
  ]
174
174
  }) : null]
175
175
  }),
176
- /* @__PURE__ */ c(S, { children: /* @__PURE__ */ c("div", {
176
+ /* @__PURE__ */ b(S, { children: /* @__PURE__ */ b("div", {
177
177
  className: "grid grid-cols-1 gap-2 md:grid-cols-2 xl:grid-cols-3",
178
- children: V ? /* @__PURE__ */ c("p", {
178
+ children: V ? /* @__PURE__ */ b("p", {
179
179
  className: "text-sm text-text-secondary",
180
180
  children: N("inviteMemberDialog.loadingProjects", "Loading projects…")
181
- }) : W.length === 0 ? /* @__PURE__ */ c("p", {
181
+ }) : W.length === 0 ? /* @__PURE__ */ b("p", {
182
182
  className: "text-sm text-text-secondary",
183
183
  children: N("inviteMemberDialog.noProjects", "No active projects are available in this workspace yet.")
184
184
  }) : W.map((t) => {
185
185
  let n = e.value.includes(t.id);
186
- return /* @__PURE__ */ l("label", {
186
+ return /* @__PURE__ */ x("label", {
187
187
  className: `flex cursor-pointer items-start justify-between gap-3 rounded-lg border px-3 py-3 transition-colors focus-within:ring-2 focus-within:ring-[var(--color-focus-ring)] focus-within:ring-offset-2 ${n ? "border-primary bg-action-primary-bg/10 text-text-primary shadow-sm" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-accent"}`,
188
- children: [/* @__PURE__ */ l("div", {
188
+ children: [/* @__PURE__ */ x("div", {
189
189
  className: "min-w-0 flex-1 space-y-1",
190
- children: [/* @__PURE__ */ c("p", {
190
+ children: [/* @__PURE__ */ b("p", {
191
191
  className: "truncate text-sm font-semibold leading-tight",
192
192
  children: t.name
193
- }), /* @__PURE__ */ l("div", {
193
+ }), /* @__PURE__ */ x("div", {
194
194
  className: "flex items-center gap-2 text-xs text-text-secondary",
195
- children: [/* @__PURE__ */ c("span", {
195
+ children: [/* @__PURE__ */ b("span", {
196
196
  className: "truncate font-mono",
197
197
  children: t.key
198
- }), /* @__PURE__ */ c(u, {
198
+ }), /* @__PURE__ */ b(c, {
199
199
  variant: "outline",
200
200
  children: t.status
201
201
  })]
202
202
  })]
203
- }), /* @__PURE__ */ c(f, {
203
+ }), /* @__PURE__ */ b(u, {
204
204
  checked: n,
205
205
  disabled: L,
206
206
  onCheckedChange: (n) => {
@@ -212,20 +212,20 @@ function N({ workspaceId: j }) {
212
212
  }, t.id);
213
213
  })
214
214
  }) }),
215
- /* @__PURE__ */ c(D, {})
215
+ /* @__PURE__ */ b(D, {})
216
216
  ] })
217
217
  })
218
218
  ]
219
219
  })
220
- }), /* @__PURE__ */ l("div", {
220
+ }), /* @__PURE__ */ x("div", {
221
221
  className: "flex justify-end gap-3 border-t pt-4",
222
- children: [/* @__PURE__ */ c(d, {
222
+ children: [/* @__PURE__ */ b(l, {
223
223
  type: "button",
224
224
  variant: "outline",
225
225
  onClick: () => J(!1),
226
226
  disabled: L,
227
227
  children: N("common.cancel", "Cancel")
228
- }), /* @__PURE__ */ c(d, {
228
+ }), /* @__PURE__ */ b(l, {
229
229
  type: "submit",
230
230
  disabled: L,
231
231
  children: L ? N("inviteMemberDialog.sending", "Sending...") : N("inviteMemberDialog.submit", "Send Invitation")
@@ -1,99 +1,99 @@
1
1
  import { useRemoveWorkspaceMember as e } from "../hooks/useMemberMutations.js";
2
2
  import { nativeImpact as t, nativeNotify as n } from "../utils/nativeBridge.js";
3
3
  import { formatRelativeTime as r } from "../utils/formatters.js";
4
- import { useWorkspacesContext as i } from "../providers/WorkspacesProvider.js";
5
- import { useTr as a } from "../hooks/useTr.js";
6
- import { useMemo as o, useState as s } from "react";
7
- import { MoreHorizontal as c, UserMinus as l } from "lucide-react";
8
- import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
9
- import { AlertDialog as p, AlertDialogAction as m, AlertDialogCancel as h, AlertDialogContent as g, AlertDialogDescription as _, AlertDialogFooter as v, AlertDialogHeader as y, AlertDialogTitle as b, Badge as x, Button as S, CardContent as C, DropdownMenu as w, DropdownMenuContent as T, DropdownMenuTrigger as E, GlassCard as D } from "@burdenoff/fe-libs/ui";
10
- import { ActorIdentity as O, useActorProfiles as k } from "@burdenoff/fe-libs/shared";
4
+ import { useIsFluidGridsVariant as i, useWorkspacesContext as a } from "../providers/WorkspacesProvider.js";
5
+ import { useTr as o } from "../hooks/useTr.js";
6
+ import { useMemo as s, useState as c } from "react";
7
+ import { MoreHorizontal as l, UserMinus as u } from "lucide-react";
8
+ import { AlertDialog as d, AlertDialogAction as f, AlertDialogCancel as p, AlertDialogContent as m, AlertDialogDescription as h, AlertDialogFooter as g, AlertDialogHeader as _, AlertDialogTitle as v, Badge as y, Button as b, CardContent as x, DropdownMenu as S, DropdownMenuContent as C, DropdownMenuTrigger as w, GlassCard as T } from "@burdenoff/fe-libs/ui";
9
+ import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
10
+ import { ActorIdentity as k, useActorProfiles as A } from "@burdenoff/fe-libs/shared";
11
11
  // src/components/MemberListItem.tsx
12
- function A({ member: A, selected: j = !1, onToggleSelect: M, canRemove: N = !1 }) {
13
- let P = a(), [F, I] = s(!1), { mutate: L, isPending: R } = e(A.workspaceId), { apiGatewayUrl: z, authToken: B, organizationId: V } = i(), H = o(() => [{
14
- actorId: A.userId,
12
+ function j({ member: j, selected: M = !1, onToggleSelect: N, canRemove: P = !1 }) {
13
+ let F = o(), I = i(), [L, R] = c(!1), { mutate: z, isPending: B } = e(j.workspaceId), { apiGatewayUrl: V, authToken: H, organizationId: U } = a(), W = s(() => [{
14
+ actorId: j.userId,
15
15
  actorType: "user"
16
- }], [A.userId]), U = k(H, {
17
- apiGatewayUrl: z,
18
- authToken: B,
19
- orgId: V,
20
- workspaceId: A.workspaceId
21
- })[A.userId];
22
- return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(D, {
16
+ }], [j.userId]), G = A(W, {
17
+ apiGatewayUrl: V,
18
+ authToken: H,
19
+ orgId: U,
20
+ workspaceId: j.workspaceId
21
+ })[j.userId];
22
+ return /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(T, {
23
23
  treatment: "plain",
24
- className: `border-border-seam ${j ? "ring-2 ring-action-primary-bg/25 border-action-primary-bg/50" : ""}`,
25
- children: /* @__PURE__ */ d(C, {
24
+ className: `border-border-seam ${M ? "ring-2 ring-action-primary-bg/25 border-action-primary-bg/50" : ""}`,
25
+ children: /* @__PURE__ */ D(x, {
26
26
  className: "p-4",
27
- children: /* @__PURE__ */ f("div", {
27
+ children: /* @__PURE__ */ O("div", {
28
28
  className: "flex items-center justify-between gap-4",
29
- children: [/* @__PURE__ */ f("div", {
29
+ children: [/* @__PURE__ */ O("div", {
30
30
  className: "flex items-center gap-3 flex-1 min-w-0",
31
- children: [M && /* @__PURE__ */ d("input", {
31
+ children: [N && /* @__PURE__ */ D("input", {
32
32
  type: "checkbox",
33
- checked: j,
34
- onChange: (e) => M(e.target.checked),
33
+ checked: M,
34
+ onChange: (e) => N(e.target.checked),
35
35
  className: "size-4 rounded border-border-default text-action-primary-bg",
36
- "aria-label": P("memberListItem.selectMemberAriaLabel", "Select member {{name}}", { name: U?.displayName ?? "" })
37
- }), /* @__PURE__ */ f("div", {
36
+ "aria-label": F("memberListItem.selectMemberAriaLabel", "Select member {{name}}", { name: G?.displayName ?? "" })
37
+ }), /* @__PURE__ */ O("div", {
38
38
  className: "flex-1 min-w-0",
39
- children: [U ? /* @__PURE__ */ d(O, {
40
- profile: U,
39
+ children: [G ? /* @__PURE__ */ D(k, {
40
+ profile: G,
41
41
  variant: "cell"
42
- }) : null, /* @__PURE__ */ f("div", {
42
+ }) : null, /* @__PURE__ */ O("div", {
43
43
  className: "mt-1 flex items-center gap-2",
44
- children: [/* @__PURE__ */ d(x, {
44
+ children: [/* @__PURE__ */ D(y, {
45
45
  variant: "secondary",
46
46
  className: "text-xs",
47
- children: P("memberListItem.workspaceMember", "Workspace member")
48
- }), /* @__PURE__ */ d("span", {
47
+ children: F("memberListItem.workspaceMember", "Workspace member")
48
+ }), /* @__PURE__ */ D("span", {
49
49
  className: "text-xs text-text-secondary",
50
- children: P("memberListItem.joined", "Joined {{time}}", { time: r(A.createdAt) })
50
+ children: F("memberListItem.joined", "Joined {{time}}", { time: r(j.createdAt) })
51
51
  })]
52
52
  })]
53
53
  })]
54
- }), N && /* @__PURE__ */ f(w, { children: [/* @__PURE__ */ d(E, {
54
+ }), P && /* @__PURE__ */ O(S, { children: [/* @__PURE__ */ D(w, {
55
55
  asChild: !0,
56
- children: /* @__PURE__ */ f(S, {
56
+ children: /* @__PURE__ */ O(b, {
57
57
  variant: "ghost",
58
58
  size: "icon",
59
59
  className: "size-8 flex-shrink-0",
60
- children: [/* @__PURE__ */ d(c, { className: "size-4" }), /* @__PURE__ */ d("span", {
60
+ children: [/* @__PURE__ */ D(l, { className: "size-4" }), /* @__PURE__ */ D("span", {
61
61
  className: "sr-only",
62
- children: P("memberListItem.openActions", "Open member actions")
62
+ children: F("memberListItem.openActions", "Open member actions")
63
63
  })]
64
64
  })
65
- }), /* @__PURE__ */ d(T, {
65
+ }), /* @__PURE__ */ D(C, {
66
66
  align: "end",
67
- children: /* @__PURE__ */ f("button", {
67
+ children: /* @__PURE__ */ O("button", {
68
68
  type: "button",
69
- onClick: () => I(!0),
69
+ onClick: () => R(!0),
70
70
  className: "flex w-full items-center rounded-sm px-2 py-1.5 text-sm text-status-danger-text outline-none transition-colors hover:bg-action-ghost-bg-hover focus:bg-action-ghost-bg-hover",
71
- children: [/* @__PURE__ */ d(l, { className: "mr-2 size-4" }), P("memberListItem.removeMember", "Remove Member")]
71
+ children: [/* @__PURE__ */ D(u, { className: "mr-2 size-4" }), F("memberListItem.removeMember", "Remove Member")]
72
72
  })
73
73
  })] })]
74
74
  })
75
75
  })
76
- }), /* @__PURE__ */ d(p, {
77
- open: F,
78
- onOpenChange: I,
79
- children: /* @__PURE__ */ f(g, { children: [/* @__PURE__ */ f(y, { children: [/* @__PURE__ */ d(b, { children: P("memberListItem.removeTitle", "Remove Member") }), /* @__PURE__ */ d(_, { children: P("memberListItem.removeDescription", "Are you sure you want to remove {{name}} from the workspace? This action cannot be undone.", { name: U?.displayName ?? P("memberListItem.thisMemberFallback", "this member") }) })] }), /* @__PURE__ */ f(v, { children: [/* @__PURE__ */ d(h, {
80
- disabled: R,
81
- children: P("common.cancel", "Cancel")
82
- }), /* @__PURE__ */ d(m, {
76
+ }), /* @__PURE__ */ D(d, {
77
+ open: L,
78
+ onOpenChange: R,
79
+ children: /* @__PURE__ */ O(m, { children: [/* @__PURE__ */ O(_, { children: [/* @__PURE__ */ D(v, { children: F("memberListItem.removeTitle", "Remove Member") }), /* @__PURE__ */ D(h, { children: I ? F("memberListItem.removeDescriptionNamed", "Remove {{name}} from this workspace? They lose access to its projects and data straight away. They stay in the organization, and you can invite them again later.", { name: G?.displayName ?? F("memberListItem.thisMemberFallback", "this member") }) : F("memberListItem.removeDescription", "Are you sure you want to remove {{name}} from the workspace? This action cannot be undone.", { name: G?.displayName ?? F("memberListItem.thisMemberFallback", "this member") }) })] }), /* @__PURE__ */ O(g, { children: [/* @__PURE__ */ D(p, {
80
+ disabled: B,
81
+ children: F("common.cancel", "Cancel")
82
+ }), /* @__PURE__ */ D(f, {
83
83
  onClick: () => {
84
- t("medium"), L(A.id, {
84
+ t("medium"), z(j.id, {
85
85
  onSuccess: () => {
86
- n("success"), I(!1);
86
+ n("success"), R(!1);
87
87
  },
88
88
  onError: () => {
89
89
  n("error");
90
90
  }
91
91
  });
92
92
  },
93
- disabled: R,
93
+ disabled: B,
94
94
  className: "bg-status-danger-bg text-status-danger-text hover:bg-status-danger-bg/90",
95
- children: R ? P("memberListItem.removing", "Removing...") : P("memberListItem.removeButton", "Remove Member")
95
+ children: B ? F("memberListItem.removing", "Removing...") : F("memberListItem.removeButton", "Remove Member")
96
96
  })] })] })
97
97
  })] });
98
98
  }
99
- export { A as MemberListItem };
99
+ export { j as MemberListItem };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * `/workspaces/invites`. With Navigation v2 (FluidGrids) it opens the one My
3
+ * invites inbox, where workspace and organization invites are listed
4
+ * together, keeping the query string (BOFF-11855). Every other app keeps this
5
+ * module's own pending-invites list.
6
+ */
7
+ export declare function PendingInvitesRoute(): import('react').JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { useNavigationV2 as e } from "../hooks/useNavigationV2.js";
2
+ import { NAVIGATION_V2_MY_INVITES_PATH as t } from "../constants/navigationV2.js";
3
+ import { lazy as n } from "react";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ import { Navigate as i, useLocation as a } from "react-router";
6
+ // src/components/PendingInvitesRoute.tsx
7
+ var o = n(() => import("../pages/PendingInvitesPage.js").then((e) => ({ default: e.PendingInvitesPage })));
8
+ function s() {
9
+ let n = e(), { search: s } = a();
10
+ return n ? /* @__PURE__ */ r(i, {
11
+ to: `${t}${s}`,
12
+ replace: !0
13
+ }) : /* @__PURE__ */ r(o, {});
14
+ }
15
+ export { s as PendingInvitesRoute };