-
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
Bulk Plugin Management: Use list view for small viewports #98551
Conversation
This also removes one property for a type This is the initial implementation to be updated
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: Sections (~84 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. 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. |
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 |
@@ -115,8 +116,8 @@ const PluginsDashboard = ( { | |||
const productsList = useSelector( ( state ) => getProductsList( state ) ); | |||
const { data: dotComPlugins }: { data: Plugin[] | undefined } = useWPCOMPluginsList( 'all' ); | |||
const allPlugins = useSelector( ( state ) => | |||
getPlugins( state, siteIds, 'all' ).map( ( plugin: Plugin ) => { | |||
let dotComPluginData: Plugin | undefined; | |||
getPlugins( state, siteIds, 'all' ).map( ( plugin: PluginComponentProps ) => { |
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.
Using PluginComponentProps
as a type as it contains the isMarketplaceProduct
property and it does not need to be added to the Plugin
type below.
.dataviews-view-list { | ||
.dataviews-view-list__media-wrapper { | ||
background-color: transparent; | ||
display: none; |
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 can be revisited once the latest version of the @wordpress/dataviews
component is deployed as part of #96470 because in the latest version there is a showMedia
property: https://developer.wordpress.org/block-editor/reference-guides/packages/packages-dataviews/#properties
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.
Tested it in:
- Jetpack
- WP.com plugins manage
- WP.com single plugin "Manage Sites" popup
Works well!
* Bulk Plugin Management: Use list view for small viewports This also removes one property for a type This is the initial implementation to be updated * Remove media wrapper in list view * Use domain as primary field for list view * Update styles to small viewports
This also removes one property for a type
This is the initial implementation to be updated
Resolves https://github.com/Automattic/dotcom-forge/issues/10216
Proposed Changes
list
layout for screens smaller than Desktop view (i.e.960px
)Why are these changes being made?
Testing Instructions
/plugins/manage/sites
Pre-merge Checklist