Skip to content

chore: Cleanup the primer_react_css_modules_staff flag from the codebase #5968

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

Merged
merged 5 commits into from
Apr 25, 2025

Conversation

jonrohan
Copy link
Member

The primer_react_css_modules_staff flag has been removed from components, this PR cleans up the codebase of the flag.

@jonrohan jonrohan added skip changeset This change does not need a changelog integration-tests: skipped manually Changes in this PR do not require an integration test labels Apr 24, 2025
@Copilot Copilot AI review requested due to automatic review settings April 24, 2025 21:29
@jonrohan jonrohan requested a review from a team as a code owner April 24, 2025 21:29
@jonrohan jonrohan requested a review from joshblack April 24, 2025 21:29
Copy link

changeset-bot bot commented Apr 24, 2025

🦋 Changeset detected

Latest commit: 5e29eb2

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

@github-actions github-actions bot added the staff Author is a staff member label Apr 24, 2025
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 cleans up removed feature flag code by eliminating all references to the primer_react_css_modules_staff flag across the codebase. Key changes include:

  • Removing the staff flag check and declaration from NavList.tsx.
  • Deleting the default setting for the staff flag in DefaultFeatureFlags.ts.
  • Updating environment and workflow configurations to remove the staff flag variables.

Reviewed Changes

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

Show a summary per file
File Description
packages/react/src/NavList/NavList.tsx Removed the staff flag usage and updated conditional logic.
packages/react/src/FeatureFlags/DefaultFeatureFlags.ts Removed the default entry for the staff flag.
packages/react/.storybook/preview.jsx Updated the set of environment flags to exclude the staff flag.
.github/workflows/vrt-reports.yml Removed the environment variable for the staff flag.
.github/workflows/aat-reports.yml Removed the environment variable for the staff flag.

@jonrohan jonrohan enabled auto-merge April 24, 2025 21:29
Copy link
Contributor

github-actions bot commented Apr 24, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 101.51 KB (-0.13% 🔽)
packages/react/dist/browser.umd.js 101.96 KB (-0.09% 🔽)

@github-actions github-actions bot requested a deployment to storybook-preview-5968 April 25, 2025 02:30 Abandoned
@jonrohan jonrohan added this pull request to the merge queue Apr 25, 2025
Merged via the queue into main with commit 0ea045a Apr 25, 2025
43 of 44 checks passed
@jonrohan jonrohan deleted the remove_css_modules_staff_flag branch April 25, 2025 03:03
@primer primer bot mentioned this pull request Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration-tests: skipped manually Changes in this PR do not require an integration test skip changeset This change does not need a changelog staff Author is a staff member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy