What this page does
Use this page to manage which games belong to one casino sub-category. The page has two lists:
- Games you add will appear here: games currently assigned to the selected sub-category.
- Available Games: active casino games that can be assigned to the selected sub-category.
The route and code call the selected id categoryId, but in this workflow it is the selected sub-category id.
What operators can do
- Add one available game into the sub-category.
- Remove one current game from the sub-category.
- Search both lists by name and game code.
- Filter available games by provider.
- Show removed games on the available side.
- For
bonus-excludedsub-categories, show only games excluded due to the Buy-In feature. - Bulk upload games by pasting game names into the Upload Games modal.
- Reset changed game mappings back to their previous valid/invalid state.
How Add and Remove work
Adding or removing a game changes the sub-category/game mapping row. The update flow keeps mapping history by updating the join row instead of simply deleting it.
- Adding a game sets the mapping as valid.
- Removing a game sets the mapping as invalid.
- Both actions can toggle the change marker used by the page to show changed rows.
- The current list highlights changed rows in green.
- The available list can highlight removed changed rows in red when they are returned by the available-games query.
How Upload Games works
The Upload Games modal is a two-step flow.
First, the operator pastes game names and clicks Upload Order. The precheck compares pasted names with existing casino games. If some names are not found, the modal lists them and asks the operator whether to continue anyway.
Second, the operator clicks Continue Upload New Game or Continue Upload anyway. The merge flow assigns the matching games to the selected sub-category and returns how many games were merged.
How Reset works
Reset only affects mappings marked as changed. It flips each changed mapping back by toggling both the valid flag and the change marker. If there are no changed mappings, reset returns a no-op result.
Known caveats
- This page manages game membership for a sub-category. It does not edit the sub-category record itself.
- The page title says
category, but the selected id is the sub-category id. - Search changes reset the matching list to page 1.
- Add and remove update local list state immediately, then send the save request and refresh list data.
- Reset is confirmed in a modal, but the page-level reset handler also refreshes list data immediately after starting the reset request.
- The Buy-In excluded filter is shown only when the selected sub-category English name contains
bonus-excluded. - Buy-In exclusion logic also depends on the casino setting that controls exclusion of Buy-In games from bonus play.