Redesign single-aircraft fleet page: stats, route map & grouped reg data #23

Merged
ronnyandre merged 1 commit from feature/fleet-aircraft-page-redesign into main 2026-06-04 09:31:01 +02:00
Owner

Summary

Bold redesign of the single-aircraft fleet page (/fleet/$tail), which previously showed only AeroDataBox airframe data and a bare flight list — nothing about the user's own flying on that tail.

Restructured into four numbered FIDS sections:

  • 01 — Stats strip: total distance, air time, flights, routes, airports, longest leg (aggregated null-safe over stored distance_km/duration_minutes)
  • 02 — Route map: reuses the client-only FlightMap (dark theme) with this tail's deduped great-circle routes; rendered only when mappable
  • 03 — Registration data: the flat 16-field grid split into Identity / Type & configuration / History groups
  • 04 — Flights: added Distance and Duration columns

Server

getAircraftDetail now selects airport coords/names + distance/duration, and returns stats + routes/airports map data (mirrors the dashboard routesMap/airportsMap pattern). Routes only count when both airports resolve to seeded rows with coords (reference-data pattern, CLAUDE.md #1). RouteFeature/AirportDot reused via import type (no client db bleed, §8).

Addresses audit roadmap (b)(2) — airframe-level enrichment delight.

Verification

  • pnpm typecheck ✅ · pnpm lint ✅ · pnpm test (52 passed) ✅
  • Tested locally against dev.db: stats strip, dark route map, grouped registration section, and the new table columns all render; un-enriched tails still show the "No enrichment data → Enrich" state.
## Summary Bold redesign of the single-aircraft fleet page (`/fleet/$tail`), which previously showed only AeroDataBox airframe data and a bare flight list — nothing about the user's own flying on that tail. Restructured into four numbered FIDS sections: - **01 — Stats strip**: total distance, air time, flights, routes, airports, longest leg (aggregated null-safe over stored `distance_km`/`duration_minutes`) - **02 — Route map**: reuses the client-only `FlightMap` (dark theme) with this tail's deduped great-circle routes; rendered only when mappable - **03 — Registration data**: the flat 16-field grid split into *Identity / Type & configuration / History* groups - **04 — Flights**: added **Distance** and **Duration** columns ## Server `getAircraftDetail` now selects airport coords/names + distance/duration, and returns `stats` + `routes`/`airports` map data (mirrors the dashboard `routesMap`/`airportsMap` pattern). Routes only count when both airports resolve to seeded rows with coords (reference-data pattern, CLAUDE.md #1). `RouteFeature`/`AirportDot` reused via `import type` (no client `db` bleed, §8). Addresses audit roadmap (b)(2) — airframe-level enrichment delight. ## Verification - `pnpm typecheck` ✅ · `pnpm lint` ✅ · `pnpm test` (52 passed) ✅ - Tested locally against `dev.db`: stats strip, dark route map, grouped registration section, and the new table columns all render; un-enriched tails still show the *"No enrichment data → Enrich"* state.
The /fleet/$tail page only showed AeroDataBox airframe data and a bare
flight list — nothing about the user's own flying on that tail. Rework it
into four numbered FIDS sections:

- 01 Stats strip: total distance, air time, flights, routes, airports,
  longest leg — aggregated null-safe over stored distance_km/duration_minutes
- 02 Route map: reuse the client-only FlightMap (dark theme) with this
  tail's deduped great-circle routes; rendered only when mappable
- 03 Registration data: split the flat 16-field grid into Identity /
  Type & configuration / History groups
- 04 Flights: add Distance and Duration columns

Server: getAircraftDetail now selects airport coords/names + distance/
duration, and returns stats + routes/airports map data (mirrors the
dashboard routesMap/airportsMap pattern). Routes only count when both
airports resolve to seeded rows with coords (reference-data pattern).
RouteFeature/AirportDot reused via import type (no client db bleed).

Addresses audit roadmap (b)(2) airframe-level enrichment delight.
ronnyandre deleted branch feature/fleet-aircraft-page-redesign 2026-06-04 09:31:01 +02: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!23
No description provided.