mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-05-17 09:30:05 +00:00
feat: add chat route and remove quicksettings panel unnecessary settings
This commit is contained in:
@@ -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 /> },
|
||||
|
||||
@@ -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">
|
||||
|
||||
20
src/components/refactored/chat/view/ChatInterface.tsx
Normal file
20
src/components/refactored/chat/view/ChatInterface.tsx
Normal 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>
|
||||
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user