Skip to content

[Fix] Docs navbar shows the wrong GitHub and VS Code counts#3

Merged
navedmerchant merged 5 commits into
mainfrom
fix/zoo-code-docs-references-2o7fa8fc0aexl
May 17, 2026
Merged

[Fix] Docs navbar shows the wrong GitHub and VS Code counts#3
navedmerchant merged 5 commits into
mainfrom
fix/zoo-code-docs-references-2o7fa8fc0aexl

Conversation

@roomote
Copy link
Copy Markdown

@roomote roomote Bot commented May 15, 2026

Opened on behalf of Naved Merchant. View the task or mention @roomote for follow-up asks.

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-Code repository, and the install button should query the ZooCodeOrganization.zoo-code marketplace 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,690 instead of rounding to 1.6k.

Screenshots

Docs navbar shows live Zoo Code GitHub stars and live marketplace installs

The docs navbar now shows a live Zoo Code GitHub star count of 262 and a live Zoo Code marketplace install count of 1,690, with no static install placeholder.

@roomote roomote Bot added the roomote:auto-resolve-conflicts Auto-resolve conflicts for Roomote-managed PRs label May 15, 2026
@roomote
Copy link
Copy Markdown
Author

roomote Bot commented May 15, 2026

1 issue outstanding. Action required. See task

  • GitHub star count disappears until the client fetch succeeds, so the navbar no longer has a visible fallback count. — dismissed: the author confirmed the live-only GitHub count is intentional for this PR.
  • Removing the install fallback now leaves the CTA rendered as Install · until the marketplace request succeeds, and permanently on failure.

Comment thread src/components/GitHubInstallButtons/index.tsx
@roomote roomote Bot changed the title [Docs] Show Zoo Code Cloud wording and correct GitHub stars [Fix] Docs navbar GitHub stars point to the wrong repository May 17, 2026
@roomote roomote Bot changed the title [Fix] Docs navbar GitHub stars point to the wrong repository [Fix] Docs navbar shows the wrong GitHub and VS Code counts May 17, 2026
Copy link
Copy Markdown
Contributor

@navedmerchant navedmerchant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes counts to point to zoo code repo in the docs

@navedmerchant navedmerchant marked this pull request as ready for review May 17, 2026 05:00
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);
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you could use a loading skeleton or something, but I’m ok with an empty string or even -

Copy link
Copy Markdown

@edelauna edelauna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

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);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you could use a loading skeleton or something, but I’m ok with an empty string or even -

@navedmerchant navedmerchant merged commit a99a46e into main May 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

roomote:auto-resolve-conflicts Auto-resolve conflicts for Roomote-managed PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants