Skip to content

fix(profile): improve copy invite link feedback and accessibility - #48

Merged
FrankezeCode merged 3 commits into
BetterDevOrg:mainfrom
lucasvass1:fix/profile-copy-invite-feedback
Aug 1, 2026
Merged

fix(profile): improve copy invite link feedback and accessibility#48
FrankezeCode merged 3 commits into
BetterDevOrg:mainfrom
lucasvass1:fix/profile-copy-invite-feedback

Conversation

@lucasvass1

Copy link
Copy Markdown
Contributor

What

Improved the "Copy invite link" feedback on the profile page beyond a subtle text swap:

  • Added a checkmark icon + emerald color on success (matching the success color pattern already used elsewhere in the app, e.g. login resend confirmation)
  • Added a visually-hidden aria-live status region so screen readers announce the copy result
  • Clipboard failures now show a visible error message instead of failing silently

How to test

  1. Log in and go to /profile
  2. Click "Copy invite link" — confirm checkmark + "Copied!" appears, link is actually on clipboard, resets after 2s
  3. Tested in Chrome and Firefox
  4. To test the failure path: in DevTools console, run navigator.clipboard.writeText = () => Promise.reject() then click the button — confirm the error message shows without crashing

Closes #18

@lucasvass1 lucasvass1 closed this Aug 1, 2026
@lucasvass1
lucasvass1 deleted the fix/profile-copy-invite-feedback branch August 1, 2026 16:12
@lucasvass1
lucasvass1 restored the fix/profile-copy-invite-feedback branch August 1, 2026 16:17
@lucasvass1 lucasvass1 reopened this Aug 1, 2026

@FrankezeCode FrankezeCode left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome

@FrankezeCode
FrankezeCode merged commit 4277b64 into BetterDevOrg:main Aug 1, 2026
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.

[Good first issue]: Improve “Copy invite link” feedback on profile

2 participants