Description
When the sidebar is open and a file has been opened (e.g. selecting a file from the sidebar opens it in the main pane), clicking the sidebar toggle icon (the icon that opens/closes the sidebar, typically in the top bar) no longer closes the sidebar.
Steps to reproduce
- Open the application.
- Click the sidebar toggle icon to open the sidebar.
- Click on a file in the sidebar to open it.
- Click the sidebar toggle icon again.
Expected behavior
The sidebar closes, returning the user to a sidebar-less view while keeping the opened file visible in the main pane.
Actual behavior
The sidebar remains open; clicking the toggle icon has no effect once a file is open.
Likely cause
In client/src/App.tsx, the toggle button at the icon in the top bar calls setSidebarOpen(!sidebarOpen) (around line 314). After a file is opened, something (likely a focus trap, click-outside handler, or a re-render in the file viewer) is intercepting the click and preventing state from toggling, or the click is being absorbed by the now-focused file view.
Environment
- Repo:
germanescobar/coding-orchestrator
- Affected component:
client/src/components/sidebar.tsx, client/src/App.tsx
Acceptance criteria
Description
When the sidebar is open and a file has been opened (e.g. selecting a file from the sidebar opens it in the main pane), clicking the sidebar toggle icon (the icon that opens/closes the sidebar, typically in the top bar) no longer closes the sidebar.
Steps to reproduce
Expected behavior
The sidebar closes, returning the user to a sidebar-less view while keeping the opened file visible in the main pane.
Actual behavior
The sidebar remains open; clicking the toggle icon has no effect once a file is open.
Likely cause
In
client/src/App.tsx, the toggle button at the icon in the top bar callssetSidebarOpen(!sidebarOpen)(around line 314). After a file is opened, something (likely a focus trap, click-outside handler, or a re-render in the file viewer) is intercepting the click and preventing state from toggling, or the click is being absorbed by the now-focused file view.Environment
germanescobar/coding-orchestratorclient/src/components/sidebar.tsx,client/src/App.tsxAcceptance criteria