fix: the empty-password message diverges on the private key export screen #265
Reference in New Issue
Block a user
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
Five screens tell the user
"Please enter your password."when the password field is empty. The private key export screen says"Password is required."for the identical condition.src/popup/views/showPhrase.js:93—"Please enter your password."src/popup/views/confirmTx.js:410—"Please enter your password."src/popup/views/deleteWallet.js:54—"Please enter your password."src/popup/views/approval.js:514—"Please enter your password."src/popup/views/approval.js:623—"Please enter your password."src/popup/views/exportPrivkey.js:115—"Password is required."Both are full sentences, so this is not a
RULES.mdLanguage & Labeling violation; it is the same one-condition-two-wordings inconsistency that #172 fixed for the wrong-password message. Found while auditing thedecryptWithPasswordcall sites for that issue and deliberately left out of scope there, which covered decryption failures only.Implementation requirements
"Please enter your password."is the majority wording and the natural choice; changing all six to something else is fine if there is a reason, stated in the PR body."Please enter your password."is 28 characters and shorter than the 44-character message #172 measured at zero shift in the same containers, so this should be free — but the export screen's container is its own element.tests/passwordMessages.test.js, which already pins the wrong-password wording across the call sites, to cover this message too.Definition of done
TODO.mdupdated in the same commit.make checkpasses.