Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

refactor(desktop): move canvas controls into AppTopBar

5 months ago

5161b1d
Authored
mweinbach5/16/2026, 4:46:43 PM
When the canvas is shown in the right sidebar, the overflow menu
(Document/Source + Show Styling Bar), pop-out window, and close
buttons now render in AppTopBar's right toolbar layer instead of a
duplicate header inside the Canvas component. The context-sidebar
toggle is suppressed while canvas is active since canvas is the right
pane.

Lifts canvasActiveTab and canvasShowFormattingBar into the zustand
store so AppTopBar and Canvas share UI state. Canvas no longer renders
its own header in sidebar mode (popped-out canvas window keeps its
chrome since it has no AppTopBar).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Parent44ca567

6 files changed
  • apps/desktop/src/App.tsx+39−3
  • apps/desktop/src/app/store.actions/explorer.ts+10−0
  • apps/desktop/src/app/store.helpers.ts+4−0
  • apps/desktop/src/app/store.ts+2−0
  • apps/desktop/src/ui/Canvas.tsx+40−144
  • apps/desktop/src/ui/layout/AppTopBar.tsx+142−12