Skip to content

Improve resetAll function with safer checks and better UX#66

Open
Dhani213 wants to merge 1 commit into
Mohit-368:mainfrom
Dhani213:patch-2
Open

Improve resetAll function with safer checks and better UX#66
Dhani213 wants to merge 1 commit into
Mohit-368:mainfrom
Dhani213:patch-2

Conversation

@Dhani213
Copy link
Copy Markdown

@Dhani213 Dhani213 commented Apr 28, 2026

Refactored the resetAll function to improve stability, safety, and overall user experience.

✨ Key Improvements

  • Added null/undefined checks to prevent runtime errors
  • Safely reset DOM elements and internal state variables
  • Improved handling of screenshots, badges, and tech selections
  • Added smooth scroll-to-top behavior after reset
  • Enhanced user feedback with a clearer toast message
  • Ensured compatibility across different UI states

✅ Result

The reset functionality is now more robust, user-friendly, and production-ready.

Closes #3

Refactored the resetAll function to improve stability, safety, and user experience.

Key improvements:
- Added null/undefined checks to prevent runtime errors
- Safely reset DOM elements and state variables
- Improved handling of screenshots, badges, and tech selections
- Added smooth scroll-to-top behavior after reset
- Enhanced user feedback with clearer toast message
- Ensured compatibility across different UI states

This makes the reset functionality more robust and production-ready.
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 28, 2026

Deploy Preview for makeareadme ready!

Name Link
🔨 Latest commit fa2a183
🔍 Latest deploy log https://app.netlify.com/projects/makeareadme/deploys/69f0da063f5d6e00083a63ce
😎 Deploy Preview https://deploy-preview-66--makeareadme.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@Mohit-368
Copy link
Copy Markdown
Owner

@Dhani213 sorry for being late but i have checked your code and found a bug that the reset button isnt working
so fix it ASAP so that i can easily merge it

@Dhani213
Copy link
Copy Markdown
Author

Dhani213 commented May 2, 2026 via email

@Mohit-368
Copy link
Copy Markdown
Owner

@Dhani213 i didn't see it working if you are facing any issue i am here to resolve it. But check it again

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.

Add reset all fields button

2 participants