{{/*
Admin surface — v0.37.6: Full Preact component tree.
Replaces server-rendered DOM with a mount point.
All 24 sections are native Preact components.
*/}}
{{define "surface-admin"}}
{{/* Preact renders into this div. Show a loading state until it mounts. */}}
Loading admin…
{{/* Modals — kept outside mount for legacy compat during transition. */}}
{{/* These will be removed once all modal usage is confirmed replaced by Dialog primitives. */}}
{{/* Create User modal */}}
Create User
{{/* Reset Password modal */}}
Reset Password
Warning: This will destroy the user's personal vault. All personal API keys (BYOK) will be permanently deleted.
{{/* Approve User modal */}}
Approve User
{{/* Create Team modal */}}
Create Team
{{/* Create Group modal */}}
Create Group
{{/* Provider form modal */}}
Add Provider
{{/* Persona form modal */}}
Create Persona
{{end}}
{{/* CSS: loaded via base.html (variables, layout, primitives, modals, chat, panels, surfaces, splash) */}}
{{define "css-admin"}}{{end}}
{{/* Scripts */}}
{{define "scripts-admin"}}
{{/* Inject section name for Preact routing */}}
{{/* Vendor: Preact + htm → globals, then SDK boot, then admin surface */}}
{{end}}