Skip to content

feat(dapp-sdk): allow renaming saved remote wallets - #2816

Merged
pascalhonegger-da merged 3 commits into
mainfrom
2553-allow-renaming-saved-remote-wallets-in-wallet-picker
Oct 28, 2026
Merged

pascalhonegger-da merged 3 commits into
mainfrom
2553-allow-renaming-saved-remote-wallets-in-wallet-picker

Conversation

@pascalhonegger-da

@pascalhonegger-da pascalhonegger-da commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor
  • feat(core-wallet-ui-components): allow renaming saved custom gateways in wallet picker
  • fix(dapp-sdk): use the picked name when reconnecting to a custom gateway
  • refactor(core-wallet-ui-components): collect wallet picker icons in one place
Screen.Recording.2026-10-28.at.13.37.55.mov

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The rename flow mishandles Enter and Escape during IME composition and fails to restore focus after saving or cancelling, disrupting text entry and keyboard and screen-reader navigation.

2 open issues
What changed in this PR

Adds renaming for saved custom remote wallets in the wallet picker and preserves the selected label when the dApp SDK reconnects.

Changes:

  • Adds inline rename, save, cancel, and reset controls, with URLs and monograms for renamed wallets.
  • Keeps restored custom gateways editable and refreshes their adapter names on selection.
  • Adds component, SDK, and end-to-end coverage, plus a renamed-wallet story.
File Description
sdk/​dapp-sdk/​src/​sdk.ts Preserves custom gateway classification and refreshes selected names.
sdk/​dapp-sdk/​src/​sdk.test.ts Tests renamed gateway reconnection and restored gateway handling.
examples/​ping/​tests/​walletpicker.spec.ts Tests renaming, cancellation, reset, and persistence end to end.
core/​wallet-ui-components/​src/​windows/​wallet-picker.stories.ts Adds a renamed custom gateway example.
core/​wallet-ui-components/​src/​components/​wallet-picker.ts Implements rename controls, label persistence, and shared icons.
core/​wallet-ui-components/​src/​components/​wallet-picker.test.ts Tests rename behavior and wallet icon rendering.
core/​wallet-test-utils/​src/​wallet-gateway.ts Allows custom picker interactions during test connections.

Review effort: Balanced

@pascalhonegger-da
pascalhonegger-da force-pushed the 2553-allow-renaming-saved-remote-wallets-in-wallet-picker branch from ce8f87b to 79f090c Compare October 28, 2026 13:10
@pascalhonegger-da
pascalhonegger-da marked this pull request as ready for review October 28, 2026 13:10
@pascalhonegger-da
pascalhonegger-da requested a review from a team as a code owner October 28, 2026 13:10
… in wallet picker

Closes #2553
Closes #2809

Signed-off-by: Pascal Honegger <pascal.honegger@digitalasset.com>
Signed-off-by: Pascal Honegger <pascal.honegger@digitalasset.com>
…ne place

Signed-off-by: Pascal Honegger <pascal.honegger@digitalasset.com>
@pascalhonegger-da
pascalhonegger-da force-pushed the 2553-allow-renaming-saved-remote-wallets-in-wallet-picker branch from 79f090c to 8cc9cbe Compare October 28, 2026 13:39

@fayi-da fayi-da left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@pascalhonegger-da
pascalhonegger-da merged commit 68a56f0 into main Oct 28, 2026
31 checks passed
@pascalhonegger-da
pascalhonegger-da deleted the 2553-allow-renaming-saved-remote-wallets-in-wallet-picker branch October 28, 2026 14:50
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.

Allow renaming saved Remote Wallets in Wallet Picker

4 participants