@burdenoff/microfe-workspaces 2026.1113.1 → 2026.1114.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/WorkspacesRoot.js +31 -25
  2. package/dist/components/CreateProjectDialog.js +81 -78
  3. package/dist/components/CreateWorkspaceDialog.js +41 -41
  4. package/dist/components/InviteMemberDialog.js +54 -54
  5. package/dist/components/MemberListItem.js +53 -53
  6. package/dist/components/ProjectCard.js +82 -82
  7. package/dist/components/ProjectMemberPickerDialog.js +46 -46
  8. package/dist/components/RenameProjectDialog.js +16 -16
  9. package/dist/components/WorkspaceCard.js +18 -18
  10. package/dist/components/WorkspacesErrorBoundary.js +25 -25
  11. package/dist/components/tags/ProjectTagsWidget.js +50 -50
  12. package/dist/components/tags/WorkspaceTagsEditor.js +9 -9
  13. package/dist/index.d.ts +2 -2
  14. package/dist/index.js +15 -14
  15. package/dist/pages/ActivityListPage.js +30 -30
  16. package/dist/pages/CreateWorkspacePage.js +205 -173
  17. package/dist/pages/InviteAcceptancePage.js +201 -201
  18. package/dist/pages/MembersListPage.js +165 -164
  19. package/dist/pages/PendingInvitesPage.js +67 -67
  20. package/dist/pages/ProjectDetailPage.js +297 -272
  21. package/dist/pages/ProjectMembersPage.js +59 -59
  22. package/dist/pages/ProjectsListPage.js +275 -244
  23. package/dist/pages/WorkspaceDetailPage.js +175 -172
  24. package/dist/pages/WorkspaceInvitePage.js +298 -298
  25. package/dist/pages/WorkspaceSettingsPage.js +48 -48
  26. package/dist/pages/WorkspacesListPage.js +55 -55
  27. package/dist/pages/dashboard/DashboardCustomizer.js +27 -27
  28. package/dist/pages/dashboard/DashboardPage.js +35 -35
  29. package/dist/pages/dashboard/WidgetWrapper.js +21 -21
  30. package/dist/pages/dashboard/widgets/AgentsWidget.js +25 -25
  31. package/dist/pages/dashboard/widgets/GroupsWidget.js +14 -14
  32. package/dist/pages/dashboard/widgets/MembersWidget.js +15 -15
  33. package/dist/pages/dashboard/widgets/ProjectsWidget.js +20 -20
  34. package/dist/pages/dashboard/widgets/QuickActionsWidget.js +7 -7
  35. package/dist/pages/dashboard/widgets/RecentActivityWidget.js +16 -16
  36. package/dist/pages/dashboard/widgets/SessionsWidget.js +15 -15
  37. package/dist/pages/dashboard/widgets/TagCloudWidget.js +11 -11
  38. package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +16 -16
  39. package/dist/pages/dashboard/widgets/VibesWidget.js +13 -13
  40. package/dist/pages/dashboard/widgets/WelcomeWidget.js +23 -23
  41. package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +26 -26
  42. package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +21 -21
  43. package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +22 -22
  44. package/dist/pages/dashboard/widgets/WorkspacesWidget.js +16 -16
  45. package/dist/providers/WorkspacesProvider.d.ts +5 -0
  46. package/dist/providers/WorkspacesProvider.js +2 -2
  47. package/dist/types/index.d.ts +11 -1
  48. package/dist/utils/createForms.d.ts +21 -0
  49. package/dist/utils/createForms.js +20 -0
  50. package/dist/utils/index.d.ts +1 -0
  51. package/package.json +2 -2
@@ -4,70 +4,76 @@ import { WorkspacesRoutes as n } from "./WorkspacesRoutes.js";
4
4
  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
- import { jsx as d } from "react/jsx-runtime";
7
+ import { useHeadingDocumentTitle as d } from "@burdenoff/fe-libs/ui";
8
+ import { jsx as f } from "react/jsx-runtime";
8
9
  // src/WorkspacesRoot.tsx
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}`), y = i(() => ({
11
- isEnabled: g,
12
- evaluations: _
13
- }), [_, g]);
10
+ var p = (p) => {
11
+ let { registerNavItems: m, registerFooterItems: h, basePath: g = "/" } = p, { isEnabled: _, evaluations: v } = u();
12
+ d({
13
+ enabled: p.variant === "fluidgrids",
14
+ suffix: "FluidGrids"
15
+ });
16
+ let y = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`), b = i(() => ({
17
+ isEnabled: _,
18
+ evaluations: v
19
+ }), [v, _]);
14
20
  return r(() => {
15
- if (!p) return;
21
+ if (!m) return;
16
22
  let e = [
17
23
  {
18
24
  id: "workspaces-all",
19
25
  label: "All Workspaces",
20
- path: v(h, "list"),
21
- icon: /* @__PURE__ */ d(o, { size: 20 }),
26
+ path: y(g, "list"),
27
+ icon: /* @__PURE__ */ f(o, { size: 20 }),
22
28
  order: 10,
23
29
  group: "workspaces"
24
30
  },
25
31
  {
26
32
  id: "workspaces-projects",
27
33
  label: "Projects",
28
- path: v(h, "projects"),
29
- icon: /* @__PURE__ */ d(s, { size: 20 }),
34
+ path: y(g, "projects"),
35
+ icon: /* @__PURE__ */ f(s, { size: 20 }),
30
36
  order: 20,
31
37
  group: "workspaces"
32
38
  },
33
39
  {
34
40
  id: "workspaces-members",
35
41
  label: "Members",
36
- path: v(h, "members"),
37
- icon: /* @__PURE__ */ d(c, { size: 20 }),
42
+ path: y(g, "members"),
43
+ icon: /* @__PURE__ */ f(c, { size: 20 }),
38
44
  order: 30,
39
45
  group: "workspaces"
40
46
  },
41
47
  {
42
48
  id: "workspaces-activity",
43
49
  label: "Activity",
44
- path: v(h, "activity"),
45
- icon: /* @__PURE__ */ d(a, { size: 20 }),
50
+ path: y(g, "activity"),
51
+ icon: /* @__PURE__ */ f(a, { size: 20 }),
46
52
  order: 40,
47
53
  group: "workspaces"
48
54
  }
49
55
  ];
50
- return p(e);
56
+ return m(e);
51
57
  }, [
52
- p,
53
- h,
54
- y
58
+ m,
59
+ g,
60
+ b
55
61
  ]), r(() => {
56
- if (m) return m([{
62
+ if (h) return h([{
57
63
  id: "workspaces-status",
58
64
  label: "Workspaces Ready",
59
65
  type: "status",
60
66
  order: 10,
61
67
  section: "left"
62
68
  }]);
63
- }, [m]), /* @__PURE__ */ d(l, {
69
+ }, [h]), /* @__PURE__ */ f(l, {
64
70
  workspaceId: null,
65
71
  gateway: "global",
66
72
  defaultEnabled: !0,
67
- children: /* @__PURE__ */ d(t, { children: /* @__PURE__ */ d(e, {
68
- ...f,
69
- children: /* @__PURE__ */ d(n, {})
73
+ children: /* @__PURE__ */ f(t, { children: /* @__PURE__ */ f(e, {
74
+ ...p,
75
+ children: /* @__PURE__ */ f(n, {})
70
76
  }) })
71
77
  });
72
78
  };
73
- export { f as WorkspacesRoot };
79
+ export { p as WorkspacesRoot };
@@ -1,111 +1,114 @@
1
1
  import { useWorkspacesStore as e } from "../store/workspacesStore.js";
2
2
  import { useCreateProject as t } from "../hooks/useProjectMutations.js";
3
3
  import { useTr as n } from "../hooks/useTr.js";
4
- import { useMemo as r } from "react";
5
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
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
- 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";
4
+ import { useIsFluidGridsVariant as r } from "../providers/WorkspacesProvider.js";
5
+ import { buildCreateProjectInput as i, generateProjectKey as a } from "../utils/createForms.js";
6
+ import { useMemo as o } from "react";
7
+ import { Button as s, OptionalFields as c, ResponsiveDialog as l, ResponsiveDialogContent as u, ResponsiveDialogDescription as d, ResponsiveDialogHeader as f, ResponsiveDialogTitle as p } from "@burdenoff/fe-libs/ui";
8
+ import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
9
+ import { FormControl as _, FormDescription as v, FormField as y, FormItem as b, FormLabel as x, FormMessage as S, FormProvider as C, Input as w, Textarea as T, useForm as E, z as D } from "@burdenoff/fe-libs/form";
8
10
  // src/components/CreateProjectDialog.tsx
9
- function C(e) {
10
- return S.object({
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")),
12
- key: S.string().min(2, e("createProjectDialog.validation.keyMin", "Key must be at least 2 characters")).max(10, e("createProjectDialog.validation.keyMax", "Key must be less than 10 characters")).regex(/^[A-Z0-9_-]+$/, e("createProjectDialog.validation.keyFormat", "Key must be uppercase letters, numbers, underscores, or hyphens")),
13
- description: S.string().optional()
11
+ function O(e) {
12
+ return D.object({
13
+ name: D.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
+ key: D.string().min(2, e("createProjectDialog.validation.keyMin", "Key must be at least 2 characters")).max(10, e("createProjectDialog.validation.keyMax", "Key must be less than 10 characters")).regex(/^[A-Z0-9_-]+$/, e("createProjectDialog.validation.keyFormat", "Key must be uppercase letters, numbers, underscores, or hyphens")),
15
+ description: D.string().optional()
14
16
  });
15
17
  }
16
- function w({ workspaceId: S }) {
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,
18
+ function k({ workspaceId: D }) {
19
+ let k = n(), A = r(), { isCreateProjectDialogOpen: j, closeCreateProjectDialog: M } = e(), { mutate: N, isPending: P } = t(D), F = o(() => O(k), [k]), I = E({
20
+ schema: F,
19
21
  defaultValues: {
20
22
  name: "",
21
23
  key: "",
22
24
  description: ""
23
25
  }
24
- }), j = (e) => {
25
- let t = {
26
- name: e.name,
27
- key: e.key,
28
- config: e.description ? { description: e.description } : void 0
29
- };
30
- D(t, {
26
+ }), L = (e) => {
27
+ let t = i(e);
28
+ N(t, {
31
29
  onSuccess: () => {
32
- E(), A.reset();
30
+ M(), I.reset();
33
31
  },
34
32
  onError: (e) => {
35
33
  console.error("Failed to create project:", e);
36
34
  }
37
35
  });
38
- }, M = (e) => {
39
- e || (E(), A.reset());
40
- }, N = (e) => {
41
- let t = e.toUpperCase().replace(/[^A-Z0-9\s]/g, "").replace(/\s+/g, "_").slice(0, 10);
42
- A.getValues("key") || A.setValue("key", t);
43
- };
44
- return /* @__PURE__ */ i(s, {
45
- open: T,
46
- onOpenChange: M,
47
- children: /* @__PURE__ */ a(c, {
36
+ }, R = (e) => {
37
+ e || (M(), I.reset());
38
+ }, z = !!I.formState.dirtyFields.key, B = (e) => {
39
+ z || I.setValue("key", a(e), { shouldValidate: I.formState.isSubmitted });
40
+ }, V = /* @__PURE__ */ h(y, {
41
+ control: I.control,
42
+ name: "key",
43
+ render: ({ field: e }) => /* @__PURE__ */ g(b, { children: [
44
+ /* @__PURE__ */ h(x, { children: k("createProjectDialog.keyLabel", "Project Key") }),
45
+ /* @__PURE__ */ h(_, { children: /* @__PURE__ */ h(w, {
46
+ ...e,
47
+ placeholder: k("createProjectDialog.keyPlaceholder", "MYPROJ")
48
+ }) }),
49
+ /* @__PURE__ */ h(v, { children: k("createProjectDialog.keyHint", "Short identifier (uppercase letters, numbers, underscores)") }),
50
+ /* @__PURE__ */ h(S, {})
51
+ ] })
52
+ }), H = /* @__PURE__ */ h(y, {
53
+ control: I.control,
54
+ name: "description",
55
+ render: ({ field: e }) => /* @__PURE__ */ g(b, { children: [
56
+ /* @__PURE__ */ h(x, { children: k("createProjectDialog.descriptionLabel", "Description (Optional)") }),
57
+ /* @__PURE__ */ h(_, { children: /* @__PURE__ */ h(T, {
58
+ ...e,
59
+ placeholder: k("createProjectDialog.descriptionPlaceholder", "Brief description of the project"),
60
+ rows: 3
61
+ }) }),
62
+ /* @__PURE__ */ h(S, {})
63
+ ] })
64
+ });
65
+ return /* @__PURE__ */ h(l, {
66
+ open: j,
67
+ onOpenChange: R,
68
+ children: /* @__PURE__ */ g(u, {
48
69
  className: "sm:max-w-[500px]",
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, {
50
- ...A,
51
- children: /* @__PURE__ */ a("form", {
52
- onSubmit: A.handleSubmit(j),
70
+ children: [/* @__PURE__ */ g(f, { children: [/* @__PURE__ */ h(p, { children: k("createProjectDialog.title", "Create Project") }), /* @__PURE__ */ h(d, { children: k("createProjectDialog.description", "Create a new project in your workspace. Projects help organize your work.") })] }), /* @__PURE__ */ h(C, {
71
+ ...I,
72
+ children: /* @__PURE__ */ g("form", {
73
+ onSubmit: I.handleSubmit(L),
53
74
  className: "space-y-4",
54
75
  children: [
55
- /* @__PURE__ */ i(m, {
56
- control: A.control,
76
+ /* @__PURE__ */ h(y, {
77
+ control: I.control,
57
78
  name: "name",
58
- render: ({ field: e }) => /* @__PURE__ */ a(h, { children: [
59
- /* @__PURE__ */ i(g, { children: w("createProjectDialog.nameLabel", "Project Name") }),
60
- /* @__PURE__ */ i(f, { children: /* @__PURE__ */ i(y, {
79
+ render: ({ field: e }) => /* @__PURE__ */ g(b, { children: [
80
+ /* @__PURE__ */ h(x, { children: k("createProjectDialog.nameLabel", "Project Name") }),
81
+ /* @__PURE__ */ h(_, { children: /* @__PURE__ */ h(w, {
61
82
  ...e,
62
- placeholder: w("createProjectDialog.namePlaceholder", "My Project"),
83
+ placeholder: k("createProjectDialog.namePlaceholder", "My Project"),
63
84
  onChange: (t) => {
64
- e.onChange(t), N(t.target.value);
85
+ e.onChange(t), B(t.target.value);
65
86
  }
66
87
  }) }),
67
- /* @__PURE__ */ i(p, { children: w("createProjectDialog.nameHint", "A descriptive name for your project") }),
68
- /* @__PURE__ */ i(_, {})
69
- ] })
70
- }),
71
- /* @__PURE__ */ i(m, {
72
- control: A.control,
73
- name: "key",
74
- render: ({ field: e }) => /* @__PURE__ */ a(h, { children: [
75
- /* @__PURE__ */ i(g, { children: w("createProjectDialog.keyLabel", "Project Key") }),
76
- /* @__PURE__ */ i(f, { children: /* @__PURE__ */ i(y, {
77
- ...e,
78
- placeholder: w("createProjectDialog.keyPlaceholder", "MYPROJ")
79
- }) }),
80
- /* @__PURE__ */ i(p, { children: w("createProjectDialog.keyHint", "Short identifier (uppercase letters, numbers, underscores)") }),
81
- /* @__PURE__ */ i(_, {})
82
- ] })
83
- }),
84
- /* @__PURE__ */ i(m, {
85
- control: A.control,
86
- name: "description",
87
- render: ({ field: e }) => /* @__PURE__ */ a(h, { children: [
88
- /* @__PURE__ */ i(g, { children: w("createProjectDialog.descriptionLabel", "Description (Optional)") }),
89
- /* @__PURE__ */ i(f, { children: /* @__PURE__ */ i(b, {
90
- ...e,
91
- placeholder: w("createProjectDialog.descriptionPlaceholder", "Brief description of the project"),
92
- rows: 3
93
- }) }),
94
- /* @__PURE__ */ i(_, {})
88
+ /* @__PURE__ */ h(v, { children: k("createProjectDialog.nameHint", "A descriptive name for your project") }),
89
+ /* @__PURE__ */ h(S, {})
95
90
  ] })
96
91
  }),
97
- /* @__PURE__ */ a("div", {
92
+ A ? /* @__PURE__ */ g(m, { children: [I.formState.errors.key?.message ? /* @__PURE__ */ h("p", {
93
+ role: "alert",
94
+ className: "text-sm text-status-error-text",
95
+ children: I.formState.errors.key.message
96
+ }) : null, /* @__PURE__ */ g(c, {
97
+ storageKey: "workspaces.createProject",
98
+ children: [V, H]
99
+ })] }) : /* @__PURE__ */ g(m, { children: [V, H] }),
100
+ /* @__PURE__ */ g("div", {
98
101
  className: "flex justify-end gap-3 pt-4",
99
- children: [/* @__PURE__ */ i(o, {
102
+ children: [/* @__PURE__ */ h(s, {
100
103
  type: "button",
101
104
  variant: "outline",
102
- onClick: () => M(!1),
103
- disabled: O,
104
- children: w("common.cancel", "Cancel")
105
- }), /* @__PURE__ */ i(o, {
105
+ onClick: () => R(!1),
106
+ disabled: P,
107
+ children: k("common.cancel", "Cancel")
108
+ }), /* @__PURE__ */ h(s, {
106
109
  type: "submit",
107
- disabled: O,
108
- children: O ? w("createProjectDialog.creating", "Creating...") : w("createProjectDialog.submit", "Create Project")
110
+ disabled: P,
111
+ children: P ? k("createProjectDialog.creating", "Creating...") : k("createProjectDialog.submit", "Create Project")
109
112
  })]
110
113
  })
111
114
  ]
@@ -114,4 +117,4 @@ function w({ workspaceId: S }) {
114
117
  })
115
118
  });
116
119
  }
117
- export { w as CreateProjectDialog };
120
+ export { k as CreateProjectDialog };
@@ -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")