Page MenuHomePhabricator

Use error message widget on VotePage [L]
Open, In Progress, HighPublic

Description

The error displayed on the VotePage could do with updating:

image.png (411×619 px, 25 KB)

For STV, this looks more like:

image.png (455×720 px, 43 KB)

Currently the HTML is built in BallotStatus::sp_getHTML. Instead that method could return an OOUI\MessageWidget with type: 'error'.

Note: this change will impact all the error messages for all the different election types. We should make sure nothing breaks with any of those messages when QA-ing this work.

Event Timeline

Niharika raised the priority of this task from Low to Medium.May 26 2021, 2:48 PM
ARamirez_WMF renamed this task from Use error message widget on VotePage to Use error message widget on VotePage [L].Jun 9 2021, 4:48 PM

It might also be nice if these messages were shown "live", so that voters don't have to re-select their options if they hit this error.

jrbs raised the priority of this task from Medium to High.Sep 23 2022, 10:33 PM
jrbs moved this task from Backlog to Evaluated on the MediaWiki-extensions-SecurePoll board.

Evaluation:

Enhancing the error messages should be straight forward. Live validation may be more effort

Change 892997 had a related patch set uploaded (by Pavlo Yashchenko; author: Pavlo Yashchenko):

[mediawiki/extensions/SecurePoll@master] Use MessageWidget for errors on VotePage

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

jsn.sherman changed the task status from Open to In Progress.Fri, Mar 29, 1:58 PM
jsn.sherman reassigned this task from STran to pyashchenko.
jsn.sherman moved this task from Ready to Code review on the Moderator-Tools-Team (Kanban) board.
jsn.sherman added a subscriber: STran.
jsn.sherman added a subscriber: pyashchenko.

Apologies for the phabricator spam, everyone!

Change #892997 merged by jenkins-bot:

[mediawiki/extensions/SecurePoll@master] Use MessageWidget for errors on VotePage

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