Skip to content

🎨 Palette: Inline Clipboard Feedback & Accessibility - #54

Open
anaxifty wants to merge 1 commit into
mainfrom
palette/clipboard-feedback-3301648436981492107
Open

🎨 Palette: Inline Clipboard Feedback & Accessibility#54
anaxifty wants to merge 1 commit into
mainfrom
palette/clipboard-feedback-3301648436981492107

Conversation

@anaxifty

Copy link
Copy Markdown
Owner

I have implemented a micro-UX enhancement that provides consistent, accessible inline feedback for all clipboard "Copy" operations throughout the application.

Changes:

  • CSS: Added a .copy-success class in style.css using the existing --ok token for brand-consistent success styling.
  • Utilities: Introduced a centralized copyFeedback(btn, text) utility in js/utils.js that handles visual state, mutex protection (to prevent rapid-click glitches), and ARIA label synchronization.
  • Integration:
    • Chat Messages: Assistant message "Copy" actions now show "Copied!" inline.
    • Code Blocks: The "Copy code" button in markdown blocks now provides visual confirmation.
    • Canvas/Artifacts: The copy button in the Canvas panel now provides inline feedback.
    • Share Modal: Updated the "Copy to Clipboard" button with feedback and added a 700ms delay before the modal closes, ensuring users perceive the success state.

Accessibility:

  • Every copy action now dynamically updates the aria-label of the target button during the feedback cycle, ensuring screen reader users receive immediate confirmation of the successful copy operation.

Verification:

  • Verified via a local Python server and Playwright script.
  • Confirmed that button states revert correctly and icons are preserved during the feedback cycle.
  • Syntax validated with node -c.

PR created automatically by Jules for task 3301648436981492107 started by @anaxifty

Added a consistent inline feedback mechanism for all clipboard "Copy" actions across the app. This provides immediate, localized confirmation that text was successfully copied, improving both visual intuition and accessibility (via updated aria-labels).

- Added .copy-success CSS and copyFeedback utility in js/utils.js.
- Integrated feedback into chat messages, markdown code blocks, canvas panel, and share modal.
- Improved Share Modal UX by delaying closure after copy to allow feedback perception.

Co-authored-by: anaxifty <[email protected]>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 27, 2026

Copy link
Copy Markdown

Deploying neuraldock with  Cloudflare Pages  Cloudflare Pages

Latest commit: 76aee14
Status: ✅  Deploy successful!
Preview URL: https://704807ef.neural-dock.pages.dev
Branch Preview URL: https://palette-clipboard-feedback-3.neural-dock.pages.dev

View logs

@google-labs-jules

Copy link
Copy Markdown

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant