Skip to content

Implement collapsible side navigation panel - #85

Merged
ceoloide merged 51 commits into
mainfrom
cursor/implement-collapsible-side-navigation-panel-1e06
Nov 7, 2025
Merged

ceoloide merged 51 commits into
mainfrom
cursor/implement-collapsible-side-navigation-panel-1e06

Conversation

@ceoloide

@ceoloide ceoloide commented Nov 6, 2025 •

Copy link
Copy Markdown
Owner

Add a collapsible side navigation panel and move external links from the header to its footer.


Open in Cursor Open in Web


Note

Adds a resizable, overlay side navigation toggled from the header, replaces Split with custom resizable panels, improves mobile/editor UX, and centralizes sharing in the header.

  • Navigation/UI:
    • Side Navigation: New resizable, overlay molecules/SideNavigation with close-on-ESC, body scroll lock, footer links (Docs/Discord/GitHub), and resize handle; wired into App and toggled via header.
  • Header (atoms/Header.tsx):
    • Adds side-nav toggle button and share action (with ShareDialog).
    • Keeps “New” and archive actions; removes external links (moved to side nav).
  • Layout:
    • Replace react-split with custom molecules/ResizablePanel across editor/outputs/settings.
    • Right-side downloads panel becomes resizable; preview area adapts when downloads hidden.
    • Mobile subheader controls; mobile injection editor header with close.
  • Context (context/ConfigContext.tsx):
    • Adds showSideNav state and exposes setters.
  • Editors/Options:
    • GenOption restyled to Material-style switch; Input restyled.
    • InjectionEditor fills available space; Injections/InjectionRow add mobile edit affordance.
  • Downloads (atoms/DownloadRow.tsx):
    • Shows loading state for pending STL; allows download when KiCad preview disabled.
  • Misc:
    • Slight background color tweak in public/index.html.

Written by Cursor Bugbot for commit 992a0f9. This will update automatically on new commits. Configure here.

Introduces a new side navigation panel and integrates it into the header. The navigation can be opened and closed via a button in the header and by pressing the Escape key. The panel includes links to documentation, Discord, and GitHub. The `ConfigContext` has been updated to manage the visibility state of the side navigation.

Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
@cursor

cursor Bot commented Nov 6, 2025

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

cursoragent and others added 28 commits November 6, 2025 19:52
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
cursoragent and others added 9 commits November 7, 2025 03:51
Adjusted mobile layout for better responsiveness and panel visibility.

Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
@ceoloide
ceoloide force-pushed the cursor/implement-collapsible-side-navigation-panel-1e06 branch 2 times, most recently from a905f70 to 820152d Compare November 7, 2025 04:39
cursoragent and others added 5 commits November 7, 2025 04:40
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
@ceoloide
ceoloide marked this pull request as ready for review November 7, 2025 05:00
@ceoloide
ceoloide requested a review from Copilot November 7, 2025 05:00
@ceoloide ceoloide self-assigned this Nov 7, 2025
@ceoloide ceoloide added the enhancement New feature or request label Nov 7, 2025

Copilot AI left a comment

Copy link
Copy Markdown

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 introduces a new side navigation panel and replaces the existing react-split library with a custom ResizablePanel component. It also includes mobile responsiveness improvements and UI enhancements across various components.

  • Adds a new SideNavigation component with resizable functionality
  • Introduces a reusable ResizablePanel component to replace react-split
  • Implements mobile-specific features including a mobile editor view for injections
  • Updates several UI components with improved styling (Material Design switches, updated input styles)

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/molecules/SideNavigation.tsx New side navigation panel with resize handle and overlay
src/molecules/ResizablePanel.tsx Reusable resizable panel component with drag-to-resize functionality
src/Ergogen.tsx Major refactoring to use ResizablePanel instead of react-split, adds mobile editor state management
src/atoms/Header.tsx Adds side nav toggle button, moves share functionality from Ergogen
src/molecules/Injections.tsx Adds optional callback for mobile injection selection
src/molecules/InjectionEditor.tsx Wraps editor in flex container for proper height handling
src/atoms/InjectionRow.tsx Adds mobile-specific edit button
src/atoms/GenOption.tsx Completely redesigned from checkbox to Material Design switch
src/atoms/Input.tsx Updated styling for consistency
src/atoms/DownloadRow.tsx Refined logic for disabled states
src/context/ConfigContext.tsx Adds showSideNav state management
src/App.tsx Integrates SideNavigation component
public/index.html Updates background color

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

Comment thread src/molecules/ResizablePanel.tsx Resolved
Comment thread src/molecules/ResizablePanel.tsx Resolved
Comment thread src/Ergogen.tsx Resolved

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on December 2

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Comment thread src/Ergogen.tsx Resolved
ceoloide and others added 6 commits November 7, 2025 00:04
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
… info

Co-authored-by: marco.massarelli <marco.massarelli@gmail.com>
@ceoloide
ceoloide merged commit 0610cfa into main Nov 7, 2025
1 check passed
github-actions Bot pushed a commit that referenced this pull request Nov 7, 2025
…e-navigation-panel-1e06

Implement collapsible side navigation panel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants