Redesign the UI as an aeronautical chart #34

Merged
ronnyandre merged 2 commits from ui-redesign into main 2026-11-19 21:35:16 +01:00
Owner

Restyles the whole site as an aeronautical chart (VFR sectional / IFR enroute), so it reads as made by a person rather than generated. Background, the audit and the rejected directions are in .scratch/ui-redesign/audit.md.

What changes

  • Theme (src/styles.css): --fl-* palette on :root, with dark values that follow the OS. Chart blue is for places and structure, magenta only for routes. Archivo with narrow figures (fl-num, fl-code), sentence case everywhere, square Shadcn primitives. Shared page classes: fl-page, fl-head, fl-h1–fl-h3, fl-table, fl-totals, fl-mbox, plus phone layouts.
  • Charts: server-rendered SVG from d3-geo and the bundled 1:110m coastline, so no tiles or third-party origins.
    • route-chart.tsx draws the world view with a regional inset, used on the overview, the aircraft page and the landing page.
    • The new leg-chart.tsx draws a single great-circle leg on a Lambert conformal conic projection for a flight's page.
    • Layout logic (legParallels, scaleStep, label placement) lives in src/lib/route-chart.ts with unit tests. Coordinates are rounded to 0.1 px to avoid hydration mismatches.
  • Pages migrated:
    • flights list, flight detail, new/edit flight and the flight form
    • aircraft list and detail
    • achievements, globe, settings, sign-in/up, landing and admin
  • /fleet → /aircraft: the pages moved, and src/routes/fleet/ keeps 301 redirects so old bookmarks still work (/fleet → /aircraft, /fleet/:tail → /aircraft/:tail).
  • Docs: CLAUDE.md §5, §7 (now "Theme: aeronautical chart") and §11, README route tree, and the ui-reviewer/builder agent theme rules.

Some code the redesign no longer uses (tile map, heatmap, recharts, --fids-* aliases) is deliberately kept. It is tracked for a separate review rather than deleted here.

Checks

  • pnpm typecheck and pnpm lint are clean, and pnpm test passes (250 tests).
  • No hydration warnings in the dev server logs. Checked in the browser at desktop width and at 390 px in dark mode.
  • Redirects checked with curl and signed in. Signed out, /aircraft goes to sign-in with a redirect back.

🤖 Generated with Claude Code

Restyles the whole site as an aeronautical chart (VFR sectional / IFR enroute), so it reads as made by a person rather than generated. Background, the audit and the rejected directions are in `.scratch/ui-redesign/audit.md`. ## What changes - **Theme** (`src/styles.css`): `--fl-*` palette on `:root`, with dark values that follow the OS. Chart blue is for places and structure, magenta only for routes. Archivo with narrow figures (`fl-num`, `fl-code`), sentence case everywhere, square Shadcn primitives. Shared page classes: `fl-page`, `fl-head`, `fl-h1`–`fl-h3`, `fl-table`, `fl-totals`, `fl-mbox`, plus phone layouts. - **Charts:** server-rendered SVG from `d3-geo` and the bundled 1:110m coastline, so no tiles or third-party origins. - `route-chart.tsx` draws the world view with a regional inset, used on the overview, the aircraft page and the landing page. - The new `leg-chart.tsx` draws a single great-circle leg on a Lambert conformal conic projection for a flight's page. - Layout logic (`legParallels`, `scaleStep`, label placement) lives in `src/lib/route-chart.ts` with unit tests. Coordinates are rounded to 0.1 px to avoid hydration mismatches. - **Pages migrated:** - flights list, flight detail, new/edit flight and the flight form - aircraft list and detail - achievements, globe, settings, sign-in/up, landing and admin - **`/fleet` → `/aircraft`:** the pages moved, and `src/routes/fleet/` keeps 301 redirects so old bookmarks still work (`/fleet` → `/aircraft`, `/fleet/:tail` → `/aircraft/:tail`). - **Docs:** CLAUDE.md §5, §7 (now "Theme: aeronautical chart") and §11, README route tree, and the `ui-reviewer`/`builder` agent theme rules. Some code the redesign no longer uses (tile map, heatmap, recharts, `--fids-*` aliases) is deliberately kept. It is tracked for a separate review rather than deleted here. ## Checks - `pnpm typecheck` and `pnpm lint` are clean, and `pnpm test` passes (250 tests). - No hydration warnings in the dev server logs. Checked in the browser at desktop width and at 390 px in dark mode. - Redirects checked with curl and signed in. Signed out, `/aircraft` goes to sign-in with a redirect back. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Replace the FIDS theme (stock Tailwind accents, letter-spaced mono
capitals, numbered card sections) with a look taken from VFR/IFR charts:
chart blue for places and structure, magenta for routes, ink on paper,
Archivo, sentence case, ruled tables instead of cards. Light and dark
follow the OS. Audit, rejected directions and mockups are in
.scratch/ui-redesign/.

- Route charts are server-rendered SVG (d3-geo + world-atlas): the
  overview, aircraft and landing pages get a world view with a
  home-region inset, a flight's page gets a single-leg chart. Layout
  logic (inset, labels, distance boxes, parallels, scale bar) is pure
  and tested in src/lib/route-chart.ts.
- Every page restyled: flights list with year headings and phone-friendly
  filters, flight detail, grouped log/edit form, aircraft, achievements
  (progress, milestones, firsts grouped by flight), globe, settings,
  sign-in/up, landing, admin.
- One date format ("14 Oct 2026") and duration format ("4h 05m").
- Fix blank SSR labels on the units and cabin selects.
- Move /fleet to /aircraft; /fleet and /fleet/$tail answer with 301
  redirects so old links keep working.
- CLAUDE.md sections 5, 7 and 11 and the factory ui-reviewer/builder
  agents describe the new theme.

The old tile map, activity heatmap, recharts and the --fids-* aliases
are now unused but kept for a separate review.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
ronnyandre deleted branch ui-redesign 2026-11-19 21:35:17 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ronnyandre/fliary!34
No description provided.