What changed (ISS-053 — "Queue should be done by clicking 'fly to…' on 'on board' and by 'Relocate'; it doesn't need dedicated input")
Routing rule: grounded → /fly, flying → /queue (client-side only; no server or API changes):
The per-cargo-row "Fly to {dest}" button in the On board blocks is now enabled for both states and picks its endpoint by plane state — while flying it appends the package's destination to that plane's queue (auto-chains on landing); grounded it departs immediately as before.
Relocate now lists ALL planes (not just grounded) and applies the same conditional: relocating a flying plane queues the leg instead of 409-ing. The map airport popup is intentionally untouched (still grounded-only /fly).
The dedicated "Add to queue" select + button in each on-board block's Queue sub-section is deleted, along with its shared queueAddDestIcao state. Queued leg rows and their per-leg Cancel buttons remain.
Tests
e2e/queue.spec.ts test 1 now adds its queued leg through the Relocate section (the removed control's only UI consumer).
e2e/two-planes.spec.ts per-plane-queues test adds the starter's second leg via API (grounded+queued → /fly by design, so no UI append path there).
No new endpoints → OpenAPI path list unchanged. Local: tsc clean · vitest 327/32 files · playwright list 52 tests in 14 files (all baseline-exact; e2e verified in CI).
Completes ISS-053.
## What changed (ISS-053 — "Queue should be done by clicking 'fly to…' on 'on board' and by 'Relocate'; it doesn't need dedicated input")
**Routing rule: grounded → `/fly`, flying → `/queue`** (client-side only; no server or API changes):
- The per-cargo-row **"Fly to {dest}"** button in the On board blocks is now enabled for both states and picks its endpoint by plane state — while flying it appends the package's destination to that plane's queue (auto-chains on landing); grounded it departs immediately as before.
- **Relocate** now lists ALL planes (not just grounded) and applies the same conditional: relocating a flying plane queues the leg instead of 409-ing. The map airport popup is intentionally untouched (still grounded-only `/fly`).
- The **dedicated "Add to queue" select + button** in each on-board block's Queue sub-section is deleted, along with its shared `queueAddDestIcao` state. Queued leg rows and their per-leg Cancel buttons remain.
## Tests
- `e2e/queue.spec.ts` test 1 now adds its queued leg through the Relocate section (the removed control's only UI consumer).
- `e2e/two-planes.spec.ts` per-plane-queues test adds the starter's second leg via API (grounded+queued → `/fly` by design, so no UI append path there).
- No new endpoints → OpenAPI path list unchanged. Local: tsc clean · vitest 327/32 files · playwright list 52 tests in 14 files (all baseline-exact; e2e verified in CI).
Completes ISS-053.
- LeftPane fly-to button enabled for any plane state; posts to /queue when the plane is flying, else /fly
- Relocate lists ALL planes (relocatable); relocate-go posts to /queue for a flying selected plane, else /fly
- Delete queue-add select + Add-to-queue button and shared queueAddDestIcao state; leg rows/cancel kept
- e2e/queue.spec.ts test 1 adds its queued leg via the Relocate section (starter is flying)
- e2e/two-planes.spec.ts per-plane-queues test adds the starter's second leg via API POST /queue
kamilkrzywda
scheduled this pull request to auto merge when all checks succeed 2026-09-21 01:57:41 +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.
What changed (ISS-053 — "Queue should be done by clicking 'fly to…' on 'on board' and by 'Relocate'; it doesn't need dedicated input")
Routing rule: grounded →
/fly, flying →/queue(client-side only; no server or API changes):/fly).queueAddDestIcaostate. Queued leg rows and their per-leg Cancel buttons remain.Tests
e2e/queue.spec.tstest 1 now adds its queued leg through the Relocate section (the removed control's only UI consumer).e2e/two-planes.spec.tsper-plane-queues test adds the starter's second leg via API (grounded+queued →/flyby design, so no UI append path there).Completes ISS-053.