consistency: three different error display patterns used for password validation #87
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/AutistMask#87
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Password validation errors are displayed using three different patterns across the codebase:
showError()/hideError()helpers withmin-heighterror div (used byconfirm-tx)hiddenclass toggling (used byapprove-tx,approve-sign)showFlash()(used byadd-wallet,import-key)export-privkeywithexport-privkey-flash,delete-walletwithdelete-wallet-flashusingtext-red-500)Expected behavior
All password error displays should use a consistent pattern. The
showError()/hideError()helper approach withmin-heighterror divs prevents layout shift and centralizes the logic.Files affected
src/popup/views/approval.js(direct DOM for approve-tx-error, approve-sign-error)src/popup/views/addressDetail.js(export-privkey-flash)src/popup/views/deleteWallet.js(delete-wallet-flash with text-red-500)src/popup/views/addWallet.js(global showFlash)src/popup/views/importKey.js(global showFlash)src/popup/index.html(error div markup)Suggested fix
Standardize all password error areas to use dedicated error divs with
min-h-[1.25rem]and theshowError()/hideError()helpers fromhelpers.js.Found during consistency audit for #78.
Covered by PR #92 (merged) which standardized error divs to use
showError/hideErrorwithmin-height.