feat(frontend): add Recently Viewed dashboard section#152
Open
AYUSH-P-SINGH wants to merge 2 commits into
Open
feat(frontend): add Recently Viewed dashboard section#152AYUSH-P-SINGH wants to merge 2 commits into
AYUSH-P-SINGH wants to merge 2 commits into
Conversation
👷 Deploy request for devconnectai pending review.Visit the deploys page to approve it
|
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.
Pull Request Description
Summary
This PR introduces a complete Recently Viewed Posts feature, allowing authenticated users to keep track of posts they have recently opened and revisit them directly from the dashboard.
The feature includes backend APIs for storing and retrieving viewing history, along with a new dashboard section that displays recently viewed posts with smooth navigation back to the original post in the feed.
What This PR Does
Backend
Enhanced the
/api/posts/viewAPI with support for both updating and retrieving recently viewed posts.POST
/api/posts/viewGET
/api/posts/viewFrontend
Implemented a dedicated Recently Viewed section within the dashboard.
New Component
RecentlyViewed.jsDashboard Integration
LeftSidebar.jsFeedColumn.jsRecentlyViewedcomponent when selected.page.jsFiles Changed
New
RecentlyViewed.jsModified
app/api/posts/view/route.jsLeftSidebar.jsFeedColumn.jspage.jsTesting
Backend
Frontend
Project Validation
npm run check:structurenpm run buildBoth completed successfully.
Type of Change
Checklist
FIXES #150