🎨 Palette: inline clipboard feedback interaction - #40
Conversation
Implement a consistent inline feedback mechanism for all clipboard copy actions. - Add `copyFeedback` utility in `js/utils.js` to temporarily show 'Copied!' and update ARIA labels. - Apply feedback to assistant message actions, markdown code blocks, Share Modal, and Canvas. - Add closure delay to Share Modal to ensure feedback visibility. - Record pattern in Palette journal. Co-authored-by: anaxifty <[email protected]>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Deploying neuraldock with
|
| Latest commit: |
d4996b6
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1e99295b.neural-dock.pages.dev |
| Branch Preview URL: | https://palette-clipboard-feedback-1.neural-dock.pages.dev |
💡 What:
Implemented a consistent inline feedback mechanism for all clipboard copy actions across the application.
🎯 Why:
Providing immediate inline feedback (changing button text to 'Copied!') significantly improves user confidence that a copy operation was successful, especially in addition to standard toast notifications.
📸 Before/After:
Previously, clicking a copy button only triggered a toast notification. Now, the button itself provides immediate visual confirmation:
♿ Accessibility:
aria-labelof the buttons is synchronized with the 'Copied!' state to ensure screen reader users receive the updated status.aria-labelis restored after the feedback duration (2 seconds).role="status"andaria-live="polite"via the existing toast mechanism, while the inline update provides immediate focal confirmation.PR created automatically by Jules for task 12358096729021261142 started by @anaxifty