Skip to content

Add copy to clipboard#497

Open
iyanumajekodunmi756 wants to merge 3 commits into
CredenceOrg:mainfrom
iyanumajekodunmi756:add-copy-to-clipboard
Open

Add copy to clipboard#497
iyanumajekodunmi756 wants to merge 3 commits into
CredenceOrg:mainfrom
iyanumajekodunmi756:add-copy-to-clipboard

Conversation

@iyanumajekodunmi756

Copy link
Copy Markdown
Contributor

Summary
Truncate display, full address on hover/focus, and confirmation toast on copy.

Background
This change improves the day-to-day experience for the people who consume this code (operators, downstream contracts, frontend engineers, support). It is not a strict bug, but the current behaviour forces workarounds and the proposed change removes them.

Acceptance criteria
The change matches the summary above.
No regression in the existing test suite.
The change is documented where it is observable (README, docs/, public API reference).
Lint, type-check, and tests all pass locally.
PR description references this issue with Closes #.
Implementation hints
Keep the public API surface backwards-compatible if possible. If a breaking change is unavoidable, document the migration step.
Land any new constant in a single place (config/, consts.rs, or the equivalent) and re-use it everywhere.
Update the relevant docs/ page in the same PR so reviewers see the docs change together with the code change.
Add or update the corresponding test so the new behaviour is locked in.
Repo-specific notes
Run npm run lint, npm run build, and the unit tests locally before pushing.
If you change a public component prop, update the matching Storybook story and the docs/COMPONENTS.md entry.
Respect the design tokens (CSS variables / Tailwind config); do not hard-code colours, spacing, or radii.
Out of scope
Unrelated refactors in adjacent files.
Stylistic-only changes (formatting, renaming) that are not required by the fix.
Anything beyond the acceptance criteria above; surface follow-ups as separate issues.
How to claim and submit
Comment on this issue saying you'd like to take it on; wait for a maintainer to assign you (avoids duplicated effort).
Open a PR that references this issue (Closes #).
Make sure CI is green and request review from a CODEOWNERS maintainer.
PRs that close this issue and pass review may qualify for a reward — see the MAYBE REWARDED label and the GrantFox OSS campaign page.

closes #383

olaleyeolajide81-sketch and others added 2 commits June 28, 2026 23:29
Expose a screen-reader-only label mode so placeholder-driven inputs can still meet WCAG 2.1 AA programmatic naming requirements via htmlFor/id.

Closes CredenceOrg#381

Co-authored-by: Cursor <cursoragent@cursor.com>
- Create AddressDisplay component with truncation, hover/focus full address, and copy button
- Use AddressDisplay in Dashboard for wallet address
- Use AddressDisplay in Transactions for transaction hashes
- Add confirmation toast on copy

Closes CredenceOrg#383
@drips-wave

drips-wave Bot commented Jun 30, 2026

Copy link
Copy Markdown

@iyanumajekodunmi756 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.

Add a copy-to-clipboard button on every address

2 participants