[Fix] Docs navbar shows the wrong GitHub and VS Code counts#3
Merged
Merged
Conversation
Author
|
1 issue outstanding. Action required. See task
|
Contributor
navedmerchant
left a comment
There was a problem hiding this comment.
Fixes counts to point to zoo code repo in the docs
| const [stars, setStars] = useState<string | null>("15.4k"); | ||
| const [downloads, setDownloads] = useState<string | null>("574.1k"); | ||
| const [stars, setStars] = useState<string | null>(null); | ||
| const [downloads, setDownloads] = useState<string | null>(null); |
Author
There was a problem hiding this comment.
Removing the fallback also leaves the install CTA rendered as Install · until the marketplace request resolves, and permanently if it fails. If the count is intentionally live-only, the separator still needs to stay conditional so the label does not ship in this broken state.
There was a problem hiding this comment.
I guess you could use a loading skeleton or something, but I’m ok with an empty string or even -
edelauna
approved these changes
May 17, 2026
| const [stars, setStars] = useState<string | null>("15.4k"); | ||
| const [downloads, setDownloads] = useState<string | null>("574.1k"); | ||
| const [stars, setStars] = useState<string | null>(null); | ||
| const [downloads, setDownloads] = useState<string | null>(null); |
There was a problem hiding this comment.
I guess you could use a loading skeleton or something, but I’m ok with an empty string or even -
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 problem this solves
Fixes an issue where the docs navbar showed GitHub stars from the wrong repository and a VS Code install count from the wrong extension, with the install total also being held up by a stale static fallback.
Why this change was made
The GitHub button should track the main
Zoo-Code-Org/Zoo-Coderepository, and the install button should query theZooCodeOrganization.zoo-codemarketplace entry directly. The user explicitly wanted the docs site to show the live marketplace API result instead of pinning the navbar to a static fallback value, even if that means the docs number can briefly lag the listing page.User impact
Users now see the Zoo Code repo star count and the live Zoo Code marketplace install count in the docs navbar, and both links point at the matching Zoo Code destinations. Smaller totals are shown exactly, so the current install count renders as
1,690instead of rounding to1.6k.Screenshots
The docs navbar now shows a live Zoo Code GitHub star count of
262and a live Zoo Code marketplace install count of1,690, with no static install placeholder.