trackslash
VAULT-108 P2 For an agent

Mac app: add and edit items

0
Sub-issue of VAULT-101 P2 A native Mac app

Description

Part of VAULT-101. It needs VAULT-107.

Adding and editing items on the Mac, with the same steps and rules as the iOS editor.

  • New items: codes, notes and recovery phrases, through ⌘N and the + button.

  • Adding a code:

    • type in its secret;
    • scan a QR code with the Mac's camera or Continuity Camera;
    • or read a QR code from an image file the user picks.

    Every code is checked before it's saved (G77).

  • Recovery phrases: checked against the BIP39, SLIP-39, Electrum and Monero word lists and checksums. They're always encrypted and locked, and their words can't be copied while typed.

  • Privacy & Security, per item only (C1, C8, C9):

    • lock;
    • encrypt a note with its own password;
    • visibility, with a search passphrase;
    • killphrase.
  • Text fields: autocorrect, text completion, spelling suggestions and Writing Tools are off in every field (G52). Edit menus offer only the plain text actions, and copies go through Vault's clipboard (G51).

  • Deleting an item asks for confirmation. There's no undo and no history (C6).

  • Tests: snapshot tests of each editor step, unit tests that match the iOS editor's, and a UI test that adds a code and a note.

Done when

Every item type can be added, edited and deleted on the Mac, with every per-item field, under the rules above.

GitHub

0

No branches or pull requests linked.

Comments

1
Bradley

Fixed in https://github.com/badbundle/vault-app/pull/718 (merged as 9a4d866c).

  • New Code (⌘N), New Note (⇧⌘N) and New Recovery Phrase are in the File menu and behind the toolbar's +, and each opens an editor in a sheet. Edit Item (⌘E) and Delete Item (⌘⌫, which asks first) are in a new Item menu and on the item's page.
  • The editors are built on the iOS editors' shared view models, with the same fields and checks:
    • a code's key can be typed in, scanned with the Mac's camera or Continuity Camera, or read from an image file, and is checked before it's used (G77);
    • a note's own password only counts once it's typed the same twice;
    • a recovery phrase is checked against its word list and checksum as it's typed into secure fields, and is always encrypted and locked (G41);
    • each item has its lock, its visibility with a search passphrase, and its killphrase.
  • Text fields: every field the user types into uses Vault's own field editor. It turns off spelling and grammar checking, completion, predictions, substitutions, Writing Tools and Services. It turns Secure Keyboard Entry on while it has focus, offers only the plain text actions, and copies through Vault's clipboard.
  • docs/mac-app.md describes the editors and the keyboard. docs/security-model.md adds G89 (text fields) and G90 (editors).
  • Mac UI tests: making a code and a note, through to the list.