Page MenuHomePhabricator

'Change visibility' and 'Edit tags' buttons are not displayed in AMC page history
Closed, ResolvedPublic5 Estimated Story PointsBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Go to bnwiki from a mobile device.
  • Enable AMC mode.
  • Go to the page history of any page.

What happens?:

Two buttons ('Change visibility of selected revisions' and 'Edit tags of selected revisions') are missing. These buttons should show below the 'Compare selected revisions' button.

Screenshot_20220707-043746~2.png (879×720 px, 112 KB)

What should have happened instead?:

These buttons should show like the screenshot below-

Screenshot_20220707-043839~2.png (1×720 px, 120 KB)

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

Event Timeline

Jdlrobson added subscribers: jsn.sherman, Jdlrobson.

Hey @jsn.sherman could this relate at all to your recent changes?

Hey @jsn.sherman could this relate at all to your recent changes?

The timing certainly lines up. I'll have a look and come back with a more conclusive answer tomorrow.

This is also true on English Wikipedia.

en.m.wikipedia.org_w_index.php_title=San_Francisco&action=history(iPhone SE).png (1×750 px, 188 KB)

I am also the administrator of Bengali Wikivoyage and test2wiki. The same problem there. I have received similar reports from administrators of other projects I know. I think this is happening everywhere except testwiki.

jsn.sherman claimed this task.

@Samwalton9 @Jdlrobson So far as I can tell, this wasn't moderator tools.

I verified that it wasn't

which was the most likely to impact this page. It was deployed last month, and I verified that reverting didn't impact the issue.

I locally walked back the two changes of ours that I did spot on this week's train (https://www.mediawiki.org/wiki/MediaWiki_1.39/wmf.19) with no impact:

Undoing accidental status change

Undoing accidental assignment. Apologies for the spam.

It's being hidden because it's inside an element with class mw-history-revisionactions which is hidden.

That element has been hidden since 2019 by CSS (078aab76d8). It's markup as been stable in HTML since 2019 too (18871dc) so it looks like this is not a new regression. It doesn't look like it was included in the initial design pass (T219895).

What I'm a little confused about - was this recently working and got fixed? Did a gadget perhaps get disabled/changed?

You make a really good point: I'm not sure of the conditions in which those buttons are supposed to appear. If they were previously appearing in a clean mediawiki install, I think I've eliminated the changes we've made as the source of them disappearing. If some other dependency that I didn't have installed locally was causing them to appear, then my checks would have missed any problems that we introduced.

For future reference: to reproduce this issue I believe you need to be a user with the deleterevision and/or changetags user rights.

Samwalton9-WMF renamed this task from Missing two buttons in the page history of Bengali Wikipedia mobile site to 'Change visibility' and 'Edit tags' buttons are not displayed in AMC page history.Aug 1 2022, 11:35 AM

We just did some digging to figure out how to test this problem locally. Simply having the deleterevision and changetags wasn't sufficient to see both buttons in the desktop interface.

Having the administrator user group provides users with deleterevision by default, so this enables the 'Change visibility...' button to display (in desktop view).

To see the 'Edit tags...' button, you need to both have the changetags user right (which users have by default) and also create a tag in Special:Tags. It should then start displaying.

This doesn't explain why it's hidden on mobile, but at least gets you into a position where you would expect the buttons to display.

To see the 'Edit tags...' button, you need to both have the changetags user right (which users have by default) and also create a tag in Special:Tags. It should then start displaying.
so, have it displaying, suggest that design take a look at it

image.png (564×1 px, 46 KB)

Also, there is these section of Select: All, None, Inverted that does not display on mobile, but does display on desktop - do they want that included also?

image.png (703×2 px, 80 KB)

I am going to have to go more in-depth into the logic of mediawiki\skins\MinervaNeue\skinStyles\mediawiki.action.history.styles.less, because it looks like the button should not show up until it is needed, so not displayed on default, just when conditions dictate that it is necessary to be available

Change 830882 had a related patch set uploaded (by EllenR; author: EllenR):

[mediawiki/skins/MinervaNeue@master] WIP buttons are not displayed in AMC page history

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

the first commit :
The committed section of code displays the Edit tags of selected revisions button, this button looks the same as the on the desktop version - TBH there is some logic about display of buttons on mobile, but many of the comments are no longer in the code. Am currently trying to find out about the logic, and also when the Change visibility button should be displayed - that button does not show up when desktop version is first loaded - so looking at the conditions necessary for the button to display.

this button looks the same as the on the desktop version

This is OK - the AMC history page is largely the same as the desktop site visually and if you look at the images in the task description this is how it was before it stopped showing up.

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

Thanks for the patch demo @eigyan!

I'm seeing 'Edit tags...' obscuring the top date header on history pages:

patchdemo.wmflabs.org_wikis_7193243178_w_index.php_title=Main_Page&action=history(iPhone 12 Pro).png (2×1 px, 262 KB)

Samwalton9 added a comment.Thu, Sep 8, 9:01 AM
this button looks the same as the on the desktop version

This is OK - the AMC history page is largely the same as the desktop site visually and if you look at the images in the task description this is how it was before it stopped showing up.

Once you said that, I figured I just needed to leave it alone - cause this page is UGLY

Greetings @ERayfield and @Samwalton9, I saw the overlapping button behavior as well and noticed that if we remove the "float:right" and replace with "margin-bottom:12-14px" issue is resolved. I am unclear about the original need to float the element and am happy to discuss when we can.

Essex made some layout suggestions, which (as usual) were excellent - buttons still need help, but it looks better.

image.png (781×408 px, 46 KB)

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

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

Also looks good @ERayfield on larger mobile viewports

Screen Shot 2022-09-26 at 11.52.38 AM.png (1×2 px, 233 KB)

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

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

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

https://patchdemo.wmflabs.org/wikis/446ff22504/w/

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

Change 830882 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] adjusted button css layou

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

Poked around with the Patch Demo and this is looking great :)

Tested in enwiki and looks good.

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

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

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

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

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

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

https://patchdemo.wmflabs.org/wikis/69d3e3c26b/w/