Skip to content

fix(supported): fold live-catalog brand typos onto canonical names - #109

Merged
jazzstack merged 1 commit into
OpenMouse-Project:devfrom
jazzstack:fix/brand-typos-live-catalog
Aug 16, 2026
Merged

fix(supported): fold live-catalog brand typos onto canonical names#109
jazzstack merged 1 commit into
OpenMouse-Project:devfrom
jazzstack:fix/brand-typos-live-catalog

Conversation

@jazzstack

Copy link
Copy Markdown

What The supported-devices page was still showing multiple similar Redragon groups, some misspelled. Root cause: the support catalog stores manufacturer as free text, and canonicalBrand() only folded the exact reddragon typo. Querying the live catalog (377 rows) showed: - redragon (lowercase) x5 and RedDragon x2 alongside Redragon x13 - other typos: Logitec, Glorius, rapoo Vpro ## Fix canonicalBrand() now: - derives canonical display names from the static table keyed by normalized form, so any casing/spacing variant of a known brand (e.g. redragon, LogiTech, steelseries, g-wolves) renders with the canonical name - keeps an explicit alias map for genuine spelling typos (reddragon, logitec, glorius, rapoovpro) ## Verification - Verified against the live catalog: all 20 Redragon-family rows render under Redragon; distinct brands drop 161 -> 127 - npm test: 81 pass - npm run build: clean

The support catalog stores manufacturer as free text, so spellings like
'redragon' (lowercase), 'RedDragon', 'Logitec', 'Glorius' and 'rapoo Vpro'
rendered as their own brand groups on the page. canonicalBrand() now maps
every normalized variant of a known static-table brand onto its canonical
display name, with an explicit alias map for genuine spelling typos. The
whole Redragon family (20 catalog rows) now renders under 'Redragon'.
@jazzstack
jazzstack merged commit 975a99d into OpenMouse-Project:dev Aug 16, 2026
3 checks passed
@jazzstack
jazzstack deleted the fix/brand-typos-live-catalog branch August 16, 2026 12:49
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