Skip to content

feat(site): add copy link button for proven transaction (#22) - #40

Merged
samjay8 merged 1 commit into
Externalize-Labs:mainfrom
sparkysolutions10-pixel:feat/copy-link-button-v2
Oct 30, 2026
Merged

samjay8 merged 1 commit into
Externalize-Labs:mainfrom
sparkysolutions10-pixel:feat/copy-link-button-v2

Conversation

@sparkysolutions10-pixel

Copy link
Copy Markdown
Contributor

Summary

Closes #22

Adds an accessible "Copy link" button next to the "Download this proof" link on the web verifier.

Implementation Details

  • Added <button type="button" class="copy-link" id="copy-link" aria-live="polite">Copy link</button> next to "Download this proof".
  • On click, copies current location.href to clipboard via navigator.clipboard.writeText(url).
  • Updates button label to "Copied" for 2 seconds (announced politely via aria-live).
  • If clipboard write is denied or navigator.clipboard is unavailable (non-secure context / permission denied), reveals a read-only, pre-selected text field in #copy-fallback for instant manual copying.
  • Added styled CSS rules for .copy-link and .copy-fallback in site/style.css.

@samjay8
samjay8 merged commit c8c5ed5 into Externalize-Labs:main Oct 30, 2026
12 checks passed
@samjay8

samjay8 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Merged — thanks for your contribution! 🎉

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.

[enhancement]: a "Copy link" button for a proven transaction

2 participants