fix: Dashboard map respects Map Pin Style setting (#3364)#3381
Merged
Conversation
The Dashboard/Unified Map called createNodeIcon() without a pinStyle, so it always fell back to the default 'meshmonitor' pin markers and ignored the user's configured Map Pin Style. Read mapPinStyle from useSettings() and forward it, matching NodesTab and MapAnalysis. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
Claude finished @Yeraze's task —— View job Code Review CompleteReviewing PR #3381 for code quality, potential bugs, performance, security, and test coverage. Todo List:
Review SummaryThis is a high-quality, focused fix that properly addresses the inconsistency in Map Pin Style settings across different map views. The implementation is solid and follows the existing codebase patterns well. ✅ Positive Aspects
🔍 Technical AnalysisCode Quality & Best Practices
Implementation DetailsThe fix is implemented correctly at const icon = createNodeIcon({
// ... existing params
pinStyle: mapPinStyle, // ✅ This was missing before
});This matches the pattern in Test CoverageThe regression test at
🚫 No Issues Found
📋 Minor Observations
🎯 Final AssessmentThis is an exemplary small fix that:
Recommendation: ✅ Approve - This change is ready to merge. |
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
The Dashboard ("Unified") map ignored the Map Pin Style setting and always rendered nodes as the default MeshMonitor pins, regardless of what the user selected (e.g. "Official Meshtastic circles"). This was inconsistent with every other live map view. The Dashboard map now reads the configured pin style and forwards it, so node markers honor the setting like
NodesTaband the Map Analysis workspace already do.Changes
src/components/Dashboard/DashboardMap.tsx: importuseSettings, readmapPinStyle, and passpinStyle: mapPinStyleinto thecreateNodeIcon(...)marker call (it previously omittedpinStyle, defaulting to'meshmonitor').src/components/Dashboard/DashboardMap.test.tsx: adduseSettingsto theSettingsContextmock and add a regression test asserting the configured pin style is forwarded tocreateNodeIcon.Issues Resolved
Fixes #3364
Documentation Updates
No documentation changes needed — this restores already-documented Map Pin Style behavior on the Dashboard map.
Testing
🤖 Generated with Claude Code