Skip to content

fix: add confirmation dialog and snapshot history before reset #85#91

Open
Abhishek-gupta18 wants to merge 3 commits into
Mohit-368:mainfrom
Abhishek-gupta18:fix/reset-history-snapshot
Open

fix: add confirmation dialog and snapshot history before reset #85#91
Abhishek-gupta18 wants to merge 3 commits into
Mohit-368:mainfrom
Abhishek-gupta18:fix/reset-history-snapshot

Conversation

@Abhishek-gupta18
Copy link
Copy Markdown
Contributor

##What this PR does

  • Added a confirmation dialog before "Reset All Fields" executes to prevent accidental data loss
  • Automatically snapshots the full editor state (via localStorage) before every reset — so nothing is lost
  • Maintains a rolling history of up to 10 timestamped snapshots, stored entirely in localStorage
  • Introduced a History panel in the UI where users can browse past snapshots and restore any previous state with a single click
  • Fully zero-dependency and browser-based, consistent
    with the existing localStorage architecture of the app

Issue

Closes #85

Testing

  • Click Reset All Fields → confirmation dialog appears
  • Confirm reset → snapshot saved in history
  • Open History panel → snapshots visible with timestamps
  • Click Restore → previous state recovered successfully
Screenshot 2026-05-13 020914 image

@netlify
Copy link
Copy Markdown

netlify Bot commented May 12, 2026

Deploy Preview for makeareadme ready!

Name Link
🔨 Latest commit ebd42ea
🔍 Latest deploy log https://app.netlify.com/projects/makeareadme/deploys/6a04010256011d0008904f3b
😎 Deploy Preview https://deploy-preview-91--makeareadme.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

## Issue: Reset button clears all data with no way to recover it

1 participant