Skip to content

chore(styled-react): remove Breadcrumbs, Table, Timeline, Truncate from @primer/styled-react - #7773

Merged
primer[bot] merged 3 commits into
mainfrom
remove-styled-react-components
Apr 28, 2026
Merged

chore(styled-react): remove Breadcrumbs, Table, Timeline, Truncate from @primer/styled-react#7773
primer[bot] merged 3 commits into
mainfrom
remove-styled-react-components

Conversation

@jonrohan

Copy link
Copy Markdown
Member

Overview

Remove Breadcrumbs, Table, Timeline, and Truncate components from @primer/styled-react. These components have zero remaining usage and can be safely removed.

Usage verification

ComponentPrimer QueryUsage
Breadcrumbsprimer-query0
Tableprimer-query0
Timelineprimer-query0
Truncateprimer-query0

Changelog

New

None

Changed

None

Removed

  • Removed Breadcrumbs, Breadcrumb, BreadcrumbsProps, BreadcrumbsItemProps from @primer/styled-react
  • Removed Table, DataTableContainerProps, TableProps, TableHeadProps, TableBodyProps, TableRowProps, TableHeaderProps, TableCellProps, TableTitleProps, TableSubtitleProps, TableActionsProps from @primer/styled-react/experimental
  • Removed Timeline, TimelineProps, TimelineItemProps, TimelineBadgeProps, TimelineBodyProps, TimelineBreakProps from @primer/styled-react
  • Removed Truncate, TruncateProps from @primer/styled-react

Rollout strategy

  • Patch release

Testing & Reviewing

  • Removed related tests for deleted components
  • Updated export snapshot to reflect removals

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews (Storybook)
  • Changes are SSR compatible
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge
  • (GitHub staff only) Integration tests pass at github/github-ui

@github-actionsgithub-actionsBot added the staff Author is a staff member label Apr 22, 2026
@changeset-bot

changeset-botBot commented Apr 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e580e99

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

This PR includes changesets to release 1 package
NameType
@primer/styled-reactPatch

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

@jonrohanjonrohan changed the title chore(styled-react): remove Breadcrumbs, Table, Timeline, Truncatechore(styled-react): remove Breadcrumbs, Table, Timeline, Truncate from @primer/styled-reactApr 22, 2026
@jonrohanjonrohan added the Canary Release Apply this label when you want CI to create a canary release of the current PR label Apr 22, 2026
@jonrohan
jonrohan marked this pull request as ready for review April 22, 2026 19:49
@jonrohan
jonrohan requested a review from a team as a code ownerApril 22, 2026 19:49
@github-actions
github-actionsBot requested a deployment to storybook-preview-7773 April 22, 2026 19:49 Abandoned

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes unused, deprecated component wrappers from the @primer/styled-react package (and the experimental entrypoint), along with their associated tests and export snapshots.

Changes:

  • Removed Breadcrumbs, Timeline, and Truncate exports and deleted their wrapper implementations from @primer/styled-react.
  • Removed Table (DataTable) export and deleted its wrapper implementation from @primer/styled-react/experimental.
  • Updated browser tests and export snapshots to reflect the removed entrypoints.
Show a summary per file
FileDescription
packages/styled-react/src/index.tsxRemoves Breadcrumbs, Timeline, and Truncate exports from the main entrypoint.
packages/styled-react/src/experimental.tsxRemoves Table (DataTable) exports from the experimental entrypoint.
packages/styled-react/src/components/Breadcrumbs.tsxDeletes the Breadcrumbs wrapper implementation.
packages/styled-react/src/components/Timeline.tsxDeletes the Timeline wrapper implementation.
packages/styled-react/src/components/Truncate.tsxDeletes the Truncate wrapper implementation.
packages/styled-react/src/components/DataTable.tsxDeletes the DataTable wrapper implementation used for experimentalTable.
packages/styled-react/src/tests/primer-react.browser.test.tsxRemoves sx-prop tests for the deleted main-entrypoint components.
packages/styled-react/src/tests/primer-react-experimental.browser.test.tsxRemoves Table tests from the experimental-entrypoint test suite.
packages/styled-react/src/tests/snapshots/exports.test.ts.snapUpdates export snapshots to remove deleted exports.
.changeset/famous-berries-kneel.mdAdds a changeset documenting the removal (currently marked as a patch).

Copilot's findings

  • Files reviewed: 10/10 changed files
  • Comments generated: 1

Comment thread.changeset/famous-berries-kneel.md
@primer-integration

Copy link
Copy Markdown

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

@primer-integration

Copy link
Copy Markdown

Integration test results from github/github-ui:

Passed CI  Passed
Passed VRT  Passed
Passed Projects  Passed

All checks passed!

@francineluccafrancinelucca left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

❇️

@jonrohan
jonrohan added this pull request to the merge queueApr 24, 2026
@francinelucca
francinelucca removed this pull request from the merge queue due to a manual request Apr 24, 2026
@jonrohan
jonrohan removed this pull request from the merge queue due to a manual request Apr 24, 2026
@jonrohan
jonrohan added this pull request to the merge queueApr 27, 2026
@github-merge-queue
github-merge-queueBot removed this pull request from the merge queue due to Branch Protection failures Apr 27, 2026
You're not authorized to push to this branch. Visit "About protected branches" for more information.
@jonrohan
jonrohan enabled auto-merge April 27, 2026 19:07
@github-actions
github-actionsBottemporarily deployed to storybook-preview-7773 April 27, 2026 19:17 Inactive
@jonrohanjonrohan added the integration-tests: skipped manually Changes in this PR do not require an integration test label Apr 27, 2026
@primer
primerBot disabled auto-merge April 28, 2026 17:39
@primer
primerBot added this pull request to the merge queueApr 28, 2026
Merged via the queue into main with commit 4360ab0Apr 28, 2026
60 checks passed
@primer
primerBot deleted the remove-styled-react-components branch April 28, 2026 17:48
@primerprimerBot mentioned this pull request Apr 28, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Canary ReleaseApply this label when you want CI to create a canary release of the current PRintegration-tests: skipped manuallyChanges in this PR do not require an integration teststaffAuthor is a staff member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@jonrohan@liuliu-dev@francinelucca