-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Packages: Extract @wordpress/nux
package
#8016
Conversation
|
||
The NUX module exposes components, and `wp.data` methods useful for onboarding a new user to the WordPress admin interface. Specifically, it exposes _tips_ and _guides_. | ||
The NUX (New User eXperience) module exposes components, and `wp.data` methods useful for onboarding a new user to the WordPress admin interface. Specifically, it exposes _tips_ and _guides_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should add an eslint rule to the .eslintrc
that forbids imports from 'nux'
and 'nux/*'
, similar to the other package import rules.
@tofumatt, an eslint rule added with 5236de7. Edit: There was a similar rule already, I updated to use the more common pattern. |
f6829aa
to
5236de7
Compare
5236de7
to
1e2cee8
Compare
Oops, I didn't realise! |
Thre is still some issue with loading CSS file with this config. I'm looking into it. |
663f9d1 fixes the issue with missing CSS files. It's not great but should help us move forward with this one. It's exactly the same approach we took when moving Let's open a follow up PR where we tackle copying CSS files generated by packages build step and add RTL support there, too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Opened #8067 to keep track of CSS workaround. |
Description
Part of #3955.
This PR extracts new
@wordpress/nux
package.How has this been tested?
npm test
and make sure there are no regressions.Make sure you can see the tips when you load new post (make sure you have
localstorage
cleared before).