Repository navigation
feat(editor): contribution stats legacy repo backward compatibility - #325
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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
This pull request introduces several improvements and fixes related to contribution statistics and UI consistency in the Jargons Editor. The main focus is on updating how contribution stats are calculated to include both current and legacy repositories, simplifying the stats logic, and ensuring the UI reflects these changes accurately. Additionally, there are improvements to SVG icons and page titles for a more polished user experience. Unit tests have also been added to verify the new contribution stats logic.
Contribution statistics improvements:
doContributionStatsto aggregate stats from both the current content repository and the legacyjargonsdev/jargons.devrepository, ensuring users' historical contributions are included. The stats calculation is now more robust and totals are returned in a simplified structure.buildContributionStatsUrl, to generate GitHub search URLs for contribution stats, replacing the oldbuildStatsUrl.UI and display consistency:
Testing and code quality:
doContributionStatsto ensure that stats from both repositories are included and URLs are formed correctly.Code cleanup:
index.astro.Related Issue
NA
Screenshots/Screencasts
NA
Notes to Reviewer
NA