Skip to content

refactor: replace hardcoded data window labels#2145

Merged
Priyanshu-byte-coder merged 1 commit into
Priyanshu-byte-coder:mainfrom
Yash-Chhipa:fix-dynamic-date-label
Jun 8, 2026
Merged

refactor: replace hardcoded data window labels#2145
Priyanshu-byte-coder merged 1 commit into
Priyanshu-byte-coder:mainfrom
Yash-Chhipa:fix-dynamic-date-label

Conversation

@Yash-Chhipa

Copy link
Copy Markdown
Contributor

Summary

Closes #956


Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup

Changes Made

  • Replaced hardcoded "90 days" and "30 days" labels with dynamic labels derived from DATA_WINDOW_DAYS.
  • Updated LocalCodingTime component.
  • Updated RepoActivityDrawer component.
  • Updated StreakTracker component.

Verification

  • Audited dashboard components for hardcoded data window labels.
  • Replaced labels with references to constants.
  • Ran lint successfully (existing warnings only).

Checklist

  • Linked issue in summary
  • npm run lint passes locally
  • No TypeScript errors (npm run type-check)
  • Self-reviewed the diff
  • Added/updated tests if applicable

@vercel

vercel Bot commented Jun 7, 2026

Copy link
Copy Markdown

@Yash-Chhipa 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.

@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown

Thanks for your first PR on DevTrack! 🎉

A maintainer will review it within 48 hours. While you wait:

  • Make sure CI is passing (type-check + lint)
  • Double-check the PR description is filled out and the issue is linked
  • Feel free to ask questions in Discussions if you need help

If you find DevTrack useful, a ⭐ star on the repo is always appreciated — it helps the project grow and attract more contributors!

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:refactor GSSoC type bonus: refactor (+10 pts) labels Jun 7, 2026
@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

@Priyanshu-byte-coder Priyanshu-byte-coder added gssoc:approved GSSoC: PR approved for scoring level1 GSSoC Level 1 - Beginner (10 points) quality:clean GSSoC: Clean quality multiplier (×1.2) labels Jun 8, 2026
@Priyanshu-byte-coder Priyanshu-byte-coder merged commit 26128e6 into Priyanshu-byte-coder:main Jun 8, 2026
5 checks passed
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

🎉 Merged! Thanks for contributing to DevTrack.

If the project has been useful to you, a ⭐ star on the repo is the easiest way to support it — it helps DevTrack get discovered by more developers.

Keep an eye on open issues for your next contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved GSSoC: PR approved for scoring gssoc26 GSSoC 2026 contribution level1 GSSoC Level 1 - Beginner (10 points) quality:clean GSSoC: Clean quality multiplier (×1.2) type:refactor GSSoC type bonus: refactor (+10 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GOOD FIRST ISSUE] Replace hardcoded 'Last 90 days' text with dynamic date range label

2 participants