0votes
Autosave Form Drafts
PromptLow riskPrevent data loss on long forms
Autosave drafts so people never lose a long form. Stack: {{stack}} Form: {{goal}} Requirements: 1. Save changed fields locally (IndexedDB, keyed by form and user) a few seconds after typing stops, not on every keystroke. 2. When the person comes back before submitting, offer to restore the draft and show when it was saved. 3. Clear the draft after a successful submit or when they choose "Discard". 4. Never store passwords, card numbers or other sensitive fields; list which fields you excluded. 5. Show a quiet "Saved" indicator, and handle two tabs editing the same form without overwriting each other silently. List the files you'll change, then give me a test plan: type, reload, close the tab, come back, submit, and the two-tab case.
e.g. 'the job application form' or 'the long blog post editor'
Framework, language and versions, e.g. Next.js 16 App Router + TypeScript

Log in to join the discussion.