v0.49.0 — airport popup Relocate works for flying planes via queue (#96) #102

Merged
kamilkrzywda merged 1 commits from feat/relocate-queue into master 2026-09-22 09:48:50 +02:00
Owner

Closes #96

  • Map airport popup now lists ALL planes (was: grounded only); Relocate picks the endpoint by the selected plane's status — available → /fly, flying/repairing → /queue (appends to the FIFO queue, v0.46.0 feature)
  • Success text: "Relocation started." / "Added to queue."; fallback reworded to "No planes to relocate." (same testid, only reachable pre-snapshot)
  • New e2e spec in relocation.spec.ts: dispatch starter on a leg at 1x sim speed, open LFRS popup while flying, Relocate → asserts queue contains LFRS and the plane still flies its original dest

No API/action/state changes — endpoints already existed. Local: tsc clean, vitest 374/374, playwright --list 59 tests.

Closes #96 - Map airport popup now lists ALL planes (was: grounded only); Relocate picks the endpoint by the selected plane's status — `available` → `/fly`, `flying`/`repairing` → `/queue` (appends to the FIFO queue, v0.46.0 feature) - Success text: "Relocation started." / "Added to queue."; fallback reworded to "No planes to relocate." (same testid, only reachable pre-snapshot) - New e2e spec in relocation.spec.ts: dispatch starter on a leg at 1x sim speed, open LFRS popup while flying, Relocate → asserts `queue` contains LFRS and the plane still flies its original dest No API/action/state changes — endpoints already existed. Local: tsc clean, vitest 374/374, playwright --list 59 tests.
kamilkrzywda added 1 commit 2026-09-22 09:35:52 +02:00
The airport popup's Relocate row now lists ALL planes instead of only
grounded ones; the click handler picks the endpoint by the selected
plane's current status — available → /fly (unchanged), flying/repairing
→ /queue so the destination is appended to the flight queue and chains
on landing. No-planes fallback reworded to 'No planes to relocate.'

E2E +1: relocation.spec.ts dispatches the starter on a leg via API,
slows the sim to 1x, opens the popup for a different airport, selects
the flying plane and clicks Relocate here — asserts the queue contains
the clicked ICAO while the plane still flies its original destination.
kamilkrzywda scheduled this pull request to auto merge when all checks succeed 2026-09-22 09:36:46 +02:00
kamilkrzywda merged commit d215203988 into master 2026-09-22 09:48:50 +02:00
Sign in to join this conversation.