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

Add Global sidebar footer #87576

Merged
merged 7 commits into from
Feb 19, 2024
Merged

Add Global sidebar footer #87576

merged 7 commits into from
Feb 19, 2024

Conversation

okmttdhr
Copy link
Member

@okmttdhr okmttdhr commented Feb 19, 2024

Related to

Proposed Changes

This PR updates the global sidebar to include a footer that matches the latest design: pfsHM7-aY-p2. (part of https://github.com/Automattic/dotcom-forge/issues/5628)

The original implementation is ported from #86766. You can see the diff by un-selecting the first 2 commits: https://github.com/Automattic/wp-calypso/pull/87576/files/008f0b465481fb9ad3c7ba170a8738b876776dd5..1c5b8e9ae74b008d29629ddf31c42612bddbbaad.

Screenshot 2024-02-19 at 13 11 24

Testing Instructions

  • Open Calypso Live
  • Go to /sites
  • See how the sidebar looks like

Pre-merge Checklist

  • Has the general commit checklist been followed? (PCYsg-hS-p2)
  • https://wpcalypso.wordpress.com/devdocs/docs/testing/index.md 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)?

Copy link

github-actions bot commented Feb 19, 2024

@matticbot
Copy link
Contributor

matticbot commented Feb 19, 2024

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

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

  • wpcom-block-editor

To test WordPress.com changes, run install-plugin.sh $pluginSlug add/global-sidebar-footer on your sandbox.

@matticbot
Copy link
Contributor

matticbot commented Feb 19, 2024

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

App Entrypoints (~24 bytes added 📈 [gzipped])

name                   parsed_size           gzip_size
entry-subscriptions          +71 B  (+0.0%)      +24 B  (+0.0%)
entry-stepper                +71 B  (+0.0%)      +24 B  (+0.0%)
entry-main                   +71 B  (+0.0%)      +24 B  (+0.0%)
entry-login                  +71 B  (+0.0%)      +24 B  (+0.0%)
entry-domains-landing        +71 B  (+0.0%)      +24 B  (+0.0%)
entry-browsehappy            +71 B  (+0.0%)      +24 B  (+0.1%)

Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used.

Sections (~11783 bytes added 📈 [gzipped])

name                               parsed_size           gzip_size
woocommerce-installation               +3358 B  (+0.9%)    +1402 B  (+1.2%)
woocommerce                            +3358 B  (+1.0%)    +1402 B  (+1.4%)
themes                                 +3358 B  (+0.3%)    +1402 B  (+0.4%)
theme                                  +3358 B  (+0.4%)    +1402 B  (+0.6%)
subscribers                            +3358 B  (+0.4%)    +1402 B  (+0.6%)
stats                                  +3358 B  (+0.4%)    +1402 B  (+0.5%)
sites-dashboard                        +3358 B  (+0.4%)    +1402 B  (+0.6%)
site-purchases                         +3358 B  (+0.2%)    +1402 B  (+0.3%)
site-monitoring                        +3358 B  (+0.7%)    +1402 B  (+1.0%)
settings-writing                       +3358 B  (+0.5%)    +1402 B  (+0.8%)
settings-security                      +3358 B  (+0.7%)    +1402 B  (+0.9%)
settings-reading                       +3358 B  (+0.7%)    +1402 B  (+1.0%)
settings-podcast                       +3358 B  (+0.6%)    +1402 B  (+0.9%)
settings-performance                   +3358 B  (+0.6%)    +1402 B  (+0.9%)
settings-newsletter                    +3358 B  (+0.7%)    +1402 B  (+0.9%)
settings-jetpack                       +3358 B  (+0.6%)    +1402 B  (+0.8%)
settings-discussion                    +3358 B  (+0.8%)    +1402 B  (+1.1%)
settings                               +3358 B  (+0.4%)    +1402 B  (+0.5%)
scan                                   +3358 B  (+0.4%)    +1402 B  (+0.6%)
promote-post-i2                        +3358 B  (+0.8%)    +1402 B  (+1.1%)
preview                                +3358 B  (+1.0%)    +1402 B  (+1.3%)
posts-custom                           +3358 B  (+0.5%)    +1402 B  (+0.7%)
posts                                  +3358 B  (+0.5%)    +1402 B  (+0.7%)
plugins                                +3358 B  (+0.1%)    +1402 B  (+0.2%)
plans                                  +3358 B  (+0.2%)    +1402 B  (+0.3%)
people                                 +3358 B  (+0.5%)    +1402 B  (+0.7%)
pages                                  +3358 B  (+0.6%)    +1402 B  (+0.9%)
migrate                                +3358 B  (+0.9%)    +1402 B  (+1.3%)
media                                  +3358 B  (+0.2%)    +1402 B  (+0.3%)
marketplace                            +3358 B  (+0.3%)    +1402 B  (+0.5%)
marketing                              +3358 B  (+0.5%)    +1402 B  (+0.7%)
jetpack-social                         +3358 B  (+0.8%)    +1402 B  (+1.1%)
jetpack-search                         +3358 B  (+0.6%)    +1402 B  (+0.8%)
jetpack-connect                        +3358 B  (+0.3%)    +1402 B  (+0.4%)
jetpack-cloud-settings                 +3358 B  (+0.5%)    +1402 B  (+0.8%)
jetpack-cloud-pricing                  +3358 B  (+0.4%)    +1402 B  (+0.6%)
jetpack-cloud-plugin-management        +3358 B  (+0.2%)    +1402 B  (+0.3%)
jetpack-cloud-overview                 +3358 B  (+0.7%)    +1402 B  (+1.0%)
jetpack-cloud-features-comparison      +3358 B  (+0.5%)    +1402 B  (+0.7%)
jetpack-cloud                          +3358 B  (+0.8%)    +1402 B  (+1.1%)
import                                 +3358 B  (+0.7%)    +1402 B  (+0.9%)
hosting                                +3358 B  (+0.4%)    +1402 B  (+0.6%)
home                                   +3358 B  (+0.2%)    +1402 B  (+0.3%)
gutenberg-editor                       +3358 B  (+0.5%)    +1402 B  (+0.7%)
google-my-business                     +3358 B  (+0.7%)    +1402 B  (+0.9%)
github-deployments                     +3358 B  (+0.6%)    +1402 B  (+0.7%)
export                                 +3358 B  (+1.0%)    +1402 B  (+1.3%)
email                                  +3358 B  (+0.5%)    +1402 B  (+0.6%)
earn                                   +3358 B  (+0.4%)    +1402 B  (+0.6%)
domains                                +3358 B  (+0.2%)    +1402 B  (+0.3%)
customize                              +3358 B  (+0.9%)    +1402 B  (+1.3%)
concierge                              +3358 B  (+0.6%)    +1402 B  (+1.0%)
comments                               +3358 B  (+0.4%)    +1402 B  (+0.6%)
checkout                               +3358 B  (+0.2%)    +1402 B  (+0.3%)
backup                                 +3358 B  (+0.3%)    +1402 B  (+0.4%)
add-ons                                +3358 B  (+0.9%)    +1402 B  (+1.2%)
activity                               +3358 B  (+0.4%)    +1402 B  (+0.6%)
site-blocks                            +3114 B  (+0.4%)    +1238 B  (+0.6%)
security                               +3114 B  (+0.3%)    +1319 B  (+0.5%)
purchases                              +3114 B  (+0.1%)    +1356 B  (+0.2%)
privacy                                +3114 B  (+0.4%)    +1254 B  (+0.6%)
notification-settings                  +3114 B  (+0.4%)    +1279 B  (+0.5%)
me                                     +3114 B  (+0.4%)    +1216 B  (+0.6%)
help                                   +3114 B  (+0.4%)    +1271 B  (+0.6%)
developer                              +3114 B  (+0.4%)    +1226 B  (+0.6%)
account-close                          +3114 B  (+0.4%)    +1256 B  (+0.6%)
account                                +3114 B  (+0.3%)    +1319 B  (+0.5%)

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 (~4093 bytes added 📈 [gzipped])

name                                           parsed_size           gzip_size
async-load-menu-items-help-center-help-center      +6634 B    (new)    +2890 B    (new)
async-load-calypso-reader-sidebar                  +3114 B  (+2.4%)    +1203 B  (+3.2%)

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.
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.

@okmttdhr okmttdhr force-pushed the add/global-sidebar-footer branch from 9e76648 to b3bbf08 Compare February 19, 2024 04:10
@okmttdhr okmttdhr marked this pull request as ready for review February 19, 2024 04:17
@okmttdhr okmttdhr self-assigned this Feb 19, 2024
@okmttdhr okmttdhr requested review from a team February 19, 2024 04:19
@matticbot matticbot added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Feb 19, 2024
@okmttdhr okmttdhr requested a review from eoigal February 19, 2024 04:19
@okmttdhr okmttdhr force-pushed the add/global-sidebar-footer branch from 1fabcc4 to 1c5b8e9 Compare February 19, 2024 06:05
Copy link
Contributor

@taipeicoder taipeicoder left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@okmttdhr okmttdhr merged commit 256fb64 into trunk Feb 19, 2024
12 checks passed
@okmttdhr okmttdhr deleted the add/global-sidebar-footer branch February 19, 2024 06:44
@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 Feb 19, 2024
Copy link
Contributor

@arthur791004 arthur791004 left a comment

Choose a reason for hiding this comment

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

Tested and looks good to me! The position of the Help Center looks weird but we can address it in the follow-up PR 🙂

const HELP_CENTER_STORE = HelpCenter.register();

const SidebarHelpCenter = ( { tooltip, tooltipPlacement } ) => {
//const helpIconRef = useRef();
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need this in the future?

TimBroddin pushed a commit that referenced this pull request Feb 20, 2024
* Port the Global Sidebar Footer from the PR: #86766

* Port Help Center from the PR: #86766

* JS to TS

* Add Global Sidebar Footer

* Remove help icon

* Add tooltips

* Add background-color
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