Commit 5bcb4ff
* feat(map): add unifiedNodeKey identity helper (#3788)
Canonical cross-source node-identity helper for the upcoming node
selection/follow feature — mt:<nodeNum> / mc:<publicKey> keying,
plus isNodeEmphasized/selectionOpacity dimming helpers. Includes a
drift-guard test asserting the keys match what mergeUnifiedSourceData
buckets on.
* refactor(dashboard): use unifiedNodeKey in mergeUnifiedSourceData (#3788)
Replace the inline mt:/mc: keying block with a call to the new
unifiedNodeKey() helper so the merge and the node-selection feature
can never drift on identity. Behavior-preserving: unifiedNodeKey
implements the exact same MeshCore publicKey/nodeId fallback and
Meshtastic numeric-nodeNum checks the inline code did, including the
null-key skip.
* feat(map): add selectedNodeIds to MapAnalysisConfig (#3788)
Persisted array of unifiedNodeKey identities driving the map's node
selection/follow/dimming feature. load() coerces a missing or
non-array value to [] so old persisted configs and garbage don't
throw. Adds setSelectedNodeIds mirroring the existing setSources
pattern.
* feat(map): shared node hook + selection dimming + picker wiring (#3788)
- useAnalysisNodes(): extract the markers filter (hideFromMap, search,
node-type, source allow-list) into a shared hook so the picker and the
map markers layer agree on identity/visibility. Moves NodeRecord out of
NodeMarkersLayer and adds publicKey for unifiedNodeKey.
- NodeMarkersLayer: consume useAnalysisNodes() instead of its inline
filter; apply selection dimming via the Marker opacity prop only
(isNodeEmphasized/selectionOpacity), leaving iconSig/divIcon and the
spiderfier keyOf untouched.
- NodeMultiSelect: new toolbar picker mirroring SourceMultiSelect
(pill + popover, Select all / Clear).
- MapAnalysisToolbar: build deduped/sorted node options from
useAnalysisNodes() and mount NodeMultiSelect after NodeSearchControl.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015AFBA76hsjqhsXe1BdnYub
* test(map): cover useAnalysisNodes, NodeMultiSelect, marker dimming (#3788)
- useAnalysisNodes.test.tsx: positioned+visible filtering, mt:/mc: key
derivation, hideFromMap/unpositioned exclusion, config.sources allow-list.
- NodeMultiSelect.test.tsx: pill label, checkbox toggle, Select all, Clear
(only shown when a selection is active).
- NodeMarkersLayer.test.tsx (spec test #6, optional stretch): thin render
test mocking react-leaflet's Marker to capture the opacity prop, proving
the isNodeEmphasized/selectionOpacity wiring dims unselected markers.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015AFBA76hsjqhsXe1BdnYub
* feat(map): dim unselected node trails on the analysis map (#3788)
Apply the WP-A selection-emphasis helpers (isNodeEmphasized/selectionOpacity)
to PositionTrailsLayer polylines, mirroring marker dimming. Trails are
Meshtastic-only (nodeNum-keyed), so identity is `mt:${nodeNum}`; an empty
selection leaves opacity unchanged at 0.7.
* docs(map): document node selection & emphasis; add epic plan + Phase 1 spec (#3788)
- User docs: map-analysis.md gains a "Node selection & emphasis" section, a
toolbar-table row, and a persistence-list mention.
- Internal: commit the epic plan (MAP_FOLLOW_AUTOZOOM_EPIC.md) with Phase 1
marked done + browser-validation evidence, and the Phase 1 implementation
spec (PHASE1_NODE_SELECTION_SPEC.md).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015AFBA76hsjqhsXe1BdnYub
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent e9aed2e commit 5bcb4ff
17 files changed
Lines changed: 1060 additions & 70 deletions
File tree
- docs
- features
- internal/dev-notes
- src
- components/MapAnalysis
- layers
- hooks
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
66 | 84 | | |
67 | 85 | | |
68 | 86 | | |
| |||
153 | 171 | | |
154 | 172 | | |
155 | 173 | | |
156 | | - | |
| 174 | + | |
157 | 175 | | |
158 | 176 | | |
159 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
0 commit comments