小橙子 f4940472bb
feat(desktop): UX Phase 1 quick wins + Sidebar refactor (#11)
* feat(desktop): Phase 1 Quick Wins - accessibility and UX improvements

Implement Phase 1 "Quick Wins" for desktop UX optimization:

Accessibility:
- Add ARIA attributes to MessageList (role="log", aria-live="polite")
- Add ARIA attributes to StreamingIndicator (role="status")
- Add aria-label to TabBar scroll buttons
- Localize hardcoded Chinese strings in BrowserAddressBar and BrowserSurface

User Experience:
- Create shared Skeleton component for loading states
- Replace Sidebar text loading with skeleton placeholders
- Refactor TraceListSkeleton to use shared Skeleton component
- Create DOM-based Tooltip component with keyboard shortcut hints
- Add Tooltip to Sidebar "New session" button (⌘N)

Internationalization:
- Add new translation keys for all 5 locales (en, zh, zh-TW, jp, kr)
- Add browser navigation translations
- Add tab scroll translations
- Add chat message log translation

New components:
- desktop/src/components/shared/Skeleton.tsx
- desktop/src/components/shared/Tooltip.tsx

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* refactor(sidebar): extract utilities and components from Sidebar.tsx

Extract ~830 lines from Sidebar.tsx into focused modules:
- sidebarUtils.ts (~390 lines): pure utility functions for project grouping, localStorage persistence, preferences, path manipulation, and time formatting
- sidebarComponents.tsx (~340 lines): presentational components (icons, NavItem, ProjectHeaderMenu, SessionRowMeta, etc.)

Sidebar.tsx reduced from 1979 lines to ~1150 lines. TypeScript compilation passes. Existing tests need updating for vi.hoisted API.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: 你的姓名 <you@example.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-11 20:22:36 +08:00
..
2026-06-11 15:31:36 +08:00

Claude Code Haha Desktop

基于 Tauri 2 + React 的桌面客户端。

开发

bun install
bun run tauri dev

构建

# macOS (Apple Silicon)
./scripts/build-macos-arm64.sh

# Windows (x64, MSI only)
.\scripts\build-windows-x64.ps1

构建产物位于 build-artifacts/ 目录,文件名会显式包含平台、架构和包类型。

常见问题

macOS 提示"已损坏,无法打开"

xattr -cr /Applications/Claude\ Code\ Haha.app