docs: README Screen Map omits three shipped screens and misdescribes four flows #164
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
README.mddeclares itself "the complete authoritative technicaldocumentation" (
README.md:906-907). Its Screen Map (README.md:263-571) hasdrifted from the code in both directions.
Screens that exist and are reachable but are absent from the Screen Map:
src/popup/views/deleteWallet.js, view iddelete-wallet-confirm(helpers.js:27), markupindex.html:1066.Reachable from Settings via the per-wallet
[x].export-privkey(helpers.js:33), markupindex.html:352-405, logic inaddressDetail.js:297-374. Reachable from theAddressDetail "more" dropdown. This one discloses secret material and
belongs in the documentation more than any other screen.
src/popup/views/settingsAddToken.js, view idsettings-addtoken(helpers.js:28), markupindex.html:1102. Reachablevia
settings.js:322-325.Flows the Screen Map describes incorrectly:
README.md:318-330) is documented as its own screen with itsown heading and a "Back to AddWallet" transition, reached from a "Have a
private key instead?" link on AddWallet (
README.md:312,:316). No suchscreen and no such link exist. AddWallet has three tabs —
tab-mnemonic,tab-privkey,tab-xprv(index.html:63-84, wired ataddWallet.js:280-282).addWallet.js:35definesMODES = ["mnemonic","privkey","xprv"]andaddWallet.js:209-276handlesit, creating a wallet with
type: "xprv"(addWallet.js:242). The READMEData Model (
README.md:243-253) describes only HD wallets and key wallets,so this third type is missing from the data model too.
README.md:402-403) — there is no modal. Thepassword is an inline field (
index.html:646-661,confirmTx.js:291); themodule header comment at
confirmTx.js:1-3even says "inline password".README.md:524-525saysSiteApproval is "Opened in a separate popup by the background script" and
README.md:537-538says TxApproval is "Opened via the toolbar popup". Thecode does the opposite: site approval prefers
actionApi.openPopup()with awindows.createfallback (background/index.js:143-157), while tx and signapprovals always use
windows.create(background/index.js:165-197, withexplanatory comments at
:162-164and:181-183).Settings section is incomplete (
README.md:506-517) — it omits the networkselector (
settings.js:150-153,:263-272), the theme selector(
settings.js:280-285), the UTC timestamps checkbox (settings.js:314-318),the tracked-token list with remove (
settings.js:64-89), "+ Add token"(
settings.js:322-325), per-wallet rename and delete (settings.js:91-145),and the About well with its debug easter egg (
settings.js:158-178,:339-382).Stale TODO checkbox:
README.md:884"Gas estimation and fee display beforeconfirming" is unchecked, but it is fully implemented
(
confirmTx.js:205-265, markupindex.html:584-589) and matches the ConfirmTxspec at
README.md:397.Scope
Documentation-only. Touch
README.mdand nothing else. Do not change code.Do not touch
docs/README.md— that is tracked separately.Coordinate lightly: the "Delete wallet" TODO checkbox is ticked by #156, and
new screens introduced by #161 and #162 add their own Screen Map entries. If
those have already landed, do not duplicate their edits; if they have not,
leave those specific lines alone.
RULES.mdmust not be modified — it is owner-maintained and agent-read-only.Definition of done
entry in the established format (When / Elements / Transitions),
accurate to the code.
AddWallet UI, including the xprv tab.
(
README.md:243-253).password field.
to match
background/index.js:143-197.ticked.
which were verified.
make fmthas been run and the result is in the commit.TODO.mdupdated in the same commit.make checkpasses.