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

Gutenberg: remove remaining usages of wordpress/nux package #28267

Merged
merged 2 commits into from
Nov 6, 2018

Conversation

vindl
Copy link
Member

@vindl vindl commented Nov 4, 2018

Changes proposed in this Pull Request

Follow up for #28260.

We don't use core guided tour in Calypso so we don't need the DotTip component from this package. Since this is the last remaining usage, I'm removing the package dependency so we don't have to worry about it in future renovate updates.

Here is one example where it broke the editor during package updates #28000 (comment).

Testing instructions

  1. Navigate to http://calypso.localhost:3000/gutenberg/post
  2. Smoke test the editor.
  3. Verify that there are no other usages of @wordpress/nux package in Calypso's codebase.

@vindl vindl added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Type] Janitorial [Goal] Gutenberg Working towards full integration with Gutenberg labels Nov 4, 2018
@vindl vindl self-assigned this Nov 4, 2018
@vindl vindl requested a review from a team November 4, 2018 05:15
@matticbot
Copy link
Contributor

Copy link
Member

@mmtr mmtr left a comment

Choose a reason for hiding this comment

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

I still see some usages of the core/nux store like this one.

Should we also remove them?

We might also want to remove the "Show Tips" option from the more menu:
screen shot 2018-11-05 at 16 13 25

@kwight
Copy link
Contributor

kwight commented Nov 5, 2018

Good catch @mmtr ; clicking Show Tips still shows us (unstyled) text:

screen shot 2018-11-05 at 1 42 10 pm

Otherwise, works as expected @vindl 👍

vindl added 2 commits November 5, 2018 23:26
We don't use core guided tour in Calypso so we don't need the DotTip
component from this package. Since this is the last remaining usage,
I'm cleaning up the whole packge so we don't have to worry about it
in future renovate updates.
@vindl vindl force-pushed the update/clean-up-wordpress-nux branch from 97d26e2 to 34e3f19 Compare November 6, 2018 03:09
@vindl
Copy link
Member Author

vindl commented Nov 6, 2018

I still see some usages of the core/nux store like this one.

Unfortunately we still need to keep this to prevent the tips from popping up (test with clear cache). The reason behind that is that some are loaded by components package implicitly.

We might also want to remove the "Show Tips" option from the more menu:

Nice catch! I removed those in 34e3f19.

Copy link
Member

@mmtr mmtr left a comment

Choose a reason for hiding this comment

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

LGTM! :shipit:

@Copons Copons added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Nov 6, 2018
@vindl vindl merged commit b281bc2 into master Nov 6, 2018
@vindl vindl deleted the update/clean-up-wordpress-nux branch November 6, 2018 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Goal] Gutenberg Working towards full integration with Gutenberg [Type] Janitorial
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants