-
Notifications
You must be signed in to change notification settings - Fork 295
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
UX Updates to User Input Questionnaire #9374
Comments
AC ✔️ |
@zutigrm IB ✅ moving to EB |
@zutigrm comment for your attention here, should I split the "Sell products or services" into the two new categories that are now in Figma? Without doing this the copy for the description for this combined option will need to be created. |
Based on call 7 October 2024, it would be best to stick to the combined question "Sell products or services" we use now if possible. In this case I need new approved copy for that answer. |
@benbowler following a sync with @sigal-teller , the decision to remove the final "Review answers" screen was made a while back in response to a UXR study. I am going to update AC, and upon approval, the IB as well. |
QA Update ❌
Issue 1 : Padding between radio button and content is not same as figma. Issue 2 : The story is displaying "The question is answered by: Admin name" for the wrong question. It should show this text for the first question instead of the third. PASS CASES |
Hey @mohitwp, I've created a follow up to update the gap between the radio and content and fixed the stories to correctly show the multi admin case. |
QA Update ✅
|
Feature Description
User input questionnaire needs to be updated, following the new UX design updates which are bringing a bit of polishing to the existing component. Minor functionality updates are required given the removal of the "Review your answers" step.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
assets/js/components/user-input/util/constants.js
getUserInputAnswersDescription
getUserInputAnswers
, do the same here, but map the descriptions, as shown in the figmaUSER_INPUT_ANSWERS_PURPOSE
, as this is the only group which includes descriptions for now.assets/js/components/user-input/UserInputQuestionnaire.js
descriptions
prop to the component rendering site purpose answerssite-kit-wp/assets/js/components/user-input/UserInputQuestionnaire.js
Line 169 in 8a6a275
getUserInputAnswersDescription
UserInputQuestionInfo
, will now render static text for all questions. Removetitle
andquestionNumber
props fromUserInputQuestionWrapper
component, and use staticdescription
from figma for all occurrences of this component.title
andquestionNumber
inUserInputQuestionInfo
should be removed, as they won't be needed any moreassets/js/components/user-input/UserInputSelectOptions.js
descriptions
optionSlug
and pass it asdescription
prop to existing item componentsite-kit-wp/assets/js/components/user-input/UserInputSelectOptions.js
Line 169 in 8a6a275
assets/js/components/user-input/UserInputQuestionWrapper.js
remove usage oftitle
and renderUserInputQuestionInfo
unconditionally and removetitle
prop fromUserInputQuestionInfo
assets/js/components/user-input/UserInputQuestionInfo.js
title
andgooglesitekit-user-input__question-number
markup andquestionNumber
, and move it to theassets/js/components/user-input/UserInputApp.js
assets/js/components/user-input/UserInputApp.js
PageHeader
CORE_FORMS
datastore, by retrieving the data and storing in sayFORM_USER_INPUT_QUESTION_NUMBER
assets/js/components/user-input/UserInputQuestionnaire.js
nextCallback
andbackCallback
to store the currently active step (numerical step, not the slug) inFORM_USER_INPUT_QUESTION_NUMBER
ProgressBar
component to match the new look in the designassets/sass/components/user-input/googlesitekit-user-input-questions.scss
to apply any needed changesRemove the "Review your answers" step
assets/js/components/user-input/UserInputQuestionWrapper.js
add a new prop,complete
, when passed the copy of the field should be "Complete setup" by rendering a new block, using aSpinnerButton
instead of a standardButton
:site-kit-wp/assets/js/components/user-input/UserInputQuestionWrapper.js
Lines 81 to 89 in db3699f
isSavingUserInputSettings
andisNavigating
selectors, passing the resulting boolean todisabled
andisSaving
prop on the new spinner button.assets/js/components/user-input/UserInputQuestionnaire.js
:onSaveClick
function fromassets/js/components/user-input/UserInputPreview.js
into this component.nextCallback
use in the finalUserInputSelectOptions
to callonSaveClick
instead and use thecomplete
prop instead of thenext
prop in theUserInputQuestionWrapper
component.site-kit-wp/assets/js/components/user-input/UserInputQuestionnaire.js
Lines 227 to 238 in db3699f
ErrorNotice
for any change submission errors to show in a fixed position banner.site-kit-wp/assets/js/components/user-input/UserInputPreview.js
Line 181 in db3699f
assets/js/components/user-input/UserInputPreview.js
component.preview
slug panel in this app.Test Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: