Repository navigation
Add a stars button to software cards - #343
Merged
Merged
Conversation
A software card's last button is its repository's GitHub stars, read from config/stars.json: a snapshot scripts/collect-stars.mjs rewrites and refresh-stars.yml proposes monthly as a pull request. A repository whose count cannot be read keeps its last one. It is the 'stars' key among a card's buttons, so a preset can place or drop it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
|
Preview: https://ebe2dfd1.nstarkman-space.pages.dev Built from |
1 task done
buttons:code,stars was rejected: 'stars' was a key a card offered but not one a name could ask for. Tested for every key a software card offers. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Changing code or schema
What and why: the profile README's software cards lost their star pills when they moved to the site's own cards. A software card now ends in a stars button (★ and the count, linking to the stargazers), so the site, the embeds and any export keep it.
config/stars.json: a snapshot of each softwarerepo's stars, written byscripts/collect-stars.mjs;refresh-stars.ymlproposes a new one monthly as a PR (like the contributions list). A repo that can't be read keeps its last count.starsis a link key (cardLinks), sobuttons:allshows it last andbuttons:code,starsplaces it. No schema change: it is synthesised, not stored.Counts are shown at any size (3 ★ included); a threshold would be a one-line change if wanted.
npm run test:schemapassesUnit tests (569) and
npm run buildpass; new tests hold a count for every package and the button's place🤖 Generated with Claude Code