Release viewer 2.3.20: consistent action controls and stable resource previews

This commit is contained in:
coyotte508 2026-11-01 21:28:18 +01:00
commit 06bb0aebf6
16 changed files with 417 additions and 66 deletions

View file

@ -0,0 +1,17 @@
{
"game": "powergrid",
"gameVersion": 13,
"publishedAt": "2026-11-01T20:28:11.887Z",
"viewer": {
"version": "2.3.20",
"url": "https://s3.fr-par.scw.cloud/bgs-assets/games/powergrid/13/viewer/split-b941db4298f1f241f1f1/powergrid-viewer.umd.min.js",
"stylesheets": [
"https://s3.fr-par.scw.cloud/bgs-assets/games/powergrid/13/viewer/split-b941db4298f1f241f1f1/powergrid-viewer.css"
],
"scriptBytes": 1222070,
"sha256": "a780e6ed833a202ad26f3697b5e9ca7527d105a1bb439aa20315febc5d5aa7a5",
"bundle": "split-b941db4298f1f241f1f1",
"files": 42
},
"verified": true
}

View file

@ -22,4 +22,16 @@ Remove those two entries from the BGS game-version preferences, preserving all
other entries. Local undo now always removes one unconfirmed action, and board
sizing is always automatic; old saved values for these preferences are ignored.
The phase control pairs a phase pictogram with a skip, finish or edit pictogram.
Only the action inset highlights on hover/focus; the whole control is clickable.
From viewer 2.3.20, the paired pictograms use one shared grey surface with the
same silver/white-border hover as the color-blind and simulation controls. The
separator darkens on hover to preserve contrast. Passing has a normal black
border unless it is the only legal option, when it gets a blue cue. Unaffordable
plants are muted while choosing; the market outline is hidden when there are no
legal plant choices. The resource action shows skip until a purchase is made,
then finish; undoing all purchases restores skip. Phase actions and Undo share
2-unit borders while enabled and 1-unit borders while disabled. Local tentative
previews preserve public deck counters so buying resources does not flash an empty
draw pile. Existing pass-confirmation dialogs are unchanged.
After packaging, run `node viewer/scripts/action-controls-smoke.mjs` to check
normal/only-pass states and hover/focus styling against the board-option buttons.