You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add wallet pill menu with copy + disconnect to dashboard (#476)
* Add wallet pill menu with copy + disconnect to dashboard
Turn the ChainSecured wallet address pill in the dashboard topbar into a
popover menu. Clicking it now opens a small dropdown with "Copy address"
and "Disconnect wallet" instead of copying directly. Disconnect tears
down the EIP-1193/WalletConnect connection and signs out. Closes on
outside-click or Escape, mirroring the existing mode-badge popover.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Fix wallet menu copy feedback + listener cleanup
Address two findings from adversarial review of the wallet pill menu:
- Copy feedback was invisible: close() ran synchronously after copy, hiding
the button before copyToClipboard's "Copied!" label could show. Delay the
close so the feedback is visible.
- Outside-click / Escape listeners could leak: the toggle-closed path and a
renderModeBadge() topbar rebuild while the menu was open left stale capture
listeners holding detached-node closures. Bind them to an AbortController,
tracked at module scope, and abort on close and on the next rebuild.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Chris Cassano <chris@litprotocol.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments