Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change button to accept string in count #5725

Merged
merged 4 commits into from
Mar 17, 2025

Conversation

lukasoppermann
Copy link
Contributor

For the RepoPicker we use a button that shows the count of the selected items. This can easily be more than 1000. SO we would like to use the "human format", like 3.2k instead of 3200.

This PR allows this by changing the type of count to number | string as suggested by @mperrotti

Changelog

New

Changed

Type of count changed to number | string

Removed

Rollout strategy

  • Patch release
  • x] Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature. The key has expired.
xen0n WÁNG Xuěruì
@lukasoppermann lukasoppermann requested a review from a team as a code owner February 28, 2025 10:46
Copy link

changeset-bot bot commented Feb 28, 2025

🦋 Changeset detected

Latest commit: 2080695

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Feb 28, 2025
Copy link
Contributor

👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks!

Copy link
Contributor

github-actions bot commented Feb 28, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 106.06 KB (0%)
packages/react/dist/browser.umd.js 106.41 KB (0%)

Copy link
Member

@joshblack joshblack left a comment

Choose a reason for hiding this comment

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

Looks great! Just left a couple of suggestions

lukasoppermann and others added 2 commits March 17, 2025 10:07

Verified

This commit was signed with the committer’s verified signature. The key has expired.
xen0n WÁNG Xuěruì
Co-authored-by: Josh Black <joshblack@github.com>

Verified

This commit was signed with the committer’s verified signature. The key has expired.
xen0n WÁNG Xuěruì
Co-authored-by: Josh Black <joshblack@github.com>

Verified

This commit was signed with the committer’s verified signature. The key has expired.
xen0n WÁNG Xuěruì
@github-actions github-actions bot requested a deployment to storybook-preview-5725 March 17, 2025 09:11 Abandoned
@lukasoppermann lukasoppermann added this pull request to the merge queue Mar 17, 2025
Merged via the queue into main with commit d3b48b1 Mar 17, 2025
44 checks passed
@lukasoppermann lukasoppermann deleted the button-counter-allow-string branch March 17, 2025 09:35
@primer primer bot mentioned this pull request Mar 17, 2025
hectahertz pushed a commit that referenced this pull request Mar 20, 2025

Verified

This commit was signed with the committer’s verified signature. The key has expired.
xen0n WÁNG Xuěruì
Co-authored-by: Josh Black <joshblack@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants