Make the metaphor structural: a thing gets visual heat only if it
increases exposure; contained things stay silent.
- Badge diet: private repos render unmarked (an unmarked row is the
"contained" statement); only Public/Archived/Empty earn a badge. Public
wears the ember "live ember" badge (a public repo is a fire starter);
fork/mirror demote to muted mono provenance beside the name.
- Containment status grammar in empty/warning states
(STATUS · CONTAINED — 0 EXPOSED); firebreak-rule dividers under page
headings; remove the settings sidebar (one section doesn't earn a rail)
in favor of a single column; reuse .notice-rail for the success notice.
- Sweep the ad-hoc text-foreground/NN gray ladder to
text-muted-foreground, fixing sub-AA helper text.
Includes the landing hero (index.html) legibility pass so hero copy stays
cream after the foreground token flipped to charcoal.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Tailwind v4 emits every @theme var to :root, so unused tokens ship for
nothing. Remove ~16 dead ones (accent, panel, slate, the *-muted washes,
radius-xl/2xl, brand-obsidian/jet/ash) after confirming zero references.
- Fold badge sizes into a single .badge; delete badge-md/lg @utilities and
the unused success/warning/slate recipes. Fix badge/mono-chip vertical
centering with leading-none (text-box silently no-ops on flex items).
- Add theme primitives: .firebreak-rule (a cut divider — ember segment,
gap, hairline), .link-fuse (share-link lifetime), .status-line
(containment grammar), .badge-ember, .btn-danger-quiet.
- Give .btn-disabled a real border so disabled buttons match their
bordered siblings in the Actions column; unify uppercase-label tracking
to 0.12em; route .form-input through the token border + ember focus
ring; drop the one-off .btn-xs.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The base.html live-reload poller is now wrapped in {% if debug %} so it
never ships to production. dev.sh exports DEBUG=true and uses 'entr -d' in
a loop so newly created templates are picked up (the old 'find | entr'
snapshot missed them), with a fallback when entr is not installed.
Move page routes to routers/dashboard.py, the content-negotiated error
handler to errors.py (register_error_handlers), and the dev css-mtime
endpoint to routers/dev.py (included only when debug). main.py shrinks to
lifespan + wiring + the / landing route.
Dashboard repos now load lazily via an htmx fragment so a slow/unreachable
Forgejo instance never blocks first paint; Forgejo html_url is sanitized
against non-http(s) schemes before rendering into href.
Centralize all Forgejo HTTP in app/services/forgejo.py (get/post +
authorize_url/exchange_code/fetch_user, typed ForgejoError, defensive
base-URL join). Centralize credential encryption in app/auth/tokens.py
(decrypt_pat/set_pat, set_client_secret/decrypt_client_secret) so the
get_fernet()+crypto+column pattern no longer leaks into routers.
auth/settings/setup now delegate to these modules; the duplicated
client-secret encrypt block and per-call httpx clients are gone.
Mirror the session.py dependency trio: current_app_settings (honest
optional accessor), get_app_settings (required; raises 500 if reached
unconfigured), and set_app_settings (single write path). Middleware reads
through the accessor instead of poking app.state directly.
get_app_settings takes request and calls current_app_settings internally
rather than declaring it as a sub-Depends — a Depends param typed with a
TYPE_CHECKING-only forward ref makes FastAPI drop the marker and treat it
as a query param.
Dark-only Tailwind v4 @theme tokens, cinematic landing hero, operational
dashboard styling, and the Firebreak logo/wordmark assets. Templates use
semantic component classes instead of inline styles and color literals.