Page MenuHomePhabricator

🧑‍💻 Create a Quiz-Pill Vue component
Closed, ResolvedPublic3 Estimated Story Points

Description

The new onboarding designed for the new Revise Tone Structured Task features a set of quiz questions for the newcomer to answer:

image.png (662×585 px, 74 KB)

(full specs in figma)

This quiz shows its possible answers as a pill. This technical sub-task is about creating the component needed for that, complete with styling and unit-tests.

That component will have one out of four possible types:

  1. interactable (before any option was selected, the pill will be a button that emits an event on click)
  2. incorrect (if the user selected the pill for the wrong answer)
  3. correct (the correct answer is always highlighted)
  4. non-interactable (a wrong answer that was not selected)

The copy and the type should be provided to the pill via props. There might be additional props needed, like the index.

Acceptance criteria:

  • There exists a QuizPill Vue component in the revise-tone directory that can be used as-is to build the Revise Tone onboarding quiz
  • That component has basic tests

Event Timeline

KStoller-WMF moved this task from Inbox to Up Next (estimated tasks) on the Growth-Team board.
KStoller-WMF set the point value for this task to 3.Oct 6 2025, 4:12 PM

Change #1195731 had a related patch set uploaded (by Sergio Gimeno; author: Sergio Gimeno):

[mediawiki/extensions/GrowthExperiments@master] ReviseTone: add QuizPill component and demo

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

Change #1196425 had a related patch set uploaded (by Sergio Gimeno; author: Sergio Gimeno):

[mediawiki/extensions/GrowthExperiments@master] devserver: add a selector of Vue apps to display

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

Change #1196425 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] devserver: add a selector of Vue apps to display

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

Change #1195731 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] ReviseTone: add QuizPill component and demo

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

Not sure if this task requires dedicated QA since it's only "internal code" for now, doesn't get exposed in any production code path yet. Should we resolve right away this kind of tasks once the related patches are merged? cc @Michael

Yes, let's resolve this right now. QA will happen via the parent and/or via T407362.