Built in https://github.com/badbundle/vault-app/pull/667 (merged as e97e7639), as the narrow version.
Show in Spotlight is a new toggle in Settings → Codes, off by default. It puts codes' site names in Spotlight, which Apple Intelligence also searches. Choosing a result opens the code in Vault, after unlocking if App Lock is on.
Limits:
- Only while App Lock, and so the App Lock Password, is off. Turning App Lock on turns the setting off and empties the index.
- Only codes: never notes, recovery phrases or encrypted items. Never a locked or hidden code, or one Vault's own search can't find by name.
- Only the site's name, never the account name.
- A code with a killphrase is shown like any other, so Spotlight can't be used to find which codes have one (C5).
How it's kept current:
- The index is rebuilt from the whole vault, not the feed's filtered view, whenever the data, the setting or App Lock changes, and it's emptied at launch if it no longer applies.
- It's Vault's own index, with complete file protection, so it can't be read while the device is locked.
Tested:
- New tests cover what's shown, the unfiltered read, and the indexer's ordering and retries. 24 Settings snapshots are re-recorded.
- In the Simulator: with it on, Spotlight shows "GitHub · Code" under Vault, and tapping it opens the code. With it off, the result is gone. Screenshots are in
~/Library/Caches/vault-backlog-qa/VAULT-72/. - Accepted limit: like any system index, Spotlight's files may keep a trace of a removed code.