@burdenoff/microfe-workspaces 2026.1114.2 → 2026.1120.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/pages/ActivityListPage.js +2 -1
- package/dist/pages/CreateWorkspacePage.js +156 -154
- package/dist/pages/MembersListPage.js +4 -2
- package/dist/pages/PendingInvitesPage.js +2 -1
- package/dist/pages/ProjectDetailPage.js +2 -1
- package/dist/pages/ProjectMembersPage.js +2 -1
- package/dist/pages/ProjectsListPage.js +3 -1
- package/dist/pages/WorkspaceDetailPage.js +2 -1
- package/dist/pages/WorkspaceInvitePage.js +3 -1
- package/dist/pages/WorkspacesListPage.js +2 -1
- package/dist/pages/dashboard/widgets/AgentsWidget.js +2 -1
- package/dist/pages/dashboard/widgets/GroupsWidget.js +2 -1
- package/dist/pages/dashboard/widgets/ProjectsWidget.js +3 -1
- package/dist/pages/dashboard/widgets/RecentActivityWidget.js +3 -1
- package/dist/pages/dashboard/widgets/SessionsWidget.js +2 -1
- package/dist/pages/dashboard/widgets/TagCloudWidget.js +2 -1
- package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +3 -1
- package/dist/pages/dashboard/widgets/VibesWidget.js +2 -1
- package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +3 -1
- package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +3 -1
- package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +3 -1
- package/dist/pages/dashboard/widgets/WorkspacesWidget.js +3 -1
- package/package.json +3 -3
|
@@ -46,7 +46,8 @@ function g() {
|
|
|
46
46
|
}) : (v?.length ?? 0) === 0 ? /* @__PURE__ */ f(l, {
|
|
47
47
|
illustration: "empty-data",
|
|
48
48
|
title: i(g, "activityList.emptyTitle", "No recent activity"),
|
|
49
|
-
description: i(g, "activityList.emptyDescription", "Recent workspace actions will appear here as your team creates, updates, and manages work.")
|
|
49
|
+
description: i(g, "activityList.emptyDescription", "Recent workspace actions will appear here as your team creates, updates, and manages work."),
|
|
50
|
+
glassIllustration: "history"
|
|
50
51
|
}) : /* @__PURE__ */ f("div", {
|
|
51
52
|
className: "space-y-3",
|
|
52
53
|
children: v?.map((e) => /* @__PURE__ */ p(c, {
|
|
@@ -1,289 +1,291 @@
|
|
|
1
1
|
import { useCreateWorkspace as e } from "../hooks/useWorkspaceMutations.js";
|
|
2
2
|
import { useOpenWorkspace as t } from "../hooks/useOpenWorkspace.js";
|
|
3
|
-
import { useMyOrganizations as
|
|
4
|
-
import { useOrgsWithPermission as
|
|
5
|
-
import { useIsFluidGridsVariant as
|
|
6
|
-
import { useWorkspacesPageView as
|
|
7
|
-
import { generateSlug as
|
|
8
|
-
import { tWithFallback as
|
|
9
|
-
import { buildCreateWorkspaceInput as
|
|
10
|
-
import { useEffect as
|
|
11
|
-
import { AlertCircle as
|
|
12
|
-
import { Button as
|
|
13
|
-
import { Fragment as
|
|
14
|
-
import { useI18n as
|
|
15
|
-
import { Link as
|
|
16
|
-
import { useUpgradePrompt as
|
|
17
|
-
import { AccessDenied as
|
|
18
|
-
import { useForm as
|
|
3
|
+
import { useMyOrganizations as n, useMyTenants as ee } from "../hooks/useTenants.js";
|
|
4
|
+
import { useOrgsWithPermission as te } from "../hooks/useOrgsWithPermission.js";
|
|
5
|
+
import { useIsFluidGridsVariant as ne, useWorkspacesContext as re } from "../providers/WorkspacesProvider.js";
|
|
6
|
+
import { useWorkspacesPageView as ie } from "../hooks/useWorkspacesPageView.js";
|
|
7
|
+
import { generateSlug as r } from "../utils/slug.js";
|
|
8
|
+
import { tWithFallback as i } from "../utils/i18n.js";
|
|
9
|
+
import { buildCreateWorkspaceInput as ae } from "../utils/createForms.js";
|
|
10
|
+
import { useEffect as a, useMemo as o } from "react";
|
|
11
|
+
import { AlertCircle as s, ArrowLeft as c } from "lucide-react";
|
|
12
|
+
import { Button as l, CardContent as oe, CardDescription as u, CardHeader as d, CardTitle as f, GlassCard as p, OptionalFields as m, PagePurpose as h, Skeleton as g, ThemedSelect as _ } from "@burdenoff/fe-libs/ui";
|
|
13
|
+
import { Fragment as se, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
14
|
+
import { useI18n as ce } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
15
|
+
import { Link as b, useNavigate as le, useSearchParams as ue } from "react-router";
|
|
16
|
+
import { useUpgradePrompt as de } from "@burdenoff/fe-libs/shared/hooks";
|
|
17
|
+
import { AccessDenied as fe, UpgradeInlineBanner as pe } from "@burdenoff/fe-libs/shared/components";
|
|
18
|
+
import { useForm as me, z as x } from "@burdenoff/fe-libs/form";
|
|
19
19
|
// src/pages/CreateWorkspacePage.tsx
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
let { t:
|
|
23
|
-
name:
|
|
24
|
-
slug:
|
|
25
|
-
tenantId:
|
|
26
|
-
organizationId:
|
|
27
|
-
}), [
|
|
28
|
-
schema:
|
|
20
|
+
function S() {
|
|
21
|
+
ie("workspaces.create");
|
|
22
|
+
let { t: S } = ce(), { isFree: he, approachingLimits: ge, plan: _e } = de({ resource: "workspaces" }), C = ge[0], w = !!C && typeof C.limit == "number" && C.current >= C.limit, ve = he && !!C, T = o(() => x.object({
|
|
23
|
+
name: x.string().min(2, i(S, "createWorkspace.validation.nameMin", "Name must be at least 2 characters")).max(100),
|
|
24
|
+
slug: x.string().min(2, i(S, "createWorkspace.validation.slugMin", "Slug must be at least 2 characters")).max(50).regex(/^[a-z0-9-]+$/, i(S, "createWorkspace.validation.slugFormat", "Slug can only contain lowercase letters, numbers, and hyphens")),
|
|
25
|
+
tenantId: x.string().min(1, i(S, "createWorkspace.validation.tenantRequired", "Please select a tenant")),
|
|
26
|
+
organizationId: x.string().min(1, i(S, "createWorkspace.validation.organizationRequired", "Please select an organization"))
|
|
27
|
+
}), [S]), E = le(), { basePath: D = "/" } = re(), O = ne(), [k] = ue(), A = O ? k.get("organizationId") : null, { mutate: j, isPending: M } = e(), N = t(), { data: P, isLoading: F, error: I } = ee(), { data: L, isLoading: R, error: z } = n(), B = o(() => P?.items ?? [], [P]), V = o(() => L?.items ?? [], [L]), H = o(() => A ? V.find((e) => e.id === A) : void 0, [V, A]), U = o(() => B.find((e) => e.type === "SHARED" || e.slug === "burdenoff-shared")?.id ?? B[0]?.id ?? "", [B]), W = me({
|
|
28
|
+
schema: T,
|
|
29
29
|
defaultValues: {
|
|
30
30
|
name: "",
|
|
31
31
|
slug: "",
|
|
32
32
|
tenantId: "",
|
|
33
33
|
organizationId: ""
|
|
34
34
|
}
|
|
35
|
-
}),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
}), G = W.watch("tenantId"), ye = W.watch("organizationId"), K = W.watch("name"), be = o(() => V.map((e) => e.id), [V]), { allowedIds: q, loading: J, isError: Y } = te(be, "workspace", "create"), X = o(() => G ? V.filter((e) => e.tenantId === G) : [], [G, V]), Z = o(() => Y ? X : X.filter((e) => q.has(e.id)), [
|
|
36
|
+
X,
|
|
37
|
+
q,
|
|
38
|
+
Y
|
|
39
39
|
]);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}, [
|
|
43
|
-
|
|
44
|
-
}, [
|
|
45
|
-
!
|
|
40
|
+
a(() => {
|
|
41
|
+
W.setValue("slug", K ? r(K) : "");
|
|
42
|
+
}, [K, W]), a(() => {
|
|
43
|
+
W.setValue("organizationId", "");
|
|
44
|
+
}, [G, W]), a(() => {
|
|
45
|
+
!W.getValues("tenantId") && U && W.setValue("tenantId", U, {
|
|
46
46
|
shouldDirty: !1,
|
|
47
47
|
shouldTouch: !1
|
|
48
48
|
});
|
|
49
|
-
}, [
|
|
50
|
-
let e =
|
|
51
|
-
e && !
|
|
49
|
+
}, [U, W]), a(() => {
|
|
50
|
+
let e = H?.tenantId;
|
|
51
|
+
e && !W.getFieldState("tenantId").isDirty && W.getValues("tenantId") !== e && B.some((t) => t.id === e) && W.setValue("tenantId", e, {
|
|
52
52
|
shouldDirty: !1,
|
|
53
53
|
shouldTouch: !1
|
|
54
54
|
});
|
|
55
55
|
}, [
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
]),
|
|
60
|
-
let e =
|
|
61
|
-
if (!
|
|
62
|
-
let e =
|
|
63
|
-
|
|
56
|
+
H,
|
|
57
|
+
B,
|
|
58
|
+
W
|
|
59
|
+
]), a(() => {
|
|
60
|
+
let e = W.getValues("organizationId");
|
|
61
|
+
if (!Z.some((t) => t.id === e) && Z[0]?.id) {
|
|
62
|
+
let e = Z.find((e) => e.id === A);
|
|
63
|
+
W.setValue("organizationId", (e ?? Z[0]).id, {
|
|
64
64
|
shouldDirty: !1,
|
|
65
65
|
shouldTouch: !1
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
}, [
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
Z,
|
|
70
|
+
W,
|
|
71
|
+
A
|
|
72
72
|
]);
|
|
73
|
-
let
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
let xe = (e) => {
|
|
74
|
+
j(ae(e), { onSuccess: (e) => {
|
|
75
|
+
N(e);
|
|
76
76
|
} });
|
|
77
|
-
},
|
|
78
|
-
if (!
|
|
77
|
+
}, Se = q.size > 0, Ce = F || R || J, we = !I && !z && V.length > 0;
|
|
78
|
+
if (!Ce && !Y && we && !Se) return /* @__PURE__ */ y("div", {
|
|
79
79
|
className: "p-6",
|
|
80
|
-
children: [/* @__PURE__ */
|
|
81
|
-
to: `${
|
|
80
|
+
children: [/* @__PURE__ */ y(b, {
|
|
81
|
+
to: `${D}/list`,
|
|
82
82
|
className: "inline-flex items-center gap-2 text-text-secondary hover:text-text-primary transition-colors mb-6",
|
|
83
|
-
children: [/* @__PURE__ */
|
|
84
|
-
}), /* @__PURE__ */
|
|
83
|
+
children: [/* @__PURE__ */ v(c, { size: 20 }), i(S, "createWorkspace.backToWorkspaces", "Back to Workspaces")]
|
|
84
|
+
}), /* @__PURE__ */ v(fe, {
|
|
85
85
|
variant: "card",
|
|
86
|
-
title:
|
|
87
|
-
description:
|
|
88
|
-
details:
|
|
86
|
+
title: i(S, "createWorkspace.permissionRequiredTitle", "Permission Required"),
|
|
87
|
+
description: i(S, "createWorkspace.permissionRequiredDescription", "You don't have permission to create workspaces in any of your organizations."),
|
|
88
|
+
details: i(S, "createWorkspace.permissionRequiredDetails", "Required: workspace:create"),
|
|
89
89
|
primaryAction: {
|
|
90
|
-
label:
|
|
91
|
-
onClick: () =>
|
|
90
|
+
label: i(S, "createWorkspace.goBack", "Go Back"),
|
|
91
|
+
onClick: () => E(`${D}/list`)
|
|
92
92
|
}
|
|
93
93
|
})]
|
|
94
94
|
});
|
|
95
|
-
let Q = /* @__PURE__ */
|
|
95
|
+
let Q = /* @__PURE__ */ y("div", {
|
|
96
96
|
className: "space-y-2",
|
|
97
97
|
children: [
|
|
98
|
-
/* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ v("label", {
|
|
99
99
|
htmlFor: "workspace-slug",
|
|
100
100
|
className: "text-sm font-medium text-text-primary",
|
|
101
|
-
children:
|
|
101
|
+
children: i(S, "createWorkspace.slugLabel", "Slug *")
|
|
102
102
|
}),
|
|
103
|
-
/* @__PURE__ */
|
|
103
|
+
/* @__PURE__ */ v("input", {
|
|
104
104
|
id: "workspace-slug",
|
|
105
|
-
placeholder:
|
|
105
|
+
placeholder: i(S, "createWorkspace.slugPlaceholder", "my-workspace"),
|
|
106
106
|
className: "h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
107
|
-
...
|
|
107
|
+
...W.register("slug")
|
|
108
108
|
}),
|
|
109
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ v("p", {
|
|
110
110
|
className: "text-xs text-text-secondary",
|
|
111
|
-
children:
|
|
111
|
+
children: i(S, "createWorkspace.slugHint", "URL-friendly identifier (auto-generated, but you can edit it)")
|
|
112
112
|
}),
|
|
113
|
-
|
|
113
|
+
W.formState.errors.slug?.message && /* @__PURE__ */ v("p", {
|
|
114
114
|
className: "text-sm text-status-error-text",
|
|
115
|
-
children:
|
|
115
|
+
children: W.formState.errors.slug.message
|
|
116
116
|
})
|
|
117
117
|
]
|
|
118
|
-
}), $ =
|
|
118
|
+
}), $ = B.length === 1 ? null : /* @__PURE__ */ y("div", {
|
|
119
119
|
className: "space-y-2",
|
|
120
120
|
children: [
|
|
121
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ v("label", {
|
|
122
122
|
htmlFor: "workspace-tenant",
|
|
123
123
|
className: "text-sm font-medium text-text-primary",
|
|
124
|
-
children:
|
|
124
|
+
children: i(S, "createWorkspace.tenantLabel", "Tenant *")
|
|
125
125
|
}),
|
|
126
|
-
|
|
126
|
+
F ? /* @__PURE__ */ v(g, { className: "h-10 w-full" }) : I ? /* @__PURE__ */ y("div", {
|
|
127
127
|
className: "flex items-center gap-2 text-sm text-status-error-text",
|
|
128
|
-
children: [/* @__PURE__ */
|
|
129
|
-
}) :
|
|
128
|
+
children: [/* @__PURE__ */ v(s, { size: 16 }), i(S, "createWorkspace.failedToLoadTenants", "Failed to load tenants")]
|
|
129
|
+
}) : B.length === 0 ? /* @__PURE__ */ v("div", {
|
|
130
130
|
className: "text-sm text-text-secondary",
|
|
131
|
-
children:
|
|
132
|
-
}) : /* @__PURE__ */
|
|
131
|
+
children: i(S, "createWorkspace.noTenantsAvailable", "No tenants available. Contact your administrator.")
|
|
132
|
+
}) : /* @__PURE__ */ y(_, {
|
|
133
133
|
id: "workspace-tenant",
|
|
134
134
|
className: "h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm text-text-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
135
|
-
...
|
|
136
|
-
|
|
135
|
+
...W.register("tenantId"),
|
|
136
|
+
value: G,
|
|
137
|
+
children: [/* @__PURE__ */ v("option", {
|
|
137
138
|
value: "",
|
|
138
|
-
children:
|
|
139
|
-
}),
|
|
139
|
+
children: i(S, "createWorkspace.selectTenantPlaceholder", "Select a tenant")
|
|
140
|
+
}), B.map((e) => /* @__PURE__ */ v("option", {
|
|
140
141
|
value: e.id,
|
|
141
142
|
children: e.name
|
|
142
143
|
}, e.id))]
|
|
143
144
|
}),
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ v("p", {
|
|
145
146
|
className: "text-xs text-text-secondary",
|
|
146
|
-
children:
|
|
147
|
+
children: i(S, "createWorkspace.tenantHint", "Select which tenant this workspace belongs to")
|
|
147
148
|
}),
|
|
148
|
-
|
|
149
|
+
W.formState.errors.tenantId?.message && /* @__PURE__ */ v("p", {
|
|
149
150
|
className: "text-sm text-status-error-text",
|
|
150
|
-
children:
|
|
151
|
+
children: W.formState.errors.tenantId.message
|
|
151
152
|
})
|
|
152
153
|
]
|
|
153
|
-
}),
|
|
154
|
-
let t =
|
|
154
|
+
}), Te = ["slug", "tenantId"].flatMap((e) => {
|
|
155
|
+
let t = W.formState.errors[e]?.message;
|
|
155
156
|
return t ? [{
|
|
156
157
|
field: e,
|
|
157
158
|
message: t
|
|
158
159
|
}] : [];
|
|
159
160
|
});
|
|
160
|
-
return /* @__PURE__ */
|
|
161
|
+
return /* @__PURE__ */ y("div", {
|
|
161
162
|
className: "space-y-4 sm:space-y-6 p-3 sm:p-6",
|
|
162
163
|
children: [
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
to: `${
|
|
164
|
+
/* @__PURE__ */ y(b, {
|
|
165
|
+
to: `${D}/list`,
|
|
165
166
|
className: "inline-flex items-center gap-2 text-text-secondary hover:text-text-primary transition-colors",
|
|
166
|
-
children: [/* @__PURE__ */
|
|
167
|
+
children: [/* @__PURE__ */ v(c, { size: 20 }), i(S, "createWorkspace.backToWorkspaces", "Back to Workspaces")]
|
|
167
168
|
}),
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ v("div", {
|
|
169
170
|
className: "max-w-2xl mx-auto w-full",
|
|
170
|
-
children: /* @__PURE__ */ h
|
|
171
|
+
children: /* @__PURE__ */ v(h, { children: i(S, "createWorkspace.purpose", "Create a workspace to give a team, client or initiative its own dedicated space — with its own projects, members, agents and activity, kept separate from the rest. Give it a clear name, pick the organization that owns it, and you can invite people and add projects right after.") })
|
|
171
172
|
}),
|
|
172
|
-
ve && /* @__PURE__ */
|
|
173
|
+
ve && /* @__PURE__ */ v("div", {
|
|
173
174
|
className: "max-w-2xl mx-auto w-full",
|
|
174
|
-
children: /* @__PURE__ */
|
|
175
|
+
children: /* @__PURE__ */ v(pe, {
|
|
175
176
|
resource: "workspaces",
|
|
176
|
-
current:
|
|
177
|
-
limit:
|
|
178
|
-
severity:
|
|
179
|
-
message:
|
|
177
|
+
current: C.current,
|
|
178
|
+
limit: C.limit ?? void 0,
|
|
179
|
+
severity: w ? "critical" : void 0,
|
|
180
|
+
message: w ? i(S, "createWorkspace.upgradeCapMessage", `You've used all workspaces in the ${_e?.planName ?? "free"} plan.`) : i(S, "createWorkspace.upgradeApproachingMessage", "Upgrade to create more workspaces.")
|
|
180
181
|
})
|
|
181
182
|
}),
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ y(p, {
|
|
183
184
|
treatment: "glass",
|
|
184
185
|
glow: !0,
|
|
185
186
|
className: "max-w-2xl mx-auto border-border-seam",
|
|
186
|
-
children: [/* @__PURE__ */
|
|
187
|
+
children: [/* @__PURE__ */ y(d, { children: [O ? /* @__PURE__ */ v("h1", {
|
|
187
188
|
className: "text-lg font-semibold leading-none text-text-primary",
|
|
188
|
-
children:
|
|
189
|
-
}) : /* @__PURE__ */
|
|
189
|
+
children: i(S, "createWorkspace.title", "Create New Workspace")
|
|
190
|
+
}) : /* @__PURE__ */ v(f, { children: i(S, "createWorkspace.title", "Create New Workspace") }), /* @__PURE__ */ v(u, { children: i(S, "createWorkspace.subtitle", "Set up a new workspace for your team") })] }), /* @__PURE__ */ y(oe, { children: [Y && /* @__PURE__ */ y("div", {
|
|
190
191
|
role: "alert",
|
|
191
192
|
className: "mb-4 flex items-start gap-2 rounded-md border border-warning/30 bg-warning/10 p-3 text-sm text-text-primary",
|
|
192
|
-
children: [/* @__PURE__ */
|
|
193
|
+
children: [/* @__PURE__ */ v(s, {
|
|
193
194
|
size: 16,
|
|
194
195
|
className: "mt-0.5 shrink-0 text-warning"
|
|
195
|
-
}), /* @__PURE__ */
|
|
196
|
-
}), /* @__PURE__ */
|
|
197
|
-
onSubmit:
|
|
196
|
+
}), /* @__PURE__ */ v("span", { children: i(S, "createWorkspace.permissionCheckUnavailable", "We couldn't verify your workspace-create permissions just now, so the organization list isn't filtered. If you submit and don't have access, the request will be rejected and you can retry.") })]
|
|
197
|
+
}), /* @__PURE__ */ y("form", {
|
|
198
|
+
onSubmit: W.handleSubmit(xe),
|
|
198
199
|
className: "space-y-6",
|
|
199
200
|
children: [
|
|
200
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ y("div", {
|
|
201
202
|
className: "space-y-2",
|
|
202
203
|
children: [
|
|
203
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ v("label", {
|
|
204
205
|
htmlFor: "workspace-name",
|
|
205
206
|
className: "text-sm font-medium text-text-primary",
|
|
206
|
-
children:
|
|
207
|
+
children: i(S, "createWorkspace.nameLabel", "Workspace Name *")
|
|
207
208
|
}),
|
|
208
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ v("input", {
|
|
209
210
|
id: "workspace-name",
|
|
210
|
-
placeholder:
|
|
211
|
+
placeholder: i(S, "createWorkspace.namePlaceholder", "My Workspace"),
|
|
211
212
|
className: "h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
212
|
-
...
|
|
213
|
+
...W.register("name")
|
|
213
214
|
}),
|
|
214
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ v("p", {
|
|
215
216
|
className: "text-xs text-text-secondary",
|
|
216
|
-
children:
|
|
217
|
+
children: i(S, "createWorkspace.nameHint", "A descriptive name for your workspace")
|
|
217
218
|
}),
|
|
218
|
-
|
|
219
|
+
W.formState.errors.name?.message && /* @__PURE__ */ v("p", {
|
|
219
220
|
className: "text-sm text-status-error-text",
|
|
220
|
-
children:
|
|
221
|
+
children: W.formState.errors.name.message
|
|
221
222
|
})
|
|
222
223
|
]
|
|
223
224
|
}),
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
/* @__PURE__ */
|
|
225
|
+
O ? null : Q,
|
|
226
|
+
O ? null : $,
|
|
227
|
+
/* @__PURE__ */ y("div", {
|
|
227
228
|
className: "space-y-2",
|
|
228
229
|
children: [
|
|
229
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ v("label", {
|
|
230
231
|
htmlFor: "workspace-organization",
|
|
231
232
|
className: "text-sm font-medium text-text-primary",
|
|
232
|
-
children:
|
|
233
|
+
children: i(S, "createWorkspace.organizationLabel", "Organization *")
|
|
233
234
|
}),
|
|
234
|
-
|
|
235
|
+
R || J ? /* @__PURE__ */ v(g, { className: "h-10 w-full" }) : z ? /* @__PURE__ */ y("div", {
|
|
235
236
|
className: "flex items-center gap-2 text-sm text-status-error-text",
|
|
236
|
-
children: [/* @__PURE__ */
|
|
237
|
-
}) :
|
|
237
|
+
children: [/* @__PURE__ */ v(s, { size: 16 }), i(S, "createWorkspace.failedToLoadOrganizations", "Failed to load organizations")]
|
|
238
|
+
}) : G ? Z.length === 0 ? /* @__PURE__ */ v("div", {
|
|
238
239
|
className: "text-sm text-text-secondary",
|
|
239
|
-
children:
|
|
240
|
-
}) : /* @__PURE__ */
|
|
240
|
+
children: i(S, "createWorkspace.noOrganizationsFound", "No organizations found for this tenant")
|
|
241
|
+
}) : /* @__PURE__ */ y(_, {
|
|
241
242
|
id: "workspace-organization",
|
|
242
243
|
className: "h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm text-text-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
243
|
-
disabled: !
|
|
244
|
-
...
|
|
245
|
-
|
|
244
|
+
disabled: !G,
|
|
245
|
+
...W.register("organizationId"),
|
|
246
|
+
value: ye,
|
|
247
|
+
children: [/* @__PURE__ */ v("option", {
|
|
246
248
|
value: "",
|
|
247
|
-
children:
|
|
248
|
-
}),
|
|
249
|
+
children: i(S, "createWorkspace.selectOrganizationPlaceholder", "Select an organization")
|
|
250
|
+
}), Z.map((e) => /* @__PURE__ */ v("option", {
|
|
249
251
|
value: e.id,
|
|
250
252
|
children: e.name
|
|
251
253
|
}, e.id))]
|
|
252
|
-
}) : /* @__PURE__ */
|
|
254
|
+
}) : /* @__PURE__ */ v("div", {
|
|
253
255
|
className: "text-sm text-text-secondary",
|
|
254
|
-
children:
|
|
256
|
+
children: i(S, "createWorkspace.selectTenantFirst", "Please select a tenant first")
|
|
255
257
|
}),
|
|
256
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ v("p", {
|
|
257
259
|
className: "text-xs text-text-secondary",
|
|
258
|
-
children:
|
|
260
|
+
children: i(S, "createWorkspace.organizationHint", "Select which organization owns this workspace")
|
|
259
261
|
}),
|
|
260
|
-
|
|
262
|
+
W.formState.errors.organizationId?.message && /* @__PURE__ */ v("p", {
|
|
261
263
|
className: "text-sm text-status-error-text",
|
|
262
|
-
children:
|
|
264
|
+
children: W.formState.errors.organizationId.message
|
|
263
265
|
})
|
|
264
266
|
]
|
|
265
267
|
}),
|
|
266
|
-
|
|
268
|
+
O ? /* @__PURE__ */ y(se, { children: [Te.map(({ field: e, message: t }) => /* @__PURE__ */ v("p", {
|
|
267
269
|
role: "alert",
|
|
268
270
|
className: "text-sm text-status-error-text",
|
|
269
271
|
children: t
|
|
270
|
-
}, e)), /* @__PURE__ */
|
|
272
|
+
}, e)), /* @__PURE__ */ y(m, {
|
|
271
273
|
storageKey: "workspaces.create",
|
|
272
274
|
children: [Q, $]
|
|
273
275
|
})] }) : null,
|
|
274
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ y("div", {
|
|
275
277
|
className: "flex justify-end gap-3 pt-4",
|
|
276
|
-
children: [/* @__PURE__ */
|
|
278
|
+
children: [/* @__PURE__ */ v(l, {
|
|
277
279
|
type: "button",
|
|
278
280
|
variant: "outline",
|
|
279
|
-
onClick: () =>
|
|
280
|
-
disabled:
|
|
281
|
-
children:
|
|
282
|
-
}), /* @__PURE__ */
|
|
281
|
+
onClick: () => E(`${D}/list`),
|
|
282
|
+
disabled: M,
|
|
283
|
+
children: i(S, "createWorkspace.cancel", "Cancel")
|
|
284
|
+
}), /* @__PURE__ */ v(l, {
|
|
283
285
|
type: "submit",
|
|
284
|
-
disabled:
|
|
285
|
-
title:
|
|
286
|
-
children:
|
|
286
|
+
disabled: M || F || R || J || w,
|
|
287
|
+
title: w ? i(S, "createWorkspace.disabledAtCap", "Workspace limit reached — upgrade your plan to create more.") : void 0,
|
|
288
|
+
children: M ? i(S, "createWorkspace.creating", "Creating...") : i(S, "createWorkspace.submit", "Create Workspace")
|
|
287
289
|
})]
|
|
288
290
|
})
|
|
289
291
|
]
|
|
@@ -292,4 +294,4 @@ function x() {
|
|
|
292
294
|
]
|
|
293
295
|
});
|
|
294
296
|
}
|
|
295
|
-
export {
|
|
297
|
+
export { S as CreateWorkspacePage };
|
|
@@ -256,7 +256,8 @@ function v() {
|
|
|
256
256
|
!V && !j && !D && /* @__PURE__ */ h(p, {
|
|
257
257
|
illustration: "empty-people",
|
|
258
258
|
title: n(v, "membersList.noWorkspaceSelected", "No Workspace Selected"),
|
|
259
|
-
description: n(v, "membersList.selectWorkspacePrompt", "Select a workspace to view and manage its members")
|
|
259
|
+
description: n(v, "membersList.selectWorkspacePrompt", "Select a workspace to view and manage its members"),
|
|
260
|
+
glassIllustration: "places"
|
|
260
261
|
}),
|
|
261
262
|
!V && !j && D && !H && /* @__PURE__ */ h(p, {
|
|
262
263
|
illustration: "empty-people",
|
|
@@ -275,7 +276,8 @@ function v() {
|
|
|
275
276
|
!V && !j && D && H && G.length === 0 && /* @__PURE__ */ h(p, {
|
|
276
277
|
illustration: "empty-search",
|
|
277
278
|
title: n(v, "membersList.noMembersFound", "No Members Found"),
|
|
278
|
-
description: n(v, "membersList.noMembersFoundPrompt", "No members match your search criteria. Try adjusting your search.")
|
|
279
|
+
description: n(v, "membersList.noMembersFoundPrompt", "No members match your search criteria. Try adjusting your search."),
|
|
280
|
+
kind: "no-results"
|
|
279
281
|
}),
|
|
280
282
|
!V && G.length > 0 && /* @__PURE__ */ g("div", {
|
|
281
283
|
className: "space-y-3",
|
|
@@ -131,7 +131,8 @@ function j() {
|
|
|
131
131
|
}) : G.length === 0 ? /* @__PURE__ */ w(b, {
|
|
132
132
|
illustration: "empty-notifications",
|
|
133
133
|
title: e(j, "pendingInvites.emptyTitle", "No pending invites"),
|
|
134
|
-
description: e(j, "pendingInvites.emptyDescription", "When someone invites you to a workspace, it will appear here.")
|
|
134
|
+
description: e(j, "pendingInvites.emptyDescription", "When someone invites you to a workspace, it will appear here."),
|
|
135
|
+
kind: "all-done"
|
|
135
136
|
}) : /* @__PURE__ */ w("div", {
|
|
136
137
|
className: "space-y-4",
|
|
137
138
|
children: G.map((i, a) => {
|
|
@@ -170,7 +170,8 @@ function w() {
|
|
|
170
170
|
onClick: () => F(!0),
|
|
171
171
|
children: [/* @__PURE__ */ x(p, { className: "mr-2 size-4" }), o(w, "projectMembers.addFirstMember", "Add First Member")]
|
|
172
172
|
}) : null]
|
|
173
|
-
}) : void 0
|
|
173
|
+
}) : void 0,
|
|
174
|
+
kind: M ? "no-results" : "first-use"
|
|
174
175
|
}) : /* @__PURE__ */ S("div", {
|
|
175
176
|
className: "space-y-3",
|
|
176
177
|
children: [$.map((e) => {
|
|
@@ -68,7 +68,8 @@ function L() {
|
|
|
68
68
|
}), /* @__PURE__ */ M(E, {
|
|
69
69
|
illustration: "empty-search",
|
|
70
70
|
title: e(R, "workspaceDetail.notFound", "Workspace not found"),
|
|
71
|
-
description: e(R, "workspaceDetail.notFoundDescription", "This workspace doesn't exist or you don't have permission to view it.")
|
|
71
|
+
description: e(R, "workspaceDetail.notFoundDescription", "This workspace doesn't exist or you don't have permission to view it."),
|
|
72
|
+
kind: "not-found"
|
|
72
73
|
})]
|
|
73
74
|
});
|
|
74
75
|
let $ = (e, t) => {
|
|
@@ -566,7 +566,9 @@ function A() {
|
|
|
566
566
|
}) : Y.length === 0 ? /* @__PURE__ */ E(Ae, {
|
|
567
567
|
illustration: "empty-notifications",
|
|
568
568
|
title: e(x, "workspaceInvite.pendingEmptyTitle", "No pending invitations"),
|
|
569
|
-
description: e(x, "workspaceInvite.pendingEmpty", "Invitations you send for this workspace will show up here until they are accepted, so you can resend or cancel them.")
|
|
569
|
+
description: e(x, "workspaceInvite.pendingEmpty", "Invitations you send for this workspace will show up here until they are accepted, so you can resend or cancel them."),
|
|
570
|
+
kind: "all-done",
|
|
571
|
+
size: "panel"
|
|
570
572
|
}) : /* @__PURE__ */ D("div", {
|
|
571
573
|
className: "space-y-3",
|
|
572
574
|
children: [st ? /* @__PURE__ */ D("div", {
|
|
@@ -192,7 +192,8 @@ function F() {
|
|
|
192
192
|
className: "gap-2",
|
|
193
193
|
children: [/* @__PURE__ */ k(h, { size: 20 }), o(F, "workspacesList.createFirstButton", "Create Your First Workspace")]
|
|
194
194
|
})
|
|
195
|
-
})
|
|
195
|
+
}),
|
|
196
|
+
kind: U.search ? "no-results" : "first-use"
|
|
196
197
|
}) : /* @__PURE__ */ A(O, { children: [V === "list" ? /* @__PURE__ */ k("div", {
|
|
197
198
|
className: "space-y-3",
|
|
198
199
|
children: $?.items.map((e) => /* @__PURE__ */ k(r, { workspace: e }, e.id))
|
|
@@ -33,7 +33,8 @@ function f({ workspaceData: f, isLoading: p, navigate: m }) {
|
|
|
33
33
|
size: "sm",
|
|
34
34
|
onClick: () => m("/vibecontrols/agents/new"),
|
|
35
35
|
children: t(h, "dashboard.agents.connectAgent", "Connect agent")
|
|
36
|
-
})
|
|
36
|
+
}),
|
|
37
|
+
size: "panel"
|
|
37
38
|
}) : /* @__PURE__ */ u("div", {
|
|
38
39
|
className: "space-y-3",
|
|
39
40
|
children: [
|
|
@@ -28,7 +28,8 @@ function l({ workspaceData: l, isLoading: u, navigate: d }) {
|
|
|
28
28
|
illustration: "empty-people",
|
|
29
29
|
title: t(f, "dashboard.groups.emptyTitle", "No groups yet"),
|
|
30
30
|
description: t(f, "dashboard.groups.emptyDescription", "Groups bundle members together so you can manage and mention them as one."),
|
|
31
|
-
className: "py-4"
|
|
31
|
+
className: "py-4",
|
|
32
|
+
size: "panel"
|
|
32
33
|
}) : /* @__PURE__ */ s("div", {
|
|
33
34
|
className: "space-y-1.5",
|
|
34
35
|
children: [p.slice(0, 4).map((e) => /* @__PURE__ */ s("button", {
|
|
@@ -42,7 +42,9 @@ function p({ workspaceData: p, isLoading: m, navigate: h }) {
|
|
|
42
42
|
size: "sm",
|
|
43
43
|
onClick: () => h("/workspaces/projects"),
|
|
44
44
|
children: t(g, "dashboard.projects.createProject", "Create a project")
|
|
45
|
-
})
|
|
45
|
+
}),
|
|
46
|
+
glassIllustration: "files",
|
|
47
|
+
size: "panel"
|
|
46
48
|
}) : /* @__PURE__ */ l("div", {
|
|
47
49
|
className: "space-y-3",
|
|
48
50
|
children: [v > 0 && /* @__PURE__ */ l("div", {
|
|
@@ -56,7 +56,9 @@ function f({ workspaceData: f, isLoading: p, navigate: m }) {
|
|
|
56
56
|
illustration: "empty-data",
|
|
57
57
|
title: t(h, "dashboard.recentActivity.emptyTitle", "No recent activity"),
|
|
58
58
|
description: t(h, "dashboard.recentActivity.emptyDescription", "Activity will appear here as you use the platform"),
|
|
59
|
-
className: "py-6"
|
|
59
|
+
className: "py-6",
|
|
60
|
+
glassIllustration: "history",
|
|
61
|
+
size: "panel"
|
|
60
62
|
}) : /* @__PURE__ */ o("div", {
|
|
61
63
|
className: "space-y-1",
|
|
62
64
|
children: g.map((e, t) => {
|
|
@@ -55,7 +55,8 @@ function m({ workspaceData: m, isLoading: h, navigate: g }) {
|
|
|
55
55
|
children: v.length === 0 ? /* @__PURE__ */ s(o, {
|
|
56
56
|
illustration: "empty-sessions",
|
|
57
57
|
title: t(_, "dashboard.sessions.emptyTitle", "No active sessions"),
|
|
58
|
-
className: "py-6"
|
|
58
|
+
className: "py-6",
|
|
59
|
+
size: "panel"
|
|
59
60
|
}) : /* @__PURE__ */ s("ul", {
|
|
60
61
|
className: "space-y-1.5",
|
|
61
62
|
children: v.slice(0, 5).map((e) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ c("button", {
|
|
@@ -38,7 +38,8 @@ function d({ workspaceData: d, isLoading: f, navigate: p }) {
|
|
|
38
38
|
illustration: "empty-generic",
|
|
39
39
|
title: t(m, "dashboard.tagCloud.emptyTitle", "No tags created yet"),
|
|
40
40
|
description: t(m, "dashboard.tagCloud.emptyDescription", "Tags help you label and filter projects and content across the workspace."),
|
|
41
|
-
className: "py-4"
|
|
41
|
+
className: "py-4",
|
|
42
|
+
size: "panel"
|
|
42
43
|
}) : /* @__PURE__ */ c("div", {
|
|
43
44
|
className: "space-y-2",
|
|
44
45
|
children: [/* @__PURE__ */ s("div", {
|
|
@@ -50,7 +50,9 @@ function f({ workspaceData: f, isLoading: p, navigate: m }) {
|
|
|
50
50
|
size: "sm",
|
|
51
51
|
onClick: () => m("/calendar"),
|
|
52
52
|
children: t(h, "dashboard.upcomingEvents.emptyAction", "Schedule an event")
|
|
53
|
-
})
|
|
53
|
+
}),
|
|
54
|
+
glassIllustration: "calendar",
|
|
55
|
+
size: "panel"
|
|
54
56
|
}) : /* @__PURE__ */ c("div", {
|
|
55
57
|
className: "space-y-2",
|
|
56
58
|
children: g.map((e) => /* @__PURE__ */ l("button", {
|
|
@@ -49,7 +49,8 @@ function d({ workspaceData: d, isLoading: f, navigate: p }) {
|
|
|
49
49
|
" ",
|
|
50
50
|
t(m, "dashboard.vibes.emptyAction", "Create your first vibe")
|
|
51
51
|
]
|
|
52
|
-
})
|
|
52
|
+
}),
|
|
53
|
+
size: "panel"
|
|
53
54
|
}) : /* @__PURE__ */ s("ul", {
|
|
54
55
|
className: "space-y-1.5",
|
|
55
56
|
children: h.slice(0, 5).map((e) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ c("button", {
|
|
@@ -135,7 +135,9 @@ function g({ workspaceData: i, isLoading: a, navigate: o }) {
|
|
|
135
135
|
illustration: "empty-data",
|
|
136
136
|
title: t(s, "dashboard.workflowRuns.emptyTitle", "No runs yet"),
|
|
137
137
|
description: t(s, "dashboard.workflowRuns.emptyDescription", "Trigger a workflow to see its execution history here."),
|
|
138
|
-
className: "py-4"
|
|
138
|
+
className: "py-4",
|
|
139
|
+
glassIllustration: "servers",
|
|
140
|
+
size: "panel"
|
|
139
141
|
})
|
|
140
142
|
});
|
|
141
143
|
}
|
|
@@ -92,7 +92,9 @@ function h({ workspaceData: r, isLoading: a, navigate: o }) {
|
|
|
92
92
|
illustration: "empty-data",
|
|
93
93
|
title: t(s, "dashboard.workflowStats.emptyTitle", "No workflow data available"),
|
|
94
94
|
description: t(s, "dashboard.workflowStats.emptyDescription", "Once you run automations, their status and counts will appear here."),
|
|
95
|
-
className: "py-4"
|
|
95
|
+
className: "py-4",
|
|
96
|
+
glassIllustration: "workflows",
|
|
97
|
+
size: "panel"
|
|
96
98
|
})
|
|
97
99
|
});
|
|
98
100
|
}
|
|
@@ -47,7 +47,9 @@ function m({ workspaceData: m, isLoading: h, navigate: g }) {
|
|
|
47
47
|
size: "sm",
|
|
48
48
|
onClick: () => g("/workspaces/list"),
|
|
49
49
|
children: t(_, "dashboard.workspaces.emptyAction", "Create your first workspace")
|
|
50
|
-
})
|
|
50
|
+
}),
|
|
51
|
+
glassIllustration: "places",
|
|
52
|
+
size: "panel"
|
|
51
53
|
}) : /* @__PURE__ */ d("div", {
|
|
52
54
|
className: "space-y-2",
|
|
53
55
|
children: [v.slice(0, 5).map((e) => /* @__PURE__ */ d("button", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-workspaces",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.1120.1",
|
|
4
4
|
"description": "Workspaces microfrontend for Burdenoff products",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@apollo/client": "^4.3.7",
|
|
55
|
-
"@burdenoff/fe-libs": "2026.
|
|
55
|
+
"@burdenoff/fe-libs": "2026.1120.2",
|
|
56
56
|
"@radix-ui/react-icons": "^1.3.2",
|
|
57
57
|
"@tanstack/react-query": "^5.107.1",
|
|
58
58
|
"axios": "^1.21.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
96
|
"@apollo/client": "^4.0.11",
|
|
97
|
-
"@burdenoff/fe-libs": "^2026.
|
|
97
|
+
"@burdenoff/fe-libs": "^2026.1120.2",
|
|
98
98
|
"react": "^19.0.0",
|
|
99
99
|
"react-dom": "^19.0.0",
|
|
100
100
|
"zustand": "^5.0.0"
|