Skip to content

feat(#316): add copy-to-clipboard UX with recovery request ID#413

Open
akindoyinabraham0-collab wants to merge 2 commits into
mux-labs:stagingfrom
akindoyinabraham0-collab:staging
Open

feat(#316): add copy-to-clipboard UX with recovery request ID#413
akindoyinabraham0-collab wants to merge 2 commits into
mux-labs:stagingfrom
akindoyinabraham0-collab:staging

Conversation

@akindoyinabraham0-collab

@akindoyinabraham0-collab akindoyinabraham0-collab commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Closes #316


Summary

Adds copy-to-clipboard UX to the Recovery flow per #316.

Changes

  • src/hooks/useRecovery.ts: Added recoveryRequestId field and generateRecoveryRequestId() helper (produces REC-XXXX-XXXX). Generated on confirmRecovery success, cleared on resetRecovery.
  • src/components/recovery/InitiateRecoveryCTA.tsx: Success state now shows the recovery request ID in a copyable code block with a clipboard toggle button (icon swaps to checkmark + "Copied" tooltip).
  • src/components/recovery/RecoveryFAQ.tsx: Each expanded answer has a "Copy" button that copies the answer text and shows "Copied" feedback for 2 seconds.
  • src/app/recovery/page.tsx: Success toast includes the recovery request ID.
  • Added tests for ID generation, copy button rendering, clipboard write, copied feedback, and edge cases (null ID for non-success states).

@drips-wave

drips-wave Bot commented Jun 30, 2026

Copy link
Copy Markdown

@akindoyinabraham0-collab Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Recovery UI: Add copy-to-clipboard UX

1 participant