feat(wallets): refresh the rename wallet modal - #2931
Conversation
Restyle the rename-wallet modal to match frame 9585-24423: a centered card with a circular close button, a centered identicon, the name input, and Cancel / Set name side by side. "Save" is renamed to "Set name", and the "Rename Wallet" heading and Address line are removed. Update the e2e test's button-text assertion to match the new label.
|
PR Preview build is ready: https://github.com/stellar/freighter/releases/tag/untagged-1443d9b577130cc37f35 (SDF collaborators only — install instructions in the release description) |
The rename modal was wrapped in View.Content, whose View__inset--scroll-shadows class paints an opaque full-width background. That band covered the card's horizontal margins and its rounded corners, so the modal read as a flat edge-to-edge panel. - Drop the View.Content wrapper so .RenameWallet is the card itself (312px wide, centered, 32px radius). - Move the close button out of absolute positioning into a flow header row, so it respects the card's 24px padding and stacks above the avatar as designed. - Size the action buttons to spec via SDS custom properties: 36px tall, 8/12 padding, 14/20 type. SDS size="md" alone gives 32px and 6/10. - Set the button label weight with --sds-fw-semi-bold. Verified against Figma by measuring the rendered DOM in the extension: card 312x248 with 24px padding, header 82 tall, 24px gaps between avatar/input/actions, buttons 36 tall with an 8px gap. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Refreshes the rename-wallet modal to match the Home refresh design.
Changes:
- Centers and restyles the modal with a close button and identicon.
- Replaces “Save” with “Set name” and updates button layout.
- Updates translations and the rename-wallet E2E flow.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
extension/src/popup/views/Wallets/styles.scss |
Centers the modal wrapper. |
extension/src/popup/components/account/RenameWallet/index.tsx |
Restructures modal content and controls. |
extension/src/popup/components/account/RenameWallet/styles.scss |
Implements the refreshed card styling. |
extension/src/popup/locales/en/translation.json |
Adds the English action label. |
extension/src/popup/locales/pt/translation.json |
Adds the Portuguese locale entry. |
extension/e2e-tests/loadAccount.test.ts |
Updates the submit-button locator. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
Replace the local Button custom-property overrides with the props SDS already provides. size="lg" supplies the 8/12 padding and 14px type the spec calls for, and isFullWidth splits the row evenly, which is what the `flex: 1` rule was there to do. Also drop the redundant font-weight declaration: SDS .Button already applies --sds-fw-semi-bold, so the local rule had no effect. The one remaining difference from Figma is button height, 40px from SDS lg versus 36px in the design. Taking SDS's scale is preferable to overriding it for 4px. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…h-rename-modal # Conflicts: # extension/e2e-tests/loadAccount.test.ts
|
You didn't introduce this (this is an existing bug), but I noticed that you can enter an empty string as a new account name. This would be nice to fix while we're here, but not a blocker |
piyalbasu
left a comment
There was a problem hiding this comment.
Other than my 1 note, this looks good to me!
Three defects in the rename modal: - A blank or whitespace-only name saved fine, leaving the wallet with no visible label. The submit button is now disabled unless the trimmed name is non-empty. - Surrounding whitespace was stored verbatim, so " Wallet " persisted padded. The name is trimmed before saving. - Submitting an unchanged name did nothing at all: the equality guard wrapped onClose() along with the dispatch, so the modal stayed open and the button read as broken. The guard now covers only the dispatch, metric, and refetch, and onClose() always runs. An unchanged submit dismisses the modal without touching storage or recording a rename. Mirrors the mobile app's RenameAccountModal, which already trims, bounds the name by ACCOUNT_NAME_MIN_LENGTH/MAX_LENGTH, and disables the button rather than surfacing an error message. Covered by two e2e tests, one per reported defect. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@piyalbasu nice catch on that! I've just fixed it on 0120815 - now it won't allow blank spaces and you can also use the "Set name" button even if you haven't changed the name as the UX felt broken for this particular case too. This is mirroring mobile behavior now. rename-fixes.mov |
|
A few design comments: Profile bottom sheet
Empty state
cc @CassioMG @piyalbasu |
|
@minkyeongshin thanks for the review, I'll address those UI updates. On this specific note: - When there are many profiles are added, we need to limit the modal height and make the list scrollable within the bottom sheet. Attached is a screenshot for reference. (Design Link) The below is how the current implementation is behaving. It snaps the bottom sheet at ~80% of screen height and the whole content scrolls. I can make it snap higher like 90% of screen so we have more room for the list. But in regards to the scrolling, are you suggesting we scroll only the wallets list and make the whole header sticky? ScreenRecording_08-17-2026.12-01-56_1.MP4 |
|
@minkyeongshin for consistency, I'm thinking when we need to display the floating button over the empty state on the Tokens tab it should actually read "Add XLM" instead of "Add token" and route to the same "Add XLM" action we use today. How does that sound? |
yes that make sense to me! @CassioMG |
Oh I see it's already implemented. Looks good! Could we just adjust the size of the icon on the left of the 'Add wallet' button at the bottom? looks a little small. Thanks! |



Part of the Home refresh project.
What changed
The rename-wallet modal, per Figma frame
9585-24423:top: 30%.Xclose button top-right inside the card.Address: G…line.The form itself is untouched — same Formik setup, same 24-character Yup limit, same dispatch.
Verification
yarn test:ci— 196/202 suites, 1520/1571 tests, identical to baselineyarn build:extension— cleanyarn test:e2e loadAccount.test.ts— 9 passed / 2 skipped, matching baseline🤖 Generated with Claude Code