Repository navigation
Sprint 7 · M4: followers/following lists, projects on profiles, real profile data (D6) - #66
Merged
Merged
Conversation
…ofile data (D6) Followers and following lists on own and other profiles (20 per page, newest first). User projects on profiles: Public, plus Private only when the viewer is a member, linking to /project/:id or /discover/:id. D6: real About (focus/exploring/openTo) and real Contribution snapshot via GET /api/profile/me/snapshot. Backend and frontend tests added.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Divy1386
requested review from
Heer64,
SumitGauswami,
Urvish2007 and
aarohi-mehta
November 20, 2026 14:10
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.
What this PR does
Sprint 7 · M4: followers / following lists on profiles, a user's projects on their profile, and D6 (real "About" and "Contribution snapshot" on My profile instead of fixed text and numbers).
User stories / requirements: Sprint 7 M4, D6 (FR-19, FR-26 follow-up)
Changes
/people/:username: two tabs with real counts, 20 per page ("Show more"), each person links to their profile, refreshes after Follow / Unfollow. The profile API now also returnsfollowingCount./project/:id, everyone else opens the public page/discover/:id. Private projects are filtered twice (MongoDB query + rules check).Cache-Control: no-store):GET /api/profile/users/:username/followers?page=GET /api/profile/users/:username/following?page=GET /api/profile/users/:username/projectsGET /api/profile/me/snapshotbackend/src/routes/profile.js,frontend/src/api.js(profileApi),ProfilePage.jsx,UserProfilePage.jsx,styles.css(appended at the end only).How to test it
Demo data (
npm run seed, passwordDevOrbit@2026): CampusConnect is Private (Riya + Aarav), Orbit dashboard is Public.jai@seed.devorbit.test, open/people/riya_seed→ Projects shows Orbit dashboard only (CampusConnect hidden).aarav@seed.devorbit.test, open/people/riya_seed→ shows Orbit dashboard and CampusConnect (Private).Checklist
mainand mergedmainagain just before opening this PRnpm testpasses inbackend/(1006 passed, 0 failed) andfrontend/(76 files, 636 tests passed)npm run buildpasses infrontend/(checked by CI on this PR)npm run lintshows no errors (1 existing warning ine2e/tests/sprint5-profile-discovery.spec.js, not part of this PR).envfiles,node_modulesordistin the diffScreenshots (UI changes)
To be added after testing.