feat: add public profile comparison feature#1214
Conversation
|
@ramlal-01 is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel. A member of the Team first needs to authorize it. |
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
|
Rebased with latest Build, lint, and typecheck are passing successfully. Feature implementation is complete and ready for review. 🚀 |
|
CI is failing on this PR. Please fix the failing checks before this can be merged. |
3943163 to
d0b9bfa
Compare
|
Rebase with the main branch. |
|
@Priyanshu-byte-coder |
Summary
closes #1068
Adds a public profile comparison system to DevTrack.
Users can now compare themselves with another public DevTrack profile directly from
/u/[username].This introduces:
Features Added
Public Profile Compare Button
On
/u/[username]:Log in to compareCompare with meClicking the compare button navigates to:
Example:
Shareable Compare Route
Added:
Supports routes like:
The compare page:
Architecture Changes
Reused Existing Public Profile Infrastructure
Instead of creating a separate comparison backend, this PR reuses and extends the existing public-profile architecture.
Shared Public Profile Logic
Moved reusable public profile fetch logic into shared helpers to reduce duplication and keep compare pages public-first and privacy-safe.
Public Compare Data
Added support for:
Privacy Handling
If either profile:
the compare page shows an unavailable state instead of exposing hidden data.
Files Added / Updated
Added
Updated
Validation
Verified locally:
All passing successfully.