Skip to content
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

feat: codemod to enable v12 tile radio icons #18364

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

riddhybansal
Copy link
Contributor

Closes #18350
Enable v12 tile radio icons via feature flags

Changelog

New

  • Added codemod to automatically wrap RadioTile components with FeatureFlags enableV12TileRadioIcons

Removed

  • None

Testing / Reviewing

  1. Run the codemod:
npx @carbon/upgrade migrate enable-v12-tile-radio-icons --write

@riddhybansal riddhybansal requested a review from a team as a code owner January 16, 2025 14:16
Copy link

netlify bot commented Jan 16, 2025

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit 117bee8
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-web-components/deploys/678ad4a344914600085d8f5b
😎 Deploy Preview https://deploy-preview-18364--v11-carbon-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 16, 2025

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 117bee8
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/678ad4a35859ff0008d8407f
😎 Deploy Preview https://deploy-preview-18364--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 16, 2025

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 117bee8
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/678ad4a3b748420008f75bac
😎 Deploy Preview https://deploy-preview-18364--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 84.13%. Comparing base (0c2ff15) to head (1d92d9d).

Files with missing lines Patch % Lines
packages/upgrade/src/upgrades.js 0.00% 5 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #18364      +/-   ##
==========================================
- Coverage   84.17%   84.13%   -0.04%     
==========================================
  Files         408      408              
  Lines       14435    14441       +6     
  Branches     4660     4643      -17     
==========================================
  Hits        12150    12150              
- Misses       2120     2126       +6     
  Partials      165      165              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@tay1orjones tay1orjones left a comment

Choose a reason for hiding this comment

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

This looks pretty good to me! 👍 Could you share the steps and command you're using to test locally?

Also I don't think there will be any interop issues with .tsx files, but could a .tsx test fixture be added just to be sure?

Comment on lines +30 to +36
<FeatureFlags someOtherFlag>
<TileGroup legend="Other Attribute" name="other-wrapped">
<RadioTile id="other-1" value="other-1">
Other Flag Option 1
</RadioTile>
</TileGroup>
</FeatureFlags>
Copy link
Member

Choose a reason for hiding this comment

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

Tile's unique in that it has 2 javascript flags available right now. Adding another test for enable-v12-tile-default-icons, or changing someOtherFlag to enableV12TileDefaultIcons would make sure future changes here don't alter that specifically.

packages/upgrade/transforms/enable-v12-tile-radio-icons.js Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Research/Write codemod for enable-v12-tile-radio-icons
2 participants