Search the champion table by name and known aliases (#18)
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>
This commit was merged in pull request #42.
This commit is contained in:
1 parent
0fbbc81b71
commit
3edfa629d4
7 files changed
+467
-28
No files matched your search
@@ -97,7 +97,7 @@ struct CatalogEntry {
|
||||
name: String,
|
||||
}
|
||||
|
||||
fn decode_catalog(version: &str, body: &str) -> Result<ChampionCatalog, SourceError> {
|
||||
pub(crate) fn decode_catalog(version: &str, body: &str) -> Result<ChampionCatalog, SourceError> {
|
||||
let file: CatalogFile = serde_json::from_str(body)
|
||||
.map_err(|e| SourceError::Other(format!("Champions illisibles : {e}")))?;
|
||||
let mut champions = file
|
||||
|
||||
Reference in new issue
Block a user