Skip to content

feat(frontend): show a relay type filter chip and clarify the top consensus weight limit - #618

Merged
JuliusHenke merged 1 commit into
masterfrom
feat/relay-type-chip
Oct 14, 2026
Merged

JuliusHenke merged 1 commit into
masterfrom
feat/relay-type-chip

Conversation

@JuliusHenke

Copy link
Copy Markdown
Member

What

Follow-up to #617: relay types become a visible limit like the search and the top consensus weight, and the related texts are clarified.

  • A relay type filter chip next to the other chips combines all hidden relay types ("Only Guard: 1200/9168 relays", "No relay types: 0/9168 relays"). Removing it shows all relay types again.
  • The settings group "Show relay types" is renamed to "Relay types". The relay type icon, painted in its color, replaces the round color swatch and opens the native color picker. The switch label is only the name.
  • "Show only the heaviest" is renamed to "Show top" and its chip to "Top consensus weight: X/Y relays".
  • While the limit is active, the marker tooltip says that the share is relative to the shown relays: "(1.23% of the top 50 consensus weight)".
  • The relay type switches are described by their tooltip instead of being named after it, so their accessible names are Exit, Guard and Other.

Testing

  • yarn tsc --noEmit, yarn lint clean.
  • yarn test:run: 326 tests pass, with new tests for the chip (hidden types, restore, none shown), the heading and icon, and the tooltip text with and without a limit.
  • Not reviewed visually with real data beyond what was shared during development.

No backend change, no dependency change, no deployment notes.

🤖 Generated with Claude Code

…sensus weight limit

- Combine hidden relay types in one filter chip next to the other limit chips
- Rename the group to Relay types, show the relay type icon as color picker and keep the label to the name
- Rename the limit to Show top and the chip to Top consensus weight
- Say in the marker tooltip that the weight share is relative to the top relays while the limit is active
- Describe the relay type switches by their tooltip instead of naming them after it

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@JuliusHenke JuliusHenke added enhancement New feature or request frontend labels Oct 14, 2026
@JuliusHenke
JuliusHenke marked this pull request as ready for review October 14, 2026 22:04
@github-actions

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 386d78c):

https://tormap-36f44--pr618-feat-relay-type-chip-wgo1pf0m.web.app

(expires Fri, 13 Nov 2026 22:05:57 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 0c1f71965de18e60b0e686b0d0356977fec090dc

@JuliusHenke
JuliusHenke merged commit ef6aa07 into master Oct 14, 2026
14 of 15 checks passed
@JuliusHenke
JuliusHenke deleted the feat/relay-type-chip branch October 14, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant