-
Notifications
You must be signed in to change notification settings - Fork 293
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
Simplify in-progress state when submitting User Input answers. #6381
Simplify in-progress state when submitting User Input answers. #6381
Conversation
Size Change: +565 B (0%) Total Size: 1.23 MB
ℹ️ View Unchanged
|
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, @sashadoes. The changes LGTM. However, I did a bit of testing and found the What are your top goals for this site?
section’s checkboxes are editable (not disabled). Ideally, I think the Edit
link should be disabled, and we shouldn’t let the users edit while submitting. WDYT?
Screen.Recording.2023-01-11.at.4.08.51.PM.mov
cc: @aaemnnosttv
@hussain-t thanks for the review and feedback. I made an update. |
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, @sashadoes. LGTM 👍
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, @sashadoes. Mostly looks good to me. Added two comments for you. Please, take a look.
> | ||
{ __( 'Save', 'google-site-kit' ) } | ||
{ isScreenLoading && ( | ||
<Spinner isSaving={ isScreenLoading } /> |
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.
We have the SpinnerButton
component for this purposes. Could you please update this component to use it instead?
@@ -30,7 +35,7 @@ import { CORE_LOCATION } from '../../googlesitekit/datastore/location/constants' | |||
import Link from '../Link'; | |||
const { useSelect, useDispatch } = Data; | |||
|
|||
export default function CancelUserInputButton() { | |||
export default function CancelUserInputButton( { disabled = false } ) { |
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.
The default state for the disabled
property is undefined
. Let's stick with it:
export default function CancelUserInputButton( { disabled = false } ) { | |
export default function CancelUserInputButton( { disabled } ) { |
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
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.
Actually, just noticed that this PR has merge conflicts. @sashadoes, could you please resolve all merge conflicts?
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 good now
Summary
Addresses issue:
Relevant technical choices
PR Author Checklist
Do not alter or remove anything below. The following sections will be managed by moderators only.
Code Reviewer Checklist
Merge Reviewer Checklist