-
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 Migration: Preserve urlValue in text input when an invalid URL is submitted #89546
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
@sixhours What is the benefit of repeating the same value we are already showing on the input? |
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
@andres-blanco mentioned it in a comment on that thread:
My thinking was the repetition might help them see the error in their URL. But maybe we just need to not show the error message when the |
Agree 👍
Based on the data we have gathered, it seems that users are having trouble understanding the meaning of URL. |
38e0bfd
to
c92b501
Compare
@sixhours What do you think about maintaining this PR by improving the error message and the other one updating the overall copy? My concern is we probably will have a revision that can make it hard to keep track of multiple PRs. Regarding the error message, considering the high % of users setting wrong values as a domain. Something like, |
c92b501
to
061b533
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 |
88a81c9
to
5a1d9c5
Compare
Thanks for sharing it, I can take a look while you are in AFK. |
I think the form needs to be refactored to reduce the # of internal states. |
@@ -95,7 +95,7 @@ const CaptureInput: FunctionComponent< Props > = ( props ) => { | |||
<FormTextInput | |||
id="capture-site-url" | |||
type="text" | |||
className={ classnames( { 'is-error': showValidationMsg } ) } | |||
className={ classnames( { 'is-error': showValidationMsg && urlValue } ) } |
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.
There is a showValidationMsg
field; why is this additional condition not placed there since it is dedicated to showing/hiding validation messages?
This is well out of date and we seem to have conflicting thoughts on how to address the original issue around lack of clarity, so I'm going to close this and create a new issue. |
Related to paYKcK-4n3-p2#comment-3248
Proposed Changes
Testing Instructions
/start
Pre-merge Checklist