@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.
@@ -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 ee, useMyTenants as te } from "../hooks/useTenants.js";
4
- import { useOrgsWithPermission as ne } from "../hooks/useOrgsWithPermission.js";
5
- import { useIsFluidGridsVariant as re, useWorkspacesContext as ie } from "../providers/WorkspacesProvider.js";
6
- import { useWorkspacesPageView as ae } from "../hooks/useWorkspacesPageView.js";
7
- import { generateSlug as oe } from "../utils/slug.js";
8
- import { tWithFallback as n } from "../utils/i18n.js";
9
- import { buildCreateWorkspaceInput as se } from "../utils/createForms.js";
10
- import { useEffect as r, useMemo as i } from "react";
11
- import { AlertCircle as a, ArrowLeft as o } from "lucide-react";
12
- import { Button as s, CardContent as c, CardDescription as l, CardHeader as u, CardTitle as d, GlassCard as f, OptionalFields as p, PagePurpose as ce, Skeleton as m } from "@burdenoff/fe-libs/ui";
13
- import { Fragment as le, jsx as h, jsxs as g } from "react/jsx-runtime";
14
- import { useI18n as ue } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
15
- import { Link as _, useNavigate as de, useSearchParams as fe } from "react-router";
16
- import { useUpgradePrompt as pe } from "@burdenoff/fe-libs/shared/hooks";
17
- import { AccessDenied as v, UpgradeInlineBanner as me } from "@burdenoff/fe-libs/shared/components";
18
- import { useForm as y, z as b } from "@burdenoff/fe-libs/form";
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 x() {
21
- ae("workspaces.create");
22
- let { t: x } = ue(), { isFree: he, approachingLimits: ge, plan: _e } = pe({ resource: "workspaces" }), S = ge[0], C = !!S && typeof S.limit == "number" && S.current >= S.limit, ve = he && !!S, w = i(() => b.object({
23
- name: b.string().min(2, n(x, "createWorkspace.validation.nameMin", "Name must be at least 2 characters")).max(100),
24
- slug: b.string().min(2, n(x, "createWorkspace.validation.slugMin", "Slug must be at least 2 characters")).max(50).regex(/^[a-z0-9-]+$/, n(x, "createWorkspace.validation.slugFormat", "Slug can only contain lowercase letters, numbers, and hyphens")),
25
- tenantId: b.string().min(1, n(x, "createWorkspace.validation.tenantRequired", "Please select a tenant")),
26
- organizationId: b.string().min(1, n(x, "createWorkspace.validation.organizationRequired", "Please select an organization"))
27
- }), [x]), T = de(), { basePath: E = "/" } = ie(), D = re(), [O] = fe(), k = D ? O.get("organizationId") : null, { mutate: A, isPending: j } = e(), M = t(), { data: N, isLoading: P, error: F } = te(), { data: I, isLoading: L, error: R } = ee(), z = i(() => N?.items ?? [], [N]), B = i(() => I?.items ?? [], [I]), V = i(() => k ? B.find((e) => e.id === k) : void 0, [B, k]), H = i(() => z.find((e) => e.type === "SHARED" || e.slug === "burdenoff-shared")?.id ?? z[0]?.id ?? "", [z]), U = y({
28
- schema: w,
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
- }), W = U.watch("tenantId"), G = U.watch("name"), ye = i(() => B.map((e) => e.id), [B]), { allowedIds: K, loading: q, isError: J } = ne(ye, "workspace", "create"), Y = i(() => W ? B.filter((e) => e.tenantId === W) : [], [W, B]), X = i(() => J ? Y : Y.filter((e) => K.has(e.id)), [
36
- Y,
37
- K,
38
- J
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
- r(() => {
41
- U.setValue("slug", G ? oe(G) : "");
42
- }, [G, U]), r(() => {
43
- U.setValue("organizationId", "");
44
- }, [W, U]), r(() => {
45
- !U.getValues("tenantId") && H && U.setValue("tenantId", H, {
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
- }, [H, U]), r(() => {
50
- let e = V?.tenantId;
51
- e && !U.getFieldState("tenantId").isDirty && U.getValues("tenantId") !== e && z.some((t) => t.id === e) && U.setValue("tenantId", 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
- V,
57
- z,
58
- U
59
- ]), r(() => {
60
- let e = U.getValues("organizationId");
61
- if (!X.some((t) => t.id === e) && X[0]?.id) {
62
- let e = X.find((e) => e.id === k);
63
- U.setValue("organizationId", (e ?? X[0]).id, {
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
- X,
70
- U,
71
- k
69
+ Z,
70
+ W,
71
+ A
72
72
  ]);
73
- let be = (e) => {
74
- A(se(e), { onSuccess: (e) => {
75
- M(e);
73
+ let xe = (e) => {
74
+ j(ae(e), { onSuccess: (e) => {
75
+ N(e);
76
76
  } });
77
- }, Z = K.size > 0, xe = P || L || q, Se = !F && !R && B.length > 0;
78
- if (!xe && !J && Se && !Z) return /* @__PURE__ */ g("div", {
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__ */ g(_, {
81
- to: `${E}/list`,
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__ */ h(o, { size: 20 }), n(x, "createWorkspace.backToWorkspaces", "Back to Workspaces")]
84
- }), /* @__PURE__ */ h(v, {
83
+ children: [/* @__PURE__ */ v(c, { size: 20 }), i(S, "createWorkspace.backToWorkspaces", "Back to Workspaces")]
84
+ }), /* @__PURE__ */ v(fe, {
85
85
  variant: "card",
86
- title: n(x, "createWorkspace.permissionRequiredTitle", "Permission Required"),
87
- description: n(x, "createWorkspace.permissionRequiredDescription", "You don't have permission to create workspaces in any of your organizations."),
88
- details: n(x, "createWorkspace.permissionRequiredDetails", "Required: workspace:create"),
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: n(x, "createWorkspace.goBack", "Go Back"),
91
- onClick: () => T(`${E}/list`)
90
+ label: i(S, "createWorkspace.goBack", "Go Back"),
91
+ onClick: () => E(`${D}/list`)
92
92
  }
93
93
  })]
94
94
  });
95
- let Q = /* @__PURE__ */ g("div", {
95
+ let Q = /* @__PURE__ */ y("div", {
96
96
  className: "space-y-2",
97
97
  children: [
98
- /* @__PURE__ */ h("label", {
98
+ /* @__PURE__ */ v("label", {
99
99
  htmlFor: "workspace-slug",
100
100
  className: "text-sm font-medium text-text-primary",
101
- children: n(x, "createWorkspace.slugLabel", "Slug *")
101
+ children: i(S, "createWorkspace.slugLabel", "Slug *")
102
102
  }),
103
- /* @__PURE__ */ h("input", {
103
+ /* @__PURE__ */ v("input", {
104
104
  id: "workspace-slug",
105
- placeholder: n(x, "createWorkspace.slugPlaceholder", "my-workspace"),
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
- ...U.register("slug")
107
+ ...W.register("slug")
108
108
  }),
109
- /* @__PURE__ */ h("p", {
109
+ /* @__PURE__ */ v("p", {
110
110
  className: "text-xs text-text-secondary",
111
- children: n(x, "createWorkspace.slugHint", "URL-friendly identifier (auto-generated, but you can edit it)")
111
+ children: i(S, "createWorkspace.slugHint", "URL-friendly identifier (auto-generated, but you can edit it)")
112
112
  }),
113
- U.formState.errors.slug?.message && /* @__PURE__ */ h("p", {
113
+ W.formState.errors.slug?.message && /* @__PURE__ */ v("p", {
114
114
  className: "text-sm text-status-error-text",
115
- children: U.formState.errors.slug.message
115
+ children: W.formState.errors.slug.message
116
116
  })
117
117
  ]
118
- }), $ = z.length === 1 ? null : /* @__PURE__ */ g("div", {
118
+ }), $ = B.length === 1 ? null : /* @__PURE__ */ y("div", {
119
119
  className: "space-y-2",
120
120
  children: [
121
- /* @__PURE__ */ h("label", {
121
+ /* @__PURE__ */ v("label", {
122
122
  htmlFor: "workspace-tenant",
123
123
  className: "text-sm font-medium text-text-primary",
124
- children: n(x, "createWorkspace.tenantLabel", "Tenant *")
124
+ children: i(S, "createWorkspace.tenantLabel", "Tenant *")
125
125
  }),
126
- P ? /* @__PURE__ */ h(m, { className: "h-10 w-full" }) : F ? /* @__PURE__ */ g("div", {
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__ */ h(a, { size: 16 }), n(x, "createWorkspace.failedToLoadTenants", "Failed to load tenants")]
129
- }) : z.length === 0 ? /* @__PURE__ */ h("div", {
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: n(x, "createWorkspace.noTenantsAvailable", "No tenants available. Contact your administrator.")
132
- }) : /* @__PURE__ */ g("select", {
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
- ...U.register("tenantId"),
136
- children: [/* @__PURE__ */ h("option", {
135
+ ...W.register("tenantId"),
136
+ value: G,
137
+ children: [/* @__PURE__ */ v("option", {
137
138
  value: "",
138
- children: n(x, "createWorkspace.selectTenantPlaceholder", "Select a tenant")
139
- }), z.map((e) => /* @__PURE__ */ h("option", {
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__ */ h("p", {
145
+ /* @__PURE__ */ v("p", {
145
146
  className: "text-xs text-text-secondary",
146
- children: n(x, "createWorkspace.tenantHint", "Select which tenant this workspace belongs to")
147
+ children: i(S, "createWorkspace.tenantHint", "Select which tenant this workspace belongs to")
147
148
  }),
148
- U.formState.errors.tenantId?.message && /* @__PURE__ */ h("p", {
149
+ W.formState.errors.tenantId?.message && /* @__PURE__ */ v("p", {
149
150
  className: "text-sm text-status-error-text",
150
- children: U.formState.errors.tenantId.message
151
+ children: W.formState.errors.tenantId.message
151
152
  })
152
153
  ]
153
- }), Ce = ["slug", "tenantId"].flatMap((e) => {
154
- let t = U.formState.errors[e]?.message;
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__ */ g("div", {
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__ */ g(_, {
164
- to: `${E}/list`,
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__ */ h(o, { size: 20 }), n(x, "createWorkspace.backToWorkspaces", "Back to Workspaces")]
167
+ children: [/* @__PURE__ */ v(c, { size: 20 }), i(S, "createWorkspace.backToWorkspaces", "Back to Workspaces")]
167
168
  }),
168
- /* @__PURE__ */ h("div", {
169
+ /* @__PURE__ */ v("div", {
169
170
  className: "max-w-2xl mx-auto w-full",
170
- children: /* @__PURE__ */ h(ce, { children: n(x, "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
+ 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__ */ h("div", {
173
+ ve && /* @__PURE__ */ v("div", {
173
174
  className: "max-w-2xl mx-auto w-full",
174
- children: /* @__PURE__ */ h(me, {
175
+ children: /* @__PURE__ */ v(pe, {
175
176
  resource: "workspaces",
176
- current: S.current,
177
- limit: S.limit ?? void 0,
178
- severity: C ? "critical" : void 0,
179
- message: C ? n(x, "createWorkspace.upgradeCapMessage", `You've used all workspaces in the ${_e?.planName ?? "free"} plan.`) : n(x, "createWorkspace.upgradeApproachingMessage", "Upgrade to create more workspaces.")
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__ */ g(f, {
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__ */ g(u, { children: [D ? /* @__PURE__ */ h("h1", {
187
+ children: [/* @__PURE__ */ y(d, { children: [O ? /* @__PURE__ */ v("h1", {
187
188
  className: "text-lg font-semibold leading-none text-text-primary",
188
- children: n(x, "createWorkspace.title", "Create New Workspace")
189
- }) : /* @__PURE__ */ h(d, { children: n(x, "createWorkspace.title", "Create New Workspace") }), /* @__PURE__ */ h(l, { children: n(x, "createWorkspace.subtitle", "Set up a new workspace for your team") })] }), /* @__PURE__ */ g(c, { children: [J && /* @__PURE__ */ g("div", {
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__ */ h(a, {
193
+ children: [/* @__PURE__ */ v(s, {
193
194
  size: 16,
194
195
  className: "mt-0.5 shrink-0 text-warning"
195
- }), /* @__PURE__ */ h("span", { children: n(x, "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.") })]
196
- }), /* @__PURE__ */ g("form", {
197
- onSubmit: U.handleSubmit(be),
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__ */ g("div", {
201
+ /* @__PURE__ */ y("div", {
201
202
  className: "space-y-2",
202
203
  children: [
203
- /* @__PURE__ */ h("label", {
204
+ /* @__PURE__ */ v("label", {
204
205
  htmlFor: "workspace-name",
205
206
  className: "text-sm font-medium text-text-primary",
206
- children: n(x, "createWorkspace.nameLabel", "Workspace Name *")
207
+ children: i(S, "createWorkspace.nameLabel", "Workspace Name *")
207
208
  }),
208
- /* @__PURE__ */ h("input", {
209
+ /* @__PURE__ */ v("input", {
209
210
  id: "workspace-name",
210
- placeholder: n(x, "createWorkspace.namePlaceholder", "My Workspace"),
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
- ...U.register("name")
213
+ ...W.register("name")
213
214
  }),
214
- /* @__PURE__ */ h("p", {
215
+ /* @__PURE__ */ v("p", {
215
216
  className: "text-xs text-text-secondary",
216
- children: n(x, "createWorkspace.nameHint", "A descriptive name for your workspace")
217
+ children: i(S, "createWorkspace.nameHint", "A descriptive name for your workspace")
217
218
  }),
218
- U.formState.errors.name?.message && /* @__PURE__ */ h("p", {
219
+ W.formState.errors.name?.message && /* @__PURE__ */ v("p", {
219
220
  className: "text-sm text-status-error-text",
220
- children: U.formState.errors.name.message
221
+ children: W.formState.errors.name.message
221
222
  })
222
223
  ]
223
224
  }),
224
- D ? null : Q,
225
- D ? null : $,
226
- /* @__PURE__ */ g("div", {
225
+ O ? null : Q,
226
+ O ? null : $,
227
+ /* @__PURE__ */ y("div", {
227
228
  className: "space-y-2",
228
229
  children: [
229
- /* @__PURE__ */ h("label", {
230
+ /* @__PURE__ */ v("label", {
230
231
  htmlFor: "workspace-organization",
231
232
  className: "text-sm font-medium text-text-primary",
232
- children: n(x, "createWorkspace.organizationLabel", "Organization *")
233
+ children: i(S, "createWorkspace.organizationLabel", "Organization *")
233
234
  }),
234
- L || q ? /* @__PURE__ */ h(m, { className: "h-10 w-full" }) : R ? /* @__PURE__ */ g("div", {
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__ */ h(a, { size: 16 }), n(x, "createWorkspace.failedToLoadOrganizations", "Failed to load organizations")]
237
- }) : W ? X.length === 0 ? /* @__PURE__ */ h("div", {
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: n(x, "createWorkspace.noOrganizationsFound", "No organizations found for this tenant")
240
- }) : /* @__PURE__ */ g("select", {
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: !W,
244
- ...U.register("organizationId"),
245
- children: [/* @__PURE__ */ h("option", {
244
+ disabled: !G,
245
+ ...W.register("organizationId"),
246
+ value: ye,
247
+ children: [/* @__PURE__ */ v("option", {
246
248
  value: "",
247
- children: n(x, "createWorkspace.selectOrganizationPlaceholder", "Select an organization")
248
- }), X.map((e) => /* @__PURE__ */ h("option", {
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__ */ h("div", {
254
+ }) : /* @__PURE__ */ v("div", {
253
255
  className: "text-sm text-text-secondary",
254
- children: n(x, "createWorkspace.selectTenantFirst", "Please select a tenant first")
256
+ children: i(S, "createWorkspace.selectTenantFirst", "Please select a tenant first")
255
257
  }),
256
- /* @__PURE__ */ h("p", {
258
+ /* @__PURE__ */ v("p", {
257
259
  className: "text-xs text-text-secondary",
258
- children: n(x, "createWorkspace.organizationHint", "Select which organization owns this workspace")
260
+ children: i(S, "createWorkspace.organizationHint", "Select which organization owns this workspace")
259
261
  }),
260
- U.formState.errors.organizationId?.message && /* @__PURE__ */ h("p", {
262
+ W.formState.errors.organizationId?.message && /* @__PURE__ */ v("p", {
261
263
  className: "text-sm text-status-error-text",
262
- children: U.formState.errors.organizationId.message
264
+ children: W.formState.errors.organizationId.message
263
265
  })
264
266
  ]
265
267
  }),
266
- D ? /* @__PURE__ */ g(le, { children: [Ce.map(({ field: e, message: t }) => /* @__PURE__ */ h("p", {
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__ */ g(p, {
272
+ }, e)), /* @__PURE__ */ y(m, {
271
273
  storageKey: "workspaces.create",
272
274
  children: [Q, $]
273
275
  })] }) : null,
274
- /* @__PURE__ */ g("div", {
276
+ /* @__PURE__ */ y("div", {
275
277
  className: "flex justify-end gap-3 pt-4",
276
- children: [/* @__PURE__ */ h(s, {
278
+ children: [/* @__PURE__ */ v(l, {
277
279
  type: "button",
278
280
  variant: "outline",
279
- onClick: () => T(`${E}/list`),
280
- disabled: j,
281
- children: n(x, "createWorkspace.cancel", "Cancel")
282
- }), /* @__PURE__ */ h(s, {
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: j || P || L || q || C,
285
- title: C ? n(x, "createWorkspace.disabledAtCap", "Workspace limit reached — upgrade your plan to create more.") : void 0,
286
- children: j ? n(x, "createWorkspace.creating", "Creating...") : n(x, "createWorkspace.submit", "Create Workspace")
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 { x as CreateWorkspacePage };
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) => {
@@ -136,7 +136,8 @@ function O() {
136
136
  size: 16,
137
137
  className: "mr-2"
138
138
  }), t(O, "projectDetail.backToProjects", "Back to Projects")]
139
- })
139
+ }),
140
+ kind: "not-found"
140
141
  })]
141
142
  }) : /* @__PURE__ */ D("div", {
142
143
  className: "space-y-4 sm:space-y-6 p-3 sm:p-6",
@@ -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) => {
@@ -320,7 +320,9 @@ function C() {
320
320
  size: 16,
321
321
  className: "mr-2"
322
322
  }), s(C, "projectsList.createProject", "Create Project")]
323
- }) : void 0
323
+ }) : void 0,
324
+ kind: k.search ? "no-results" : "first-use",
325
+ glassIllustration: "files"
324
326
  })
325
327
  })
326
328
  }),
@@ -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
  }
@@ -91,7 +91,9 @@ function d({ workspaceData: d, isLoading: f, navigate: p }) {
91
91
  " ",
92
92
  t(m, "dashboard.workflowsOverview.emptyAction", "New Workflow")
93
93
  ]
94
- })
94
+ }),
95
+ glassIllustration: "workflows",
96
+ size: "panel"
95
97
  })
96
98
  });
97
99
  }
@@ -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.1114.2",
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.1113.11",
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.1102.4",
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"