trackslash
VAULT-144 P2 For an agent

Lead the add flow, list and help with recovery phrases and private keys

0
Sub-issue of VAULT-141 P2 Reposition Vault as a vault for crypto keys and secrets, with 2FA codes as a supporting feature

Description

Part of VAULT-141: the in-app layout. Use VAULT-142's wording. The Private Key entries depend on VAULT-143. Until that lands, do the phrase and wording parts.

Today

  • iOS "New Item" picker (VaultiOS/Views/Feed/CreateItemPickerView.swift:18-35):
    • "Code — 2FA timer or counter based codes";
    • "Note — Freeform text";
    • "Recovery Phrase — Crypto wallet seed words".
    • The same code subtitle is in VaultiOS/Views/General/OptionCardLabel.swift:61.
  • Mac:
    • The toolbar menu is New Code, New Note, New Recovery Phrase (VaultMac/Views/VaultMacMainView.swift:214-220).
    • The File menu has New Code on ⌘N, New Note on ⇧⌘N, and New Recovery Phrase with no shortcut (VaultMac/VaultMacCommands.swift:28-35).
  • List: a recovery phrase shows as a lock and "ENCRYPTED", like any encrypted note (VaultiOS/Views/Previews/EncryptedItem/EncryptedItemPreviewView.swift, and lock.shield.fill with "Encrypted" in VaultMac/Views/Feed/VaultMacItemRow.swift).
    • EncryptedItem stores only its title unencrypted, so the list doesn't know an item is a phrase.
    • Code tiles show a large 52 pt code.
  • Help opens with "What is a 'code'?" / "About Codes" (HelpView.swift:29-30, VaultMacHelpView.swift:33). FAQ-Codes.md is a 2FA explainer, and there's no FAQ about recovery phrases.
  • Other code-first wording:
    • "Couldn't fetch codes" / "We can't get your codes…" (VaultFeed.xcstrings:474,485), shown when the list can't load any item;
    • the Mac About says "two-factor codes, notes and recovery phrases" (VaultMacAboutView.swift:27).
  • Empty state: "No Items", with nothing to suggest what to add.

Change

  • Add order on both apps: Recovery Phrase, Private Key (VAULT-143), Note, Code. Suggested subtitles:
    • "Seed words for a crypto wallet";
    • "A wallet's private or extended key";
    • "Any text, like a PIN or a password";
    • "Two-factor codes for websites and apps".
    • On the Mac, give ⌘N to the first entry, keep ⇧⌘N for New Note, and update the menus' order to match.
  • Empty state: "No Items" offers the add options in the same order. The first thing a new user sees then points at phrases and keys.
  • Help:
    • Add "About Recovery Phrases" and, with VAULT-143, "About Private Keys" FAQs, first in the list. Cover what Vault checks, why words stay masked and can't be copied, and the paper backups.
    • Move the codes FAQ below them, unchanged.
  • Wording:
    • Make the fetch error say items, not codes.
    • Order the Mac About as phrases, keys, notes, then codes, and match the iOS About if it lists types.
  • Snapshots: update every snapshot that changes.

Decision for Bradley

Should the list show what kind an encrypted item is?

  1. Keep it as it is (lock and "Encrypted").
  2. Store the item's kind unencrypted, so the list can show "Recovery Phrase" or "Private Key" with its own icon. This tells anyone looking at the list, a coercer included, which items are crypto, and the title can already do that. It needs a MANIFESTO check and a format change.
  3. Let the user choose an item's icon, with no kind stored.

The recommendation is 1 or 3, because 2 trades away duress protection for looks.

Done when

Both apps put phrases (and keys, once VAULT-143 lands) first in every add flow and in help, with the decision above made and done. Snapshots are updated, and make validate passes.

GitHub

0

No branches or pull requests linked.

Comments

1
Bradley

Done in https://github.com/badbundle/vault-app/pull/754 (merged as 225bfe7a). Bradley's decision: the list keeps "Encrypted".

  • Add order: Recovery Phrase, Private Key, Note, Code on iOS and the Mac, with the new subtitles. ⌘N is New Recovery Phrase.
  • Empty list: it offers each kind of item, in that order, only for a vault with no items.
  • Help: a new "About Recovery Phrases" page; it and "About Private Keys" come first.
  • Wording:
    • The fetch error says items, not codes.
    • The Mac's About lists phrases first.
    • The lock screens say "Unlock to open your vault".
    • Hide While Recording's footer says "your items".
  • Validation: validated with the Mac UI tests skipped, at Bradley's request. The changed Mac UI tests are built; the full run on main follows.