Commit graph parsimony/admin
Author SHA1 Message Date
tgiachi
1a7d16f8a9 test(admin): wait for the modal cleanup after deleting a list 2026-11-09 15:34:46 +01:00
tgiachi
f9e5b142c2 feat(admin): list page with tabs, settings and deletion
- Add list header, tab navigation driven by the URL and held-queue badge
- Add settings form that sends only changed fields
- Add confirmed list deletion with error handling in the dialog
- Add labelled select field wrapper for shadcn Select
2026-11-09 15:33:47 +01:00
tgiachi
bbb5f3f9ce feat(admin): create lists from a dialog
- Add new-list dialog with client validation and server error display
- Reset the form each time the dialog opens
2026-11-09 15:32:39 +01:00
tgiachi
5f67289943 feat(admin): login, session guard and lists overview
- Add AuthProvider that verifies the token and ends the session on any 401
- Add login page, shell with sign out, not-found page
- Add lists table with policy badges
- Add fake API and render helpers for component tests
2026-11-09 15:31:51 +01:00
tgiachi
97024ca642 feat(admin): typed API client with session token handling
- Add api client for lists, members, held queue and archive
- Keep the bearer token in sessionStorage and clear it on 401
- Turn network and non-JSON errors into ApiError
2026-11-09 15:30:13 +01:00
tgiachi
5a0dd7f6d6 feat(adminui): embed the admin SPA and serve it next to the API
- Add internal/adminui with a SPA handler: index fallback for client routes, immutable caching for hashed assets, 404 for missing assets, security headers
- Answer 503 with a hint when the UI has not been built, so go build always works
- Mount the UI at / and the API at /api/ on the same listener, no CORS needed
- Scaffold admin/ with Vite, React, TypeScript, Tailwind v4, shadcn/ui and Vitest
2026-11-09 15:29:12 +01:00