fix: add accountId support to languages, pr-breakdown, weekly-summary, issues routes and components#1339
Conversation
|
@ionfwsrijan 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. |
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
There was a problem hiding this comment.
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!
…, issues routes and their components
52190f1 to
758b16e
Compare
|
@Priyanshu-byte-coder You may review and merge |
Description
Fixes #1310
Adds \accountId\ support to 4 API routes and 4 frontend components that were ignoring the selected GitHub account, causing half the dashboard to show data for the wrong account when switching accounts.
API Routes Fixed
Components Fixed
Pattern Used
Follows the same pattern as existing \contributions\ and \streak\ routes: when \�ccountId\ query param is provided and differs from the session's \githubId, the route resolves the app user, fetches the linked account's token (and login where needed) from \user_github_accounts\ via \getAccountToken, and uses those credentials for GitHub API calls.