Search the champion table by name and known aliases (#18) #42

Merged
nessar merged 1 commits from feat/18-champion-search into main 2026-11-17 23:40:34 +01:00
Owner

Implements #18: a search field above the champion table.

  • Filters the rows as the user types, combined with the state filter and keeping the sort. The Challenge summary and charts are untouched.
  • A row matches when the normalized query (case, accents, spaces, punctuation ignored) is part of its French name or Data Dragon id, or equals one of its aliases exactly. Every alias of the researched U.GG and Liquipedia inventory is in crates/core/src/champion_aliases.tsv, keyed by Data Dragon id, plus «Nunu & Willump».
  • collate (the sort key) now folds a few more accented letters so search can reuse it. No current catalog name is affected.

Tests: core unit tests (the three examples, variants, every alias, ren, blank, no match) and a GPUI test that types, clears and combines with a state filter and the sort. All pass.

Still to do before closing #18:

  • Rule #1 measurement on a release build on the reference machine (not done: the only runs were on the desktop and were not comparable).
  • Typing and clearing the field by hand in the Windows app.

🤖 Generated with Claude Code

Implements #18: a search field above the champion table. - Filters the rows as the user types, combined with the state filter and keeping the sort. The Challenge summary and charts are untouched. - A row matches when the normalized query (case, accents, spaces, punctuation ignored) is part of its French name or Data Dragon id, or equals one of its aliases exactly. Every alias of the researched U.GG and Liquipedia inventory is in `crates/core/src/champion_aliases.tsv`, keyed by Data Dragon id, plus «Nunu & Willump». - `collate` (the sort key) now folds a few more accented letters so search can reuse it. No current catalog name is affected. Tests: core unit tests (the three examples, variants, every alias, `ren`, blank, no match) and a GPUI test that types, clears and combines with a state filter and the sort. All pass. Still to do before closing #18: - Rule #1 measurement on a release build on the reference machine (not done: the only runs were on the desktop and were not comparable). - Typing and clearing the field by hand in the Windows app. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
nessar added 1 commit 2026-11-17 23:34:16 +01:00
Search the champion table by name and known aliases (#18)
CI / core (pull_request) Successful in 1m9s
CI / core (push) Successful in 36s
3edfa629d4
A search field above the table filters the rows as the user types, with the
state filter and the sort kept. A row matches when the normalized query (case,
accents, spaces and punctuation ignored) is part of its name or Data Dragon id,
or equals one of its aliases exactly. The aliases come from the U.GG and
Liquipedia inventory researched for the ticket and are stored locally by
Data Dragon id.

Not measured yet against the rule #1 budgets (release build, reference machine).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
nessar merged commit 3edfa629d4 into main 2026-11-17 23:40:34 +01:00
nessar deleted branch feat/18-champion-search 2026-11-17 23:40:34 +01:00
Sign in to join this conversation.