feat: unify plugin workspace navigation

This commit is contained in:
2026-09-03 13:39:55 +08:00
parent 959e2faf03
commit 1b1f206dd8
27 changed files with 3097 additions and 1100 deletions

View File

@@ -105,22 +105,13 @@ describe('MainLayout module isolation', () => {
expect(screen.getByTestId('titlebar-stub')).toHaveAttribute('data-overlay', 'false');
});
it('allows the project Plugin Center to resolve identity before initialization', () => {
renderLayout('/project-plugins');
it('keeps the canonical plugin workspace outside the local project initialization gate', () => {
renderLayout('/plugins');
expect(screen.getByTestId('route-content')).toBeVisible();
expect(screen.queryByTestId('project-initialization-gate')).not.toBeInTheDocument();
});
it.each(['/plugin-marketplace', '/my-plugins'])(
'keeps global plugin route %s outside the local project initialization gate',
(path) => {
renderLayout(path);
expect(screen.getByTestId('route-content')).toBeVisible();
expect(screen.queryByTestId('project-initialization-gate')).not.toBeInTheDocument();
},
);
it('keeps the programming workspace padding compensation separate from painting', () => {
renderLayout('/chat');