diff --git a/docs/superpowers/specs/2026-04-12-idfoto-credential-capture-design.md b/docs/superpowers/specs/2026-04-12-idfoto-credential-capture-design.md new file mode 100644 index 0000000..123f809 --- /dev/null +++ b/docs/superpowers/specs/2026-04-12-idfoto-credential-capture-design.md @@ -0,0 +1,180 @@ +# idfoto — Credential Capture Design + +Experimental feature that detects login form submissions and prompts the user to save or update credentials in the vault. Configurable prompt style (notification bar or toast). Off by default. + +## Scope + +- Content script: detect form submissions with password fields, capture credentials +- Prompt UI: injected notification bar or floating toast (user-configurable) +- Dedup: check manifest before prompting — skip if already saved, offer update if password changed +- Blacklist: "Never for this site" option, persisted in `chrome.storage.local` +- Settings: enable/disable capture, choose prompt style +- Popup: settings view accessible from unlock screen + +## Trigger + +The content script listens for two events on forms that contain a password field: + +1. `submit` event on the `