Feature/clickable leaderboard names - #538
Open
Yashaswini-K-P wants to merge 2 commits into
Open
Conversation
Contributor
|
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. Formatting and Branching
|
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.
Description
This pull request adds an interactive user profile feature to the CodePVG leaderboard. Users can now click on any student's name on either desktop or mobile views to navigate to a dedicated profile page (
/user/:username) showing their individual stats and breakdown.Linked Issue
Fixes #142
Changes Made
server.js): Added dynamic routing for/user/:usernameand an API endpoint/api/user/:usernameto fetch user stats.user.html): Created a new profile view template securely integrating server nonces and username parameters.profile.js): Implemented client-side data fetching and dynamic DOM population for user statistics.render.js): UpdatedrenderLeaderboardRowandrenderMobileCardto wrap student names in internal route links pointing to their profiles.main.css): Added clean link inheritance classes (.leaderboard-user-link) to preserve existing text colors and remove default anchor styling/underlines.Type of Change
Testing
Checklist
npx prettier --write .before submittingfeature/*branch, not themainbranchScreenshots / Screen Recording