Status: done (2026-11-11) Priority: 2 Size: M Design ref: The player and what they see; docs/mockups/action-menu.html (Menu) Goal: Kim, 11 Nov, of the mock-up: implement its action bar in the game, the Actions button opening the second bar, which works as in the demo. Acceptance criteria:
Sim (no new verb, no new state),
by its basis (design.md, The player and what they see): Myself its own acts (Walk here, Go home, Rest an hour, the moving round’s
wishes, a match offered), Household its household’s work by kind and the gift, Village the village’s work by kind and the cause.tests/smoke.js) and Chromium (tests/browser.js, tests/browser-mobile.js) open the bar and the groups, queue a tile
act through the tool mode and a gift through its form; tests/golden.json unchanged.
Notes:docs/mockups/action-menu.html, commit 19759fe): “I liked the action bar at the lower half a lot.
Implement this in the game. We can go with this design for now. It will have to be revised again, but this is a good stepping stone. The
action button should open this second bar, which works as in the demo.” Only the Menu draft; the ring is not wanted.QUESTIONS.md, VB-341): the design row that still puts “what it may do here” in the pawn panel; work at one place queued
at once; a list left open after an act is queued. Each was decided in Kim’s place, as proposed there.Implementation:
sim/opportunities names each work item’s tile (site, the job’s or the one the kind
would post at), which the tool marks and a tap matches. It reads st and writes through Sim.queue, Sim.wish, Sim.answer,
Sim.unqueue, Sim.setAuto, as the sheet did; no new state, no new coupling between systems.src/page/actbar.js (new, after page/play): the bar’s state (barOpen, barMenu {g, view}, barMsg), paintBar, openBar,
closeBar, menuHTML (the groups from one call of Sim.opportunities, split by basis: work by its holder’s type, causes to Village, the
round’s acts and offers to Myself), actRow, workRows (one row a kind; open at one place it is queued at once, at several the tool), and
the tool: startTool, endTool, toolSites, toolTap, paintBanner, drawToolMarks (white hexagons in L.hover, redrawn when the
sites or the zoom change). renderActions (page/play) calls renderBar four times a second with the opportunities it read (none while
neither the sheet, the list nor the tool is open); the list is not redrawn while the player types in it, and the focused row keeps focus.src/page/gift.js (new): the gift moved from page/play (renderGive became giveHTML, queueGift, pickGift the tool’s tap), with
a stepper of five rations and “Add to the queue”; the checks and the floor’s warning are as they were.page/play: the sheet keeps the pawn’s head, needs, switches, offers, queue and refusal; playClick is the one handler of data-play
buttons for the sheet and the bar; oppRow is only the round’s read-only row; walkPick and pickWalk gave way to the tool.
page/input: Actions toggles the bar, openPanel keeps it beside the card and the sheet and puts it away for People, Customs and Debug;
Esc ends the tool, then the list, then the panels and the bar. page/tileinfo: a click goes to the tool first; no hover card over the
list or the tool. page/icons: the mock-up’s icons (24 px, stroked) and each job kind’s.src/head.html): .act-bar, .act-menu, .act-row, .act-form, .stepper, .act-banner; with the bar open the panels, the
play offer and (on a phone) the map’s bar rise over it; the toasts go under the banner. The gift’s old .give-row styles are gone.page/play 400 to 286; page/actbar 224 and page/gift 92 new.
Validation:npm test: 101 scripts pass; 3 targets out (scaling.routeRefresh, scaling.roundPairs, scaling.takeInWeighed), simulation cost
this change does not touch (no simulation module but the read-only site).npm run verify: 117 scripts pass (golden file unchanged, the page in jsdom and Chromium with the new checks); 11 targets out, all simulation
cost (history.*, scaling.*), as on main before it (VB-338 reported the same 11), none moved by this page change.