You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Toolbox vote buttons now remain visible with counts for guests, but guest sessions cannot vote.
13
+
- Authenticated selected votes now receive the same `primary` selected button treatment used by other Toolbox controls.
14
+
- Admin Tool Votes now receives `Total Votes`, `Up %`, and `Down %` from the server-backed vote snapshot.
15
+
- Admin Tool Votes now has an expand/collapse width control that collapses the side menu and gives the table more horizontal room.
16
+
- Tool group assignments, tool order rules, and tool status rules were not changed.
17
+
18
+
## Requirement Checklist
19
+
20
+
| Requirement | Status | Evidence |
21
+
| --- | --- | --- |
22
+
| Limit Toolbox voting to authenticated users only | PASS |`toolbox/tools-page-accordions.js` disables vote buttons when `session.authenticated`/`session.userKey` is absent; `src/dev-runtime/server/mock-api-router.mjs` still rejects unauthenticated vote writes. |
23
+
| Guests may view Up/Down vote counts but not vote | PASS | Vote controls still render `Up n` and `Down n`; guest buttons are disabled and covered by Playwright guest assertions in `tests/playwright/tools/ToolboxRoutePages.spec.mjs`. |
24
+
| Show visible login/sign-in required state for guests | PASS |`data-toolbox-vote-login-required` displays `Login required to vote.` for guest sessions. |
25
+
| Keep Up/Down buttons with vote counts | PASS | Existing button rendering is preserved; only disabled state and message were added. |
26
+
| Visually identify current user's selected vote with selected Toolbox treatment | PASS | Selected vote buttons toggle `primary` and `aria-pressed`; Playwright validates `primary` on selected Up/Down states. |
27
+
| Preserve one-vote-per-user-per-tool behavior | PASS | Existing server row update by `(toolId, userKey)` remains unchanged; Playwright verifies User 1 and User 2 vote counts and switching behavior. |
28
+
| Add Total Votes, Up %, Down % columns to Admin > Tool Votes | PASS |`admin/tool-votes.html`, `admin/tool-votes.js`, and server snapshot fields `totalVotes`, `upPercent`, `downPercent` added; Playwright validates values. |
29
+
| Add horizontal accordion/equivalent expand/collapse control for more table visibility | PASS |`data-toolbox-votes-width-toggle` toggles `data-toolbox-votes-expanded` on the account panel and collapses the side menu; Playwright validates expanded/collapsed behavior. |
30
+
| Do not change tool group assignments, order rules, or status rules | PASS | No registry/status/order assignment files were changed; only vote rendering/snapshot fields and admin table display changed. |
31
+
| Do not use inline script/style/event handlers | PASS | Static `rg` checks found no runtime/page inline handlers/styles; only existing Playwright source assertions matched. |
- Full samples validation: skipped because this PR only changes Toolbox vote controls, Admin Tool Votes table display, and server vote snapshot fields.
51
+
- Full repo smoke: skipped per request to run targeted Toolbox/Admin Tool Votes validation only.
52
+
53
+
## Manual Test Notes
54
+
55
+
- Guest `Build Game` vote buttons show counts, are disabled, and show `Login required to vote.`
0 commit comments