feat: add visual export functionality for dashboard analytics (#2712)#2739
Open
desireddymohithreddy0925 wants to merge 1 commit into
Open
Conversation
GSSoC Label Checklist 🏷️@Umbrella-io — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
Owner
|
Thanks for the contribution! We are currently in a code cleanup sprint and not accepting new features. Please see the discussion for details: #2651 This PR will be revisited once the sprint ends. In the meantime, contributions to testing, refactoring, bug fixes, or documentation are welcome. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Resolves #2712
This PR introduces a comprehensive Export Functionality designed to generate clean, shareable layouts for contribution analytics and developer insights. It consolidates the raw data downloads (CSV/JSON/Text PDF) and the new Visual exports (PNG/JPEG/Visual PDF) into an intuitive, unified Export Modal.
Changes Made
ExportModal.tsx: A new hub for configuring and running both legacy exports and visual captures.html-to-imageandjspdfto convert DOM nodes into high-quality images and properly formatted PDF layouts.dashboard-content,streak-tracker,repo-analytics,pr-metrics,activity-ring,coding-insights) withdata-export-idattributes insrc/app/dashboard/page.tsxfor precise DOM targeting.ExportButton.tsx: Replaced the clustered inline buttons with a single "Export Analytics" trigger button that opens the unified modal.Acceptance Criteria