@burdenoff/microfe-workspaces 2026.1109.1 → 2026.1110.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 (102) hide show
  1. package/dist/WorkspacesRoot.js +10 -9
  2. package/dist/WorkspacesRoutes.js +1 -2
  3. package/dist/components/CreateProjectDialog.js +22 -22
  4. package/dist/components/CreateWorkspaceDialog.js +8 -9
  5. package/dist/components/InviteMemberDialog.js +18 -23
  6. package/dist/components/MemberListItem.js +16 -17
  7. package/dist/components/ProjectCard.js +14 -15
  8. package/dist/components/ProjectMemberPickerDialog.js +92 -93
  9. package/dist/components/RenameProjectDialog.js +12 -17
  10. package/dist/components/WorkspaceCard.js +6 -7
  11. package/dist/components/WorkspaceContextPathSync.js +4 -5
  12. package/dist/components/WorkspacesErrorBoundary.js +6 -11
  13. package/dist/components/index.js +8 -7
  14. package/dist/components/tags/ProjectTagsWidget.js +56 -57
  15. package/dist/components/tags/WorkspaceTagsEditor.js +2 -3
  16. package/dist/constants/permissions.js +1 -2
  17. package/dist/generated/global-operations.js +1 -2
  18. package/dist/generated/wspace-operations.js +1 -2
  19. package/dist/hooks/index.js +9 -8
  20. package/dist/hooks/useMemberMutations.js +165 -166
  21. package/dist/hooks/useOpenWorkspace.js +1 -2
  22. package/dist/hooks/useOrgsWithPermission.js +2 -3
  23. package/dist/hooks/usePendingInvitations.d.ts +1 -1
  24. package/dist/hooks/usePendingInvitations.js +2 -3
  25. package/dist/hooks/useProjectMemberMutations.js +23 -24
  26. package/dist/hooks/useProjectMembers.d.ts +2 -2
  27. package/dist/hooks/useProjectMembers.js +2 -3
  28. package/dist/hooks/useProjectMutations.js +68 -69
  29. package/dist/hooks/useProjects.d.ts +3 -3
  30. package/dist/hooks/useProjects.js +5 -6
  31. package/dist/hooks/useScopedNavigation.js +1 -2
  32. package/dist/hooks/useTenants.d.ts +2 -2
  33. package/dist/hooks/useTenants.js +3 -4
  34. package/dist/hooks/useTr.js +1 -2
  35. package/dist/hooks/useWorkspaceActivity.d.ts +1 -1
  36. package/dist/hooks/useWorkspaceActivity.js +2 -3
  37. package/dist/hooks/useWorkspaceMembers.d.ts +5 -5
  38. package/dist/hooks/useWorkspaceMembers.js +7 -8
  39. package/dist/hooks/useWorkspaceMutations.js +70 -71
  40. package/dist/hooks/useWorkspacePermissions.js +1 -2
  41. package/dist/hooks/useWorkspaceRoles.d.ts +1 -1
  42. package/dist/hooks/useWorkspaceRoles.js +3 -4
  43. package/dist/hooks/useWorkspaces.d.ts +3 -3
  44. package/dist/hooks/useWorkspaces.js +4 -5
  45. package/dist/hooks/useWorkspacesEventEmitter.js +1 -2
  46. package/dist/hooks/useWorkspacesPageView.js +1 -2
  47. package/dist/index.js +15 -15
  48. package/dist/pages/ActivityListPage.js +28 -29
  49. package/dist/pages/CreateWorkspacePage.js +137 -138
  50. package/dist/pages/InviteAcceptancePage.js +65 -66
  51. package/dist/pages/MembersListPage.js +203 -204
  52. package/dist/pages/PendingInvitesPage.js +63 -64
  53. package/dist/pages/ProjectDetailPage.js +71 -72
  54. package/dist/pages/ProjectMembersPage.js +116 -117
  55. package/dist/pages/ProjectsListPage.js +62 -67
  56. package/dist/pages/WorkspaceDetailPage.js +153 -154
  57. package/dist/pages/WorkspaceInvitePage.js +88 -92
  58. package/dist/pages/WorkspaceSettingsPage.js +32 -33
  59. package/dist/pages/WorkspacesListPage.js +40 -41
  60. package/dist/pages/dashboard/DashboardCustomizer.js +98 -94
  61. package/dist/pages/dashboard/DashboardGrid.js +1 -2
  62. package/dist/pages/dashboard/DashboardPage.js +12 -13
  63. package/dist/pages/dashboard/WidgetWrapper.js +3 -3
  64. package/dist/pages/dashboard/config.js +3 -4
  65. package/dist/pages/dashboard/hooks/useDashboardData.d.ts +5 -5
  66. package/dist/pages/dashboard/hooks/useDashboardData.js +9 -10
  67. package/dist/pages/dashboard/hooks/useDashboardPreferences.js +7 -8
  68. package/dist/pages/dashboard/reorder.js +11 -14
  69. package/dist/pages/dashboard/widgets/AgentsWidget.js +13 -14
  70. package/dist/pages/dashboard/widgets/GroupsWidget.js +9 -10
  71. package/dist/pages/dashboard/widgets/MembersWidget.js +10 -11
  72. package/dist/pages/dashboard/widgets/ProjectsWidget.js +11 -12
  73. package/dist/pages/dashboard/widgets/QuickActionsWidget.js +28 -29
  74. package/dist/pages/dashboard/widgets/RecentActivityWidget.js +22 -23
  75. package/dist/pages/dashboard/widgets/SessionsWidget.js +28 -29
  76. package/dist/pages/dashboard/widgets/StorageWidget.js +19 -20
  77. package/dist/pages/dashboard/widgets/TagCloudWidget.js +9 -10
  78. package/dist/pages/dashboard/widgets/TipsWidget.js +5 -6
  79. package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +17 -18
  80. package/dist/pages/dashboard/widgets/VibesWidget.js +13 -14
  81. package/dist/pages/dashboard/widgets/WelcomeWidget.js +11 -12
  82. package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +16 -17
  83. package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +11 -12
  84. package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +17 -18
  85. package/dist/pages/dashboard/widgets/WorkspacesWidget.js +7 -8
  86. package/dist/pages/dashboard/widgets/tipsCatalog.js +1 -2
  87. package/dist/providers/WorkspacesProvider.js +1 -2
  88. package/dist/store/workspacesStore.d.ts +1 -1
  89. package/dist/store/workspacesStore.js +1 -2
  90. package/dist/test/happydom.d.ts +1 -0
  91. package/dist/translations/en.js +1 -2
  92. package/dist/utils/formatters.js +1 -2
  93. package/dist/utils/i18n.js +1 -2
  94. package/dist/utils/invitationDisplay.js +1 -2
  95. package/dist/utils/nativeBridge.js +1 -2
  96. package/dist/utils/pinnedRequest.js +2 -3
  97. package/dist/utils/projectTags.js +2 -3
  98. package/dist/utils/slug.js +1 -2
  99. package/dist/utils/telemetryError.js +13 -16
  100. package/dist/utils/tokenHelpers.js +1 -2
  101. package/dist/utils/workspaceBulkInviteCsv.js +3 -8
  102. package/package.json +72 -55
@@ -5,11 +5,15 @@ import { useEffect as r, useMemo as i } from "react";
5
5
  import { Activity as a, Building2 as o, FolderKanban as s, Users as c } from "lucide-react";
6
6
  import { FeatureFlagProvider as l, useFeatureFlags as u } from "@burdenoff/fe-libs/shared/feature-flags";
7
7
  import { jsx as d } from "react/jsx-runtime";
8
- //#region src/WorkspacesRoot.tsx
8
+ // src/WorkspacesRoot.tsx
9
9
  var f = (f) => {
10
- let { registerNavItems: p, registerFooterItems: m, basePath: h = "/" } = f, { isEnabled: g, evaluations: _ } = u(), v = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
10
+ let { registerNavItems: p, registerFooterItems: m, basePath: h = "/" } = f, { isEnabled: g, evaluations: _ } = u(), v = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`), y = i(() => ({
11
+ isEnabled: g,
12
+ evaluations: _
13
+ }), [_, g]);
11
14
  return r(() => {
12
- if (p) return p([
15
+ if (!p) return;
16
+ let e = [
13
17
  {
14
18
  id: "workspaces-all",
15
19
  label: "All Workspaces",
@@ -42,14 +46,12 @@ var f = (f) => {
42
46
  order: 40,
43
47
  group: "workspaces"
44
48
  }
45
- ]);
49
+ ];
50
+ return p(e);
46
51
  }, [
47
52
  p,
48
53
  h,
49
- i(() => ({
50
- isEnabled: g,
51
- evaluations: _
52
- }), [_, g])
54
+ y
53
55
  ]), r(() => {
54
56
  if (m) return m([{
55
57
  id: "workspaces-status",
@@ -68,5 +70,4 @@ var f = (f) => {
68
70
  }) })
69
71
  });
70
72
  };
71
- //#endregion
72
73
  export { f as WorkspacesRoot };
@@ -5,7 +5,7 @@ import { Suspense as r, lazy as i } from "react";
5
5
  import { FeatureGate as a } from "@burdenoff/fe-libs/shared/feature-flags";
6
6
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
7
7
  import { Navigate as c, Route as l, Routes as u } from "react-router";
8
- //#region src/WorkspacesRoutes.tsx
8
+ // src/WorkspacesRoutes.tsx
9
9
  var d = i(() => import("./pages/CreateWorkspacePage.js").then((e) => ({ default: e.CreateWorkspacePage }))), f = i(() => import("./pages/WorkspaceDetailPage.js").then((e) => ({ default: e.WorkspaceDetailPage }))), p = i(() => import("./pages/WorkspaceSettingsPage.js").then((e) => ({ default: e.WorkspaceSettingsPage }))), m = i(() => import("./pages/ProjectsListPage.js").then((e) => ({ default: e.ProjectsListPage }))), h = i(() => import("./pages/ProjectDetailPage.js").then((e) => ({ default: e.ProjectDetailPage }))), g = i(() => import("./pages/ProjectMembersPage.js").then((e) => ({ default: e.ProjectMembersPage }))), _ = i(() => import("./pages/MembersListPage.js").then((e) => ({ default: e.MembersListPage }))), v = i(() => import("./pages/ActivityListPage.js").then((e) => ({ default: e.ActivityListPage }))), y = i(() => import("./pages/InviteAcceptancePage.js").then((e) => ({ default: e.InviteAcceptancePage }))), b = i(() => import("./pages/PendingInvitesPage.js").then((e) => ({ default: e.PendingInvitesPage }))), x = i(() => import("./pages/WorkspaceInvitePage.js").then((e) => ({ default: e.WorkspaceInvitePage })));
10
10
  function S() {
11
11
  return /* @__PURE__ */ o("div", {
@@ -129,5 +129,4 @@ function D() {
129
129
  ] })]
130
130
  });
131
131
  }
132
- //#endregion
133
132
  export { D as WorkspacesRoutes };
@@ -1,11 +1,11 @@
1
- import { useTr as e } from "../hooks/useTr.js";
2
- import { useWorkspacesStore as t } from "../store/workspacesStore.js";
3
- import { useCreateProject as n } from "../hooks/useProjectMutations.js";
1
+ import { useWorkspacesStore as e } from "../store/workspacesStore.js";
2
+ import { useCreateProject as t } from "../hooks/useProjectMutations.js";
3
+ import { useTr as n } from "../hooks/useTr.js";
4
4
  import { useMemo as r } from "react";
5
5
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
6
  import { Button as o, ResponsiveDialog as s, ResponsiveDialogContent as c, ResponsiveDialogDescription as l, ResponsiveDialogHeader as u, ResponsiveDialogTitle as d } from "@burdenoff/fe-libs/ui";
7
7
  import { FormControl as f, FormDescription as p, FormField as m, FormItem as h, FormLabel as g, FormMessage as _, FormProvider as v, Input as y, Textarea as b, useForm as x, z as S } from "@burdenoff/fe-libs/form";
8
- //#region src/components/CreateProjectDialog.tsx
8
+ // src/components/CreateProjectDialog.tsx
9
9
  function C(e) {
10
10
  return S.object({
11
11
  name: S.string().min(2, e("createProjectDialog.validation.nameMin", "Name must be at least 2 characters")).max(100, e("createProjectDialog.validation.nameMax", "Name must be less than 100 characters")),
@@ -14,45 +14,46 @@ function C(e) {
14
14
  });
15
15
  }
16
16
  function w({ workspaceId: S }) {
17
- let w = e(), { isCreateProjectDialogOpen: T, closeCreateProjectDialog: E } = t(), { mutate: D, isPending: O } = n(S), k = x({
18
- schema: r(() => C(w), [w]),
17
+ let w = n(), { isCreateProjectDialogOpen: T, closeCreateProjectDialog: E } = e(), { mutate: D, isPending: O } = t(S), k = r(() => C(w), [w]), A = x({
18
+ schema: k,
19
19
  defaultValues: {
20
20
  name: "",
21
21
  key: "",
22
22
  description: ""
23
23
  }
24
- }), A = (e) => {
25
- D({
24
+ }), j = (e) => {
25
+ let t = {
26
26
  name: e.name,
27
27
  key: e.key,
28
28
  config: e.description ? { description: e.description } : void 0
29
- }, {
29
+ };
30
+ D(t, {
30
31
  onSuccess: () => {
31
- E(), k.reset();
32
+ E(), A.reset();
32
33
  },
33
34
  onError: (e) => {
34
35
  console.error("Failed to create project:", e);
35
36
  }
36
37
  });
37
- }, j = (e) => {
38
- e || (E(), k.reset());
39
38
  }, M = (e) => {
39
+ e || (E(), A.reset());
40
+ }, N = (e) => {
40
41
  let t = e.toUpperCase().replace(/[^A-Z0-9\s]/g, "").replace(/\s+/g, "_").slice(0, 10);
41
- k.getValues("key") || k.setValue("key", t);
42
+ A.getValues("key") || A.setValue("key", t);
42
43
  };
43
44
  return /* @__PURE__ */ i(s, {
44
45
  open: T,
45
- onOpenChange: j,
46
+ onOpenChange: M,
46
47
  children: /* @__PURE__ */ a(c, {
47
48
  className: "sm:max-w-[500px]",
48
49
  children: [/* @__PURE__ */ a(u, { children: [/* @__PURE__ */ i(d, { children: w("createProjectDialog.title", "Create Project") }), /* @__PURE__ */ i(l, { children: w("createProjectDialog.description", "Create a new project in your workspace. Projects help organize your work.") })] }), /* @__PURE__ */ i(v, {
49
- ...k,
50
+ ...A,
50
51
  children: /* @__PURE__ */ a("form", {
51
- onSubmit: k.handleSubmit(A),
52
+ onSubmit: A.handleSubmit(j),
52
53
  className: "space-y-4",
53
54
  children: [
54
55
  /* @__PURE__ */ i(m, {
55
- control: k.control,
56
+ control: A.control,
56
57
  name: "name",
57
58
  render: ({ field: e }) => /* @__PURE__ */ a(h, { children: [
58
59
  /* @__PURE__ */ i(g, { children: w("createProjectDialog.nameLabel", "Project Name") }),
@@ -60,7 +61,7 @@ function w({ workspaceId: S }) {
60
61
  ...e,
61
62
  placeholder: w("createProjectDialog.namePlaceholder", "My Project"),
62
63
  onChange: (t) => {
63
- e.onChange(t), M(t.target.value);
64
+ e.onChange(t), N(t.target.value);
64
65
  }
65
66
  }) }),
66
67
  /* @__PURE__ */ i(p, { children: w("createProjectDialog.nameHint", "A descriptive name for your project") }),
@@ -68,7 +69,7 @@ function w({ workspaceId: S }) {
68
69
  ] })
69
70
  }),
70
71
  /* @__PURE__ */ i(m, {
71
- control: k.control,
72
+ control: A.control,
72
73
  name: "key",
73
74
  render: ({ field: e }) => /* @__PURE__ */ a(h, { children: [
74
75
  /* @__PURE__ */ i(g, { children: w("createProjectDialog.keyLabel", "Project Key") }),
@@ -81,7 +82,7 @@ function w({ workspaceId: S }) {
81
82
  ] })
82
83
  }),
83
84
  /* @__PURE__ */ i(m, {
84
- control: k.control,
85
+ control: A.control,
85
86
  name: "description",
86
87
  render: ({ field: e }) => /* @__PURE__ */ a(h, { children: [
87
88
  /* @__PURE__ */ i(g, { children: w("createProjectDialog.descriptionLabel", "Description (Optional)") }),
@@ -98,7 +99,7 @@ function w({ workspaceId: S }) {
98
99
  children: [/* @__PURE__ */ i(o, {
99
100
  type: "button",
100
101
  variant: "outline",
101
- onClick: () => j(!1),
102
+ onClick: () => M(!1),
102
103
  disabled: O,
103
104
  children: w("common.cancel", "Cancel")
104
105
  }), /* @__PURE__ */ i(o, {
@@ -113,5 +114,4 @@ function w({ workspaceId: S }) {
113
114
  })
114
115
  });
115
116
  }
116
- //#endregion
117
117
  export { w as CreateProjectDialog };
@@ -1,14 +1,14 @@
1
- import { useTr as e } from "../hooks/useTr.js";
2
- import { useWorkspacesStore as t } from "../store/workspacesStore.js";
3
- import { useCreateWorkspace as n } from "../hooks/useWorkspaceMutations.js";
4
- import { useMyOrganizations as r, useMyTenants as i } from "../hooks/useTenants.js";
5
- import { generateSlug as a } from "../utils/slug.js";
1
+ import { useWorkspacesStore as e } from "../store/workspacesStore.js";
2
+ import { useCreateWorkspace as t } from "../hooks/useWorkspaceMutations.js";
3
+ import { useMyOrganizations as n, useMyTenants as r } from "../hooks/useTenants.js";
4
+ import { generateSlug as i } from "../utils/slug.js";
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
8
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
9
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";
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
- //#region src/components/CreateWorkspaceDialog.tsx
11
+ // src/components/CreateWorkspaceDialog.tsx
12
12
  function N(e) {
13
13
  return M.object({
14
14
  name: M.string().min(2, e("createWorkspaceDialog.validation.nameMin", "Name must be at least 2 characters")).max(100),
@@ -18,7 +18,7 @@ function N(e) {
18
18
  });
19
19
  }
20
20
  function P() {
21
- let M = e(), { isCreateWorkspaceDialogOpen: P, closeCreateWorkspaceDialog: F } = t(), { mutate: I, isPending: L } = n(), { data: R, isLoading: z, error: B } = i(), { data: V, isLoading: H, error: U } = r(), W = s(() => N(M), [M]), G = s(() => R?.items ?? [], [R]), K = s(() => V?.items ?? [], [V]), q = s(() => G.find((e) => e.type === "SHARED" || e.slug === "burdenoff-shared")?.id ?? G[0]?.id ?? "", [G]), J = j({
21
+ let M = a(), { isCreateWorkspaceDialogOpen: P, closeCreateWorkspaceDialog: F } = e(), { mutate: I, isPending: L } = t(), { data: R, isLoading: z, error: B } = r(), { data: V, isLoading: H, error: U } = n(), W = s(() => N(M), [M]), G = s(() => R?.items ?? [], [R]), K = s(() => V?.items ?? [], [V]), q = s(() => G.find((e) => e.type === "SHARED" || e.slug === "burdenoff-shared")?.id ?? G[0]?.id ?? "", [G]), J = j({
22
22
  schema: W,
23
23
  defaultValues: {
24
24
  name: "",
@@ -32,7 +32,7 @@ function P() {
32
32
  }, [q, J]);
33
33
  let Z = s(() => Y ? K.filter((e) => e.tenantId === Y) : [], [Y, K]);
34
34
  o(() => {
35
- J.setValue("slug", X ? a(X) : "");
35
+ J.setValue("slug", X ? i(X) : "");
36
36
  }, [X, J]), o(() => {
37
37
  J.setValue("organizationId", "");
38
38
  }, [Y, J]);
@@ -150,5 +150,4 @@ function P() {
150
150
  })
151
151
  });
152
152
  }
153
- //#endregion
154
153
  export { P as CreateWorkspaceDialog };
@@ -1,14 +1,14 @@
1
1
  import { useTr as e } from "../hooks/useTr.js";
2
2
  import { useWorkspacesStore as t } from "../store/workspacesStore.js";
3
3
  import { useCreateInvitation as n } from "../hooks/useMemberMutations.js";
4
- import { useWorkspaceRoles as r } from "../hooks/useWorkspaceRoles.js";
5
- import { useProjects as i } from "../hooks/useProjects.js";
4
+ import { useProjects as r } from "../hooks/useProjects.js";
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
8
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
9
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";
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
- //#region src/components/InviteMemberDialog.tsx
11
+ // src/components/InviteMemberDialog.tsx
12
12
  function M(e) {
13
13
  return j.object({
14
14
  email: j.string().email(e("inviteMemberDialog.validation.emailInvalid", "Invalid email address")),
@@ -17,19 +17,15 @@ function M(e) {
17
17
  });
18
18
  }
19
19
  function N({ workspaceId: j }) {
20
- let N = e(), { isInviteMemberDialogOpen: P, closeInviteMemberDialog: F } = t(), { mutate: I, isPending: L } = n(j), { data: R = [], isLoading: z } = r(j), { data: B, isLoading: V } = i({ archived: !1 }, { limit: 100 }, j), [H, U] = o(null), W = B?.items ?? [], G = A({
21
- schema: a(() => M(N), [N]),
20
+ let N = e(), { isInviteMemberDialogOpen: P, closeInviteMemberDialog: F } = t(), { mutate: I, isPending: L } = n(j), { data: R = [], isLoading: z } = i(j), { data: B, isLoading: V } = r({ archived: !1 }, { limit: 100 }, j), [H, U] = o(null), W = B?.items ?? [], G = a(() => M(N), [N]), K = A({
21
+ schema: G,
22
22
  defaultValues: {
23
23
  email: "",
24
24
  roleIds: [],
25
25
  projectIds: []
26
26
  }
27
- }), K = (e) => {
28
- if (U(null), !j) {
29
- U(N("inviteMemberDialog.noWorkspaceError", "No workspace selected. Please select a workspace first."));
30
- return;
31
- }
32
- I({
27
+ }), q = (e) => {
28
+ U(null), j ? I({
33
29
  email: e.email,
34
30
  roleIds: e.roleIds,
35
31
  workspaceId: j,
@@ -39,25 +35,25 @@ function N({ workspaceId: j }) {
39
35
  } } : {}
40
36
  }, {
41
37
  onSuccess: () => {
42
- F(), G.reset(), U(null);
38
+ F(), K.reset(), U(null);
43
39
  },
44
40
  onError: (e) => {
45
41
  let t = e instanceof Error ? e.message : N("inviteMemberDialog.sendError", "Failed to send invitation");
46
42
  console.error("Failed to create invitation:", e), U(t);
47
43
  }
48
- });
49
- }, q = (e) => {
50
- e || (F(), G.reset(), U(null));
44
+ }) : U(N("inviteMemberDialog.noWorkspaceError", "No workspace selected. Please select a workspace first."));
45
+ }, J = (e) => {
46
+ e || (F(), K.reset(), U(null));
51
47
  };
52
48
  return /* @__PURE__ */ c(p, {
53
49
  open: P,
54
- onOpenChange: q,
50
+ onOpenChange: J,
55
51
  children: /* @__PURE__ */ l(m, {
56
52
  className: "z-[120] flex h-[min(88vh,900px)] flex-col overflow-hidden sm:max-w-[960px] lg:max-w-[1120px]",
57
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, {
58
- ...G,
54
+ ...K,
59
55
  children: /* @__PURE__ */ l("form", {
60
- onSubmit: G.handleSubmit(K),
56
+ onSubmit: K.handleSubmit(q),
61
57
  className: "flex min-h-0 flex-1 flex-col",
62
58
  children: [/* @__PURE__ */ c("div", {
63
59
  className: "min-h-0 flex-1 overflow-y-auto pr-2",
@@ -69,7 +65,7 @@ function N({ workspaceId: j }) {
69
65
  children: [/* @__PURE__ */ c(s, { className: "size-4 flex-shrink-0" }), /* @__PURE__ */ c("span", { children: H })]
70
66
  }),
71
67
  /* @__PURE__ */ c(w, {
72
- control: G.control,
68
+ control: K.control,
73
69
  name: "email",
74
70
  render: ({ field: e }) => /* @__PURE__ */ l(T, { children: [
75
71
  /* @__PURE__ */ c(E, { children: N("inviteMemberDialog.emailLabel", "Email Address *") }),
@@ -87,7 +83,7 @@ function N({ workspaceId: j }) {
87
83
  ] })
88
84
  }),
89
85
  /* @__PURE__ */ c(w, {
90
- control: G.control,
86
+ control: K.control,
91
87
  name: "roleIds",
92
88
  render: ({ field: e }) => /* @__PURE__ */ l(T, { children: [
93
89
  /* @__PURE__ */ l("div", {
@@ -157,7 +153,7 @@ function N({ workspaceId: j }) {
157
153
  ] })
158
154
  }),
159
155
  /* @__PURE__ */ c(w, {
160
- control: G.control,
156
+ control: K.control,
161
157
  name: "projectIds",
162
158
  render: ({ field: e }) => /* @__PURE__ */ l(T, { children: [
163
159
  /* @__PURE__ */ l("div", {
@@ -226,7 +222,7 @@ function N({ workspaceId: j }) {
226
222
  children: [/* @__PURE__ */ c(d, {
227
223
  type: "button",
228
224
  variant: "outline",
229
- onClick: () => q(!1),
225
+ onClick: () => J(!1),
230
226
  disabled: L,
231
227
  children: N("common.cancel", "Cancel")
232
228
  }), /* @__PURE__ */ c(d, {
@@ -240,5 +236,4 @@ function N({ workspaceId: j }) {
240
236
  })
241
237
  });
242
238
  }
243
- //#endregion
244
239
  export { N as InviteMemberDialog };
@@ -1,19 +1,19 @@
1
- import { useWorkspacesContext as e } from "../providers/WorkspacesProvider.js";
2
- import { useTr as t } from "../hooks/useTr.js";
3
- import { nativeImpact as n, nativeNotify as r } from "../utils/nativeBridge.js";
4
- import { useRemoveWorkspaceMember as i } from "../hooks/useMemberMutations.js";
5
- import { formatRelativeTime as a } from "../utils/formatters.js";
1
+ import { useRemoveWorkspaceMember as e } from "../hooks/useMemberMutations.js";
2
+ import { nativeImpact as t, nativeNotify as n } from "../utils/nativeBridge.js";
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
6
  import { useMemo as o, useState as s } from "react";
7
7
  import { MoreHorizontal as c, UserMinus as l } from "lucide-react";
8
8
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
9
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
10
  import { ActorIdentity as O, useActorProfiles as k } from "@burdenoff/fe-libs/shared";
11
- //#region src/components/MemberListItem.tsx
11
+ // src/components/MemberListItem.tsx
12
12
  function A({ member: A, selected: j = !1, onToggleSelect: M, canRemove: N = !1 }) {
13
- let P = t(), [F, I] = s(!1), { mutate: L, isPending: R } = i(A.workspaceId), { apiGatewayUrl: z, authToken: B, organizationId: V } = e(), H = k(o(() => [{
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
14
  actorId: A.userId,
15
15
  actorType: "user"
16
- }], [A.userId]), {
16
+ }], [A.userId]), U = k(H, {
17
17
  apiGatewayUrl: z,
18
18
  authToken: B,
19
19
  orgId: V,
@@ -33,11 +33,11 @@ function A({ member: A, selected: j = !1, onToggleSelect: M, canRemove: N = !1 }
33
33
  checked: j,
34
34
  onChange: (e) => M(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: H?.displayName ?? "" })
36
+ "aria-label": P("memberListItem.selectMemberAriaLabel", "Select member {{name}}", { name: U?.displayName ?? "" })
37
37
  }), /* @__PURE__ */ f("div", {
38
38
  className: "flex-1 min-w-0",
39
- children: [H ? /* @__PURE__ */ d(O, {
40
- profile: H,
39
+ children: [U ? /* @__PURE__ */ d(O, {
40
+ profile: U,
41
41
  variant: "cell"
42
42
  }) : null, /* @__PURE__ */ f("div", {
43
43
  className: "mt-1 flex items-center gap-2",
@@ -47,7 +47,7 @@ function A({ member: A, selected: j = !1, onToggleSelect: M, canRemove: N = !1 }
47
47
  children: P("memberListItem.workspaceMember", "Workspace member")
48
48
  }), /* @__PURE__ */ d("span", {
49
49
  className: "text-xs text-text-secondary",
50
- children: P("memberListItem.joined", "Joined {{time}}", { time: a(A.createdAt) })
50
+ children: P("memberListItem.joined", "Joined {{time}}", { time: r(A.createdAt) })
51
51
  })]
52
52
  })]
53
53
  })]
@@ -76,17 +76,17 @@ function A({ member: A, selected: j = !1, onToggleSelect: M, canRemove: N = !1 }
76
76
  }), /* @__PURE__ */ d(p, {
77
77
  open: F,
78
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: H?.displayName ?? P("memberListItem.thisMemberFallback", "this member") }) })] }), /* @__PURE__ */ f(v, { children: [/* @__PURE__ */ d(h, {
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
80
  disabled: R,
81
81
  children: P("common.cancel", "Cancel")
82
82
  }), /* @__PURE__ */ d(m, {
83
83
  onClick: () => {
84
- n("medium"), L(A.id, {
84
+ t("medium"), L(A.id, {
85
85
  onSuccess: () => {
86
- r("success"), I(!1);
86
+ n("success"), I(!1);
87
87
  },
88
88
  onError: () => {
89
- r("error");
89
+ n("error");
90
90
  }
91
91
  });
92
92
  },
@@ -96,5 +96,4 @@ function A({ member: A, selected: j = !1, onToggleSelect: M, canRemove: N = !1 }
96
96
  })] })] })
97
97
  })] });
98
98
  }
99
- //#endregion
100
99
  export { A as MemberListItem };
@@ -1,21 +1,21 @@
1
- import { useWorkspacesContext as e } from "../providers/WorkspacesProvider.js";
2
- import { useTr as t } from "../hooks/useTr.js";
1
+ import { formatDate as e } from "../utils/formatters.js";
2
+ import { getProjectDisplayTags as t } from "../utils/projectTags.js";
3
3
  import { getProjectStatusClasses as n } from "../utils/tokenHelpers.js";
4
- import { useScopedNavigation as r } from "../hooks/useScopedNavigation.js";
5
- import { nativeConfirm as i, nativeImpact as a } from "../utils/nativeBridge.js";
6
- import { useArchiveProject as o, useDeleteProject as s, useUnarchiveProject as c } from "../hooks/useProjectMutations.js";
7
- import { formatDate as l } from "../utils/formatters.js";
8
- import { getProjectDisplayTags as u } from "../utils/projectTags.js";
9
- import { RenameProjectDialog as d } from "./RenameProjectDialog.js";
4
+ import { useArchiveProject as r, useDeleteProject as i, useUnarchiveProject as a } from "../hooks/useProjectMutations.js";
5
+ import { useWorkspacesContext as o } 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";
8
+ import { RenameProjectDialog as u } from "./RenameProjectDialog.js";
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
12
  import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
13
13
  import { Badge as x, Button as S, CardContent as C, CardHeader as w, CardTitle as T, DropdownMenu as E, DropdownMenuContent as D, DropdownMenuItem as O, DropdownMenuTrigger as k, EntityIdModal as A, GlassCard as j, useEntityIdModal as M } from "@burdenoff/fe-libs/ui";
14
14
  import { useNavigate as N } from "react-router";
15
15
  import { TagBadge as P } from "@burdenoff/fe-libs/tag";
16
- //#region src/components/ProjectCard.tsx
16
+ // src/components/ProjectCard.tsx
17
17
  function F({ project: F, selected: I = !1, onToggleSelect: L, onTagClick: R, canArchive: z = !1, canDelete: B = !1, canRename: V = !1 }) {
18
- let H = N(), { basePath: U = "/workspaces" } = e(), { withCurrentSearch: W } = r(), { mutate: G } = o(F.workspaceId), { mutate: K } = c(F.workspaceId), { mutate: q } = s(F.workspaceId), J = M(), [Y, X] = f(!1), Z = u(F), Q = t(), $ = () => {
18
+ let H = N(), { basePath: U = "/workspaces" } = o(), { withCurrentSearch: W } = s(), { mutate: G } = r(F.workspaceId), { mutate: K } = a(F.workspaceId), { mutate: q } = i(F.workspaceId), J = M(), [Y, X] = f(!1), Z = t(F), Q = d(), $ = () => {
19
19
  H(W(`${U}/${F.workspaceId}/projects/${F.id}`));
20
20
  };
21
21
  return /* @__PURE__ */ b(v, { children: [
@@ -115,8 +115,8 @@ function F({ project: F, selected: I = !1, onToggleSelect: L, onTagClick: R, can
115
115
  }),
116
116
  B && /* @__PURE__ */ y(O, {
117
117
  onClick: async (e) => {
118
- e.stopPropagation(), a("medium");
119
- let t = await i({
118
+ e.stopPropagation(), l("medium");
119
+ let t = await c({
120
120
  title: Q("projectCard.deleteTitle", "Delete project"),
121
121
  message: Q("projectCard.deleteMessage", "Are you sure you want to delete \"{{name}}\"?", { name: F.name }),
122
122
  okButtonTitle: Q("common.delete", "Delete"),
@@ -148,7 +148,7 @@ function F({ project: F, selected: I = !1, onToggleSelect: L, onTagClick: R, can
148
148
  }),
149
149
  /* @__PURE__ */ y("div", {
150
150
  className: "text-xs text-text-secondary",
151
- children: Q("projectCard.created", "Created {{date}}", { date: l(F.createdAt) })
151
+ children: Q("projectCard.created", "Created {{date}}", { date: e(F.createdAt) })
152
152
  }),
153
153
  Z.length > 0 && /* @__PURE__ */ b("div", {
154
154
  className: "flex flex-wrap gap-1.5",
@@ -183,12 +183,11 @@ function F({ project: F, selected: I = !1, onToggleSelect: L, onTagClick: R, can
183
183
  })]
184
184
  }),
185
185
  /* @__PURE__ */ y(A, { control: J }),
186
- Y && /* @__PURE__ */ y(d, {
186
+ Y && /* @__PURE__ */ y(u, {
187
187
  project: F,
188
188
  open: Y,
189
189
  onOpenChange: X
190
190
  })
191
191
  ] });
192
192
  }
193
- //#endregion
194
193
  export { F as ProjectCard };