Skip to content

Conversation

MrunaliniPachpute
Copy link
Contributor

@MrunaliniPachpute MrunaliniPachpute commented Sep 27, 2025

Related Issue(s)

Summary

  • Previously, the "Total Active Days" metric always showed 0 for all users.
  • This PR replaces it with Total Submissions (sum of solved problems) across all platforms: Codeforces, LeetCode, and HackerEarth.
  • Now, the dashboard correctly fetches and displays submission stats for all supported platforms.

Changes

  • Updated utils/leetcode.ts and frontend logic to calculate total solved submissions instead of Active Days.
  • Updated CPTrackerPageClient to reflect "Total Submissions" on the dashboard.
  • Verified that stats fetch correctly for Codeforces, LeetCode, and HackerEarth.

Screenshots (if applicable)

Platform Dashboard Screenshot
Codeforces Screenshot (992)cf
LeetCode Screenshot (991)l
HackerEarth Screenshot (994)

How to Test

  1. Open the Competitive Programming Tracker page.
  2. Enter your username/handle for Codeforces, LeetCode, and HackerEarth.
  3. Click "Fetch Stats" and verify that:
    • Easy, Medium, Hard, and Total Submissions show correct numbers.
    • Total Active Days is no longer displayed.

Checklist

  • I linked a related issue using Fixes #<issue_number>
  • I tested locally and verified the changes work as expected
  • I updated docs or comments where needed

Copy link

vercel bot commented Sep 27, 2025

@MrunaliniPachpute is attempting to deploy a commit to the saumyayadav213-gmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@MrunaliniPachpute
Copy link
Contributor Author

MrunaliniPachpute commented Sep 27, 2025

@saumyayadav25 The PR has no conflicts with the base branch. The Vercel failing check is due to authorization, not code. It can be safely merged. Thank you. Please check.

@MrunaliniPachpute
Copy link
Contributor Author

Fixed the vercel auth as well :)

Copy link

vercel bot commented Sep 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
dsamatetemplate Ready Ready Preview Comment Sep 27, 2025 3:08pm

@saumyayadav25
Copy link
Owner

Yup, there's no issue with code,
for vercel, PA needs to deploy it to see preview, no worries, will check it soon

@saumyayadav25 saumyayadav25 merged commit c35633f into saumyayadav25:main Oct 4, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: “Total Active Days” metric replacement with "Total Submissions" required
2 participants