clone

a browser grid puzzle game where you push words around to rewrite the rules of each level

main
miau-is-true / openspec / changes / add-proof-title-fitting / tasks.md
tasks.md 2.0K rendered
1## 1. Shared fitting contract23- [x] 1.1 Add a pure title-fit helper that measures a complete string, shrinks4 22px to 16px in 1px steps, and wraps at word boundaries without adding an5 ellipsis. Narrow fallback callers may request up to three lines.6- [x] 1.2 Return fitted lines, font size, line height, and overflow status from7 one helper; each scene adds its owning-region geometry to that result.8- [ ] 1.3 Add focused tests for one-line, shrink-only, two-line, long-word,9 empty-title, and reduced-motion settled results. The current focused suite10 covers the first four cases plus the narrow three-line fallback; empty-title11 and reduced-motion assertions remain open.1213## 2. Scene integration1415- [x] 2.1 Apply the helper to the Proof HUD using the measured region between16 the number tile and step counter with 16px insets.17- [x] 2.2 Move the Proof subline and board down as one group for wrapped titles18 while retaining at least 40px HUD-to-board clearance. On the narrow fallback,19 keep `STEPS 02` right aligned on the subline row.20- [x] 2.3 Apply the same helper to the INDEX banner without changing its21 banner or pointer hit geometry.22- [x] 2.4 Apply the same helper to the Win card without changing its actions23 or input hit geometry.24- [x] 2.5 Verify desktop and 390x844 mobile, including the long-title INDEX,25 Proof, and Win browser path. The captured mobile fallback uses the full band,26 shared subline counter, and no ellipsis.2728## 3. Verification and handoff2930- [x] 3.1 Run focused title/layout tests and the full Node suite.31- [x] 3.2 Run the production build and browser checks for Proof, INDEX, Win,32 mobile layout, navigation, and pointer actions.33- [x] 3.3 Confirm no engine, input, diagnostics-envelope, or pointer semantics34 changed; retain the >32-character W11 warning while enforcing the 64-character35 loader ceiling.36- [ ] 3.4 Post the local long-title screenshots and layout evidence to the37 design inbox and receive final design review before publishing a preview38 revision.