Repository navigation
Closed
Description
Problem or outcome
Authentication (#4) is API-only; an operator currently needs curl to initialize an installation. Milestone 1 requires the embedded SvelteKit shell: setup, sign-in, recovery, and status served from the single executable, with no Node.js runtime in production (docs/architecture.md User interface).
Scope
In scope:
web/: SvelteKit single-page app (adapter-static, SSR off, SPA fallback) with pages for first-run setup, sign-in, password reset/recovery, and a signed-in status view (agency, user, capabilities, session expiry, health, version, sign-out)- Routing guard driven by a new unauthenticated
GET /api/instanceendpoint ({initialized, version, agency name}) so the UI lands on setup, sign-in, or status correctly - Embedding the built assets in the Rust executable;
/serves the app, unknown non-/apipaths fall back to the SPA index,/api/*keeps JSON semantics; a build without embedded assets serves an honest plain-text notice and logs a warning at startup - pr-gate builds the web app (svelte-check + build) before the Rust gates so the embedded bytes are real
- Rust integration tests for asset serving and fallback behavior; browser end-to-end proof of setup → sign-in → status → sign-out against the real binary
- ADR 0005: frontend toolchain and embedding decisions
Out of scope:
- In-app notices UI (arrives with the persisted-notices slice)
- Any training-domain UI (Milestone 2+)
- Design-system/visual-identity work beyond a clean, accessible baseline
Acceptance criteria
- A browser pointed at a fresh installation completes setup, signs in, sees status, resets a password with a code, and signs out — no curl
- The production binary serves the UI with no Node.js present at runtime
-
/api/*unknown routes still return JSON 404s, not HTML - pr-gate stays green while building both stacks
- All repository gates pass
Expected proof
npm ci && npm run check && npm run buildinweb/cargo fmt --check && cargo clippy --workspace --all-targets -- -D warnings && cargo test --workspace- Browser E2E run against the compiled binary
Related roadmap, decisions, or issues
docs/roadmap.mdMilestone 1;docs/architecture.mdUser interface- Builds on Milestone 1: first-run setup, administrator accounts, sessions, and password recovery #4 (auth API); ADR 0001 follow-ups
Metadata
Metadata
Assignees
Labels
No labels
Activity
web(shell): embedded SvelteKit interface for setup, sign-in, recovery…