-
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 #6323
Comments
ACs largely look good, just had to add that the cancel button and answers should also be disabled during submission. 👍🏻 Moved to IB. |
@tofumatt Thanks, I didn't include disabling everything because of the slack conversation, but I like everything being disabled. I've just updated the last point to enable everything back if the submission fails. Cheers. |
@sashadoes looking at this, the
For specific references, please use a permalink as line number and other references can easily get outdated between now and when the issue is executed. |
The AC calls for the submit button, cancel button, and answers to be disabled and "Everything else in the page should remain in place." so I don't think we should hide the "Back" link. This should be disabled as well (essentially everything interactive in that panel should be disabled while in progress). I'll make this tiny change to the IB and then this is good to go 👍 IB ✅ |
QA Update: ❌@sashadoes I have an observation detailed below. The spinner animation does appear when you click on the animation-1.mp4 |
Addressed with the fix above by removing |
@wpdarren, the spinner that you see in your screencast is the right spinner that everyone should see every time we need a button with the spinner. If you see some buttons have spinners like on the screenshot in QAB, then it is a bug and incorrectly implemented spinner that we should fix to get our UI consistent. @sashadoes, could you, please, close your PR #6414? The spinner that you added is the correct one. |
@eugene-manuilov Do you think it's worthwhile to create a separate issue to refactor incorrect implementations of button with spinner with the correct one? |
Yes, sure. I would let @wpdarren to create it since he has seen similar buttons in other places. Or if he can't, I'll create a ticket tomorrow. |
Thanks @eugene-manuilov I will create a ticket because I do see the spinner in the QAB screenshot in other places in the plugin. This is the first time I have seen this one. c.c @kuasha420 @sashadoes |
QA Update:
|
@wpdarren, I think that's fine since expanding or collapsing questions doesn't change anything. But if you want, you can double check with Evan or a UX designer. |
QA Update: ✅@eugene-manuilov thanks, I won't hold this ticket up, but will flag my observation with the UX team. Verified:
animation-1.mp4 |
Bug Description
This was identified as of scope when QA-ing the User Input V2 tickets, but feel we could improve the UX/UI.
You complete the 3 questions and the overview page appears. When you submit the questions, the UX/UI feels a bit weird where everything disappears other than the header of the user input form and the loading animation.
I'm wondering if it would be better experience to actually have the loading animation on the submit button, rather than the answers disappearing and being replaced with the loading animation.
Or maybe we have a similar UI when Page Speed Insights is run again. Everything is disabled and the loading animation appears at the top.
See screencast below.
ui-2.mp4
Steps to reproduce
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
google-site-kit/assets/js/components/user-input/UserInputQuestionnaire.js
:isSavingSettings
definition andisSavingSettings
from condition to render<ProgressBar />
google-site-kit/assets/js/components/user-input/UserInputPreview.js
:isSavingUserInputSettings
in render to disableSubmit Button
+Back
link, and render<Spinner />
google-site-kit/assets/js/components/user-input/UserInputSelectOptions.js
:items
being createdsite-kit-wp/assets/js/components/user-input/UserInputSelectOptions.js
Line 122 in 5bdcc76
props
get configuredisSavingUserInputSettings
to adddisabled: true/false
to the aboveprops
Test Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: