feat: add auto-save draft support for form editor#75
Conversation
|
@KumarManglam-123 is attempting to deploy a commit to the Aman Singh's projects Team on Vercel. A member of the Team first needs to authorize it. |
✅ PR Checklist CompleteGreat job @KumarManglam-123! Your PR follows all the guidelines. A maintainer will review it soon. Thank you for your contribution! 🙏 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Remove clerk configuration from .gitignore
|
Auto-save draft feature implemented and tested locally. Please review. Thanks! |
Amansingh0807
left a comment
There was a problem hiding this comment.
We actually don't need the changes in package-lock.json and package.json file. Otherwise it looks good to me.
|
Hi @Amansingh0807, |
Amansingh0807
left a comment
There was a problem hiding this comment.
Nice formatting and auto-save! However, you accidentally removed crucial UI for field types, options, and the live form preview. Please restore these core features so we can merge.
In FormEditor.tsx, you accidentally removed core features (field types, options UI, and live preview). Please restore them alongside your auto-save changes so we can merge.
|
Hi , |
Thanks for the approval and support. This is my last contribution |
Description
This PR adds an auto-save draft feature to the form editor to prevent data loss during form creation or editing.
The implementation automatically saves form state to localStorage on field changes and restores the last saved draft when the editor is reopened. This improves reliability and user experience for long or complex forms.
Related Issue
Resolves #47
Type of Change
Checklist
AI Disclosure
If yes:
Testing
Environment:
Additional Notes
Draft saving uses browser localStorage and does not affect backend APIs.