feat: add pool size badges, sorting, and optional sections to theme picker (#58)

This commit is contained in:
mwisnowski 2026-03-20 12:00:39 -07:00 committed by GitHub
parent 8efdc77c08
commit 94a43e9273
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 465 additions and 86 deletions

View file

@ -9,6 +9,15 @@ This format follows Keep a Changelog principles and aims for Semantic Versioning
## [Unreleased]
### Added
- **Deck Builder Theme Selection**: Enhanced theme picker with pool size indicators, smart sorting, and optional grouping
- **Pool Size Badges**: Numeric card count displayed on all theme chips (recommended + general)
- **Smart Sorting**: Themes automatically sorted by pool size (descending), then alphabetically
- **Visual Separator**: Clear separation between recommended and general themes with section headers
- **Pool Size Sections**: Optional grouping of themes into Vast/Large/Moderate/Small/Tiny sections, controlled by `THEME_POOL_SECTIONS` environment variable (default: off)
- **Popup Wizard Parity**: New Deck modal has full feature parity with the legacy builder (badges, sorting, sections)
- **Partner-Aware Sections**: When a partner commander is selected, partner themes are bucketed into the correct pool size section rather than appended flat
- **Pool Size Tooltips**: Section headers and the "All Available Themes" label include tooltips explaining what the card count badge means and the tier thresholds
- **Badge Styling**: Muted, compact pool size badges integrated seamlessly into chip design
- **Theme Quality Dashboard**: Diagnostic dashboard for monitoring catalog health at `/diagnostics/quality`
- **Quality Distribution**: Visual breakdown of theme counts by tier (Excellent/Good/Fair/Poor)
- **Catalog Statistics**: Total themes, average quality score displayed prominently