feat(cloud-frontend): implement interactive canvas Voice UX & default dashboard layout preference#8339
feat(cloud-frontend): implement interactive canvas Voice UX & default dashboard layout preference#8339Dexploarer wants to merge 6 commits into
Conversation
… dashboard layout preference
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
…grations, and CLI templates
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
|
I'll analyze this and get back to you. |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
…tion or class' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
…tion or class' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
Walkthrough — Voice UX & Default UI Preference Layout
I have successfully implemented both the voice control system for the Interactive Canvas and the default dashboard interface toggle preference in the Eliza Cloud platform.
1. Default UI Interface & Layout Preference
Core Implementation
defaultUiMode('canvas' | 'classic') state and the actionsetDefaultUiMode(mode)in the Zustand store canvas-store.ts. This preference is persisted in the local storage config.canvasOpenis true,<CanvasLayout />renders.canvasOpenis false,<DashboardLayout />renders instead, unmounting the canvas to prevent page navigation from triggering unintended canvas events.<DashboardLayout />, the floating assistant pill cloud-assistant-pill.tsx remains overlayed in the bottom-center of the viewport, so pressingcmd + kor clicking the orb seamlessly slides back into the Interactive Canvas.2. Voice-Driven Canvas Interaction UX
Core Features
useVoiceChatanduseContinuousChatfrom@elizaos/ui/hookswith a stabilized React Ref (handleSendRef) to avoid stale closure state during voice/speech callbacks.Mic), thinking (Loader2), or speaking (Volume2bounce animation). Real-time preview transcript is shown in a small card overlay.Verification & Build Quality
1. Build Verification
packages/uipackage with zero TS errors:packages/cloud-frontendbuilds and finishes with zero warnings or errors:2. Biome Formatting