Skip to content

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

@lukasoppermann lukasoppermann requested a review from a team as a code owner February 28, 2025 10:46
@changeset-bot
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
@github-actions
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!

@github-actions
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

@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
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.

3 participants