Skip to content

Conversation

@SimmerV
Copy link
Collaborator

@SimmerV SimmerV commented Dec 30, 2025

This PR focuses on UI/UX improvements primarily, with a bug fix. If stable, this will be a good v0.2.0 candidate.

Menu for Mobile
Moved mobile hamburger into drawer with compact header, slide-in panel, backdrop overlay, and theme toggle

Map UI

  • Moved map settings panel and combined into single bottom-right anchored stack with Legend panel
  • Added mobile map settings toggle with persistence (open on desktop, closed on mobile with button visible)
  • Node detail panel redesign. Panel is now fixed top-right card with matched styling.

Bug fix

  • OSM and Mapbox no longer reliant on serverNode to exist before rendering

@SimmerV SimmerV added this to the 0.2.0 milestone Dec 30, 2025
@SimmerV SimmerV linked an issue Dec 30, 2025 that may be closed by this pull request
@SimmerV SimmerV marked this pull request as ready for review December 30, 2025 06:32
@SimmerV SimmerV self-assigned this Dec 30, 2025
-fixed bug where clearDetailsPanel collapsed into bar
-added helper function to clear node selection on "outside click" in mobile
-reduced node detail panel size on mobile
- fixed gap at top of screen in mobile
-moved mapbox map controls to right side
-fix: outer wrapper to full view-port height, children to h-full.
-fixed: make pt-14 conditional on non-map pages. This should remove blank space at top on mobile
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements comprehensive mobile UI improvements and map interface enhancements, addressing both UX polish and a critical bug fix for map initialization. The changes introduce a mobile-first drawer navigation system, repositioned and redesigned map controls, and improved fallback logic for map centering when the server node is unavailable.

Key changes:

  • Mobile hamburger menu with slide-in drawer, backdrop overlay, and responsive theme toggle
  • Unified bottom-right map control stack combining settings panel and legend with mobile toggle support
  • Fixed bug where OSM and Mapbox maps wouldn't render without a valid serverNode by implementing fallback to any positioned node

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 10 comments.

File Description
frontend/src/pages/Map.tsx Major refactor: adds settings panel persistence, mobile toggles, serverNode fallback logic, restructured UI panels (legend, settings, node details), and improved localStorage parsing
frontend/src/components/Menu.tsx Implements mobile drawer navigation with backdrop overlay, separated mobile/desktop rendering, replaced icon images with inline SVG
frontend/src/components/Layout.tsx Adds map-specific viewport handling using dvh units and conditional overflow management
.github/workflows/ghcr.yml New workflow for building and pushing Docker images to GitHub Container Registry for both API and SPA

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

SimmerV and others added 3 commits December 30, 2025 19:49
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
-added escape to close for mobile (in environments like tablets with keyboards)
@SimmerV SimmerV merged commit 3da5fe0 into MeshAddicts:develop Dec 31, 2025
2 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.

Design: Sidebar navigation for mobile clients

1 participant