feat: Implement game type filter for expansion selection in Cube Manager, adding 'digital' property to Scryfall sets and corresponding UI.
Some checks failed
Build and Deploy / build (push) Failing after 58s

This commit is contained in:
2025-12-16 23:10:59 +01:00
parent faa79906a8
commit 552eba5ba7
4 changed files with 59 additions and 6 deletions

View File

@@ -0,0 +1,15 @@
# Game Type Filter for Expansion Selection
## Objective
Add a filter to the "From Expansion" set selection to easily distinguish between Paper and Digital (MTGA/MTGO) sets.
## Implementation Details
1. **ScryfallService Update**: Updated `ScryfallSet` interface to include the `digital` boolean property and mapped it in `fetchSets`.
2. **CubeManager UI**: Added a toggle filter bar above the set list with three options:
* **All**: Shows all sets.
* **Paper**: Shows only sets where `digital` is false.
* **Digital**: Shows only sets where `digital` is true.
3. **Filter Logic**: Integrated the game type filter into the existing search filter logic in `CubeManager`.
## Status
Completed. Users can now filter the expansion list by game type.