Skip to content

Hosting Dashboard v2: view transitions (part 1) #103278

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

Open
wants to merge 9 commits into
base: trunk
Choose a base branch
from

Conversation

ellatrix
Copy link
Contributor

@ellatrix ellatrix commented May 9, 2025

Fixes DOTCOM-13060

Please note: Firefox does not support view transitions.

Screen.Recording.2025-05-09.at.17.27.33.mov

Proposed Changes

Adds view transitions for routes:

  • Main header will cross fade
  • Secondary header will slide in/out when it appears/disappears only. When that happens the main body should be pushed down/up.
  • Main body title should stay in place, main button should shrink/expand.
  • Main card should shrink expand and stay in place.

Why are these changes being made?

Testing Instructions

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 UI changes, have we tested the change in various languages (for example, ES, PT, FR, or DE)? The length of text and words vary significantly between languages.
  • 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 May 9, 2025

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

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

  • blaze-dashboard
  • help-center
  • notifications
  • wpcom-block-editor

To test WordPress.com changes, run install-plugin.sh $pluginSlug try/view-transitions on your sandbox.

@matticbot
Copy link
Contributor

matticbot commented May 9, 2025

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

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

name                    parsed_size           gzip_size
entry-dashboard-dotcom      +1938 B  (+0.2%)     +302 B  (+0.1%)
entry-dashboard-a4a         +1938 B  (+0.2%)     +302 B  (+0.1%)
entry-stepper                +668 B  (+0.0%)     +189 B  (+0.0%)
entry-subscriptions          +632 B  (+0.0%)     +179 B  (+0.0%)
entry-reauth-required        +632 B  (+0.0%)     +179 B  (+0.0%)
entry-main                   +632 B  (+0.0%)     +150 B  (+0.0%)
entry-login                  +632 B  (+0.0%)     +179 B  (+0.0%)
entry-domains-landing        +632 B  (+0.1%)     +179 B  (+0.1%)
entry-browsehappy            +632 B  (+0.3%)     +179 B  (+0.3%)

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

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.

@ellatrix ellatrix marked this pull request as ready for review May 9, 2025 12:44
@ellatrix ellatrix requested review from youknowriad and a team as code owners May 9, 2025 12:44
@matticbot matticbot added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels May 9, 2025
Copy link
Member

@ntsekouras ntsekouras left a comment

Choose a reason for hiding this comment

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

That's really cool to see!

size="small"
/>
<PageLayout title={ __( 'Privacy' ) } size="small">
<VStack spacing={ 4 }>
Copy link
Member

Choose a reason for hiding this comment

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

Why would we need to add VStack in various pages? Also have you removed the description intentionally?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the description is not present in the designs, so I removed it.

It's necessary for there to be some content because otherwise the content will slide in (from nothing) instead of cross fade.

Copy link
Member

Choose a reason for hiding this comment

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

Should we just add a placeholder paragraph then instead of these? Also PageLayout is a VStack wrapper and its children are wrapped.

Copy link
Contributor Author

@ellatrix ellatrix May 9, 2025

Choose a reason for hiding this comment

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

I don't understand what you mean. I added the VStack because billing has that too for the summary buttons. Why a paragraph? These should because summary buttons, not paragraphs.

@fushar fushar requested a review from a team May 9, 2025 15:39
@fushar
Copy link
Contributor

fushar commented May 9, 2025

This is so cool! I've added @Automattic/dotcom-design (apologize if I'm pinging too many folks) to check if this OK design-wise for dotcom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants