Page MenuHomePhabricator

Convert Special:RevisionDelete to OOUI
Closed, ResolvedPublic

Assigned To
Authored By
matmarex
Nov 4 2015, 7:54 PM
Referenced Files
F36872684: image.png
Feb 26 2023, 10:00 PM
F36872651: image.png
Feb 26 2023, 8:59 PM
F36872649: image.png
Feb 26 2023, 8:59 PM
F32242579: image.png
Sep 2 2020, 8:20 PM
F32242582: image.png
Sep 2 2020, 8:20 PM
F31696151: SpecialRevisionDelete.php
Mar 21 2020, 7:39 AM
F31696137: m1.PNG
Mar 21 2020, 7:39 AM
F31696153: Resources.php
Mar 21 2020, 7:39 AM
Tokens
"Yellow Medal" token, awarded by Kizule.

Description

This should go hand in hand with Special:Undelete

Before
Single
image.png (261×736 px, 15 KB)
Multi
image.png (292×737 px, 18 KB)

Event Timeline

matmarex raised the priority of this task from to Medium.
matmarex updated the task description. (Show Details)
matmarex added a project: UI-Standardization.

This needs optgroup support in OOUI DropdownInputWidget, as far as I can see, that's not supported so far, right?

While OO.ui.DropdownInputWidget would benefit from having support for optgroup, I don't think this particular page needs it. My understanding here is limited, but I feel that the Common delete reasons heading is unnecessary and the functionality of the dropdown would be obvious to the user even without it.

Screen Shot 2017-03-10 at 8.42.14 PM.png (123×331 px, 30 KB)
Screen Shot 2017-03-10 at 8.45.38 PM.png (107×308 px, 25 KB)

A part of the UI is slightly tricky, when you select two revisions you get a table of radios.

Single revisionMultiple revisions
Screen Shot 2017-07-11 at 1.36.24 PM.png (249×1 px, 38 KB)
Screen Shot 2017-07-11 at 1.36.12 PM.png (282×1 px, 45 KB)

I was thinking of using a [[ https://doc.wikimedia.org/oojs-ui/master/demos/?page=widgets&theme=wikimediaui&direction=ltr&platform=desktop#ButtonGroupWidget | ButtonGroupWidget ]] instead.

While OO.ui.DropdownInputWidget would benefit from having support for optgroup, I don't think this particular page needs it. My understanding here is limited, but I feel that the Common delete reasons heading is unnecessary and the functionality of the dropdown would be obvious to the user even without it.

I agree, I don't think it's necessary here as long as it's always those five possible options.

A part of the UI is slightly tricky, when you select two revisions you get a table of radios.

Single revisionMultiple revisions
Screen Shot 2017-07-11 at 1.36.24 PM.png (249×1 px, 38 KB)
Screen Shot 2017-07-11 at 1.36.12 PM.png (282×1 px, 45 KB)

I was thinking of using a [[ https://doc.wikimedia.org/oojs-ui/master/demos/?page=widgets&theme=wikimediaui&direction=ltr&platform=desktop#ButtonGroupWidget | ButtonGroupWidget ]] instead.

Not sure if repeating four ButtonGroupWidgets with same Button labels (”(do not change)”/“Visible”/“Hidden”) is best representation.

Why is “Suppress data[…]” set to bold?

I agree, I don't think it's necessary here as long as it's always those five possible options.

Yep, anyway that issues is resolved - T135028: DropdownInputWidget: Provide optgroup support

Not sure if repeating four ButtonGroupWidgets with same Button labels (”(do not change)”/“Visible”/“Hidden”) is best representation.

Me neither. Any suggestions?

Why is “Suppress data[…]” set to bold?

I suppose its to signify that these setting should be used with caution. We could obviously take another approach.

Jayprakash12345 raised the priority of this task from Medium to Needs Triage.Apr 4 2018, 8:23 PM
Volker_E triaged this task as Medium priority.Apr 4 2018, 8:47 PM

Removing Front-end-Standards-Group, from here (above) it's a resources and priorities question and nothing the group can contribute to.

@Prtksxna For multiple revisions, I guess, having the labels first and introducing at least a slight zebra row coloring similar to CheckboxMatrix should make it better.

Sorry, won't be working on this for a while.

@Prtksxna Did you get to any start code-wise here?

@Prtksxna Did you get to any start code-wise here?

Its been a while, and I think I did. But I can't find any corresponding abandoned Gerrit patches or local branches, sorry! 😞

Here's what I came up with:

Single revisionMultiple revisions
s1.PNG (372×585 px, 9 KB)
With radio:
m1.PNG (512×598 px, 16 KB)
With select:
m2.PNG (510×589 px, 13 KB)

Here's the new files:

Converted to OOUI with radio for multiple revisions
Updated for OOUI inputs
Added oojs-ui-core as a dependency

Here's the new files:

Hi Brandon, thanks! That should better be in Gerrit instead, as it is impossible to see the differences here.

Change 582505 had a related patch set uploaded (by BrandonXLF; owner: BrandonXLF):
[mediawiki/core@master] Convert Special:RevisionDelete to OOUI

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

Reviewing the patch for this. Attaching image here for reference at gerrit.

image.png (487×815 px, 64 KB)

Basically I think the current wording for that message of "(do not change)" doesn't work now that it is no longer a table structure and "Do not change" looks cleaner. Example with this changed:

image.png (524×1 px, 71 KB)

Another image for reference in the gerrit change:

image.png (950×1 px, 107 KB)

I think the "Visible" and "Hidden" for the suppress option in the Multi form should be replaced with "No" and "Yes" respectively.

Change 892052 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/core@master] Follow-up fixes for SpecialRevisionDelete OOUI conversion

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

I've merged the "Convert Special:RevisionDelete to OOUI" change and made a follow-up to address non-blocking issues. Because the issues were not blocking and the change is old, I wanted to avoid another merge conflict by merging now in a state that would be okay to be deployed to wikis.

I would appreciate a quick review and merge for that my follow up (ideally before the train split). Happy to field questions and make changes quickly. Without the change some of the label messages used are not as intuitive after the OOUI conversion.

Change 582505 merged by jenkins-bot:

[mediawiki/core@master] Convert Special:RevisionDelete to OOUI

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

Change 892052 merged by jenkins-bot:

[mediawiki/core@master] Follow-up fixes for SpecialRevisionDelete OOUI conversion

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

Dreamy_Jazz assigned this task to BrandonXLF.

Tested on the beta wiki - The form is now OOUI, it works and all makes sense. Therefore, this task should be ready to be closed.