Commit 679b2df
feat(humevoicechat): redesign with empathic-ai UI pattern
Completely redesigned HumeVoiceChat component to match the empathic-ai
reference implementation:
**Message Cards with Emotion Insights:**
- Each message now displays top 3 emotions as colored progress bars at the
bottom
- Uses Hume's official emotion color palette from expressionColors
- Shows emotion name, percentage score, and animated progress bar
- Message cards include role, timestamp, content, and emotion card
**Floating Controls Bar:**
- Bottom-floating controls with gradient fade background (empathic-ai style)
- Circular mute/unmute toggle button with purple highlight
- MicFFT audio visualization (24-bar SVG) using real FFT data from Hume
- Red "End Call" button
- All controls in rounded pill container with shadow
**Improved Layout:**
- Fully scrollable messages container with auto-scroll on new messages
- Empty state with centered mic icon
- Better spacing with 6rem padding-bottom for controls
- Cleaner, more focused UI matching the empathic-ai reference
**Technical Improvements:**
- Created EmotionCard component for reusable emotion display
- Created MicFFT component for SVG-based audio visualization
- Removed old purple wave animation in favor of real FFT data
- Simplified connection flow and status handling
- Better TypeScript-like props normalization for message content
All based on the empathic-ai reference at /empathic-ai/components.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent d377a8b commit 679b2df
File tree
7 files changed
+7887
-273
lines changed- src
- components
- empathy
- data/empathy-lab
- styles/components
7 files changed
+7887
-273
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
| 523 | + | |
523 | 524 | | |
524 | 525 | | |
525 | 526 | | |
| |||
0 commit comments