Settings was assistant config mislabeled, plus a dev-scaffold Account panel
("Wire ~/lib/identity.ts…") shown to users. Now:
- Assistant (was "LLM") + Personas (was "Agents", labelled "stored in this
browser") — honest names for what these actually configure.
- Tenant (new, platform.tenants-gated) — reuses the Phase-4 Branding +
Localization tab components scoped to the operator's active tenant. This is
the component reuse the phase order was built for.
- Appearance — real inline pickers (theme/font/surface/background) instead of
"use the icons in the appbar" text.
- Account — real read-only identity from the session + an Edit-profile link,
replacing the dev scaffold.
Sections filter by capability. Typecheck 36→36, 24-route sweep clean.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1.7 KiB
1.7 KiB
Phase 6 — as built (2026-07-14) — Settings restructure
arcadia-admin (branch feat/admin-ux-overhaul). Settings was "assistant config mislabeled as Settings, plus a dev-scaffold Account panel." Restructured honestly:
- Assistant (was "LLM") — model/endpoint/budgets + advanced transport + reset. Honestly named.
- Personas (was "Agents") — the persona editor, now labelled "Stored in this browser only, not synced to your account" (they're localStorage).
- Tenant (new,
platform.tenants-gated) — reuses the Phase-4 BrandingTab + LocalizationTab scoped to the operator's active tenant (loaded via getTenant(session.tenantId)). This is the component-reuse the phase order was designed for; verified end-to-end (branding save → "Branding updated"). Gated to platform admins because the underlying endpoints are platform-only (my Phase-1 change); a non-holder simply doesn't see the section. - Appearance — replaced the "use the icons in the appbar" fluff with the real inline pickers (Theme, Font size, Surface tint, Background — the same components the appbar mounts).
- Account — replaced the dev scaffold ("Wire ~/lib/identity.ts…" shown verbatim to users) with real read-only identity (name/email/active tenant/roles from the session) + an "Edit profile" link to /profile.
- About — trimmed to honest one-liners.
Sections filter by capability; the persisted section falls back to Assistant if unavailable to the user.
Verified: honest section labels, no dev scaffold text, real Account identity, real Appearance controls, "this browser" persona label, and the Tenant section reusing Phase-4 tabs with a working save. Typecheck 36→36 (zero added), 24-route sweep clean.