suryanshsingh2001 / MyLibrary

MyLibrary 📚 is a modern library management web app built with React.js, 🔐 Auth0 for authentication, 📖 Google Books API for book data, and styled with 🎨 Tailwind CSS for a delightful user experience.
https://mylibrary01.vercel.app/
MIT License
25 stars 25 forks source link

Return of book | List of Books User has Issued #66

Open TheAdich opened 2 weeks ago

TheAdich commented 2 weeks ago

*Is your feature request related to a problem? Please describe. During my review of the current site, I noticed a gap in the user experience. Specifically, users are unable to view the list of books they have rented in a dedicated section, which could enhance their interaction with the platform. Additionally, there is no option to set or manage a rental period before renting a book. This can lead to confusion around rental deadlines, and users aren't notified when the rental period ends, which could delay book returns.

Describe the solution you'd like I suggest implementing a user dashboard that would display the books a user has rented, along with the rental period for each book. There should also be an option for users to return the book once they’ve finished with it.

To manage rental periods, a toast notification or prompt could be introduced, allowing users to input the number of days they'd like to rent a book before confirming the transaction. I'll need to modify some models and schemas to accommodate this feature.

Additional context A snapshot of proposed feature is below Screenshot 2024-10-04 112652

Looking forward to implement this feature. Let me know if it is feasible and aligns to your project's scope.

suryanshsingh2001 commented 1 week ago

Hi @TheAdich ,

Thank you for your feature suggestion! The enhancement you propose would certainly improve the user experience, especially by offering more clarity around rented books and rental periods.

However, at the moment, we don’t have a backend in place to store all the necessary information for such a feature. We’re currently relying on local storage for persistence, and adding a backend isn’t on the top of our priority list right now.

That said, if you're able to create a flow that leverages the existing local storage workflow to achieve something similar, we’d be happy to review and consider integrating it.

Looking forward to your thoughts!