multica/packages/ui/src
Naiyuan Qing 53c350ea33 refactor(ui,hooks): extract shared ChatView and DevicePairing to packages
- Extract ChatView from web chat-page into packages/ui as a prop-driven
  component (accepts UseChatReturn shape, no transport dependency)
- Move DevicePairing from apps/web to packages/ui with locally defined
  ConnectionIdentity type (no @multica/hooks dependency)
- Create @multica/hooks package with useGatewayConnection and useChat
  (moved from apps/web/hooks)
- Add isLoadingHistory state to useChat with skeleton loading in ChatView
- Add MulticaIcon (pure CSS asterisk via clip-path, adapts to theme)
- Slim web chat-page.tsx from 188 to 65 lines (just wires hooks to UI)

Desktop can now reuse ChatView and DevicePairing directly.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 15:28:44 +08:00
..
components refactor(ui,hooks): extract shared ChatView and DevicePairing to packages 2026-02-05 15:28:44 +08:00
hooks feat(ui): extend QR scanner hook with lifecycle control and flash API 2026-02-05 08:22:42 +08:00
lib fix(ui): render tool calls immediately from assistant toolCall blocks 2026-02-04 18:12:34 +08:00
styles feat(ui): add container utility and loading spinner component 2026-02-05 14:43:48 +08:00
index.ts feat(ui): create @multica/ui package skeleton 2026-01-30 11:34:05 +08:00