fix(butler): wire verification gaps — pain storage init, cold start, UI mode switches
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

- Call init_pain_storage() in Tauri .setup() so pain persistence activates on boot
- Integrate useColdStart hook into FirstConversationPrompt for auto-greeting
- Add UI mode toggle section to Settings/General (already had imports)
- Add "简洁" mode switch-back button to TopBar in professional layout
- Update SemanticSkillRouter @reserved annotation to reflect active status
This commit is contained in:
iven
2026-04-09 10:38:49 +08:00
parent e6937e1e5f
commit 646d8c21af
5 changed files with 78 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
import { ClipboardList } from 'lucide-react';
import { ClipboardList, Minimize2 } from 'lucide-react';
import { Button } from './ui';
import { useUIModeStore } from '../store/uiModeStore';
interface TopBarProps {
title: string;
@@ -32,6 +33,17 @@ export function TopBar({
{/* 右侧按钮 */}
<div className="flex items-center gap-1">
{/* 切换简洁模式 */}
<Button
variant="ghost"
size="sm"
onClick={() => useUIModeStore.getState().setMode('simple')}
className="flex items-center gap-2 text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100"
title="切换到简洁模式"
>
<Minimize2 className="w-4 h-4" />
<span className="text-sm"></span>
</Button>
{/* 详情按钮 */}
{showDetailButton && onOpenDetail && (
<Button