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(notification): rename StaticNotification to Callout #17376

Conversation

tay1orjones
Copy link
Member

@tay1orjones tay1orjones commented Sep 6, 2024

Closes #17375

Related carbon-design-system/carbon-website#4218, carbon-design-system/carbon-website#4243

Changelog

New

  • A new codemod to transform StaticNotification usages to Callout

Changed

  • Renamed StaticNotification to Callout and ensure either name can be used to ease the transition
  • Added tests to ensure StaticNotification and Callout naming both work
  • Add deprecation notice that includes instructions on how to run the codemod
  • Update docs and stories to reflect the Callout name

Testing / Reviewing

  • Check the storybook to ensure Callout stuff all works as expected
  • The codemod is ran against the test fixtures in CI, but you can validate the codemod works locally if you'd like.
  • Review the docs changes, ensure they make sense

Copy link

netlify bot commented Sep 6, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 89d4866
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/66fc545602b9890008049601
😎 Deploy Preview https://deploy-preview-17376--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 Sep 6, 2024

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit 89d4866
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/66fc5456a7c9730008ff11b7
😎 Deploy Preview https://deploy-preview-17376--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 Sep 27, 2024

Codecov Report

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

Project coverage is 77.08%. Comparing base (7e6ec8e) to head (89d4866).

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   #17376      +/-   ##
==========================================
+ Coverage   76.98%   77.08%   +0.09%     
==========================================
  Files         409      409              
  Lines       14001    14014      +13     
  Branches     4353     4305      -48     
==========================================
+ Hits        10779    10803      +24     
+ Misses       3049     3041       -8     
+ Partials      173      170       -3     

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

Copy link
Member

@kennylam kennylam left a comment

Choose a reason for hiding this comment

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

LGTM, nice one @tay1orjones! 👏

Copy link
Member

@alisonjoseph alisonjoseph left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@2nikhiltom 2nikhiltom left a comment

Choose a reason for hiding this comment

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

🔥

Merged via the queue into carbon-design-system:main with commit c0d2b32 Oct 1, 2024
36 checks passed
@tay1orjones tay1orjones deleted the rename-static-notification-callout branch October 1, 2024 21:08
tay1orjones added a commit to tay1orjones/carbon that referenced this pull request Oct 2, 2024
…gn-system#17376)

* feat(notification): rename StaticNotification to Callout

* chore: update test fixtures

* docs(notification): update StaticNotification stories

* chore: update snaps

* refactor(callout): reworked import portion of codemod

* fix(callout): codemod improvements

* fix(callout): update codemod test fixture output formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[Callout] Rename StaticNotification to Callout
4 participants