feat(flight-live): a live boarding pass on the web, desktop and phone

The booking dialog and the phone's transport sheet show a flight's moment,
both airports with planned and expected times, the route as an arc with the
aircraft on it and the numbers of the flight; booking cards and day plan
rows get a one-line state with a progress bar. The trip map draws the
aircraft in the air on Leaflet and GL, and the admin settings carry the
switch. Translated into every language.
This commit is contained in:
Maurice
2026-11-13 15:29:10 +01:00
parent 154563f34d
commit 4796615439
91 changed files with 3520 additions and 25 deletions
@@ -9,6 +9,7 @@ import {
MessageCircle,
Mountain,
Plane,
PlaneTakeoff,
Sparkles,
Ticket,
TriangleAlert,
@@ -21,6 +22,7 @@ export type NotificationKind =
| 'trip'
| 'message'
| 'booking'
| 'flight'
| 'packing'
| 'todo'
| 'vacay'
@@ -36,6 +38,9 @@ const KIND_BY_TITLE: Record<string, NotificationKind> = {
'notif.trip_reminder.title': 'trip',
'notif.collab_message.title': 'message',
'notif.booking_change.title': 'booking',
'notif.flight_departed.title': 'flight',
'notif.flight_delayed.title': 'flight',
'notif.flight_landed.title': 'flight',
'notif.packing_tagged.title': 'packing',
'notif.todo_due.title': 'todo',
'notif.vacay_invite.title': 'vacay',
@@ -59,6 +64,7 @@ export const KIND_LOOK: Record<NotificationKind, { icon: LucideIcon; tone: strin
trip: { icon: Plane, tone: 'bg-info-soft text-info' },
message: { icon: MessageCircle, tone: 'bg-success-soft text-success' },
booking: { icon: Ticket, tone: 'bg-warning-soft text-warning' },
flight: { icon: PlaneTakeoff, tone: 'bg-info-soft text-info' },
packing: { icon: Backpack, tone: 'bg-warning-soft text-warning' },
todo: { icon: ListChecks, tone: 'bg-success-soft text-success' },
vacay: { icon: CalendarDays, tone: 'bg-info-soft text-info' },