Skip to content

feat(wallets): refresh the rename wallet modal - #2931

Open
CassioMG wants to merge 13 commits into
masterfrom
feature/home-refresh-rename-modal
Open

feat(wallets): refresh the rename wallet modal#2931
CassioMG wants to merge 13 commits into
masterfrom
feature/home-refresh-rename-modal

Conversation

@CassioMG

@CassioMG CassioMG commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Part of the Home refresh project.

What changed

The rename-wallet modal, per Figma frame 9585-24423:

  • The card is now centred instead of pinned at top: 30%.
  • Circular X close button top-right inside the card.
  • Centred identicon above the input.
  • "Save" → "Set name", and Cancel / Set name sit side by side at equal width.
  • Removed: the "Rename Wallet" heading and the Address: G… line.

The form itself is untouched — same Formik setup, same 24-character Yup limit, same dispatch.

Screenshot 2026-08-13 at 11 13 40

Verification

  • yarn test:ci — 196/202 suites, 1520/1571 tests, identical to baseline
  • yarn build:extension — clean
  • yarn test:e2e loadAccount.test.ts — 9 passed / 2 skipped, matching baseline
  • Clicked through the modal in a real browser build (that's how bug 1 surfaced)

🤖 Generated with Claude Code

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.
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

PR Preview build is ready: https://github.com/stellar/freighter/releases/tag/untagged-ebf026fafe5aca7842b0 (SDF collaborators only — install instructions in the release description)

CassioMG and others added 6 commits August 7, 2026 11:07
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>
@CassioMG CassioMG self-assigned this Aug 13, 2026
@CassioMG
CassioMG marked this pull request as ready for review August 13, 2026 00:11
Copilot AI balanced review requested due to automatic review settings August 13, 2026 00:11

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.

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.

Comment thread extension/src/popup/locales/pt/translation.json Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@CassioMG

Copy link
Copy Markdown
Contributor Author

Code review

No 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 👎.

@CassioMG
CassioMG requested a review from piyalbasu August 13, 2026 01:30
CassioMG and others added 4 commits August 12, 2026 19:08
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
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