feat(pay): Copy Address/Amount component + Confirm Payment Sent button#69
Merged
codebestia merged 2 commits intoMay 30, 2026
Conversation
Closes ShadeProtocol#55 — new `CopyReadonlyInput` renders a read-only input + a one-click copy-to-clipboard icon button. Two instances live inside the manual transfer view (Address + Amount). aria-label flips to "<field> copied to clipboard" for ~1.5s after a successful copy so users see the action confirm without needing a toast layer. Falls back to select + execCommand when navigator.clipboard isn't available (older Safari / insecure contexts). Closes ShadeProtocol#56 — primary "I have sent the payment" button at the bottom of the manual-transfer panel. On click enters an aria-busy loading state with a spinner + "Verifying on the blockchain…" copy until the parent's onConfirmSent promise resolves; with no handler attached the button auto-releases after a short delay so the unconnected preview doesn't look hung. Wired into pay-tabs.tsx — the manual-transfer panel was previously a placeholder "Manual transfer instructions will appear here." string.
|
@pre-cious-Igwealor 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! 🚀 |
- Regenerated package-lock.json so `npm ci` resolves cross-platform optional deps (the previous lockfile was missing typescript@4.9.5 and utf-8-validate@5.0.10 entries that `@twind/*` transitively pulls in). - Ran Prettier on the three files this PR added/changed under `src/components/pay/`. Other format:check warnings in the repo are pre-existing on main and out of this PR's scope. Done with AI assistance, as previously disclosed on this PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CopyReadonlyInput(insrc/components/pay/copy-readonly-input.tsx) renders a read-only input + a one-click copy icon. Two instances live in the manual-transfer view (Address + Amount).aria-labelflips to " copied to clipboard" for ~1.5s post-copy so users see the action confirm without a toast layer. Falls back toselect+execCommandwhennavigator.clipboardisn't available.src/components/pay/pay-manual-transfer-view.tsx). On click enters anaria-busyloading state with a spinner + "Verifying on the blockchain…" copy until the parent'sonConfirmSentpromise resolves.pay-tabs.tsx— the manual-transfer tab was previously a placeholder string.Notes
pnpm dev/vitestlocally in the build sandbox; CI is the source of truth.address/amountare obvious placeholders so the panel renders cleanly in Storybook / route previews; callers pass real values via props once the create-invoice flow lands them.Test plan