scorelab / Codelabz

Codelabz
Apache License 2.0
144 stars 410 forks source link

[ Feat : Added The Bookmark Page And Its Functionality In The Tutorials ] #1168

Open rohitPandey469 opened 7 months ago

rohitPandey469 commented 7 months ago

Description

The Bookmark Page is unavailable, so added a new field in tutorial called bookmarked whose value will be set to false at the time of document creation in firebase. Now when clicked on the "bookmark like Icon" it's value will toggle, with the help of toggleTutorialBookmark action. And then filtered out the tutorials with bookmarked==true and showed it at "/bookmarks" page.

Related Issue

Fixes #1135

Motivation and Context

Wanted to make a little contribution.

How Has This Been Tested?

Tested Locally on my machine.

Video demonstrating the workings:

https://github.com/scorelab/Codelabz/assets/123815256/fce82ccd-9235-4482-846b-47d450672a10

Currently, I am dispatching the action toggleTutorialBookmark directly from within the Cards - do tell me if it needs to be dispatched from the Home page.

Types of changes

Checklist: