Replaces four inconsistent error display patterns with the centralized `showError()`/`hideError()` helpers from `helpers.js`:
- **approval.js**: replace direct `classList` toggling on `approve-tx-error` and `approve-sign-error`
- **addressDetail.js**: rename `export-privkey-flash` → `export-privkey-error`, use helpers
- **deleteWallet.js**: rename `delete-wallet-flash` → `delete-wallet-error`, use helpers (removes `text-red-500`)
- **addWallet.js**: replace `showFlash()` validation errors with dedicated `add-wallet-error` div (status messages like "Scanning..." still use `showFlash`)
- **importKey.js**: replace `showFlash()` validation errors with dedicated `import-key-error` div
- **index.html**: add/update error divs with `min-h-[1.25rem]` to prevent layout shift
`docker build .` passes.
Closes #87
Replaces four inconsistent error display patterns with the centralized
showError()/hideError() helpers from helpers.js:
- approval.js: replace direct classList toggling on approve-tx-error and
approve-sign-error with showError()/hideError()
- addressDetail.js: rename export-privkey-flash to export-privkey-error,
use showError()/hideError() instead of direct DOM manipulation
- deleteWallet.js: rename delete-wallet-flash to delete-wallet-error,
use showError()/hideError() instead of direct DOM with text-red-500
- addWallet.js: replace showFlash() validation errors with dedicated
add-wallet-error div and showError() (keep showFlash for status msgs)
- importKey.js: replace showFlash() validation errors with dedicated
import-key-error div and showError()
- index.html: add error divs with min-h-[1.25rem] for add-wallet,
import-key views; update existing error divs to use consistent
min-h-[1.25rem] class instead of hidden class
Closes#87
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Replaces four inconsistent error display patterns with the centralized
showError()/hideError()helpers fromhelpers.js:classListtoggling onapprove-tx-errorandapprove-sign-errorexport-privkey-flash→export-privkey-error, use helpersdelete-wallet-flash→delete-wallet-error, use helpers (removestext-red-500)showFlash()validation errors with dedicatedadd-wallet-errordiv (status messages like "Scanning..." still useshowFlash)showFlash()validation errors with dedicatedimport-key-errordivmin-h-[1.25rem]to prevent layout shiftdocker build .passes.Closes #87
Closing — issue #87 is addressed by PR #92 (error div consistency) which is merge-ready.
Pull request closed