-
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
Site Profiler: Open get report form when clicking the Metrics CTA #90581
Conversation
This commit also adds the close functionality
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 (~43 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. |
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.
) } | ||
/> | ||
{ errors?.termsAccepted && ( | ||
<FormInputValidation isError={ !! errors } text={ errors.termsAccepted } /> |
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.
Nit: Is this check isError={ !! errors }
needed? Considering its checked on the previous line.
<FormInputValidation isError={ !! errors } text={ errors.termsAccepted } /> | |
<FormInputValidation isError text={ errors.termsAccepted } /> |
The same for the previous components.
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.
Not needed here, removing it
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.
I agree that this form will benefit from a sliding animation, and the behavior is currently abrupt. I will work on that |
I have implemented slide-up and slide-down animations, but I have observed that the behavior is not consistent among browsers:
@Automattic/bespin , any suggestions |
&--hidden { | ||
display: none; | ||
animation: 500ms ease-out slideDown; | ||
} | ||
} | ||
|
||
@keyframes slideUp { | ||
from { | ||
transform: translateY(100%); | ||
} | ||
to { | ||
transform: translateY(0); | ||
} | ||
} | ||
@keyframes slideDown { | ||
from { | ||
display: block; | ||
transform: translateY(0); | ||
} | ||
to { | ||
display: none; | ||
transform: translateY(100%); |
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.
&--hidden { | |
display: none; | |
animation: 500ms ease-out slideDown; | |
} | |
} | |
@keyframes slideUp { | |
from { | |
transform: translateY(100%); | |
} | |
to { | |
transform: translateY(0); | |
} | |
} | |
@keyframes slideDown { | |
from { | |
display: block; | |
transform: translateY(0); | |
} | |
to { | |
display: none; | |
transform: translateY(100%); | |
&--hidden { | |
animation: 500ms ease-out slideDown; | |
transform: translateY(100%); | |
} | |
} | |
@keyframes slideUp { | |
from { | |
transform: translateY(100%); | |
} | |
to { | |
transform: translateY(0); | |
} | |
} | |
@keyframes slideDown { | |
from { | |
transform: translateY(0); | |
} | |
to { | |
transform: translateY(100%); |
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.
I have tried this, but it displays the form initially U02M8SCS6RE/F073J5UBW8H-slack-file
We will investigate this and other options as part of the linked task https://github.com/Automattic/dotcom-forge/issues/7130
A follow-up task has been created to investigate a fix so the animation is consistent between browsers: |
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.
LGTM and works great!
Fixes https://github.com/Automattic/dotcom-forge/issues/6909
Proposed Changes
X
iconX
icon to indicate closingTesting Instructions
X
icon in the formPre-merge Checklist
- [ ] Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?- [ ] 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)?