feat(dashboard): add json export functionality#1437
Conversation
|
@Aspirant200715 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!
|
Hi! Your PR has merge conflicts with the current git fetch upstream
git rebase upstream/main
# resolve any conflicts
git push --force-with-lease origin your-branchOnce resolved, we'll merge it in. Thanks! |
d9dace3 to
88a7506
Compare
|
Hi @Priyanshu-byte-coder, I have resolved the conflicts as asked pls check once |
Summary
Added a new "Export JSON" feature to the dashboard, allowing users to download their coding activity, goals, and metric snapshots in a highly structured programmatic format, while safely falling back if the database is disconnected.
Closes #1030
Type of Change
Changes Made
exportJSONfunction inside theExportButtoncomponent./api/user/data-export).How to Test
Steps for the reviewer to verify this works:
pnpm dev).jsonfile and verify that the data correctly maps your GitHub commits, PRs, and (if connected) your Supabase goals and streak history.Screenshots (if UI change)
The UI introduces a third "Export JSON" button perfectly matching the flex layout of the existing export buttons.
Checklist
pnpm run lintpasses locallypnpm run type-check)Accessibility Checklist
Additional Notes
The JSON export route was heavily tested for edge cases. It is intentionally designed to bypass strict errors when
/api/goalsfails, allowing users to export their GitHub contributions still even if they are in an incomplete local dev environment.