chore(ui): address review nits — stale strip comment, test assertion (#52)
CI / build + unit + e2e (pull_request) Successful in 3m40s

This commit is contained in:
2026-10-06 13:03:21 +00:00
parent 3ea2d1c38b
commit 34e8fd8514
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -2,7 +2,8 @@
import type { QueueDto } from '@/lib/game/save'
// TASK STRIP — the save's task queue, fixed bottom-left next to the NEXT TURN button (#44).
// TASK STRIP — the save's task queue, fixed bottom-left (#44); the NEXT TURN button moved into
// the right pane in #52, so the two can no longer overlap.
// The array arrives pre-ordered from the snapshot builder (Task 6: ACTIVE block, then PENDING
// block, each by (queuedAtTurn, id)) — the strip renders it as-is, dimming the PENDING rows,
// and never fetches or re-sorts. Empty queue → null, no box at all. The shell re-renders it on
+1 -1
View File
@@ -1054,7 +1054,7 @@ test('NEXT TURN button is full-width in the right pane and not covered by the ta
const edge = world.edges.find(([a, b]) => a === currentId || b === currentId)!;
const targetId = edge[0] === currentId ? edge[1] : edge[0];
const { crew } = (await (await page.request.get('/api/crew')).json()) as { crew: CrewDto[]; tasks: QueueTaskDto[] };
expect(crew.length).toBeGreaterThanOrEqual(2);
expect(crew.length).toBeGreaterThanOrEqual(1);
// Queue a one-person JUMP and deliberately do not tick it (the #44 jump scenarios' pattern,
// the in-transit 409 one leaves it that way on purpose): the strip renders from the shell's