maheshbasnet089 / tapShare

Tapshare is a simple, secure, and reliable file sharing platform that allows users to quickly and easily send large files over the internet. Whether you need to send files to friends and family, or share important documents with colleagues and clients, Tapshare provides a convenient and secure solution.
https://tapshare.xyz
GNU General Public License v3.0
52 stars 32 forks source link

Refactor File Deletion Scheduler, Implement Rescheduling, and Enhance TopBadge Component #97

Closed NGR-NP closed 8 months ago

NGR-NP commented 8 months ago

enhancements to both the backend file management system and the frontend TopBadge component, improving functionality, user experience, and error handling.

Backend Changes:

  1. Refactored File Deletion Scheduler:

    • Restructured the file deletion scheduling mechanism for scalability and manageability.
    • Implemented a userJobs object to store scheduled deletion jobs associated with user IDs.
    • Updated the deletion function to handle multiple files associated with a user and delete them accordingly.
  2. Dynamic Rescheduling Functionality:

    • Added a new endpoint rescheduleDeletion to enable users to adjust the deletion schedule for their files.
    • Introduced input validation to ensure the validity of rescheduling inputs, preventing errors and ensuring consistency.
    • Implemented logic to reschedule existing deletion jobs based on user requests, providing flexibility and control.

Frontend Changes:

  1. Improved User Experience in TopBadge Component:

    • Enhanced input validation to restrict input length and provide visual feedback through animations.
    • Refactored state management using the useState hook for improved readability and maintainability.
    • Implemented dynamic state updates based on user interactions and local storage, ensuring consistency across sessions.
  2. Enhanced Error Handling:

    • Improved error handling mechanisms to handle errors from API requests and display informative error messages to the user.
    • Provided clear instructions on input requirements and maximum limits to enhance user guidance and usability.
  3. Persistent State Management:

    • Implemented local storage management to persist user settings such as expiration time type and value across sessions, ensuring a seamless user experience.

These changes collectively enhance the backend file management system's reliability, flexibility, and maintainability while providing users with a smoother experience and robust error handling in the frontend TopBadge component.

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git ā†—ļøŽ

Name Status Preview Comments Updated (UTC)
tap-share āœ… Ready (Inspect) Visit Preview šŸ’¬ Add feedback Mar 17, 2024 3:36pm
netlify[bot] commented 8 months ago

Deploy Preview for loquacious-brioche-8a34df ready!

Name Link
Latest commit 96c1e9a1d15b820ec6b1db1f117dc73d5d154410
Latest deploy log https://app.netlify.com/sites/loquacious-brioche-8a34df/deploys/65f70dd14899810008cbc069
Deploy Preview https://deploy-preview-97--loquacious-brioche-8a34df.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 site configuration.