Skip to content

fix(repo): paginate user repositories in repo explorer#3136

Open
desireddymohithreddy0925 wants to merge 12 commits into
Priyanshu-byte-coder:mainfrom
desireddymohithreddy0925:fix/repo-pagination
Open

fix(repo): paginate user repositories in repo explorer#3136
desireddymohithreddy0925 wants to merge 12 commits into
Priyanshu-byte-coder:mainfrom
desireddymohithreddy0925:fix/repo-pagination

Conversation

@desireddymohithreddy0925

Copy link
Copy Markdown
Contributor

Summary

Fixes a bug where the repo-explorer dashboard widget only fetched the first 100 repositories.

Closes #2902, Closes #2903


Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that changes existing behavior)
  • 📝 Documentation update
  • ♻️ Refactor / code cleanup (no functional change)
  • ⚡ Performance improvement
  • 🔒 Security fix
  • 🧪 Tests only

What Changed

  • Refactored src/app/api/metrics/repo-explorer/route.ts to utilize the fetchUserRepos utility.
  • Paginates via GitHub API to aggregate all repositories regardless of total count instead of only fetching the first 100.

How to Test

  1. Log in with a GitHub account that has more than 100 repositories.
  2. Navigate to the Repo Explorer section.
  3. Compare the total repository count with GitHub to verify all repositories are now accurately fetched.

Expected result: The application fetches and displays the complete list of repositories accurately.


Checklist

  • Linked the related issue above
  • Self-reviewed my own diff
  • No unnecessary console.log, debug code, or commented-out blocks
  • npm run lint passes locally
  • No TypeScript errors (npm run type-check)
  • Added or updated tests where applicable
  • Updated documentation / comments if behavior changed

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:bug GSSoC type bonus: bug fix type:devops GSSoC type bonus: devops (+15 pts) type:testing GSSoC type bonus: tests (+10 pts) labels Jul 5, 2026
@github-actions

github-actions Bot commented Jul 5, 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

@github-actions github-actions Bot added type:feature GSSoC type bonus: new feature type:design GSSoC type bonus: UI/design (+10 pts) type:performance GSSoC type bonus: performance (+15 pts) labels Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 GSSoC 2026 contribution type:bug GSSoC type bonus: bug fix type:design GSSoC type bonus: UI/design (+10 pts) type:devops GSSoC type bonus: devops (+15 pts) type:feature GSSoC type bonus: new feature type:performance GSSoC type bonus: performance (+15 pts) type:testing GSSoC type bonus: tests (+10 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Repository List Incomplete for Users with More Than 100 Repositories

1 participant