Skip to content

Conversation

TylerJDev
Copy link
Member

@TylerJDev TylerJDev commented Sep 2, 2025

Closes https://github.com/github/primer/issues/5535

Changelog

Changed

  • Deprecates CircleBadge

Rollout strategy

  • Patch release
  • 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

Copy link

changeset-bot bot commented Sep 2, 2025

🦋 Changeset detected

Latest commit: 1d6f536

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

This PR includes changesets to release 2 packages
Name Type
@primer/react Major
@primer/styled-react Major

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 staff Author is a staff member integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm labels Sep 2, 2025
Copy link
Contributor

github-actions bot commented Sep 2, 2025

👋 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 Sep 2, 2025

size-limit report 📦

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

@github-actions github-actions bot temporarily deployed to storybook-preview-6706 September 2, 2025 19:00 Inactive
@TylerJDev TylerJDev marked this pull request as ready for review September 2, 2025 19:45
@Copilot Copilot AI review requested due to automatic review settings September 2, 2025 19:45
@TylerJDev TylerJDev requested a review from a team as a code owner September 2, 2025 19:45
@TylerJDev TylerJDev requested a review from hectahertz September 2, 2025 19:45
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR deprecates the CircleBadge component as part of the Primer React Design System. The component is being removed from the main exports and moved to the deprecated exports module, while adding deprecation warnings to guide users toward alternative solutions.

Key Changes

  • Removes CircleBadge from main package exports and moves it to the deprecated module
  • Adds deprecation JSDoc comments to guide users toward using specific icon imports from @primer/octicons-react
  • Updates Storybook organization to move stories under the "Deprecated" section

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/react/src/index.ts Removes CircleBadge and CircleBadgeProps exports from main package
packages/react/src/deprecated/index.ts Adds CircleBadge exports to deprecated module
packages/styled-react/src/index.ts Removes CircleBadge from styled-react package exports
packages/react/src/CircleBadge/CircleBadge.tsx Adds deprecation JSDoc comments to component and icon
packages/react/src/CircleBadge/CircleBadge.docs.json Updates component status from "alpha" to "deprecated"
packages/react/src/CircleBadge/CircleBadge.stories.tsx Moves Storybook stories to "Deprecated/Components" section
packages/react/src/CircleBadge/CircleBadge.test.tsx Updates import to use direct path instead of index
e2e/components/CircleBadge.test.ts Updates story IDs to match new deprecated path
.changeset/orange-taxis-rhyme.md Adds changeset for major version bump
Test snapshots Updates snapshots to reflect component changes

Comment on lines 29 to 32
/**
* @deprecated This component is deprecated.
* Replace component with specific icon imports from `@primer/octicons-react` and customized styling.)
*/
Copy link
Preview

Copilot AI Sep 2, 2025

Choose a reason for hiding this comment

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

There's an extra closing parenthesis at the end of the deprecation message. It should end with 'and customized styling.' instead of 'and customized styling.)'.

Copilot uses AI. Check for mistakes.

Comment on lines 44 to 47
/**
* @deprecated This component is deprecated.
* Replace component with specific icon imports from `@primer/octicons-react` and customized styling.)
*/
Copy link
Preview

Copilot AI Sep 2, 2025

Choose a reason for hiding this comment

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

There's an extra closing parenthesis at the end of the deprecation message. It should end with 'and customized styling.' instead of 'and customized styling.)'.

Copilot uses AI. Check for mistakes.

@primer-integration
Copy link

👋 Hi from github/github-ui! Your integration PR is ready: https://github.com/github/github-ui/pull/1732

@TylerJDev TylerJDev enabled auto-merge September 4, 2025 15:45
@TylerJDev TylerJDev added this pull request to the merge queue Sep 4, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 4, 2025
@TylerJDev TylerJDev added this pull request to the merge queue Sep 4, 2025
Merged via the queue into main with commit e3f26cc Sep 4, 2025
43 checks passed
@TylerJDev TylerJDev deleted the tylerjdev/deprecate-circle-badge branch September 4, 2025 16:10
@primer primer bot mentioned this pull request Sep 4, 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 staff Author is a staff member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants