Page MenuHomePhabricator

Thanks extension is not shown on MobileFrontend history page (AMC mode)
Closed, ResolvedPublicBUG REPORT

Description

Desktop view:

image.png (39×389 px, 6 KB)

Mobile AMC view:

image.png (99×177 px, 3 KB)

QA steps

Go to mobile
Enable AMC mode
Go to any article
Go to the history page
Find an edit by a user that's not you

Expected: A thanks button is in the row
Actual: No thanks button

Developer notes

The ext.thanks module only loads on the desktop domain and is not being loaded here.

mw.loader.getState('ext.thanks') === null

When adding targets to the module, the Thanks module loads correctly but it remains hidden.

I'm not sure what impact this has on the Special:MobileHistoryPage (with AMC disabled) so when doing this care should be taken not to break that experience.

Acceptance criteria

  • Enable the modules
  • Remove the CSS rule for mw-thanks-thank-link that hides the link (in MinervaNeue/skinStyles/mediawiki.action.history.styles.less)
  • Style the thank link appropriately.

Event Timeline

Jdlrobson subscribed.

Im pretty sure Thanks is wired up not to run on mobile domain via the targets system. Lemme check.

Jdlrobson renamed this task from Mobile styling of HistoryAction removes thank button to Thanks extension is not shown on Minerva history page (AMC mode).Aug 19 2019, 9:57 PM
Jdlrobson updated the task description. (Show Details)
Jdlrobson edited projects, added Growth Design; removed Web-Team-Backlog.
Jdlrobson edited projects, added MinervaNeue; removed MobileFrontend.
Jdlrobson added a subscriber: alexhollender_WMF.

I believe we hid this as we weren't comfortable with using the Thanks extension. cc @alexhollender in case it's something we can partner with the Growth team to fix.

kostajh subscribed.

@Jdlrobson let us know if your team ends up working on it.

I can't find the conversation but I remember our rationale being something like: it doesn't seem super useful to be able to thank someone before seeing the diff.

In T230657#5438248, @alexhollender wrote:

I can't find the conversation but I remember our rationale being something like: it doesn't seem super useful to be able to thank someone before seeing the diff.

Wouldn't the same logic apply on desktop though?

Wouldn't the same logic apply on desktop though?

I guess so.

Wouldn't the same logic apply on desktop though?

I guess so.

So whether to show it or not should be a decision made by the Thanks extension regardless of platform, not something mobile developers get to choose?

Similarly, is it useful to Undo without seeing the diff?

  • Maybe if a user is repeatedly deleting the same sourced material and you see another red "-425" character count again…
  • Maybe if you're undoing your own boo-boo.
  • Also, a bad Undo can be undone (?) but a mistaken Thank can't be revoked.

If you remove Thank from desktop history page, you're likely to get an outpouring of complaints, of "where did it go?" questions, and of "we weren't consulted" accusations.

Do consider running RFCs before yanking anything from Vector. It might be logical to configure the setting centrally in Thank, rather than per-skin, but it would need to default to the status quo, and be something that each community can opt into.

In T230657#5438248, @alexhollender wrote:

I can't find the conversation but I remember our rationale being something like: it doesn't seem super useful to be able to thank someone before seeing the diff.

I agree. Personally I do think this task should be declined. Showing thanks outside the diff page also makes it a lot easier for people to harass users with multiple thanks. I personally think the desktop view is also broken, but as @Pelagic says, that may involve an RFC and I'm not sure it's that big a problem.

JTannerWMF subscribed.

This looks like a decision for the Web-Team-Backlog team. Let the Growth-Team know if you need anything from us.

Per T230657#5438248 maybe we want to decline this and document the decision?

Jdlrobson renamed this task from Thanks extension is not shown on Minerva history page (AMC mode) to Thanks extension is not shown on MobileFrontend history page (AMC mode).Jan 17 2020, 10:32 PM
Jdlrobson moved this task from Backlog to Blocked on the MinervaNeue board.
Jdlrobson removed a project: MinervaNeue.

Change 867296 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/MinervaNeue@master] Show the thanks button on mobile history page

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

Change 867296 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Show the thanks button on mobile special pages

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

@Samwalton9 does moderator tools team want to QA this and sign off on it?

It looks like we don't have official qa bandwidth on this, so I've done some additional checking under more circumstances: the change absolutely works (a functioning thanks button appears), but there are situations where the presentation isn't great on the confirmation step:
on special contributions:

image.png (708×424 px, 68 KB)

on page history:

Screenshot from 2022-12-16 09-49-43.png (708×424 px, 54 KB)

This is not an issue with thanks specifically, but rather an issue with the jquery confirmable; I've seen this before, though I can't immediately recall where.

Jdlrobson claimed this task.

I've opened T325383 for that issue.
Since only advanced users are going to see this I think this messy state of functionality with visual bugs is acceptable.