Skip to content

fix(components): show aliases as autocomplete options in lineage filter#1113

Open
fhennig wants to merge 2 commits into
mainfrom
feat/lineage-filter-show-aliases
Open

fix(components): show aliases as autocomplete options in lineage filter#1113
fhennig wants to merge 2 commits into
mainfrom
feat/lineage-filter-show-aliases

Conversation

@fhennig
Copy link
Copy Markdown
Contributor

@fhennig fhennig commented May 7, 2026

resolves #926

Summary

  • Aliases defined in the lineage definition file are now shown as direct autocomplete options in the lineage filter, both as exact matches (e.g. BA.3.2) and wildcards (e.g. BA.3.2*)
  • Aliases are deduplicated case-insensitively, so lowercase noise variants (e.g. ba.3.2, bA.3.2) are not shown as separate options
  • Removes the findMissingPrefixMappings function introduced in fix(components): add missing lineage prefixes to autocomplete list #1024, which handled a subset of this problem (aliases that happened to be prefixes of other lineage names). The new approach is simpler and covers all alias cases, making the prefix detection logic redundant.

Background

PR #1024 (d1f34bb) added support for alias-based prefix wildcards (e.g. BA.3.2* when BA.3.2 is an alias of B.1.1.529.3.2 and BA.3.2.1 exists in the tree). However, if the alias was not a prefix of any other lineage name, it was silently omitted from the dropdown entirely — which is the case for leaf lineages like B.1.1.529.3.2 with alias BA.3.2 when no children use BA.3.2 as their name prefix.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 7, 2026

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

Project Deployment Actions Updated (UTC)
dashboard-components Ready Ready Preview, Comment May 7, 2026 1:44pm

Request Review

Previously, aliases were only used to generate prefix wildcard items
(e.g. BA.3.2*) when the alias happened to be a prefix of another lineage
name in the tree. This meant aliases that are not prefixes of anything
(e.g. BA.3.2 when it has no children named BA.3.2.x) were silently omitted.

The fix simplifies the logic: aliases are now always shown as direct
autocomplete options (both exact and wildcard), deduplicated
case-insensitively to avoid showing noise from lowercase variants.
This also makes the previous findMissingPrefixMappings function redundant
and removes it entirely.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@fhennig fhennig force-pushed the feat/lineage-filter-show-aliases branch from 491ced5 to 0696291 Compare May 7, 2026 13:40
@fhennig fhennig self-assigned this May 7, 2026
@fhennig fhennig requested a review from fengelniederhammer May 7, 2026 13:42
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.

Support searching lineages using aliases

1 participant