Skip to content

Commit 22c70a3

Browse files
committed
feat: add new animation and token manager pages with navigation support
This commit introduces several new animated visualization components and a shared token manager page to enhance the learning experience. The changes include: - Added new lazy-loaded components for various animation sequences (ModelConfig cache, Subagent resolution, Shadow Git checkpoint, Chat recording) - Implemented SharedTokenManager page for token sharing functionality - Updated navigation structure to include new sections in the sidebar - Enhanced AuthenticationFlow page with collapsible sections and mermaid diagrams for better documentation These additions provide comprehensive visual explanations of key system behaviors and mechanisms, improving the overall educational value of the application.
1 parent 8946b01 commit 22c70a3

16 files changed

Lines changed: 9119 additions & 1843 deletions

src/App.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const StartupFlow = lazy(() => import('./pages/StartupFlow').then(m => ({ defaul
1717
const StartupChain = lazy(() => import('./pages/StartupChain').then(m => ({ default: m.StartupChain })));
1818
const ConfigSystem = lazy(() => import('./pages/ConfigSystem').then(m => ({ default: m.ConfigSystem })));
1919
const AuthenticationFlow = lazy(() => import('./pages/AuthenticationFlow').then(m => ({ default: m.AuthenticationFlow })));
20+
const SharedTokenManager = lazy(() => import('./pages/SharedTokenManager').then(m => ({ default: m.SharedTokenManager })));
2021
const RequestLifecycle = lazy(() => import('./pages/RequestLifecycle').then(m => ({ default: m.RequestLifecycle })));
2122
const InteractionLoop = lazy(() => import('./pages/InteractionLoop').then(m => ({ default: m.InteractionLoop })));
2223
const GeminiChatCore = lazy(() => import('./pages/GeminiChatCore').then(m => ({ default: m.GeminiChatCore })));
@@ -118,6 +119,10 @@ const FileDiscovery = lazy(() => import('./pages/FileDiscovery').then(m => ({ de
118119
const CoreCode = lazy(() => import('./pages/CoreCode').then(m => ({ default: m.CoreCode })));
119120
const LoopMechanism = lazy(() => import('./pages/LoopMechanism').then(m => ({ default: m.LoopMechanism })));
120121
const EnterpriseDeployment = lazy(() => import('./pages/EnterpriseDeployment').then(m => ({ default: m.EnterpriseDeployment })));
122+
const ModelConfigCacheAnimation = lazy(() => import('./pages/ModelConfigCacheAnimation'));
123+
const SubagentResolutionAnimation = lazy(() => import('./pages/SubagentResolutionAnimation'));
124+
const ShadowGitCheckpointAnimation = lazy(() => import('./pages/ShadowGitCheckpointAnimation'));
125+
const ChatRecordingAnimation = lazy(() => import('./pages/ChatRecordingAnimation'));
121126

122127
// 页面加载 fallback
123128
function PageLoading() {
@@ -222,6 +227,8 @@ function App() {
222227
return <ConfigSystem />;
223228
case 'auth':
224229
return <AuthenticationFlow />;
230+
case 'shared-token-manager':
231+
return <SharedTokenManager />;
225232
case 'lifecycle':
226233
return <RequestLifecycle />;
227234
case 'interaction-loop':
@@ -418,6 +425,14 @@ function App() {
418425
return <CommandLoadingAnimation />;
419426
case 'tool-confirmation-anim':
420427
return <ToolConfirmationFlowAnimation />;
428+
case 'model-config-cache-anim':
429+
return <ModelConfigCacheAnimation />;
430+
case 'subagent-resolution-anim':
431+
return <SubagentResolutionAnimation />;
432+
case 'shadow-git-checkpoint-anim':
433+
return <ShadowGitCheckpointAnimation />;
434+
case 'chat-recording-anim':
435+
return <ChatRecordingAnimation />;
421436
case 'code':
422437
return <CoreCode />;
423438
case 'loop':

src/nav.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const navGroups: NavGroup[] = [
2222
{ id: 'start-here', label: 'Start Here', highlight: true },
2323
{ id: 'learning-path', label: '学习路径指南', highlight: true },
2424
{ id: 'overview', label: '架构概览' },
25+
{ id: 'e2e', label: '端到端走读', highlight: true },
2526
{ id: 'glossary', label: '术语表' },
2627
{ id: 'enterprise-deployment', label: '企业部署', highlight: true },
2728
],
@@ -195,6 +196,10 @@ export const navGroups: NavGroup[] = [
195196
{ id: 'memory-import-anim', label: 'Memory Import 解析', highlight: true },
196197
{ id: 'command-loading-anim', label: '命令加载冲突解决', highlight: true },
197198
{ id: 'tool-confirmation-anim', label: '工具确认状态机', highlight: true },
199+
{ id: 'model-config-cache-anim', label: 'ModelConfig 缓存 TTL', highlight: true },
200+
{ id: 'subagent-resolution-anim', label: 'Subagent 优先级解析', highlight: true },
201+
{ id: 'shadow-git-checkpoint-anim', label: '影子 Git 检查点', highlight: true },
202+
{ id: 'chat-recording-anim', label: '会话记录队列', highlight: true },
198203
],
199204
},
200205
{
@@ -206,6 +211,7 @@ export const navGroups: NavGroup[] = [
206211
{ id: 'upstream-diff', label: '上游改造总览', highlight: true },
207212
{ id: 'config', label: '配置系统' },
208213
{ id: 'auth', label: '认证流程' },
214+
{ id: 'shared-token-manager', label: 'Token 共享机制', highlight: true },
209215
{ id: 'startup', label: '启动流程' },
210216
{ id: 'code', label: '核心代码' },
211217
{ id: 'loop', label: 'Loop机制' },

0 commit comments

Comments
 (0)