React 19 + TypeScript + Vite + TanStack Query/Router in web/, built on the
dev machine and shipped as static files (SPEC section 6). Typechecks and
builds clean; the System page reads live /health through the Vite proxy,
which proves browser -> proxy -> FastAPI -> PostgreSQL end to end.
Themes: light, dark and blue (dark navy), as design tokens on data-theme.
An inline script applies the stored theme before first paint. No colour
literal lives outside tokens.css.
check-contrast.mjs asserts WCAG AA for every text/background pair in every
theme, with no dependencies. It failed on its first run and found three
--border-strong values below the 3:1 that WCAG 1.4.11 wants for interactive
boundaries; all three are fixed and 36 pairs now pass. Colour contrast is
the classic silently-regressing property, so it gets a test rather than a
promise.
i18n is hand-written and typed rather than react-i18next: en.ts defines the
key set, de.ts is typed against it, so a missing German string fails the
build instead of quietly showing English to a German user.
Authentication is built but NOT enforced, deliberately. /auth/session,
/auth/login and /auth/logout do not exist yet, so router.tsx does not wrap
routes in RequireAuth and a banner says so plainly. There is no development
bypass: a bypass that works is the kind of code that survives into
production, and an auth bypass that works is the worst possible bug.
Gallery and Devices render honest empty states rather than mock rows. Fake
data hides the layout problems real data exposes.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Closes SPEC section 10 questions 11, 13, 14 and 16 in a new TODO 3.0.
- Language: de + en from the first component. No user-facing string
literal in a component, ever.
- Theme "blue" is a dark navy; token table recorded. Contrast still has
to be measured against WCAG AA rather than assumed.
- 2FA: build TOTP now, optional per user, enforced for admin. "The UI
does not need it" and "I need outside access" describe the same
surface; what differs is whether the path is Tailscale or a public
domain. Retrofitting it later reopens login, sessions, the user model
and the audit log at once.
- Stack stays React + TypeScript, with the no-TS-experience starting
point treated as a real constraint on how it gets written. Jinja2 +
HTMX stays a valid fallback and the API does not change.
- Placeholder captures are generated by a seed command, not downloaded:
no licensing question, no binaries in git, and it can produce the
volume the virtualised grid needs.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Set up the dev environment (uv-managed CPython 3.14.7, postgres:17 in a
Podman container) and ran the skeleton for real: migrations apply, the
API serves /api/v1/health and /healthz, the worker claims a job and
drains it, 12/12 tests pass with nothing skipped.
The schema-drift test failed on its first real run and found a genuine
problem: Postgres reflects a varchar default as 'x'::character varying
while the model renders 'x', so all ten string defaults read as
permanent drift. Left alone that is the failure mode where you learn to
ignore the test and then miss the one real change. Add schema_compare.py,
a normaliser shared by migrations/env.py and the test so autogenerate and
the test can never disagree about what counts as a difference. A real
default change still fails it.
Also: ruff import-order fix in captures.py, and the README gains the
uv + Podman dev setup, the expected test count, and the CREATE DATABASE
privilege the drift test needs.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>