feat: redesign Canvas plan and reference flow

This commit is contained in:
inman
2026-09-07 10:06:38 +08:00
parent f8eee430f4
commit 1562a49ff1
18 changed files with 2141 additions and 1057 deletions

View File

@@ -121,6 +121,17 @@ describe('TitleBar platform behavior', () => {
expect(screen.queryByTestId('titlebar-project-context')).not.toBeInTheDocument();
});
it('keeps only the product chrome when a workspace owns its navigation', () => {
window.electron.platform = 'darwin';
render(<TitleBar integrated overlay showSidebarControls={false} />);
expect(screen.queryByTestId('titlebar-sidebar-surface')).not.toBeInTheDocument();
expect(screen.queryByTestId('titlebar-sidebar-toggle')).not.toBeInTheDocument();
expect(screen.getByTestId('titlebar-main-surface')).toBeInTheDocument();
expect(screen.getByTestId('titlebar-logo')).toBeInTheDocument();
});
it('keeps the painting page title after the macOS traffic-light safe area', () => {
window.electron.platform = 'darwin';
useSettingsStore.setState({ sidebarCollapsed: true });