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

Expand plugins sidebar menu when browsing categories #92003

Merged

Conversation

xavier-lc
Copy link
Contributor

@xavier-lc xavier-lc commented Jun 20, 2024

Related to https://github.com/Automattic/dotcom-forge/issues/7491

Proposed Changes

  • When the user is on /plugins/{siteId} and clicks on a category, the plugins sidebar menu is collapsed instead of staying expanded and highlighting Marketplace. This PR fixes that.

Why are these changes being made?

image

Testing Instructions

  • Open the live preview
  • Go to /plugins/{siteId}
  • Check that on the sidebar, the plugins menu is expanded and highlighting Marketplace
  • Click on any of the plugins' categories
  • Repeat the previous check
Before After
image image

Pre-merge Checklist

  • Has the general commit checklist been followed? (PCYsg-hS-p2)
  • Have you written new tests for your changes?
  • Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
  • Have you checked for TypeScript, React or other console errors?
  • Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
  • Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
  • For changes affecting Jetpack: Have we added the "[Status] Needs Privacy Updates" label if this pull request changes what data or activity we track or use (p4TIVU-aUh-p2)?

@matticbot
Copy link
Contributor

matticbot commented Jun 20, 2024

This PR modifies the release build for the following Calypso Apps:

For info about this notification, see here: PCYsg-OT6-p2

  • notifications

To test WordPress.com changes, run install-plugin.sh $pluginSlug fix/expand-plugins-sidebar-when-navigating-categories on your sandbox.

@matticbot
Copy link
Contributor

matticbot commented Jun 20, 2024

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

Sections (~171 bytes added 📈 [gzipped])

name                                parsed_size           gzip_size
woocommerce-installation                  +62 B  (+0.0%)      +14 B  (+0.0%)
woocommerce                               +62 B  (+0.0%)      +14 B  (+0.0%)
themes                                    +62 B  (+0.0%)      +14 B  (+0.0%)
theme                                     +62 B  (+0.0%)      +14 B  (+0.0%)
subscribers                               +62 B  (+0.0%)      +14 B  (+0.0%)
stats                                     +62 B  (+0.0%)      +14 B  (+0.0%)
staging-site                              +62 B  (+0.0%)      +14 B  (+0.0%)
sites-dashboard                           +62 B  (+0.0%)      +14 B  (+0.0%)
site-purchases                            +62 B  (+0.0%)      +14 B  (+0.0%)
site-monitoring                           +62 B  (+0.0%)      +14 B  (+0.0%)
site-logs                                 +62 B  (+0.0%)      +14 B  (+0.0%)
site-blocks                               +62 B  (+0.0%)      +16 B  (+0.0%)
settings-writing                          +62 B  (+0.0%)      +14 B  (+0.0%)
settings-security                         +62 B  (+0.0%)      +14 B  (+0.0%)
settings-reading                          +62 B  (+0.0%)      +14 B  (+0.0%)
settings-podcast                          +62 B  (+0.0%)      +14 B  (+0.0%)
settings-performance                      +62 B  (+0.0%)      +14 B  (+0.0%)
settings-newsletter                       +62 B  (+0.0%)      +14 B  (+0.0%)
settings-jetpack                          +62 B  (+0.0%)      +14 B  (+0.0%)
settings-discussion                       +62 B  (+0.0%)      +14 B  (+0.0%)
settings                                  +62 B  (+0.0%)      +14 B  (+0.0%)
security                                  +62 B  (+0.0%)      +20 B  (+0.0%)
scan                                      +62 B  (+0.0%)      +14 B  (+0.0%)
purchases                                 +62 B  (+0.0%)      +14 B  (+0.0%)
promote-post-i2                           +62 B  (+0.0%)      +14 B  (+0.0%)
privacy                                   +62 B  (+0.0%)      +16 B  (+0.0%)
preview                                   +62 B  (+0.0%)      +14 B  (+0.0%)
posts-custom                              +62 B  (+0.0%)      +14 B  (+0.0%)
posts                                     +62 B  (+0.0%)      +14 B  (+0.0%)
plugins                                   +62 B  (+0.0%)      +14 B  (+0.0%)
plans                                     +62 B  (+0.0%)      +14 B  (+0.0%)
people                                    +62 B  (+0.0%)      +14 B  (+0.0%)
pages                                     +62 B  (+0.0%)      +14 B  (+0.0%)
notification-settings                     +62 B  (+0.0%)      +15 B  (+0.0%)
migrate                                   +62 B  (+0.0%)      +14 B  (+0.0%)
media                                     +62 B  (+0.0%)      +14 B  (+0.0%)
me                                        +62 B  (+0.0%)      +15 B  (+0.0%)
marketplace                               +62 B  (+0.0%)      +14 B  (+0.0%)
marketing                                 +62 B  (+0.0%)      +14 B  (+0.0%)
jetpack-social                            +62 B  (+0.0%)      +14 B  (+0.0%)
jetpack-search                            +62 B  (+0.0%)      +14 B  (+0.0%)
jetpack-connect                           +62 B  (+0.0%)      +14 B  (+0.0%)
jetpack-cloud-settings                    +62 B  (+0.0%)      +14 B  (+0.0%)
jetpack-cloud-pricing                     +62 B  (+0.0%)      +14 B  (+0.0%)
jetpack-cloud-plugin-management           +62 B  (+0.0%)      +14 B  (+0.0%)
jetpack-cloud-partner-portal              +62 B  (+0.0%)      +15 B  (+0.0%)
jetpack-cloud-overview                    +62 B  (+0.0%)      +14 B  (+0.0%)
jetpack-cloud-features-comparison         +62 B  (+0.0%)      +14 B  (+0.0%)
jetpack-cloud-agency-sites-v2             +62 B  (+0.0%)      +15 B  (+0.0%)
jetpack-cloud                             +62 B  (+0.0%)      +14 B  (+0.0%)
import                                    +62 B  (+0.0%)      +14 B  (+0.0%)
hosting-features                          +62 B  (+0.0%)      +14 B  (+0.0%)
hosting                                   +62 B  (+0.0%)      +14 B  (+0.0%)
home                                      +62 B  (+0.0%)      +14 B  (+0.0%)
help                                      +62 B  (+0.0%)      +14 B  (+0.0%)
gutenberg-editor                          +62 B  (+0.0%)      +14 B  (+0.0%)
google-my-business                        +62 B  (+0.0%)      +14 B  (+0.0%)
github-deployments                        +62 B  (+0.0%)      +14 B  (+0.0%)
export                                    +62 B  (+0.0%)      +14 B  (+0.0%)
email                                     +62 B  (+0.0%)      +14 B  (+0.0%)
earn                                      +62 B  (+0.0%)      +14 B  (+0.0%)
domains                                   +62 B  (+0.0%)      +14 B  (+0.0%)
developer                                 +62 B  (+0.0%)      +15 B  (+0.0%)
customize                                 +62 B  (+0.0%)      +14 B  (+0.0%)
concierge                                 +62 B  (+0.0%)      +14 B  (+0.0%)
comments                                  +62 B  (+0.0%)      +14 B  (+0.0%)
checkout                                  +62 B  (+0.0%)      +14 B  (+0.0%)
backup                                    +62 B  (+0.0%)      +14 B  (+0.0%)
add-ons                                   +62 B  (+0.0%)      +14 B  (+0.0%)
activity                                  +62 B  (+0.0%)      +14 B  (+0.0%)
account-close                             +62 B  (+0.0%)      +14 B  (+0.0%)
account                                   +62 B  (+0.0%)      +20 B  (+0.0%)
a8c-for-agencies-sites                    +62 B  (+0.0%)      +17 B  (+0.0%)
a8c-for-agencies-settings                 +62 B  (+0.0%)      +17 B  (+0.0%)
a8c-for-agencies-referrals                +62 B  (+0.0%)      +17 B  (+0.0%)
a8c-for-agencies-purchases                +62 B  (+0.0%)      +17 B  (+0.0%)
a8c-for-agencies-plugins                  +62 B  (+0.0%)      +17 B  (+0.0%)
a8c-for-agencies-partner-directory        +62 B  (+0.0%)      +17 B  (+0.0%)
a8c-for-agencies-overview                 +62 B  (+0.0%)      +17 B  (+0.0%)
a8c-for-agencies-migrations               +62 B  (+0.0%)      +17 B  (+0.0%)
a8c-for-agencies-marketplace              +62 B  (+0.0%)      +17 B  (+0.0%)
a8c-for-agencies-client                   +62 B  (+0.0%)      +17 B  (+0.0%)

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.

@xavier-lc xavier-lc self-assigned this Jun 20, 2024
@xavier-lc xavier-lc requested a review from a team June 20, 2024 16:52
@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jun 20, 2024
@xavier-lc xavier-lc force-pushed the fix/expand-plugins-sidebar-when-navigating-categories branch from d6ef3fd to bf8ea8f Compare June 21, 2024 07:40
Copy link
Contributor

@rcrdortiz rcrdortiz left a comment

Choose a reason for hiding this comment

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

Works as described.

@xavier-lc xavier-lc merged commit 89379e4 into trunk Jun 21, 2024
11 checks passed
@xavier-lc xavier-lc deleted the fix/expand-plugins-sidebar-when-navigating-categories branch June 21, 2024 08:15
@github-actions github-actions bot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jun 21, 2024
@lucasmendes-design
Copy link

Hi folks, we don't need the breadcrump anymore.

image

Instead of the breadcrumb "Plugins > Search Engine Optimization", we can keep the copy "Plugins Marketplace"
image

cc: @xavier-lc

@xavier-lc
Copy link
Contributor Author

Hi folks, we don't need the breadcrump anymore.

What should we do on mobile? Currently, below 960px the breadcrumb becomes a back button:

image

cc @lucasmendes-design

@lucasmendes-design
Copy link

We can use the same patterns as the themes page or something similar. These two pages are very alike and should function almost in the same way.

Themes:
image

Plugins:

  • Users can "go back" by clicking on discover, for instance.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants