Page MenuHomePhabricator

UI - Ability to go back
Closed, ResolvedPublic

Description

As a Wikimedia logged in user, I would like quickSurvey to provide me the ability to go back and change my previous question selected.

AC:

  • The UI will not show a "back" button in the first question
  • The UI will show a "back" button from the second question onward
  • When the user clicks the back button the previous question will show
  • When the previous question is shown, this will be "prefilled" with the user input
  • The story will be unit tested

QA:

  • Load a survey via the QA steps in https://phabricator.wikimedia.org/T362640
  • Select "ext-quicksurveys-test-internal-survey-negative" for question 1 and click submit.
  • Select "ext-quicksurveys-test-internal-survey-positive" for question 2 and then click back (imagine I've forgotten what I answered to the previous question)

Expected: question 1 shows negative as the selected answer (as that's what I selected before).
Actual: question 1 shows positive as the selected answer.

Event Timeline

Mimurawil changed the task status from Open to In Progress.Apr 23 2024, 1:25 AM

Change #1024521 had a related patch set uploaded (by Mimurawil; author: Mimurawil):

[mediawiki/extensions/QuickSurveys@master] T362971: Ability to go back to previous question

https://gerrit.wikimedia.org/r/1024521

Test wiki created on Patch demo by SimoneThisDot using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/42ce80c18c/w

Test wiki created on Patch demo by SimoneThisDot using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/a44d09140e/w

Test wiki on Patch demo by SimoneThisDot using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/42ce80c18c/w/

Change #1037233 had a related patch set uploaded (by Simone Cuomo; author: Simone Cuomo):

[mediawiki/extensions/QuickSurveys@community-safety] Improve capability of QuickSurvey

https://gerrit.wikimedia.org/r/1037233

Change #1037233 merged by jenkins-bot:

[mediawiki/extensions/QuickSurveys@community-safety] Improve capability of QuickSurvey

https://gerrit.wikimedia.org/r/1037233

Change #1024521 abandoned by Simone Cuomo:

[mediawiki/extensions/QuickSurveys@master] T362971: Ability to go back to previous question

Reason:

The work for this branch and ticket has been completed in a feature branch "https://gerrit.wikimedia.org/r/c/mediawiki/extensions/QuickSurveys/+/1037233"

https://gerrit.wikimedia.org/r/1024521

Test wiki on Patch demo by SimoneThisDot using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/a44d09140e/w/

Test wiki created on Patch demo by SimoneThisDot using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/1f5a200338/w

Test wiki on Patch demo by SimoneThisDot using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/1f5a200338/w/

Test wiki created on Patch demo by Jdlrobson using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/e606e11883/w

Test wiki created on Patch demo by SimoneThisDot using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/0d85df7998/w

Test wiki on Patch demo by Amdrel using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/80286dd93e/w/

Test wiki on Patch demo by Amdrel using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/7ed125994c/w/

Test wiki on Patch demo by SimoneThisDot using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/0d85df7998/w/