merge: retire Canvas inspiration entry

# Conflicts:
#	README.md
#	src/components/layout/MainLayout.tsx
#	src/components/layout/Sidebar.tsx
#	tests/e2e/image-workspace-v2.spec.ts
#	tests/unit/app-module-provider-gate.test.tsx
#	tests/unit/title-bar.test.tsx
This commit is contained in:
inman
2026-09-07 10:24:24 +08:00
12 changed files with 128 additions and 114 deletions

View File

@@ -64,16 +64,6 @@ describe('MainLayout module isolation', () => {
expect(screen.queryByTestId('sidebar-stub')).not.toBeInTheDocument();
});
it('keeps the user sidebar preference while moving the inspiration title into the title bar', () => {
renderLayout('/image-prompts');
expect(screen.getByTestId('titlebar-stub')).toHaveAttribute('data-page-title', '获取灵感');
expect(screen.getByTestId('titlebar-stub')).toHaveAttribute('data-overlay', 'false');
expect(screen.getByTestId('titlebar-stub')).toHaveAttribute('data-sidebar-collapsed', 'unset');
expect(screen.getByTestId('sidebar-stub')).toHaveAttribute('data-sidebar-collapsed', 'unset');
expect(useSettingsStore.getState().sidebarCollapsed).toBe(false);
});
it('does not overlay the local project initialization gate on AI hardware', () => {
renderLayout('/ai-hardware');