🎨 Palette: Add Copy Utility to OS*2 Code Window#25
Conversation
- Added an "accessible" Copy button to the code window in os2.html. - Implemented robust copy logic with navigator.clipboard and textarea fallback. - Provided visual feedback by changing button text to "Copied!" and highlighting with Lime-500. - Used Tailwind utility classes (group, group-hover, focus) for interaction. - Verified functionality and accessibility via Playwright. - Documented UX learning in .jules/palette.md. Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
|
👋 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. |
This PR introduces a micro-UX improvement to
os2.htmlby adding a "Copy" utility to the assembly code window.💡 What:
A context-aware "Copy" button that appears on hover or focus within the
TERMINAL_FEEDcode block.🎯 Why:
Users often need to copy technical snippets or assembly logic for their own workstation nodes. Manually selecting text in a dark-themed terminal UI can be cumbersome. This utility makes the process seamless and delightful.
♿ Accessibility:
aria-label="Copy assembly code"for screen readers.focusfor keyboard-only users.📸 Before/After:
The button is hidden by default and appears with a smooth transition on hover or tab-focus. Upon clicking, it provides immediate visual feedback ("Copied!") before reverting to its original state.
Implemented using Tailwind utility classes to maintain design system consistency.
PR created automatically by Jules for task 17582732603176502632 started by @rtech-technologies