Skip to content

TKW: add house rank filter to /houses, combinable with status#41

Merged
codebend3r merged 1 commit into
mainfrom
house-extinct-filters
Jul 12, 2026
Merged

TKW: add house rank filter to /houses, combinable with status#41
codebend3r merged 1 commit into
mainfrom
house-extinct-filters

Conversation

@codebend3r

Copy link
Copy Markdown
Owner

Summary

  • Add a Rank filter to /houses, combinable with the existing status filter
  • Filter by Royal, Lordly, Knightly, Other, Exiled, or Extinct
  • Backed by a ?rank= query param, so filters are shareable and bookmarkable

Behavior

  • Rank and status AND together — e.g. ?status=extinct&rank=lordly shows extinct lordly houses
  • facetFiltered folds status + rank into one set driving the count, list, and region grouping
  • Changing rank resets to page 1

Plumbing

  • Export a HouseRank type from HouseRankSchema in lib/schemas.ts
  • app/houses/page.tsx passes each house's rank into the list items
  • .rankFilter / .rankLabel styles matching the page-size control

Tests

  • Add FilteredHouseList rank-filter suite: filtering, count, URL sync/hydration, page reset, combining with status, and region grouping

- `Rank` dropdown filters by Royal, Lordly, Knightly, Other, Exiled, Extinct
- backed by `?rank=` query param; ANDs with the existing status filter
- `facetFiltered` folds status + rank into one set for count and region grouping
- rank change resets to page 1
- export `HouseRank` type from `HouseRankSchema` in `lib/schemas.ts`
- `.rankFilter`/`.rankLabel` styles matching the page-size control
@netlify

netlify Bot commented Jul 12, 2026

Copy link
Copy Markdown

Deploy Preview for theknownworld ready!

Name Link
🔨 Latest commit 48dfef5
🔍 Latest deploy log https://app.netlify.com/projects/theknownworld/deploys/6a53a30efae4860008bd008a
😎 Deploy Preview https://deploy-preview-41--theknownworld.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codebend3r
codebend3r merged commit 9417189 into main Jul 12, 2026
5 checks passed
@codebend3r
codebend3r deleted the house-extinct-filters branch July 12, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant