Skip to content

Conversation

@danditomaso
Copy link
Collaborator

@danditomaso danditomaso commented Apr 13, 2025

Description

This PR incorporates several new features to the Input field (copy text to clipboard, toggle password), along with several other small UI fixes focused on improved field styling.

Changes Made

  • Added Copy to Clipboard option to the Input component. This allows the user to copy the text to their system clipboard which is helpful for public keys, channel keys, etc.
  • Added Password toggle to the Input component. This generalize's the feature used in the private key field on the Security tag of the Config. This will allow any input field with a type of password to have this feature added to their field.
  • Improved consistency of suffix and prefix feature of Input field by unifying design and colors used for each.

Testing Done

Added tests for each of the custom hooks (useCopyToClipboard.ts) & (usePasswordToggle.ts).

Screenshots (if applicable)

 Screenshot 2025-04-12 at 9 31 29 pm Screenshot 2025-04-12 at 2 03 12 pm image Screenshot 2025-04-12 at 9 30 29 pm Screenshot 2025-04-12 at 2 20 09 pm Screenshot 2025-04-12 at 9 39 24 pm image

Checklist

  • Code follows project style guidelines
  • Tests have been added or updated
  • All CI checks pass
  • Dependent changes have been merged

Additional Notes

@danditomaso danditomaso requested a review from Hunter275 April 13, 2025 01:34
@vercel
Copy link

vercel bot commented Apr 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web-test ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 13, 2025 2:06am

@danditomaso danditomaso changed the title Add Copy to Clipboard option to input fields. Add Copy to Clipboard option for input fields. Apr 13, 2025
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.

2 participants