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

use classNames #1167

Merged
merged 2 commits into from
Jul 3, 2024
Merged

use classNames #1167

merged 2 commits into from
Jul 3, 2024

Conversation

circlecube
Copy link
Member

Proposed changes

This makes the use of the classnames library consistent throughout the plugin. We are importing it as classNames in the webpack config and also importing it as classnames in a few files and passing to some module components. This cleans all that up so we no longer import a duplicate package, and consistently use classNames.

This also requires an update to a few modules: marketplace, notifications, and staging. We were passing the classnames version to the components in performance module too, but it wasn't being used, so we can just remove it on the plugin side.

Type of Change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

remove imports of `classnames` since its already imported as `classNames` in webpack
updates methods passed to modules as needed
@circlecube circlecube added this to the July 10 Release milestone Jul 3, 2024
@circlecube circlecube self-assigned this Jul 3, 2024
@circlecube
Copy link
Member Author

Tests will likely fail here until we bump the module versions. PRs for those are here:

@circlecube circlecube requested review from wpscholar and wpalani July 3, 2024 17:18
Copy link

cypress bot commented Jul 3, 2024

1 flaky test on run #9021 ↗︎

0 387 59 0 Flakiness 1

Details:

update modules with classnames fixes
Project: Bluehost Brand Plugin Commit: a20c6f53e2
Status: Passed Duration: 26:45 💡
Started: Jul 3, 2024 5:41 PM Ended: Jul 3, 2024 6:08 PM
Flakiness  vendor/newfold-labs/wp-module-ecommerce/tests/cypress/integration/Home/homePageWithWoo.cy.js • 1 flaky test

View Output Video

Test Artifacts
e-commerce Home Page - When WooCommerce is installed > Verify next steps "Add your store info" Test Replay Screenshots Video

Review all test suite changes for PR #1167 ↗︎

@circlecube circlecube requested a review from wpscholar July 3, 2024 18:10
@circlecube circlecube merged commit 8e40567 into develop Jul 3, 2024
3 checks passed
@circlecube circlecube deleted the fix/classnames branch July 3, 2024 18:10
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.

2 participants