feat: add chat route and remove quicksettings panel unnecessary settings

This commit is contained in:
Haileyesus
2026-04-08 17:14:45 +03:00
parent d4366e3ad2
commit 3e43431cdb
3 changed files with 22 additions and 10 deletions

View File

@@ -21,6 +21,7 @@ import FileTreeRouterAdapter from '@/components/file-tree/view/FileTreeRouterAda
import GitPanelRouterAdapter from '@/components/git-panel/view/GitPanelRouterAdapter.js';
import { TaskMasterPanel } from '@/components/task-master/index.js';
import PluginContentRouterAdapter from '@/components/plugins/view/PluginContentRouterAdapter.js';
import ChatInterface from '@/components/refactored/chat/view/ChatInterface.js';
const isValidRouteTab = (value: string | undefined): boolean => {
if (!value) {
@@ -121,6 +122,7 @@ const router = createBrowserRouter(
element: <WorkspaceLayout />,
children: [
{ index: true, element: <Navigate to="chat" replace /> },
{ path: 'chat', element: <ChatInterface /> },
{ path: 'shell', element: <StandaloneShellRouterAdapter /> },
{ path: 'files', element: <FileTreeRouterAdapter /> },
{ path: 'git', element: <GitPanelRouterAdapter /> },

View File

@@ -5,8 +5,6 @@ import LanguageSelector from '../../../shared/view/ui/LanguageSelector';
import {
INPUT_SETTING_TOGGLES,
SETTING_ROW_CLASS,
TOOL_DISPLAY_TOGGLES,
VIEW_OPTION_TOGGLES,
} from '../constants';
import type {
PreferenceToggleItem,
@@ -61,14 +59,6 @@ export default function QuickSettingsContent({
<LanguageSelector compact />
</QuickSettingsSection>
<QuickSettingsSection title={t('quickSettings.sections.toolDisplay')}>
{renderToggleRows(TOOL_DISPLAY_TOGGLES)}
</QuickSettingsSection>
<QuickSettingsSection title={t('quickSettings.sections.viewOptions')}>
{renderToggleRows(VIEW_OPTION_TOGGLES)}
</QuickSettingsSection>
<QuickSettingsSection title={t('quickSettings.sections.inputSettings')}>
{renderToggleRows(INPUT_SETTING_TOGGLES)}
<p className="ml-3 text-xs text-gray-500 dark:text-gray-400">

View File

@@ -0,0 +1,20 @@
// Create a sample component
// TODO: Place this in a shared folder
import ErrorBoundary from "@/components/main-content/view/ErrorBoundary.js";
import { QuickSettingsPanel } from "@/components/quick-settings-panel/index.js";
export default function ChatInterface() {
return (
<div className={`h-full`}>
<ErrorBoundary showDetails>
<div className="flex h-full items-center justify-center">
<p className="text-gray-500">Chat interface goes here</p>
</div>
</ErrorBoundary>
<QuickSettingsPanel />
</div>
);
}