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
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.
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #96
available→/fly,flying/repairing→/queue(appends to the FIFO queue, v0.46.0 feature)queuecontains LFRS and the plane still flies its original destNo API/action/state changes — endpoints already existed. Local: tsc clean, vitest 374/374, playwright --list 59 tests.