Page MenuHomePhabricator

Add an action bar to the Minerva diff page
Closed, ResolvedPublic

Description

User Story

  • As a mobile web content moderator, I want to be able to undo an edit while browsing a diff, so that I can revert low quality edits to pages I care about.
  • As a mobile web content moderator, I want to thank a user who made an edit, so that I can encourage them to continue making high quality edits.

Design specs

Screenshot 2023-03-21 at 13.00.20.png (1,834×1,056 px, 77 KB)

Action bar (1).png (428×815 px, 59 KB)

Button styles: Undo: Destructive; Thank: Progressive (Disabled after press)
Icons: Undo and Heart
Colours:
Background: Background/Notice Subtle (EAECF0)
Line at top: Border/Base (A2A9B1)

When Thank is pressed, the text should change to Thanked, while adjusting placement of the buttons to retain the horizontal gap between them. Because users cannot retract a Thank, the button should also change to the disabled state. Follow-up tasks will reimplement the toast notification that is currently displayed in MobileDiff.

The action bar should be sticky to the bottom of the screen and displayed on top of all other content.

Technical information

TBD

Testing and QA steps

  • TBD e.g. beta cluster

Acceptance Criteria

  • In the Minerva skin, diff pages should display the action bar along the bottom of the screen.
  • Clicking Undo should take the user to the undo process for this diff.
  • Clicking Thank should send the editor responsible for the edit a Thanks notification.
  • Clicking Thank should update the button to read 'Thanked' and disable the button.

Event Timeline

@Samwalton9-WMF the undo button is showing on desktop/tablet but not mobile. It would be super trivial to make it show on mobile now. The element is there just hidden and unstyled waiting for some code in core to make it look destructive if moderator tools wanted to make that happen!

Samwalton9-WMF claimed this task.

Done in a different form.