codecache icon indicating copy to clipboard operation
codecache copied to clipboard

Remove from bookmark option in user profile

Open abhi9ab opened this issue 2 years ago • 8 comments

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.

abhi9ab avatar Oct 23 '24 12:10 abhi9ab

🎉 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!

github-actions[bot] avatar Oct 23 '24 12:10 github-actions[bot]

@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.

notsoocool avatar Oct 24 '24 17:10 notsoocool

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.

abhi9ab avatar Oct 26 '24 11:10 abhi9ab

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

notsoocool avatar Oct 26 '24 12:10 notsoocool

Any updates on this ?

abhi9ab avatar Oct 29 '24 10:10 abhi9ab

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

abhi9ab avatar Oct 29 '24 17:10 abhi9ab

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 avatar Oct 30 '24 08:10 notsoocool

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

notsoocool avatar Oct 30 '24 08:10 notsoocool