Plugin Management: Implement multi-site(small screen) view for the plugin management
Proposed Changes
This PR implements the small screen view(<1080px) for multi-site plugin management.
Testing Instructions
Prerequisites
Since this change is made specifically for agencies, you must set yourself(partner) as an agency - 2c49b-pb. Make sure to switch it back to the previous type.
Instructions
- Run
git checkout add/plugin-management-multi-site-small-screen-viewandyarn start-jetpack-cloud-p - Open http://jetpack.cloud.localhost:3001/, and you'll be redirected to the /dashboard.
- Switch to any width <1080px using the dev tool.
- Click on Plugins in the sidebar -> Verify that the new card UI for the plugin is shown as below.
320px
768px
<1080px
- Clicking on the Plugin name &
Updatetext should redirect the user to the plugin details page. - Verify search works as expected.
- Click on all the tabs - All, Active, Inactive & Updates and verify the plugins are shown as per the filter and the URL changes accordingly.
- Verify these changes have not affected anything in Calypso Blue.
NOTE: The more actions icon(
...) is just a placeholder and will be updated later in a different PR, and the single-site card view will be implemented in the upcoming PR.
Pre-merge Checklist
Complete applicable items on this checklist before merging into the trunk. Inapplicable items can be left unchecked.
The PR author and reviewer are responsible for completing the checklist.
- [x] Have you written new tests for your changes? Will be added later - 1202518759611394-as-1202627702018877
- [x] ~~Have you tested the feature in Simple, Atomic, and self-hosted Jetpack sites?~~
- [x] Have you checked for TypeScript, React, or other console errors?
- [x] Are we memoizing when appropriate (for expensive computations)? More info in Our Approach to Data and Memoizing with create-selector and Using memoizing selectors
- [x] Have we sent any new strings for translation ASAP?
Related to 1202518759611394-as-1202673439327767
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:
Sections (~415 bytes added 📈 [gzipped])
name parsed_size gzip_size
plugins +1928 B (+0.2%) +415 B (+0.2%)
jetpack-cloud-plugin-management +1928 B (+0.3%) +415 B (+0.2%)
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to.
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. Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.
Generated by performance advisor bot at iscalypsofastyet.com.
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/7472446
Thank you @yashwin for including a screenshot in the description! This is really helpful for our translators.
Translation for this Pull Request has now been finished.