fix/theme: pair Alucard/Dracula and Rosé Pine in the appearance list #2

Merged
BlackHatMagic merged 2 commits from fix/theme-pairing into master 2026-10-14 05:13:23 +00:00

Summary

The appearance popover renders the light and dark palettes as two tabs, and the rows should line up by counterpart. The dark list had Dracula and Rosé Pine in the other order, so row 5 showed Rosé Pine Dawn beside Dracula and row 6 showed Alucard beside Rosé Pine.

This reorders the dark list (keys, palette array, and the pre-paint resolver) to …, rose-pine, dracula, so every row pairs its light theme with the matching dark theme:

Row Light Dark
1 Catppuccin Latte Catppuccin Mocha
2 Nord Light Nord Dark
3 Strawberry Light Strawberry Dark
4 Gruvbox Light Gruvbox Dark
5 Rosé Pine Dawn Rosé Pine
6 Alucard Dracula

The light list is unchanged; only the dark list order moves.

Testing

  • bun run check — 0 errors, 0 warnings
  • bun run test — 270 passed (adds a test pinning both ordered lists)
  • bunx playwright test — 30 passed (adds a test that reads the rendered rows from both appearance tabs and asserts each light theme sits opposite its dark counterpart)
  • bun run build — verified locally
## Summary The appearance popover renders the light and dark palettes as two tabs, and the rows should line up by counterpart. The dark list had Dracula and Rosé Pine in the other order, so row 5 showed Rosé Pine Dawn beside Dracula and row 6 showed Alucard beside Rosé Pine. This reorders the dark list (keys, palette array, and the pre-paint resolver) to `…, rose-pine, dracula`, so every row pairs its light theme with the matching dark theme: | Row | Light | Dark | | --- | --- | --- | | 1 | Catppuccin Latte | Catppuccin Mocha | | 2 | Nord Light | Nord Dark | | 3 | Strawberry Light | Strawberry Dark | | 4 | Gruvbox Light | Gruvbox Dark | | 5 | Rosé Pine Dawn | Rosé Pine | | 6 | Alucard | Dracula | The light list is unchanged; only the dark list order moves. ## Testing - `bun run check` — 0 errors, 0 warnings - `bun run test` — 270 passed (adds a test pinning both ordered lists) - `bunx playwright test` — 30 passed (adds a test that reads the rendered rows from both appearance tabs and asserts each light theme sits opposite its dark counterpart) - `bun run build` — verified locally
Reordering the dark list to match the light list puts Rosé Pine Dawn opposite Rosé Pine and Alucard opposite Dracula, so each light theme shares a row with its dark counterpart in the appearance popover's two tabs.
test/theme: lock the light/dark pairing in both lists
All checks were successful
/ deploy (push) Successful in 2m16s
d86abb7cd5
Add a unit test pinning the ordered light and dark key lists, and an e2e test that reads the rendered rows from both appearance tabs and asserts each light theme sits opposite its dark counterpart. Also update the dark key order in the pre-paint resolver test surface.
BlackHatMagic left a comment

Pi code review

0 new actionable findings

No new actionable findings. Previously reported issues, if any, are tracked below.

Reviewed the supplied diff against the pinned base and traced appearance rendering, key-based theme persistence, and pre-paint resolution; no evidence-supported bugs were found. Checks were not run because execution tools are unavailable, and full end-to-end test setup inspection was limited by the repository file-size and operation limits.

Change walkthrough
Area Files Changes
Other code (2) src/app.html, src/lib/theme/palettes.ts Aligns the pre-paint resolver's dark-theme key order with the appearance list. Moves Rosé Pine before Dracula in dark-theme keys and palettes without changing colors, defaults, or the light list.
Tests (2) tests/e2e/monster-maker.spec.ts, tests/unit/theme-palettes.test.ts Adds assertions that rendered light and dark theme lists align by counterpart. Pins both theme-key orders and verifies the counterpart themes' modes.

Review effort: 1/5.

Static observations (not validation results)
Observation Detail
Diff size 4 files, +66/-15.
Binary changes No binary changes reported by this diff.
Credential patterns No matches after excluding known examples/placeholders. Added-line heuristics only; not a security audit.

Reviewed d86abb7cd550bf55bf8e558ce66f82a3dad64884 with proxy/gpt-6.1-sol. Automated advisory review; no project commands or tests were executed.

<!-- forgejo-pi-review:9578fb37e4b5daa1037e76b99b5d0666248ae18abb7d474874b0724100d3cdf5 --> ## Pi code review **0 new actionable findings** No new actionable findings. Previously reported issues, if any, are tracked below. Reviewed the supplied diff against the pinned base and traced appearance rendering, key-based theme persistence, and pre-paint resolution; no evidence-supported bugs were found. Checks were not run because execution tools are unavailable, and full end-to-end test setup inspection was limited by the repository file-size and operation limits. <details> <summary>Change walkthrough</summary> | Area | Files | Changes | | --- | --- | --- | | Other code (2) | `src/app.html`, `src/lib/theme/palettes.ts` | Aligns the pre-paint resolver's dark-theme key order with the appearance list. Moves Rosé Pine before Dracula in dark-theme keys and palettes without changing colors, defaults, or the light list. | | Tests (2) | `tests/e2e/monster-maker.spec.ts`, `tests/unit/theme-palettes.test.ts` | Adds assertions that rendered light and dark theme lists align by counterpart. Pins both theme-key orders and verifies the counterpart themes' modes. | Review effort: **1/5**. </details> <details> <summary>Static observations (not validation results)</summary> | Observation | Detail | | --- | --- | | Diff size | 4 files, +66/-15. | | Binary changes | No binary changes reported by this diff. | | Credential patterns | No matches after excluding known examples/placeholders. Added-line heuristics only; not a security audit. | </details> --- Reviewed `d86abb7cd550bf55bf8e558ce66f82a3dad64884` with `proxy/gpt-6.1-sol`. Automated advisory review; no project commands or tests were executed.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
BlackHatMagic/5e-Monster-Maker!2
No description provided.