Repository navigation
Conversation
The GitHub items in the header dropdowns are now titled mobile-air and desktop, with the repo's star count as the subtext. A new github:sync-repo-stars command fetches both counts once a day and caches them forever, so a failed fetch keeps the last good value and page requests never call GitHub. With nothing cached the subtext falls back to "GitHub". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dropdown items now read nativephp/mobile-air and nativephp/desktop, with the nativephp/ part at 60% opacity. The item component takes a new title-prefix prop for this, and the aria-label includes the prefix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
The "GitHub" item in the header's Mobile dropdown is now titled
nativephp/mobile-air, and the one in the Desktop dropdown isnativephp/desktop, with thenativephp/part in a lighter grey. Their subtext is the repo's star count, like "1.2k stars", instead of "Visit our GitHub repository". The links still go to the same repos. The dropdown item component has a new optionaltitle-prefixprop for the lighter part.Star counts come from a new
github:sync-repo-starscommand, scheduled daily at 09:00 next to the other GitHub jobs. It calls the GitHub repos API (usingGITHUB_TOKENwhen it's set) and stores each count withCache::forever. Page requests only read the cache, so they never hit GitHub. If a fetch fails, the old count stays in place and the command exits non-zero. The new methods live on the existingApp\Support\GitHubclass, whose$packageis now a public readonly property so the command can print it.Things to watch:
php artisan github:sync-repo-stars. Until then the subtext shows "GitHub".cache:clearon deploy would also wipe the counts until the next run or a manual one.aria-labelcomes from the title, so screen readers will now hear "nativephp/mobile-air" and "nativephp/desktop" rather than "GitHub".Tests are in
tests/Feature/GitHubRepositoryStarsTest.phpand useHttp::fake().🤖 Generated with Claude Code