Current abort dialog in mobile editing looks like this:
The OK button should
- be called differently, for example “Abandon change”
- use a primary destructive button.
| Volker_E | |
| Apr 17 2018, 4:27 AM |
| F26221761: image.png | |
| Sep 27 2018, 6:59 PM |
| F17202606: abort-edit-primary-destructive.png | |
| Apr 20 2018, 9:24 PM |
| F17020783: image.png | |
| Apr 17 2018, 4:27 AM |
Current abort dialog in mobile editing looks like this:
The OK button should
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | None | T151112 Rephrase MobileFrontend dialog controls/buttons when pressing the back arrow during an edit | |||
| Resolved | Esanders | T192333 Abort dialog in mobile source editing should feature primary destructive button |
@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:
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
Change 470831 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/core@master] Upstream VE's MWCancelConfirmDialog as AbandonEditDialog
Change 470833 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/VisualEditor@master] Use upstream AbandonEditDialog
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.
Change 470831 merged by jenkins-bot:
[mediawiki/core@master] Upstream VE's MWCancelConfirmDialog as AbandonEditDialog
Change 470833 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Use upstream AbandonEditDialog
Change 469340 merged by jenkins-bot:
[mediawiki/extensions/MobileFrontend@master] Use upstream AbandonEditDialog