feat(frontend): add Linnaean rank icons to taxa display#371
Closed
frewsxcv wants to merge 2 commits into
Closed
Conversation
Introduce a RankIcon component with monochrome glyphs for each Linnaean rank (bars for phylum and above, dots on the implied polygon for class through species, hollow/split variants for sub-ranks) and surface them next to rank labels in the taxon detail header, breadcrumb, classification list, and tree panel.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RankIconcomponent with monochrome SVG glyphs for each Linnaean rank — stacked bars for phylum and above (1/2/3 = phylum/kingdom/domain), filled dots on the implied polygon for class → species (5/4/3/2/1), hollow or gap-split variants for sub-ranks. Returnsnullfor ranks without a glyph (tribe, super-/infra-, etc.). UsescurrentColorso it inherits surrounding text color.Glyph system based on the artifact: https://claude.ai/public/artifacts/87f5a057-5438-49a2-bf65-39f117f43a4a
Screenshots
Tree panel — every rank from kingdom (Animalia) down through subspecies, each with its distinct glyph. Note that rare/unranked entries (e.g.
BOLD:AAA9440,unranked) correctly fall back to text with no icon:Species page — header reads "● Species" (filled dot), tree on the left shows the full Linnaean chain:
Family page — header reads "▴ Family" (3-dot triangle), and the tree highlights Turdidae with its 23+ child genera each marked with the 2-dot genus glyph:
Test plan
unranked, BOLD identifiers) render as text without a broken icon.Notes
TaxonDetail.tsxis also updated for consistency, but it is currently dead code — the live taxon route rendersTaxonExplorer(which usesTaxonDetailPanel+TaxonTreePanel).