Refresh hardcoded GitHub stats on the AI page - #121
Merged
guanzhousongmicrosoft merged 1 commit intoJul 30, 2026
Conversation
The /ai community section showed 3.2k+ stars and 200+ forks; the live values are 3,424 and 249 (GitHub API, 2026-07-30). Bump to 3.4k+ and 240+.
GuanzhouSong
force-pushed
the
homepage-messaging
branch
from
July 30, 2026 16:58
9d64443 to
55db168
Compare
guanzhousongmicrosoft
approved these changes
Jul 30, 2026
guanzhousongmicrosoft
pushed a commit
that referenced
this pull request
Aug 3, 2026
The star and fork counts were hardcoded independently in app/page.tsx and app/ai/page.tsx with no shared constant, so they drifted: the homepage said 3.2k+ stars and 200+ forks while /ai said 3.4k+ and 240+. Both sections render adjacent copy about the project being built in the open, so a visitor moving between the two pages saw two different star counts. Neither figure was false - the + suffix covers the actual 3423 stars and 248 forks - but nothing stopped the next refresh from updating one page and leaving the other behind, which is exactly what happened when the AI page was refreshed in #121. Both pages now read from app/services/projectStats.ts, which also holds the TSC member and organization counts quoted on both pages (verified against upstream MAINTAINERS.md: 11 members across Microsoft 4, Amazon 4, AB InBev 1, Rippling 1, YugabyteDB 1). Values stay hardcoded rather than fetched so the build keeps no network dependency; the refresh command and the date last checked are recorded next to them. Addresses the second half of #128. The create_indexes_background row in the first half is content in documentdb/docs and needs a separate PR there.
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.
What
The /ai community section showed 3.2k+ stars / 200+ forks; live values are 3,424 / 249 (GitHub API, 2026-07-30). Bumps to 3.4k+ / 240+.
Originally this PR also carried a homepage messaging rework (hero badges, press refresh, ecosystem section, FAQ) — dropped per review direction; only the stats refresh remains. The homepage still shows 3.2k+/200+ in its own community section; happy to bump that too or wire both to a build-time fetch so the numbers stop rotting.
🤖 Generated with Claude Code
https://claude.ai/code/session_01XGMeNSmhAgmqzkdc7cQQgf