Improve workspace navigation and render isolation

This commit is contained in:
Mohamed Boudra
2026-04-20 16:14:22 +07:00
parent 403fb03c97
commit a6423f7f0a
46 changed files with 2801 additions and 862 deletions
@@ -0,0 +1,20 @@
interface DesktopSidebarToggleInput {
isAgentListOpen: boolean;
isFileExplorerOpen: boolean;
openAgentList: () => void;
closeAgentList: () => void;
closeFileExplorer: () => void;
toggleFocusedFileExplorer: () => boolean;
}
export function toggleDesktopSidebarsWithCheckoutIntent(input: DesktopSidebarToggleInput): boolean {
if (input.isAgentListOpen || input.isFileExplorerOpen) {
input.closeAgentList();
input.closeFileExplorer();
return true;
}
input.openAgentList();
input.toggleFocusedFileExplorer();
return true;
}