feat: setup shell and files routes

- previously the nproject name to the backend was passed like 'C--USERS-...' and it used the legacy project-config.json file in .claude to get the original workspace paths,
However, now we are directly passing the workspace and no parsing is necessary for the routes.
So I modified the extractProjectDirectory to just return the project name.
This commit is contained in:
Haileyesus
2026-04-08 15:30:28 +03:00
parent 7c8819cf34
commit 4a4a1e1803
18 changed files with 378 additions and 50 deletions

View File

@@ -16,6 +16,8 @@ import { WebSocketProvider } from './contexts/WebSocketContext';
import i18n from './i18n/config.js';
import { SystemUIProvider } from '@/components/refactored/shared/contexts/system-ui-context/SystemUIProvider';
import { RootLayout } from '@/components/refactored/shared/layout/RootLayout';
import StandaloneShellRouterAdapter from '@/components/standalone-shell/view/StandaloneShellRouterAdapter';
import FileTreeRouterAdapter from '@/components/file-tree/view/FileTreeRouterAdapter.js';
const isValidRouteTab = (value: string | undefined): boolean => {
if (!value) {
@@ -116,6 +118,8 @@ const router = createBrowserRouter(
element: <WorkspaceLayout />,
children: [
{ index: true, element: <Navigate to="chat" replace /> },
{ path: 'shell', element: <StandaloneShellRouterAdapter /> },
{ path: 'files', element: <FileTreeRouterAdapter /> },
{ path: ':tab', element: <WorkspaceTabRoute /> },
],
},
@@ -123,6 +127,7 @@ const router = createBrowserRouter(
path: 'sessions/:sessionId',
children: [
{ index: true, element: <Navigate to="chat" replace /> },
{ path: 'shell', element: <StandaloneShellRouterAdapter /> },
{ path: ':tab', element: <WorkspaceTabRoute /> },
],
},