Commit 7b7d204
fix: Title & Artist mode hydration + equal reveal footer buttons (v4.1.0-rc7) (#1469)
- Fix "Name the Song" starting as a year-guess game. admin.js hydrateFromStorage
copied every saved game-mode flag into adminState EXCEPT titleArtistMode, so
the start payload sent title_artist_mode:false and players got the year input.
Extracted the settings->adminState mapping into a single shared helper
applyStoredGameSettings() (admin/util.js) covering all 5 flags, + unit tests,
so the gap can't recur.
- Equalise the reveal host buttons: "Invite Players" and "Next Round" now share
the same box metrics (260x56); only colour differs.
325 frontend tests pass (5 new). Regenerated admin.min.js (npm run build) +
styles.min.css.
Co-authored-by: Claude Code <coba@aupairsync.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 7b45c11 commit 7b7d204
8 files changed
Lines changed: 120 additions & 17 deletions
File tree
- custom_components/beatify
- www
- css
- js
- __tests__
- admin
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
7 | 15 | | |
8 | 16 | | |
9 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15632 | 15632 | | |
15633 | 15633 | | |
15634 | 15634 | | |
| 15635 | + | |
| 15636 | + | |
| 15637 | + | |
| 15638 | + | |
| 15639 | + | |
| 15640 | + | |
| 15641 | + | |
| 15642 | + | |
| 15643 | + | |
| 15644 | + | |
| 15645 | + | |
| 15646 | + | |
| 15647 | + | |
| 15648 | + | |
| 15649 | + | |
| 15650 | + | |
| 15651 | + | |
15635 | 15652 | | |
15636 | 15653 | | |
15637 | 15654 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
243 | 244 | | |
244 | 245 | | |
245 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
340 | 341 | | |
341 | 342 | | |
342 | 343 | | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
352 | 349 | | |
353 | 350 | | |
354 | 351 | | |
| |||
0 commit comments