-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Update plugin action modals #96880
base: trunk
Are you sure you want to change the base?
Update plugin action modals #96880
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~81 bytes removed 📉 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~8896 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Async-loaded Components (~100 bytes removed 📉 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
@lucasmendes-design, could you do a design review of this? |
Of course. |
Not sure what I'm doing wrong, but once I click on the Calypso live link and go to the global view -> Plugins -> Manage. The modal stays the same. |
@lucasmendes-design here's what it looks like on my end, can you share a recording of what it looks like on your end? Thanks 🙏 calypso.mp4 |
Got it! LGTM! |
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.
👍🏽
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
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.
I was surprised by the approach of continuing to use the acceptDialog
function. It seems to handle modals in some old way like creating it's own React tree to hold the modal. Something that <Modal>
already handles in it's own way. Since we're having to refactor so much of the code anyway, why not move away entirely from the acceptDialog
function (from client/lib/accept
).
That way we're not having to add useModal
options flags to it.
And it means comments like remove after /plugins/manage details doesn't use Dialog
aren't needed.
Maybe even the custom .accept__dialog-use-modal .accept__dialog-buttons
CSS styles wouldn't be needed at all? 🤞
client/my-sites/plugins/plugin-management-v2/test/update-plugin.test.tsx
Show resolved
Hide resolved
@candy02058912 Oh and since there's so many copy changes, should we add the string freeze label? |
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/17054393 Some locales (Hebrew) have been temporarily machine-translated due to translator availability. All other translations are usually ready within a few days. Untranslated and machine-translated strings will be sent for translation next Monday and are expected to be completed by the following Friday. Thank you @candy02058912 for including a screenshot in the description! This is really helpful for our translators. |
Translation for this Pull Request has now been finished. |
Fixes https://github.com/Automattic/dotcom-forge/issues/9728
Proposed Changes
Why are these changes being made?
Testing Instructions
Note
If you clicked around and see that the action menu is messed up, that's a bug to be addressed in a separate PR as production currently has the same behavior. Opened issue https://github.com/Automattic/dotcom-forge/issues/9995
to track.
bug.mp4
Pre-merge Checklist