Removing redundant custom transient notices. #872
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes proposed in this Pull Request:
Closes #867 .
Removing TransientNotice component. Having it causes transient notice appear twice and Pinterest extension styles for the notice override WooCommerce global styles for other pages making notices shift left.
The reason for that is
TransientNotice
component andcreateNotice()
JS API method both dispatch the same action, my personal belief is thatTransientNotice
was added because of a lack of knowledge or beforecreateNotice()
became available.Removing the component shots two issues at once: double notice bug ( when at Pinterest extension pages ) and new experimental Product Editor notices shifted to the left.
Detailed test instructions:
Double notice issue.
fix/remove-custom-transient-notices
branchnvm use && npm run build
to have new sources built.Experimental Product Editor transient notice shift.
To reproduce this one and test the fix you will need a
wpcomstaging.com
website.Add new or update an existing product.
Observe the transient notice bottom left. It must not overlap with the sidebar.
Install Pinterest extension ( no need to connect to Pinterest, we are testing CSS only )
Add new or update an existing product.
Observe the transient notice bottom left. It overlaps with the sidebar.
fix/remove-custom-transient-notices
branch.nvm use && npm run build:zip
to produce a ZIP file.Changelog entry