Skip to content

Commit 8ad1e3e

Browse files
committed
feat: add new pages and navigation items for enhanced UI and system features
This commit introduces several new pages and navigation items to improve the application's functionality and organization. Added pages include KeyBindings, SettingsManager, QuotaDetection, SummarizerSystem, OutputFormatter, CodeAssist, ReactHooksOverview, and UIComponents. These new pages provide better control over keyboard shortcuts, settings management, quota monitoring, summarization capabilities, output formatting, code assistance, React hooks overview, and UI component library. The navigation structure has been updated to include these new sections with appropriate highlighting to guide users to these enhanced features. This expansion supports a more comprehensive development environment with improved tooling and user interface capabilities.
1 parent f044291 commit 8ad1e3e

11 files changed

Lines changed: 3798 additions & 0 deletions

src/App.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,14 @@ const PromptRegistry = lazy(() => import('./pages/PromptRegistry').then(m => ({
155155
const CommandLoading = lazy(() => import('./pages/CommandLoading').then(m => ({ default: m.CommandLoading })));
156156
const PromptProcessors = lazy(() => import('./pages/PromptProcessors').then(m => ({ default: m.PromptProcessors })));
157157
const UIStateManagement = lazy(() => import('./pages/UIStateManagement').then(m => ({ default: m.UIStateManagement })));
158+
const KeyBindings = lazy(() => import('./pages/KeyBindings').then(m => ({ default: m.KeyBindings })));
159+
const SettingsManager = lazy(() => import('./pages/SettingsManager').then(m => ({ default: m.SettingsManager })));
160+
const QuotaDetection = lazy(() => import('./pages/QuotaDetection').then(m => ({ default: m.QuotaDetection })));
161+
const SummarizerSystem = lazy(() => import('./pages/SummarizerSystem').then(m => ({ default: m.SummarizerSystem })));
162+
const OutputFormatter = lazy(() => import('./pages/OutputFormatter').then(m => ({ default: m.OutputFormatter })));
163+
const CodeAssist = lazy(() => import('./pages/CodeAssist').then(m => ({ default: m.CodeAssist })));
164+
const ReactHooksOverview = lazy(() => import('./pages/ReactHooksOverview').then(m => ({ default: m.ReactHooksOverview })));
165+
const UIComponents = lazy(() => import('./pages/UIComponents').then(m => ({ default: m.UIComponents })));
158166

159167
// 页面加载 fallback
160168
function PageLoading() {
@@ -535,6 +543,22 @@ function App() {
535543
return <PromptProcessors />;
536544
case 'ui-state-management':
537545
return <UIStateManagement />;
546+
case 'key-bindings':
547+
return <KeyBindings />;
548+
case 'settings-manager':
549+
return <SettingsManager />;
550+
case 'quota-detection':
551+
return <QuotaDetection />;
552+
case 'summarizer-system':
553+
return <SummarizerSystem />;
554+
case 'output-formatter':
555+
return <OutputFormatter />;
556+
case 'code-assist':
557+
return <CodeAssist />;
558+
case 'react-hooks':
559+
return <ReactHooksOverview />;
560+
case 'ui-components':
561+
return <UIComponents />;
538562
default:
539563
return <StartHere onNavigate={(tab) => navigateToTab(tab)} />;
540564
}

src/nav.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,10 @@ export const navGroups: NavGroup[] = [
139139
defaultOpen: false,
140140
items: [
141141
{ id: 'non-interactive', label: '非交互模式' },
142+
{ id: 'output-formatter', label: '输出格式化', highlight: true },
142143
{ id: 'welcome-back', label: '会话恢复' },
143144
{ id: 'chat-recording', label: '会话录制', highlight: true },
145+
{ id: 'summarizer-system', label: 'LLM 摘要器', highlight: true },
144146
],
145147
},
146148
{
@@ -151,6 +153,9 @@ export const navGroups: NavGroup[] = [
151153
items: [
152154
{ id: 'ui', label: 'UI渲染层' },
153155
{ id: 'ui-state-management', label: 'UI 状态管理', highlight: true },
156+
{ id: 'ui-components', label: 'UI 组件库', highlight: true },
157+
{ id: 'react-hooks', label: 'React Hooks', highlight: true },
158+
{ id: 'key-bindings', label: '键盘绑定', highlight: true },
154159
{ id: 'theme', label: '主题系统' },
155160
{ id: 'telemetry', label: '遥测系统' },
156161
],
@@ -252,6 +257,9 @@ export const navGroups: NavGroup[] = [
252257
{ id: 'error-recovery-patterns', label: '错误恢复模式', highlight: true },
253258
{ id: 'concurrency-patterns', label: '并发模式详解', highlight: true },
254259
{ id: 'shared-token-manager', label: 'Token 共享机制', highlight: true },
260+
{ id: 'settings-manager', label: '设置管理器', highlight: true },
261+
{ id: 'quota-detection', label: '配额检测', highlight: true },
262+
{ id: 'code-assist', label: 'Code Assist', highlight: true },
255263
{ id: 'startup', label: '启动流程' },
256264
{ id: 'code', label: '核心代码' },
257265
{ id: 'loop', label: 'Loop机制' },

0 commit comments

Comments
 (0)