Repository navigation
Add paste and clear buttons to text input - #14
Rezuan-Hassan wants to merge 1 commit into
Conversation
|
@Rezuan-Hassan is attempting to deploy a commit to the Moavia's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
@Rezuan-Hassan, thanks for adding these controls—the live preview confirms Paste and Clear work when clipboard access is available. One change is needed before merge: handlePaste() calls warmUp() before checking or reading the clipboard, so a denied or empty clipboard still starts downloading the Kokoro voice; the preview showed “Downloading voice… 0%” alongside the permission error. Please remove that pre-read warm-up. The text field already warms on focus, and openBook() loads the model when reading starts, so Paste can stay lightweight.
Summary of Changes
navigator.clipboard.readText()and inserts it into the controlleddraftstate.Ctrl+V.draft..button,.button-secondary,.button-small) to maintain design consistency and ensure responsive, accessible controls.Verification
npm run typecheck), linting (npm run lint), and production build (npm run build).