Redesign the UI as an aeronautical chart #34
Loading…
Reference in a new issue
No description provided.
Delete branch "ui-redesign"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
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.d3-geoand the bundled 1:110m coastline, so no tiles or third-party origins.route-chart.tsxdraws the world view with a regional inset, used on the overview, the aircraft page and the landing page.leg-chart.tsxdraws a single great-circle leg on a Lambert conformal conic projection for a flight's page.legParallels,scaleStep, label placement) lives insrc/lib/route-chart.tswith unit tests. Coordinates are rounded to 0.1 px to avoid hydration mismatches./fleet→/aircraft: the pages moved, andsrc/routes/fleet/keeps 301 redirects so old bookmarks still work (/fleet→/aircraft,/fleet/:tail→/aircraft/:tail).ui-reviewer/builderagent 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 typecheckandpnpm lintare clean, andpnpm testpasses (250 tests)./aircraftgoes to sign-in with a redirect back.🤖 Generated with 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]>