Skip to content

Conversation

@pksjce
Copy link
Contributor

@pksjce pksjce commented Sep 8, 2025

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

In this PR, we will move Banner component to the main export. I think it is well suited to recommend for migration from Flash component.

@pksjce pksjce requested review from Copilot and joshblack September 8, 2025 06:14
@pksjce pksjce requested a review from a team as a code owner September 8, 2025 06:14
@changeset-bot
Copy link

changeset-bot bot commented Sep 8, 2025

🦋 Changeset detected

Latest commit: b2e55b8

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 Patch
@primer/styled-react Patch

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

Copy link
Contributor

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 moves the Banner component from experimental to the main exports of @primer/react, making it available for general use as a replacement for the Flash component.

  • Move Banner component and types from experimental to main package exports
  • Update all import paths from experimental to direct Banner imports
  • Update Storybook story titles to reflect the component's new non-experimental status

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/react/src/index.ts Add Banner exports to main package exports
packages/react/src/tests/snapshots/exports.test.ts.snap Update export snapshots removing Banner from experimental and adding to main
packages/react/src/Button/Button.examples.stories.tsx Update import path from experimental to direct Banner import
packages/react/src/Banner/Banner.stories.tsx Update story title from Experimental/Components to Components
packages/react/src/Banner/Banner.figma.tsx Update import path from experimental to main package
packages/react/src/Banner/Banner.features.stories.tsx Update story title from Experimental/Components to Components
packages/react/src/Banner/Banner.examples.stories.tsx Update story title from Experimental/Components to Components
packages/react/src/Banner/Banner.docs.json Update importPath and story IDs to reflect non-experimental status
e2e/components/Banner.test.ts Update story IDs in tests to match new non-experimental paths

@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 Sep 8, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 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!

@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 88.64 KB (+0.77% 🔺)
packages/react/dist/browser.umd.js 88.73 KB (+0.72% 🔺)

@pksjce pksjce requested a review from francinelucca September 9, 2025 01:08
@pksjce pksjce enabled auto-merge September 9, 2025 03:35
@pksjce pksjce added this pull request to the merge queue Sep 9, 2025
Merged via the queue into main with commit 0077b96 Sep 9, 2025
43 checks passed
@pksjce pksjce deleted the pk/banner-main-experimental branch September 9, 2025 03:47
@primer primer bot mentioned this pull request Sep 9, 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.

4 participants