Skip to content

feat(rx-coverage): name the repeaters that picked up an uplink ping - #22

Merged
efiten merged 1 commit into
masterfrom
feat/uplink-hop-names
Oct 16, 2026
Merged

efiten merged 1 commit into
masterfrom
feat/uplink-hop-names

Conversation

@efiten

@efiten efiten commented Oct 16, 2026

Copy link
Copy Markdown
Owner

What

The Uplink layer tooltip showed "picked up by: C0CD, 1403". It now shows the repeater names.

  • cmd/server/uplink_coverage.go: nameUplinkFirstHops adds first_hop_names (parallel to first_hops) with one batchResolveHeardKeys call for all prefixes in the response. Same rules as the RX dashboard: nodes plus client_node_names, an ambiguous, unknown, blacklisted or hidden prefix gets "".
  • public/rx-coverage.js: the tooltip uses the name, falls back to the uppercase prefix.
  • first_hops is unchanged, so the response stays backward compatible.

Tests

  • go test ./cmd/server passes; TestUplinkCoverageEndpoint checks a unique prefix gets its name and an ambiguous one stays empty.
  • tests/unit/test-rx-coverage-uplink.js checks the name replaces the prefix, is escaped, and an empty name keeps the prefix.
  • scripts/check-xss-sinks.sh --file public/rx-coverage.js exit 0.
  • Not run locally: the Playwright E2E (the mock has no names, so its path is unchanged).

🤖 Generated with Claude Code

The Uplink tooltip listed first hops as 2-byte prefixes. /api/uplink-coverage
now adds first_hop_names, parallel to first_hops, resolved with one
batchResolveHeardKeys call per response (nodes plus client_node_names). An
unknown, ambiguous, blacklisted or hidden prefix gets an empty name and the
tooltip keeps showing the prefix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@efiten
efiten merged commit 24ffeb5 into master Oct 16, 2026
12 checks passed
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