Skip to content

feat(vibenet): add copy-address button to account dropdown rows - #117

Open
montycheese wants to merge 1 commit into
mainfrom
feat/copy-address-account-dropdown
Open

feat(vibenet): add copy-address button to account dropdown rows#117
montycheese wants to merge 1 commit into
mainfrom
feat/copy-address-account-dropdown

Conversation

@montycheese

@montycheese montycheese commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a click-to-copy address button to each row of the account dropdown (AccountSwitcher) in the vibenet section. The button sits to the left of the existing Details (info) icon button.

Changes

  • New local CopyAddressButton in app/vibenet/demos/_shared/AccountSwitcher.tsx: an icon-only button that copies the row's address via navigator.clipboard.writeText, then swaps its clipboard glyph to a green check for 2s. Uses the same morphicons MorphIcon pattern as the internal-explorer CopyButton, styled to match the adjacent Details button.
  • The per-row action cluster now renders unconditionally (previously only when onDetails/onDelete were provided), since every account has an address to copy. Details/Delete still render only when their callbacks are supplied.

Screenshots

The copy-address button (overlapping-squares icon) now appears to the left of the Details and Delete icons in each account row.

Account dropdown open:

Account dropdown with copy-address button

Close-up of a row's action buttons:

Row action buttons close-up

Testing

  • tsc --noEmit reports no errors for the file.
  • Verified in a running dev server: created an account, opened the dropdown, and confirmed the copy button renders to the left of the Details icon (see screenshots). The copy → green-check confirmation animation was not captured because clipboard access is blocked in the automated browser context; the swap logic is unchanged from the existing internal-explorer CopyButton pattern.

@cb-heimdall

Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
omni-ui Ready Ready Preview Aug 31, 2026 7:59pm

Request Review

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.

2 participants