Skip to content

feat(scanRift): Piltover-style card filters in the deck builder and collection - #29

Merged
KalimbaPro merged 4 commits into
devfrom
feat/deck-filters
Nov 27, 2026
Merged

KalimbaPro merged 4 commits into
devfrom
feat/deck-filters

Conversation

@KalimbaPro

Copy link
Copy Markdown
Owner

Port of iOS KalimbaPro/ScanRift#38.

  • Deck builder: a domain bar with per-domain counts, a sort menu (Number, Name, Energy, Power, Might), a filters button with an active-count badge, and removable chips for the active filters.
  • One shared filter sheet (ui/components/CardFilters.kt) for the collection and the deck builder: Card (domains, types, energy / power / might value pills with a 7+ bucket), Printing (sets, rarity, artist), Legality, Your copies, with a sticky "Show N cards" footer. CollectionFilterSheet.kt and its range sliders are removed.
  • CardFacetFilter lives in the domain layer; a costed card with no power counts as power 0.
  • Set order: Origins, Proving Grounds, Spiritforged, Unleashed, Vendetta, Radiance, then the promo sets (SetIdComparator).
  • Bundled catalogue refreshed: Radiance domains and types are corrected and each set is in printed order.
  • Version 1.5.0.

Tests: testDebugUnitTest passes (582 tests), with new CardFacetFilterTest and DeckBrowserSortTest and set-order cases in CardTest.

🤖 Generated with Claude Code

KalimbaPro and others added 3 commits November 27, 2026 15:32
…types)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ollection

- Deck builder: search, sort (number, name, energy, power, might) and a filters
  button with an active-count badge, a domain bar with counts, and removable
  active-filter chips.
- One filter sheet for both screens, grouped Card / Printing / Legality / Your
  copies: domain toggles, type chips, energy / power / might value pills (7+),
  ordered sets, rarity, and a "Show N cards" footer.
- CardFacetFilter carries every card facet, including might; a costed card with
  no power reads as power 0. The range sliders are gone.
- Sets sort Origins, Proving Grounds, Spiritforged, Unleashed, Vendetta, Radiance,
  then the other sets, in the collection, its filter and the global search.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@KalimbaPro KalimbaPro added the enhancement New feature or request label Nov 27, 2026
@KalimbaPro KalimbaPro self-assigned this Nov 27, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@KalimbaPro
KalimbaPro merged commit 64c3732 into dev Nov 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant