mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
* feat(aviation): each price row links directly to that flight on Google Flights
Clicking any result row opens Google Flights pre-filtered for that
specific flight number (e.g. EK36 from NCL to DXB on 2026-03-31).
Removes the generic top-level "Google Flights" link since per-row links
are more actionable.
* feat(aviation): rename price->fly keyword, add Book this route to aircraft popup
- Command bar: fly London Dubai replaces price (aliases: flights, fares, fare, book)
- Date chips rerun commands updated to use fly prefix
- Suggestions and placeholder text updated
- Aircraft popup: shows "Book this route" CTA when live route data is available,
linking to Google Flights pre-filtered for that flight number and today's date
* style(aviation): align command bar and popup CTA with design system
Replace all blue (#60a5fa) accents with var(--green, #44ff88).
Overlay uses var(--bg) + backdrop-filter:blur(4px) matching CMD+K.
Input is borderless with bottom-border only, focus highlights green.
Header gets border-bottom separator, hint bar gets top-border separator.
Kbd badges use var(--border). MapPopup Book CTA uses green border/text.
* test(aviation): add command bar date-chip and intent-parser tests
15 tests covering:
- addLocalDays uses local calendar arithmetic (not toISOString/UTC)
- Default date is tomorrow via addLocalDays(1)
- Date chips render for [1,3,7,14,30] days with fly prefix on rerun cmds
- Active chip uses --green, inactive chip uses --border (design system)
- Intent parser recognises fly/flights/fares/fare/book keywords
- Old price/prices keyword is removed
- Price rows use --green token instead of blue #60a5fa
* fix(aviation): P1 anchor color override + P2 empty-leg URL guard
P1: Add color:var(--text,#e8e8e8) to both <a class="cmd-row"> elements
so browser user-agent a:link blue does not bleed through on dark bg.
P2: When f.legs is empty, fall back to route-only GF query instead of
producing ?q=+from+... with a leading encoded space.
Also align TravelPayouts stopColor to use --green/--text-dim tokens.
* fix(aviation): enforce text color on .cmd-row at class level to override UA stylesheet
6.7 KiB
6.7 KiB