Skip to content

🎨 Palette: Add Copy Utility to OS*2 Code Window#25

Open
rtech-technologies wants to merge 1 commit into
mainfrom
palette/copy-utility-os2-17582732603176502632
Open

🎨 Palette: Add Copy Utility to OS*2 Code Window#25
rtech-technologies wants to merge 1 commit into
mainfrom
palette/copy-utility-os2-17582732603176502632

Conversation

@rtech-technologies

Copy link
Copy Markdown
Owner

This PR introduces a micro-UX improvement to os2.html by adding a "Copy" utility to the assembly code window.

💡 What:

A context-aware "Copy" button that appears on hover or focus within the TERMINAL_FEED code 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:

  • Added aria-label="Copy assembly code" for screen readers.
  • Ensured the button is visible on focus for keyboard-only users.
  • Maintained high-contrast colors (Lime-500 on Black) for the active state.

📸 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

- 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>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 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