Add Bookmarks / Save for Later feature - #98
Open
AbhishekAvasthi wants to merge 6 commits into
Open
Conversation
Lets learners save scenarios from the Scenario Browser and view them later in a new Saved tab. Adds a bookmarks collection and REST endpoints (list/add/remove) on the backend, and a bookmark toggle plus Browse/Saved tabs on the frontend, following the existing project conventions.
Improves the Saved tab empty state with an icon and Browse button, adds a Saved count to the hero stats, and shows a brief toast when a scenario is saved or removed.
Reuses the existing level/concept/search filters so they also narrow down the Saved tab, not just Browse.
Adds a second, more visible bookmark toggle next to the scenario title in the workspace panel, in sync with the sidebar icon.
Lets users attach a short personal note to each saved scenario, editable inline in the Saved tab. Adds a PATCH /api/bookmarks/:id endpoint and updateBookmarkNote in store.js.
Lets users attach a short personal note to each saved scenario, editable inline in the Saved tab. Adds a PATCH /api/bookmarks/:id endpoint and updateBookmarkNote in store.js.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lets learners save scenarios from the Scenario Browser and view them later in a new Saved tab. Adds a bookmarks collection and REST endpoints (list/add/remove) on the backend, and a bookmark toggle plus Browse/Saved tabs on the frontend, following the existing project conventions.
What changed
bookmarkscollection indb.json,listBookmarks/addBookmark/removeBookmarkinstore.js, and a newroutes/bookmarks.jswithGET/POST /api/bookmarksandDELETE /api/bookmarks/:idTesting
See
PRODUCT.mdfor a fuller write-up.