Page MenuHomePhabricator

Convert SecurePoll ListPage to use OOUI
Open, Needs TriagePublic5 Estimated Story Points

Assigned To
None
Authored By
STran
Jan 27 2021, 11:22 AM
Referenced Files
F35176796: image.png
May 25 2022, 5:40 PM
F35176798: image.png
May 25 2022, 5:40 PM
F34173168: strike_popup_validation.png
Mar 19 2021, 1:59 PM
F34162206: image.png
Mar 15 2021, 7:31 PM
F34162144: image.png
Mar 15 2021, 6:50 PM
F34162141: image.png
Mar 15 2021, 6:50 PM

Description

Use OOUI for the form on ListPage.php

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 670634 had a related patch set uploaded (by DLynch; owner: DLynch):
[mediawiki/extensions/SecurePoll@master] Convert ListPage to OOUI

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

Because the patch update just now actively changed the layout...

Before:

image.png (364×1 px, 51 KB)

After a bit of refactoring for OOUI:

image.png (306×714 px, 27 KB)

Change 672521 had a related patch set uploaded (by DLynch; owner: DLynch):
[mediawiki/extensions/SecurePoll@master] Remove now-unusued securepoll-strike-cancel message

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

Change 670634 merged by jenkins-bot:
[mediawiki/extensions/SecurePoll@master] Convert ListPage to OOUI

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

Because the patch update just now actively changed the layout...

Before:

image.png (364×1 px, 51 KB)

After a bit of refactoring for OOUI:

image.png (306×714 px, 27 KB)

Ooo that's a striking change! Love it.

dom_walden subscribed.

I tested striking and unstriking votes, checking the appropriate API call is made and it is recorded in the DB.

I briefly tested validation. We show the error that the strike API returns, e.g.

strike_popup_validation.png (119×336 px, 9 KB)

Pressing enter does not automatically submit like it did previously. Is this normal behaviour for a OOUI popup? I tested popups in VE, and they appear to behave the same.

It does not work without JS, but that was the case before.

Test Environment: https://vote.wikimedia.beta.wmflabs.org SecurePoll 2.0.0 (97412a0) 07:26, 19 March 2021.

Change 672521 merged by jenkins-bot:
[mediawiki/extensions/SecurePoll@master] Remove now-unusued securepoll-strike-cancel message

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

Stang subscribed.

image.png (227×632 px, 22 KB)

Pager (in ListPage.php) is still not converted to OOUI, so reopen this task. It called getLimitForm function defined in includes/pager/TablePager.php (core). We need something similar to the following screenshot?

image.png (373×1 px, 61 KB)

Aklapper added a subscriber: DLynch.

@DLynch: Per emails from Sep18 and Oct20 and https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup , I am resetting the assignee of this task because there has not been progress lately (please correct me if I am wrong!). Resetting the assignee avoids the impression that somebody is already working on this task. It also allows others to potentially work towards fixing this task. Please claim this task again when you plan to work on it (via Add Action...Assign / Claim in the dropdown menu) - it would be welcome. Thanks for your understanding!