notsoocool / codecache

CodeCache is a dynamic web application designed to streamline the way developers manage and access code snippets. The platform provides a comprehensive library of code snippets, allowing users to save, organize, and retrieve useful code snippets for various programming languages and use cases.
https://codecache.tech
MIT License
18 stars 54 forks source link

Remove from bookmark option in user profile #155

Open abhi9ab opened 3 weeks ago

abhi9ab commented 3 weeks ago

Is your feature request related to a problem? Please describe. I'm frustrated when I accidentally bookmark a code snippet or no longer need it, but I cannot remove it from my bookmarks in my user profile. This clutters my bookmark list and makes finding the snippets I need harder.

Describe the solution you'd like Add a "remove from bookmark" feature in the user profile, allowing users to easily unbookmark code snippets they no longer need. This functionality should be easily accessible next to each bookmarked snippet.

Describe alternatives you've considered An alternative could be allowing users to manage their bookmarks in bulk, providing options to select and remove multiple bookmarks simultaneously. However, an individual "remove from bookmark" option seems more straightforward and user-friendly.

Additional context This feature will improve the user experience by enabling users to maintain an organized list of bookmarks, ensuring that only relevant and useful code snippets are saved.

If the issue seems legitimate, please assign it to me.

github-actions[bot] commented 3 weeks ago

🎉 Welcome to CodeCache! 🎉

Thank you for opening your first issue! We're excited to have you contributing to the project.

Before you get started, please make sure to check out our contributing guidelines and coding standards to ensure that everything is aligned with the project's workflow. If you have any questions or need help along the way, don't hesitate to ask.

We appreciate your input and look forward to collaborating with you. 🚀

Happy coding!

notsoocool commented 3 weeks ago

@abhi9ab we already have a toggle bookmark functionality, i think the contributors have forgotten to update it for user profile page, as we used to have a separate page bookmarks there it used to work. I will assign you this issue if you want any help or basic idea you can check out the bookmark page from dashboard, or you can direct link the bookmark page there instead of the current one.

abhi9ab commented 3 weeks ago

https://github.com/user-attachments/assets/cc26d774-dd56-4ee6-b02c-a3620b6d54d1

The above error occurs when I try to toggle from submitted to bookmark/Rated section. I have forked from the develop branch and ran bun install to install the dependencies.

notsoocool commented 3 weeks ago

@abhi9ab i will have a look once, don't worry

abhi9ab commented 2 weeks ago

Any updates on this ?

abhi9ab commented 2 weeks ago

I have implemented remove from bookmark in /snippets/[id]/page.tsx. Please look at the pictures and inform me whether I should raise a pr or not.

Before codecache without bookmark

After codecache bookmark

notsoocool commented 2 weeks ago

codecache.react.render.few.hook.error.mp4 The above error occurs when I try to toggle from submitted to bookmark/Rated section. I have forked from the develop branch and ran bun install to install the dependencies.

Buddy there is no error in code, i tested it locally every thing is intact and working, kindly clone the repo again by fetching the latest changes and then try to do bun install and bun dev

notsoocool commented 2 weeks ago

also about the add and remove bookmark from snippet page, sure you can do that as well, but your main issue was to remove bookmarks from the user profle page, so mainly focus on that