Skip to content

[codex] Cover clipboard fallback failure paths - #430

Open
Dreamstore2046 wants to merge 1 commit into
harystyleseze:mainfrom
Dreamstore2046:codex/careguard-clipboard-fallback-218
Open

[codex] Cover clipboard fallback failure paths#430
Dreamstore2046 wants to merge 1 commit into
harystyleseze:mainfrom
Dreamstore2046:codex/careguard-clipboard-fallback-218

Conversation

@Dreamstore2046

Copy link
Copy Markdown

Summary

  • add SettingsTab coverage for clipboard failure showing the fallback toast and selectable text
  • add a source audit test that keeps direct navigator.clipboard / document.execCommand usage confined to dashboard/src/lib/clipboard.ts
  • lock in the existing shared copyText fallback path across Wallet and Settings copy buttons

Closes #218

Validation

  • npm test -- dashboard/src/__tests__/clipboard.test.ts dashboard/src/__tests__/settings-tab.test.tsx dashboard/src/__tests__/wallet-tab.test.tsx dashboard/src/__tests__/clipboard-audit.test.ts
  • git diff --cached --check

Notes

  • The shared copyText helper already performs the navigator.clipboard.writeText try/catch plus document.execCommand('copy') fallback; this PR adds the missing component failure coverage and a regression audit so future clipboard calls do not bypass it.

@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

@Dreamstore2046 is attempting to deploy a commit to the Harrison Eze's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

copyToClipboard has no fallback for insecure contexts

1 participant