Skip to content

feat: add Dapp API URL copy action in Wallet Gateway header - #2240

Open
dhru7777 wants to merge 4 commits into
canton-network:mainfrom
dhru7777:feat/2234-copy-dapp-api-url
Open

feat: add Dapp API URL copy action in Wallet Gateway header#2240
dhru7777 wants to merge 4 commits into
canton-network:mainfrom
dhru7777:feat/2234-copy-dapp-api-url

Conversation

@dhru7777

@dhru7777 dhru7777 commented Aug 5, 2026

Copy link
Copy Markdown
Screenshot 2026-08-05 at 5 13 03 PM

Summary

  • Adds a header menu item Dapp API URL that copies this Wallet Gateway instance’s dApp API URL to the clipboard (with success toast)
  • Exposes dappApiUrl on GET /.well-known/wallet-gateway-config (publicUrl + server.dappPath)
  • Hovering the menu item shows the full URL via title / aria-label
  • Addresses Button to copy dApp API Url #2234

Why

The Wallet Picker often needs a custom Wallet API URL. Users can see the host in the address bar but may not know the API path (default /api/v0/dapp). This makes the correct instance URL discoverable from the WG UI.

Notes

  • URL is per WG instance (same for all dApps talking to that gateway), not a placeholder
  • Local default: http://localhost:3030/api/v0/dapp
  • Related: Adding custom wallet display + copy in WG ui #2239 proposes showing a truncated URL in the menu. Happy to adjust the UI toward that design if preferred. May the best UX gets merge here.

Test plan

  • Unit tests: app-header copy event + hover title; fetchDappApiUrl; UserApp clipboard/toast + passes URL into layout
  • curl -s http://localhost:3030/.well-known/wallet-gateway-config includes dappApiUrl
  • Manual: login → ☰ → hover Dapp API URL → tooltip shows full URL
  • Manual: click → paste → http://localhost:3030/api/v0/dapp
  • Optional: paste into ping Wallet Picker → connect

dhru7777 and others added 4 commits August 5, 2026 16:25
Signed-off-by: dhru7777 <dheerajinnyc@gmail.com>
Signed-off-by: dhru7777 <dheerajinnyc@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: dhru7777 <dheerajinnyc@gmail.com>
…tooltip

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: dhru7777 <dheerajinnyc@gmail.com>
@dhru7777
dhru7777 requested a review from a team as a code owner August 5, 2026 21:14
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.

1 participant