Skip to content

fix(dashboard): make change-ownership modal wallet input full-width (NODE-4976)#417

Merged
GTC6244 merged 1 commit into
mainfrom
feature/node-4976-update-the-change-ownership-modal
May 29, 2026
Merged

fix(dashboard): make change-ownership modal wallet input full-width (NODE-4976)#417
GTC6244 merged 1 commit into
mainfrom
feature/node-4976-update-the-change-ownership-modal

Conversation

@GTC6244
Copy link
Copy Markdown
Contributor

@GTC6244 GTC6244 commented May 29, 2026

Summary

The "Change account ownership" modal at lit-static/dapps/dashboard/auth.js used .form-input / .form-label class names that aren't defined anywhere in styles.css, so the wallet-address field fell back to default browser sizing — too narrow to show a full 42-char 0x… address. Switched to the dashboard's standard .form-group + .input pattern (already used by every other modal) and added a monospace font for the address, matching the usage-key-override-input style.

No JS logic changed; the input id, error element, button ids, and Enter/Escape handlers are intact so tryAccept() and ethers validation still work.

Test plan

  • Sign in to the dashboard as a ChainSecured (sovereign) account
  • Open the account dropdown → "Change Ownership"
  • Confirm the address input fills the modal width and a full 42-char 0x… address is fully visible in monospace
  • Submit an invalid address — error message renders below the field
  • Submit a valid address — proceeds to confirmation step

Linear: https://linear.app/litprotocol/issue/NODE-4976

🤖 Generated with Claude Code

…NODE-4976)

The change-ownership modal used .form-input/.form-label classes that aren't
defined anywhere in styles.css, so the address field fell back to default
browser sizing — too narrow to display a full 0x… address. Switch to the
dashboard's standard .form-group + .input pattern (already used by every
other modal) and render the address in monospace for readability.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@GTC6244 GTC6244 requested review from a team and Copilot May 29, 2026 15:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the “Change account ownership” modal markup in the dashboard to use the existing dashboard form styling so the wallet-address input renders full-width and is easier to read.

Changes:

  • Replace undefined .form-input / .form-label usage with the dashboard’s .form-group + .input structure.
  • Add monospace font styling to the wallet-address input to better display 0x… addresses.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 998 to 999
`<button type="button" class="btn btn-secondary" id="change-ownership-cancel-btn">Cancel</button>
<button type="button" class="btn btn-primary" id="change-ownership-accept-btn">Accept</button>`,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch — fixed in 10cff3b. Switched to .btn-outline to match every other dashboard modal's Cancel button.

@GTC6244 GTC6244 merged commit 9306604 into main May 29, 2026
14 checks passed
GTC6244 added a commit that referenced this pull request May 29, 2026
…utton (NODE-4976)

`.btn-secondary` isn't defined in styles.css (only .btn-primary, .btn-outline,
.btn-danger exist), so the Cancel button got no secondary styling. Every other
dashboard modal's cancel button uses .btn-outline — match that. Caught by
Copilot review on #417.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
GTC6244 added a commit that referenced this pull request May 29, 2026
…utton (NODE-4976) (#418)

`.btn-secondary` isn't defined in styles.css (only .btn-primary, .btn-outline,
.btn-danger exist), so the change-ownership modal's Cancel button got no
secondary styling. Every other dashboard modal's cancel button uses
.btn-outline — match that. Follow-up to #417 (caught by Copilot review after
merge).

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
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