@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.
- package/dist/WorkspacesRoot.js +31 -25
- package/dist/components/CreateProjectDialog.js +81 -78
- package/dist/components/CreateWorkspaceDialog.js +41 -41
- package/dist/components/InviteMemberDialog.js +54 -54
- package/dist/components/MemberListItem.js +53 -53
- package/dist/components/ProjectCard.js +82 -82
- package/dist/components/ProjectMemberPickerDialog.js +46 -46
- package/dist/components/RenameProjectDialog.js +16 -16
- package/dist/components/WorkspaceCard.js +18 -18
- package/dist/components/WorkspacesErrorBoundary.js +25 -25
- package/dist/components/tags/ProjectTagsWidget.js +50 -50
- package/dist/components/tags/WorkspaceTagsEditor.js +9 -9
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -14
- package/dist/pages/ActivityListPage.js +30 -30
- package/dist/pages/CreateWorkspacePage.js +205 -173
- package/dist/pages/InviteAcceptancePage.js +201 -201
- package/dist/pages/MembersListPage.js +165 -164
- package/dist/pages/PendingInvitesPage.js +67 -67
- package/dist/pages/ProjectDetailPage.js +297 -272
- package/dist/pages/ProjectMembersPage.js +59 -59
- package/dist/pages/ProjectsListPage.js +275 -244
- package/dist/pages/WorkspaceDetailPage.js +175 -172
- package/dist/pages/WorkspaceInvitePage.js +298 -298
- package/dist/pages/WorkspaceSettingsPage.js +48 -48
- package/dist/pages/WorkspacesListPage.js +55 -55
- package/dist/pages/dashboard/DashboardCustomizer.js +27 -27
- package/dist/pages/dashboard/DashboardPage.js +35 -35
- package/dist/pages/dashboard/WidgetWrapper.js +21 -21
- package/dist/pages/dashboard/widgets/AgentsWidget.js +25 -25
- package/dist/pages/dashboard/widgets/GroupsWidget.js +14 -14
- package/dist/pages/dashboard/widgets/MembersWidget.js +15 -15
- package/dist/pages/dashboard/widgets/ProjectsWidget.js +20 -20
- package/dist/pages/dashboard/widgets/QuickActionsWidget.js +7 -7
- package/dist/pages/dashboard/widgets/RecentActivityWidget.js +16 -16
- package/dist/pages/dashboard/widgets/SessionsWidget.js +15 -15
- package/dist/pages/dashboard/widgets/TagCloudWidget.js +11 -11
- package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +16 -16
- package/dist/pages/dashboard/widgets/VibesWidget.js +13 -13
- package/dist/pages/dashboard/widgets/WelcomeWidget.js +23 -23
- package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +26 -26
- package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +21 -21
- package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +22 -22
- package/dist/pages/dashboard/widgets/WorkspacesWidget.js +16 -16
- package/dist/providers/WorkspacesProvider.d.ts +5 -0
- package/dist/providers/WorkspacesProvider.js +2 -2
- package/dist/types/index.d.ts +11 -1
- package/dist/utils/createForms.d.ts +21 -0
- package/dist/utils/createForms.js +20 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/WorkspacesRoot.js
CHANGED
|
@@ -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 {
|
|
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
|
|
10
|
-
let { registerNavItems:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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 (!
|
|
21
|
+
if (!m) return;
|
|
16
22
|
let e = [
|
|
17
23
|
{
|
|
18
24
|
id: "workspaces-all",
|
|
19
25
|
label: "All Workspaces",
|
|
20
|
-
path:
|
|
21
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
29
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
37
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
45
|
-
icon: /* @__PURE__ */
|
|
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
|
|
56
|
+
return m(e);
|
|
51
57
|
}, [
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
58
|
+
m,
|
|
59
|
+
g,
|
|
60
|
+
b
|
|
55
61
|
]), r(() => {
|
|
56
|
-
if (
|
|
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
|
-
}, [
|
|
69
|
+
}, [h]), /* @__PURE__ */ f(l, {
|
|
64
70
|
workspaceId: null,
|
|
65
71
|
gateway: "global",
|
|
66
72
|
defaultEnabled: !0,
|
|
67
|
-
children: /* @__PURE__ */
|
|
68
|
-
...
|
|
69
|
-
children: /* @__PURE__ */
|
|
73
|
+
children: /* @__PURE__ */ f(t, { children: /* @__PURE__ */ f(e, {
|
|
74
|
+
...p,
|
|
75
|
+
children: /* @__PURE__ */ f(n, {})
|
|
70
76
|
}) })
|
|
71
77
|
});
|
|
72
78
|
};
|
|
73
|
-
export {
|
|
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 {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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
|
|
10
|
-
return
|
|
11
|
-
name:
|
|
12
|
-
key:
|
|
13
|
-
description:
|
|
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
|
|
17
|
-
let
|
|
18
|
-
schema:
|
|
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
|
-
}),
|
|
25
|
-
let t =
|
|
26
|
-
|
|
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
|
-
|
|
30
|
+
M(), I.reset();
|
|
33
31
|
},
|
|
34
32
|
onError: (e) => {
|
|
35
33
|
console.error("Failed to create project:", e);
|
|
36
34
|
}
|
|
37
35
|
});
|
|
38
|
-
},
|
|
39
|
-
e || (
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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__ */
|
|
50
|
-
...
|
|
51
|
-
children: /* @__PURE__ */
|
|
52
|
-
onSubmit:
|
|
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__ */
|
|
56
|
-
control:
|
|
76
|
+
/* @__PURE__ */ h(y, {
|
|
77
|
+
control: I.control,
|
|
57
78
|
name: "name",
|
|
58
|
-
render: ({ field: e }) => /* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */
|
|
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:
|
|
83
|
+
placeholder: k("createProjectDialog.namePlaceholder", "My Project"),
|
|
63
84
|
onChange: (t) => {
|
|
64
|
-
e.onChange(t),
|
|
85
|
+
e.onChange(t), B(t.target.value);
|
|
65
86
|
}
|
|
66
87
|
}) }),
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
102
|
+
children: [/* @__PURE__ */ h(s, {
|
|
100
103
|
type: "button",
|
|
101
104
|
variant: "outline",
|
|
102
|
-
onClick: () =>
|
|
103
|
-
disabled:
|
|
104
|
-
children:
|
|
105
|
-
}), /* @__PURE__ */
|
|
105
|
+
onClick: () => R(!1),
|
|
106
|
+
disabled: P,
|
|
107
|
+
children: k("common.cancel", "Cancel")
|
|
108
|
+
}), /* @__PURE__ */ h(s, {
|
|
106
109
|
type: "submit",
|
|
107
|
-
disabled:
|
|
108
|
-
children:
|
|
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 {
|
|
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 {
|
|
9
|
-
import {
|
|
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__ */
|
|
49
|
+
return /* @__PURE__ */ g(u, {
|
|
50
50
|
open: P,
|
|
51
51
|
onOpenChange: F,
|
|
52
|
-
children: /* @__PURE__ */
|
|
52
|
+
children: /* @__PURE__ */ _(d, {
|
|
53
53
|
className: "sm:max-w-[500px]",
|
|
54
|
-
children: [/* @__PURE__ */
|
|
54
|
+
children: [/* @__PURE__ */ g(p, { children: /* @__PURE__ */ g(m, { children: M("createWorkspaceDialog.title", "Create Workspace") }) }), /* @__PURE__ */ g(w, {
|
|
55
55
|
...J,
|
|
56
|
-
children: /* @__PURE__ */
|
|
56
|
+
children: /* @__PURE__ */ _("form", {
|
|
57
57
|
onSubmit: J.handleSubmit(Q),
|
|
58
58
|
className: "space-y-4",
|
|
59
59
|
children: [
|
|
60
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ g(b, {
|
|
61
61
|
control: J.control,
|
|
62
62
|
name: "name",
|
|
63
|
-
render: ({ field: e }) => /* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
/* @__PURE__ */
|
|
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__ */
|
|
70
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ g(y, { children: M("createWorkspaceDialog.nameHint", "A descriptive name for your workspace") }),
|
|
70
|
+
/* @__PURE__ */ g(C, {})
|
|
71
71
|
] })
|
|
72
72
|
}),
|
|
73
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ g(b, {
|
|
74
74
|
control: J.control,
|
|
75
75
|
name: "slug",
|
|
76
|
-
render: ({ field: e }) => /* @__PURE__ */
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
/* @__PURE__ */
|
|
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__ */
|
|
83
|
-
/* @__PURE__ */
|
|
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__ */
|
|
86
|
+
G.length === 1 ? null : /* @__PURE__ */ g(b, {
|
|
87
87
|
control: J.control,
|
|
88
88
|
name: "tenantId",
|
|
89
|
-
render: ({ field: e }) => /* @__PURE__ */
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
z ? /* @__PURE__ */
|
|
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__ */
|
|
94
|
-
}) : G.length === 0 ? /* @__PURE__ */
|
|
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__ */
|
|
97
|
+
}) : /* @__PURE__ */ _(E, {
|
|
98
98
|
onValueChange: e.onChange,
|
|
99
99
|
value: e.value,
|
|
100
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
106
|
-
/* @__PURE__ */
|
|
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__ */
|
|
109
|
+
/* @__PURE__ */ g(b, {
|
|
110
110
|
control: J.control,
|
|
111
111
|
name: "organizationId",
|
|
112
|
-
render: ({ field: e }) => /* @__PURE__ */
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
H ? /* @__PURE__ */
|
|
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__ */
|
|
117
|
-
}) : Y ? Z.length === 0 ? /* @__PURE__ */
|
|
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__ */
|
|
120
|
+
}) : /* @__PURE__ */ _(E, {
|
|
121
121
|
onValueChange: e.onChange,
|
|
122
122
|
value: e.value,
|
|
123
123
|
disabled: !Y,
|
|
124
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
133
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ g(y, { children: M("createWorkspaceDialog.organizationHint", "Select which organization owns this workspace") }),
|
|
133
|
+
/* @__PURE__ */ g(C, {})
|
|
134
134
|
] })
|
|
135
135
|
}),
|
|
136
|
-
/* @__PURE__ */
|
|
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
|
|
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")
|