feat: add Tile Selection and Legend visibility toggles to Map Features panel#2945
feat: add Tile Selection and Legend visibility toggles to Map Features panel#2945
Conversation
Adds meshmon.canadaverse.org to the community Site Gallery, noting its /analysis page with extended mesh data analytics. Fixes #2941
…s panel Both checkboxes default to OFF (hidden) on first load, matching the requested behavior. State persists via localStorage under 'meshmonitor-showTileSelector' and 'meshmonitor-showLegend' keys, consistent with how isMapControlsCollapsed and other UI-only map prefs are stored. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Claude finished @Yeraze's task —— View job PR Review Complete ✅I've completed a thorough review of this pull request. Here's my comprehensive analysis: Todo List:
Code Review Feedback✅ Strengths
🔧 Code QualityGood:
Minor:
🚫 No Security Concerns
⚡ Performance ConsiderationsGood:
Note:
🧪 Test Coverage AssessmentCurrent State:
Recommendations:
📝 DocumentationThe PR description is clear and explains the rationale for using localStorage over server-side preferences, which is appropriate for these UI-only toggles. 🔍 Minor Suggestions
Overall AssessmentThis is a well-implemented, low-risk PR that adds useful functionality without introducing any significant issues. The code follows existing patterns, has minimal performance impact, and provides a good user experience improvement. Recommendation: ✅ APPROVE The implementation is solid and ready to merge. The localStorage approach is appropriate for these UI-only preferences, and the code quality matches the existing codebase standards. |
* chore(release): bump version to 4.3.0 Headline feature: Waypoints — per-source storage, map rendering, and in-place authoring UI for Meshtastic WAYPOINT_APP pins. Includes since 4.2.3: - #2936/#2938 feat(waypoints): basic waypoint support - #2942 feat(waypoints): authoring UI for create/edit/delete - #2937 fix(auth): bootstrap first OIDC user as admin - #2935 fix(traceroute): stop cascading IP-style across radio segments - #2945 feat: Tile Selection / Legend visibility toggles in Map Features - #2944 fix: correct channel encryption label for unencrypted/shorthand PSKs - #2946 fix(mobile): mobile browser interface fixes - #2948 fix: map tileset selection not applying on dashboard - docs: new Waypoints feature page; 4.3 Highlights nav entry Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * docs: list Waypoints under regular Features instead of 4.3 Highlights Per Randall: Waypoints should be documented like any other feature, not called out in the nav as a "🆕 4.3 Highlights" section. - Drop the "🆕 4.3 Highlights" entry from the top nav and the /features/ sidebar; restore "🆕" on 4.2 Highlights as the most-recent callout - Add Waypoints to the regular Features sidebar list (next to Embed Maps) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * docs: drop version-Highlights nav sections, fold entries into Features Removes the "🆕 4.2 / 4.1 / 4.0 Highlights" callouts from both the top nav and the /features/ sidebar. Their pages — Analysis & Reports, Map Analysis, Multi-Source, Per-Source Permissions, Global Settings, Store & Forward, Geofence Triggers — now live in the regular Features list, slotted near topically-related entries (Multi-Source / permissions near Settings; Geofence Triggers next to Automation; Map Analysis next to Embed Maps; Analysis & Reports next to Analytics; etc.). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Summary
localStoragekeysmeshmonitor-showTileSelectorandmeshmonitor-showLegend, matching the existingisMapControlsCollapsedpattern.<MapLegend>and<TilesetSelector>rendering with the new toggles.Why localStorage
Used
localStoragerather than the server map-preferences API to keep this purely UI-only — adding DB columns/migration for two visibility toggles felt out of scope.Test plan
npx tsc --noEmitclean (verified locally).