Skip to content

feat(messages): HeardPathMap in heard dialog for MT and MC (#304)#308

Merged
pskillen merged 6 commits into
mainfrom
ui-267/pskillen/meshcore-path
May 27, 2026
Merged

feat(messages): HeardPathMap in heard dialog for MT and MC (#304)#308
pskillen merged 6 commits into
mainfrom
ui-267/pskillen/meshcore-path

Conversation

@pskillen

@pskillen pskillen commented May 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Extract shared buildSegments from TracerouteMap for reuse.
  • Add HeardPathMap — sender + per-feeder legs with dashed lines when path_known is false (MT always; MC v1 with hash tooltips).
  • Widen heard dialog; show map above observation cards; MC path hash badges.
  • Map markers — shared Leaflet divIcon CSS (pin + label) so sender/feeder markers render, not just polylines.
  • MC channel sender — uses API mc_sender_candidates / sender_position when exactly one inferred node has coordinates; note when duplicate names match multiple nodes.
  • MC message headermessageSenderDisplay: 1 candidate → node name + link; 0 → Anonymous; >1 → parsed label + “N matches” badge; consecutive grouping uses inferred sender key.
  • Sender position unknown — heard map still shows feeder markers with explanatory overlay when path lines omitted.

Depends on meshflow-api PR #370 (message sender_position, heard[] path fields, mc_sender_candidates).

Closes #304

Part of meshflow-api#267

Testing performed

  • npm run test (vitest, including message-display-sender.test.ts)
  • npm run build
  • Unit tests: map-path-segments, heard-path-map-adapters, message-display-sender, existing TracerouteMap polyline tests

Share path segment builder for traceroute and message heard maps.
Protocol-agnostic map with dashed paths when hop positions unknown.
Widen heard dialog; show sender, feeders, path hash badges for MeshCore.
Shared Leaflet marker CSS; mc_sender_candidates for map when unambiguous.
Overlay warning and draw listener markers without path lines.
When mc_sender_candidates has exactly one node, show its name with a
link instead of Anonymous; multiple matches show label plus badge;
group consecutive messages by inferred sender key.
@pskillen pskillen merged commit 7fee264 into main May 27, 2026
7 checks passed
@pskillen pskillen deleted the ui-267/pskillen/meshcore-path branch May 27, 2026 15:47
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.

[MeshCore P3] Show passive packet path in UI

2 participants