Repository navigation
Show game counts on the All Games and Playing sidebar items - #1161
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EPHzuYPjAo8LK9QeSz38Fy
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EPHzuYPjAo8LK9QeSz38Fy
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughAppSidebar now displays game counts for All Games, Wishlist, and Playing. The Playing badge uses cyan styling, and child navigation labels use “game” or “games” based on the count. ChangesSidebar game counts
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Suggested reviewers: Merge Risk: ⚪ Minimal · up to The game-count badges are ready to merge after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. (1 skipped: 1 unsupported.)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
📊 Automated PR Analysis
SummaryAdds game count badges to the All Games and Playing items in the sidebar's Library group, alongside the existing Wishlist count. Playing uses the cyan status color matching its status badge, while All Games uses a neutral outline badge; badges hide when count is 0. Includes new AppSidebar tests and a CHANGELOG entry. Review Checklist
Analyzed automatically by wshm · This is an automated analysis, not a human review. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |



Requested by Vincent · project thread
Description
Before: in the sidebar's Library group, only Wishlist showed a count.
After: All Games and Playing show one too. Playing uses its cyan status color (
bg-cyan-600, the same as the Playing status badge). All Games uses a neutral outline badge so the library total doesn't compete with the status counts. Wishlist keeps its current style. A badge is hidden when its count is 0.How:
AppSidebarcounts wanted and playing games in the same single pass over the/api/gamesquery it already used, and All Games uses that list's length (non-hidden games, shelved included). Each nav item can now carry a badge variant and class. The sub-itemaria-labelreads "Playing, 3 games" (singular for 1). Addedclient/__tests__/AppSidebar.test.tsxand a CHANGELOG line under 1.5.0.Screenshots
Captured with headless Chromium against
npm run dev:test, with 9 seeded games (2 wanted, 3 playing). On phones the sidebar is replaced by the bottom nav, so the tablet capture (820x1180) is the narrowest width where it shows.Desktop, dark:
Desktop, light:
Tablet, dark and light:
Type of change
Checklist:
npm run checkclean, new sidebar tests pass)🤖 Generated with Claude Code
https://claude.ai/code/session_01EPHzuYPjAo8LK9QeSz38Fy
Generated by Claude Code
Summary by CodeRabbit