Repository navigation
feat: add puzzle board themes and skins (#464) - #493
Merged
Mkalbani merged 1 commit intoNov 20, 2026
Merged
Conversation
- Add BoardTheme entity with metadata, free/locked flag, unlock hint,
sort order and versioned asset bundle (board image, piece set,
preview, colour tokens)
- Add PlayerBoardThemeUnlock (unique per player and theme) to record
ownership of locked themes
- Add PlayerBoardThemeSelection to persist each player's chosen theme
- BoardThemesService:
- catalog create/update; changing assets bumps assetVersion
- asset URLs served with ?v=<assetVersion> for cache busting
- per-player catalog with owned / locked / selected flags
- idempotent grant of locked themes
- selection gated by ownership; falls back to the default free
theme if the selected one is disabled or no longer owned
- BoardThemesController: public catalog, JWT player routes for
listing and selecting, admin-only create/update/grant
- Register BoardThemesModule in AppModule
- 26 unit tests
Closes MindFlowInteractive#464
|
@AwesomeuncleB Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #464
What does this PR do?
Adds selectable puzzle board themes (skins) with a theme catalog, per-player ownership of locked themes, and a saved theme choice per player.
Why?
Closes #464
Type of change
How was it tested?
npx jest src/board-themes: 26 tests pass.What's included
New module
src/board-themes/:board_themes): slug, name, description, free/locked flag, unlock hint, sort order, and an asset bundle (board image, piece set, preview, colour tokens).assetVersiongoes up whenever a theme's assets change. Asset URLs are served with?v=<assetVersion>, so clients and CDNs fetch the new files.player_board_theme_unlocks, unique per player and theme): granting is idempotent.player_board_theme_selections, one row per player): a locked theme can only be selected if the player owns it. If nothing is selected, or the selected theme is disabled or no longer owned, the default free theme is returned./board-themes/board-themes/:themeId/board-themes/me/board-themes/me/selection/board-themes/me/selection/board-themes/board-themes/:themeId/board-themes/:themeId/grantChecklist
npm run lintpasses for the new filesnpm run format:checkpassesnpm run typecheck: no new errors (mainalready has 149 existing errors; this PR adds none)npm testpasses for the new suiteCONTRIBUTING.mdRisk & rollout
Additive only: new tables and new routes, with no changes to existing modules other than registering the module in
AppModule. The tables are created bysynchronizeoutside production. Production needs a migration, like the other recent feature modules.Closes #464