Spaces:
Configuration error
Configuration error
Download frontend/src/workspace/WorkspaceLayout.ts from varshithreddy1807/aria: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/spaces/varshithreddy1807/aria/resolve/main/frontend/src/workspace/WorkspaceLayout.ts
- Command line
-
hf download hf://spaces/varshithreddy1807/aria/frontend/src/workspace/WorkspaceLayout.ts
-
curl -L -o WorkspaceLayout.ts https://huggingface.co/spaces/varshithreddy1807/aria/resolve/main/frontend/src/workspace/WorkspaceLayout.ts
1.01 kB
| import type { EngineeringIntent, WorkspaceMode } from './types'; | |
| export class WorkspaceLayout { | |
| public getLayoutForIntent(intent: EngineeringIntent): { | |
| mode: WorkspaceMode; | |
| leftPanelTab: string; | |
| showBottomDock: boolean; | |
| dockTab: string; | |
| } { | |
| switch (intent) { | |
| case 'Debug Issue': | |
| return { mode: 'debug', leftPanelTab: 'challenges', showBottomDock: true, dockTab: 'call_graph' }; | |
| case 'Learn Architecture': | |
| case 'Understand Repository': | |
| return { mode: 'explore', leftPanelTab: 'explorer', showBottomDock: false, dockTab: 'scenarios' }; | |
| case 'Implement Feature': | |
| return { mode: 'develop', leftPanelTab: 'apis', showBottomDock: true, dockTab: 'scenarios' }; | |
| case 'Review Pull Request': | |
| return { mode: 'review', leftPanelTab: 'architecture', showBottomDock: true, dockTab: 'architecture' }; | |
| default: | |
| return { mode: 'understand', leftPanelTab: 'explorer', showBottomDock: false, dockTab: 'scenarios' }; | |
| } | |
| } | |
| } | |