Page MenuHomePhabricator

Abort dialog in mobile source editing should feature primary destructive button
Closed, ResolvedPublic

Description

Current abort dialog in mobile editing looks like this:

image.png (660×2 px, 63 KB)

The OK button should

  • be called differently, for example “Abandon change”
  • use a primary destructive button.

Event Timeline

This is in the ooui library i believe.

@Jdlrobson You can make the Discard button whatever you want in OOUI.

@VolkerE code is here: https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/blob/master/resources/mobile.editor.common/EditorOverlayBase.js#L313 and it's using the default OO ui widget. I'd argue the defaults should be sensible and in line with our palette. I'd hate to decide further down the line they should all be purple and have to update in say 10 places the color.

We use this text in VE:

image.png (750×457 px, 84 KB)

Happy to tweak that if necessary but we should be consistent. We could upstream this dialog to master as "AbandonEditDialog"...

Change 469340 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/MobileFrontend@master] Make primary action destructive on abandon edit dialog

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

Change 470831 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/core@master] Upstream VE's MWCancelConfirmDialog as AbandonEditDialog

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

Change 470833 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/VisualEditor@master] Use upstream AbandonEditDialog

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

This involves moving message defined in VE to core, pinging @Nikerabbit to see if we can preserve these.

I replied on IRC but copying here:

I would do move and rename as two independent steps (and CC Raymond so he can perform the renames). Moving works across repos works if the key (aka page title) is exactly the same in translatewiki.net

Assuming this is the VE extension, then moving across repos will be easy because all MediaWiki core and extension keys share the same namespace.

Thanks, I've separated the move/rename steps into two patches.

Change 470831 merged by jenkins-bot:
[mediawiki/core@master] Upstream VE's MWCancelConfirmDialog as AbandonEditDialog

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

Change 470833 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Use upstream AbandonEditDialog

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

Change 469340 merged by jenkins-bot:
[mediawiki/extensions/MobileFrontend@master] Use upstream AbandonEditDialog

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

Ryasmeen renamed this task from Abort dialog in mobile editing should feature primary destructive button to Abort dialog in mobile source editing should feature primary destructive button.Nov 6 2018, 1:13 AM
Ryasmeen added a project: Verified.
Ryasmeen moved this task from QA to Product owner review on the VisualEditor (Current work) board.