Skip to content

feat: search the Pokédex with filters - #28

Merged
voltcrash merged 3 commits into
mainfrom
feat/power-search
Sep 30, 2026
Merged

voltcrash merged 3 commits into
mainfrom
feat/power-search

Conversation

@voltcrash

Copy link
Copy Markdown
Owner

Finding "fast Pokémon weak to Ice that aren't legendary" meant juggling toggles, and most questions, like "who resists Fire?", couldn't be asked at all.

The search box now understands a small filter language alongside names:

Filter Example
Base stats (hp atk def spa spd spe bst) spe>100, atk>=120, bst<400
Type type:fire (two for dual types)
Matchups weak:ground, resists:fire, immune:electric
Generation gen:4, gen:1-3, gen:kanto
Ability ability:levitate, ability:"water absorb"
Flags is:legendary mythical baby final mega gmax regional form mono dual
Size height>2 (metres), weight<10 (kilograms)
Exclude -type:flying, -is:legendary
  • Filters combine with name text and the existing type, generation and tag controls, and they light up the Dex wall.
  • Each filter reads back as a removable chip in plain language ("Speed above 100", "Not legendary"). Tokens that can't be read show as "Can't read type:cake" instead of silently returning nothing.
  • "Search tips" lists the syntax; picking an example adds it.
  • The ⌘K palette uses the same search and offers "See all N matches in the Pokédex".
  • Alternate forms stay hidden for plain filters, as before, but is:mega, is:gmax, is:regional and is:form search them.
  • The browse index gains abilities, height and weight so everything runs in the browser.

Stacked on #27.

Validated with vp check, vp run check, vp test and vp build.

🤖 Generated with Claude Code

voltcrash and others added 3 commits September 27, 2026 15:25
The search box now reads filters for base stats, type, matchups,
generation, ability, height, weight and flags such as is:legendary or
is:mega, and any filter can be negated with a leading minus. Words that
are not filters still search names. The browse index gains abilities,
height and weight so the filters run in the browser.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Each filter reads back in plain language ("Speed above 100") so it is
clear what the search understood, and tokens it can't read are flagged.
Search tips list the syntax; picking an example adds it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
dexa Ready Ready Preview Sep 27, 2026 9:56am UTC

@voltcrash
voltcrash changed the base branch from feat/dex-wall to main September 30, 2026 10:13
@voltcrash
voltcrash merged commit 56958c8 into main Sep 30, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 179beaa8 Deployed Sep 27, 2026 by vercel[bot]
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