-
Notifications
You must be signed in to change notification settings - Fork 2k
Domain only flow: Make it more consistent #102613
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
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
client/landing/stepper/declarative-flow/internals/steps-repository/choose-a-domain/index.tsx
Outdated
Show resolved
Hide resolved
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~872 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. Async-loaded Components (~910 bytes added 📈 [gzipped])
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. Generated by performance advisor bot at iscalypsofastyet.com. |
@zaguiini, thanks for looking into that. The main issue was that domain name suggestions were being wrapped in the onboarding flow. With this PR, I see this is now broken in both the onboarding and the domain-only flows. Before this PR![]() With this PR![]() |
Other differences that I noticed between both flows:
I'm not sure if the plan was to sync all UI elements or fix specific bugs. So, maybe those are not within the scope of this change. |
Interesting @ramynasr. The PR that I've reverted does not fix that problem. I'm trying to fix it, but I'm not sure what should happen for really long domain names: cc @nuriapenya
The same goes for that. The original PR didn't change it, and both issues you reported are caused by the fact that |
cd71f0c
to
e149c82
Compare
@zaguiini I'm assuming that's because you are testing the PR that was reverted, but not the follow-up PR ( #102308 ) that wasn't. What I can see is that the main difference between the domain-only flow and the onboarding flow (before this PR) is the Is there a specific reason to limit the max-width of the domain suggestions list if the screen/viewport width allows it? The example you are showing in your screenshot is very unlikely. For example, a search string like ![]() Here is a suggestion:
How does that sound? |
b1c162b
to
8adbfc9
Compare
Sure @ramynasr, this is how it looks right now: ![]() "Long domain name" means 24 characters and above. Here's the logic. And thanks, @m1r0. Great catch. Here's what they look like now: ![]() |
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.
Looks great! Thanks for the updates, Luis. 🙌
I have no more feedback, but let's wait for the final approval from @ramynasr.
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.
Thanks for making those changes! LGTM. Just left a suggestion about method naming.
client/components/domains/domain-registration-suggestion/index.jsx
Outdated
Show resolved
Hide resolved
8adbfc9
to
41eccde
Compare
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 |
41eccde
to
aef8660
Compare
Supersedes #102021.
Proposed Changes
The benchmark for consistency here is
/start/onboarding-pm
as/setup/onboarding
uses StepContainerV2, which has different definitions of page margins and headings. Eventually, all flows will be migrated to StepContainerV2, but while that doesn't happen, let's compare against other flows in/start
.This PR restores the "minor tweaks" from the original work, except the tooltip icon alignment considering the tooltip icon should be gone (W9xI27S6Swvw5Ku21EbZvn-fi-9588_14139).
You should also notice that the "Explainer image", which also doesn't exist in Figma, is now gone.
This PR fixes a bug where the premium domain badge was showing on the same line as the domain and price. And it also centers the price compared to the select button.
Finally, I've also aligned the secondary content boundaries with the primary content as they were misaligned on intermediary screen sizes.
Other screenshots (both flows should look identical)
Testing Instructions
The easiest way I could find to test this is to keep both
/start/onboarding-pm/domains
and/start/domain/domain-only
flow tabs open and switch between them while changing the browser's window width, ensuring both look identical.