feat(leaderboard): add peer comparison mode and side-by-side performa…#106
feat(leaderboard): add peer comparison mode and side-by-side performa…#106Vachhani-Tapan wants to merge 1 commit into
Conversation
|
Thank you for submitting a pull request. Please ensure your changes comply with the project's contribution guidelines and that all workflow checks pass successfully. A maintainer will review your submission shortly. |
|
Hey @jagdish-15 Sir I have created the comparison mode please review it and I have also added the screenshots refer them also . Thank You |
jagdish-15
left a comment
There was a problem hiding this comment.
There are a few merge conflicts with the latest main branch changes, mainly around the leaderboard rendering logic and the recent XSS/security fixes.
Please resolve the conflicts carefully while preserving:
- the safe DOM-based rendering from
main(instead of reintroducinginnerHTML), - the newer leaderboard additions like
totalSolvedand rank-change indicators, - along with the compare-mode functionality from this PR.
Once the conflicts are resolved and everything works together correctly, I’ll review it again.
|
Since the leaderboard logic has now been modularised further, please move the comparison-related logic into a separate While resolving the current conflicts, please adapt the compare feature to the newer structure as well, rather than merging everything back into the main leaderboard script. |
|
Okk Sir @jagdish-15 I will do the given changes in the code . For now i am closing this PR and will open new PR after doing the work done . |
Description
This PR introduces a peer comparison feature to the LeetCode leaderboard, allowing students to select up to 3 peers and compare their current stats and daily grinding histories side-by-side.
Linked Issue
Fixes #103
Changes Made
COMPARE_MODEbutton to explicitly enable/disable peer selection..leaderboard-row) and mobile cards (.mobile-card) with cross-view checking state synchronization.Type of Change
Testing
Checklist
Screenshots / Screen Recording