The live flight card shows a small real map behind the pass: the great circle between the airports, solid where flown and dotted ahead, the aircraft on the line turned along the route. The route is framed in the free middle, the map fades out under the airports and times laid over it, and its place names are hidden. Data and map credits sit on the map as its hover text instead of a footer line. The card head now follows the booking dialog: a tinted band with pills for the state, what comes next and the delay; the numbers of the moment use the dialog's fields on the desktop and the sheet's stat boxes on the phone; both times sit on equal tiles in one line. Without live data the card, the strips and the plan line show nothing, and the pulsing dots are gone. Also fixes the failed dev run: unit symbols and the leg position are listed as NOT_PLURAL, the aircraft label uses logical sides, the flight store is in the test reset registry, the sync loop stops once no flight lies ahead (no endless timers under fake timers), and timeCell and widgetFlight drop below the max-params and complexity limits. Guards the GL bridge's resize frame against a layer removed before it runs, and keeps the booking code pill as tall as its neighbours.
@trek/shared
Single source of truth for TREK's API contracts, expressed as Zod schemas and consumed by both the server (request validation + inferred DTO types) and the client (typed requests/responses).
This package is part of the incremental NestJS + React 19 migration (see the "Brownfield Rewrite" board). It is intentionally dormant until modules start importing it — adding it changes nothing for users.
Rules
- One folder per domain:
src/<domain>/<domain>.schema.ts(+.spec.ts). - Domain-agnostic building blocks live in
src/common/. - A route is only considered migrated once its contract lives here.
- Schemas are the source of truth; server DTOs and client types are inferred from them
(
z.infer<typeof schema>), never hand-duplicated.
Consumption (dev)
Both apps resolve @trek/shared to this package's TypeScript source:
- Server (
tsx): viapathsinserver/tsconfig.json. - Client (
vite): viaresolve.aliasinclient/vite.config.ts(+pathsfor the type-checker).
Production packaging (Docker / workspace wiring) is introduced in card F2, when the server first depends on this package at runtime. Until then prod builds are untouched.
Not yet here
The canonical error envelope is finalised in card F5 (it must match TREK's current Express error responses byte-for-byte), so it is deliberately not invented in F1.