-
Notifications
You must be signed in to change notification settings - Fork 140
Open
Labels
Description
Problem statement
“Total Active Days” showing 0 for all users
Description:
Currently, the CP Tracker UI displays “Total Active Days,” which shows 0 for all users because we are not fetching this metric from the API. Instead, we can show Total Submissions by summing all submissions across Easy, Medium, and Hard difficulties.
Tasks:
- Update utils/leetcode.ts to compute totalSubmissions from acSubmissionNum.
- Update the CP Tracker UI to display Total Submissions instead of Total Active Days.
- Ensure proper formatting and display on all screen sizes.
Benefits:
- Provides a meaningful metric that reflects user activity.
- Removes misleading “0” display for active days.
Steps to reproduce
1. Go to the Competitive Programming Tracker page in the app.
2. Enter a valid LeetCode username (e.g., mansisinghh).
3. Click Fetch Stats.
4. Observe the Total Active Days metric
Expected outcome
Total Active Days should reflect actual user activity.
Screenshots / recordings (if applicable)
Tested Users:
Username | Total Active Days showing 0 for all |
---|---|
anotheruser1 | ![]() |
anotheruser2 | ![]() |
Checklist
- I searched existing issues and did not find a duplicate
- I am willing to submit a PR to fix this
@saumyayadav25 kindly assign this issue to me under GSSoC