trackslash
VAULT-107 P2 For an agent

Mac app: browse, search and copy items

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

Description

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

The Items area, for viewing and using items. Editing comes in the next issue.

  • The feed: codes, notes and recovery phrases, in a list or grid that suits a Mac window. Codes are live, with their timers, and Show Next Code is supported. Tag filters are in the sidebar or toolbar.
  • Search, with the same rules as iOS:
    • hidden items appear only while the search is exactly their passphrase (G8);
    • a killphrase deletes its item quietly, with a failure looking the same as no match (G1, G2, C2);
    • ⌘F focuses the search field.
  • An item's page: the same content as iOS. Locked items need Touch ID or the Mac's password to view or copy (G32). Recovery phrases stay masked until clicked, and can't be copied (G41).
  • Copying a code, by clicking it or with ⌘C:
    • it uses the concealed and transient pasteboard types;
    • it's cleared after the Clear Clipboard time (1 minute by default);
    • it only reaches other devices if Universal Clipboard is allowed, which it isn't by default (G50, C7).
  • No enumeration: nothing shows which items have a killphrase or a passphrase (C5).
  • Tests: snapshot tests of the feed and an item's page in light and dark, plus unit tests for copying and search that match iOS's.

Done when

Items can be browsed, searched, opened and copied on the Mac, with every rule above, and the rows for them are in docs/security-model.md.

Linked issues

0

GitHub

0

No branches or pull requests linked.

Comments

1
Bradley

Fixed in https://github.com/badbundle/vault-app/pull/717 (merged as 1574541d).

  • The main window has three columns. The sidebar lists Items, each tag and Backups. The middle column lists the items, with live codes, timers and Show Next Code. The right-hand column shows the open item's page, with the iOS app's content: codes, notes in Markdown (images never loaded), encrypted items opened with their own password, and recovery phrases.
  • Search is the shared data model's, so hidden items, search passphrases and killphrases work exactly as on iOS. Nothing in the list marks which items have either. Find (⌘F) focuses it. The Mac app now sets up the killphrase and search passphrase checks when it loads the vault.
  • Locked items show nothing until Touch ID or the Mac's password passes, and their codes aren't copied until it does. A recovery phrase needs that as well as its own password, whatever its stored lock state, and again once Vault stops being the active app. Its words stay masked until clicked, and can't be selected or copied.
  • Copying: every copy is marked concealed and transient, and stays on this Mac unless Universal Clipboard is allowed for that kind of text. The copy is cleared after the Clear Clipboard time, or when Vault quits, unless something else has been copied since. Clicking a code copies it, or opens its page, as Tap a Code To says. Copy (⌘C) copies the open item's code while no text field has focus.
  • docs/mac-app.md covers the clipboard and the locked pages. docs/security-model.md adds G87 (the Mac's clipboard) and G88 (locked items, recovery phrases, search).