Skip to content

feat(editor): contribution stats legacy repo backward compatibility - #325

Merged
babblebey merged 7 commits into
mainfrom
editor/stats
Nov 24, 2026
Merged

babblebey merged 7 commits into
mainfrom
editor/stats

Conversation

@babblebey

Copy link
Copy Markdown
Member

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:

  • Updated doContributionStats to aggregate stats from both the current content repository and the legacy jargonsdev/jargons.dev repository, ensuring users' historical contributions are included. The stats calculation is now more robust and totals are returned in a simplified structure.
  • Added a new helper function, buildContributionStatsUrl, to generate GitHub search URLs for contribution stats, replacing the old buildStatsUrl.

UI and display consistency:

  • Updated the editor and new word pages to use more descriptive and accurate page titles, improving clarity for users.
  • Simplified and improved the SVG icons used in the word editor toolbar for better visual consistency and maintainability.

Testing and code quality:

  • Added comprehensive unit tests for doContributionStats to ensure that stats from both repositories are included and URLs are formed correctly.

Code cleanup:

  • Removed unused imports and legacy code related to stats URL building in index.astro.

Related Issue

NA

Screenshots/Screencasts

NA

Notes to Reviewer

NA

@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
jargons-dev Ready Ready Preview Nov 24, 2026 12:02pm UTC

@babblebey
babblebey merged commit f3ae0c1 into main Nov 24, 2026
7 checks passed
@babblebey
babblebey deleted the editor/stats branch November 24, 2026 12:03

This branch was successfully deployed

1 active deployment
Preview — 60d9969d Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant