Page MenuHomePhabricator

Inconsistent "Edit" button label
Open, Needs TriagePublic

Description

Description

Artboard.png (152×631 px, 26 KB)

  • if you're about to start editing with the source editor the button says "Edit source"
  • if you're about to start editing with VE the button says "Edit"

Proposal

The button label is always "Edit" (regardless of which editor you're about to enter)

Event Timeline

once you click "Edit" the button label switches to "Edit this page"

I would like to hear more about this case, because I've never seen it, and it seems like a bug. Can you load the page with ?uselang=qqx (see https://mediawiki.org/wiki/qqx) to reveal which localisation message generates this text?


The rest of the behavior you describe is intentional (I have no opinion on whether we should change it). A link always says "Edit" if it's going to open the visual editor, and always says "Edit source" if it's going to open the wikitext editor. This is consistent in single-tab and multi-tab mode, and with section edit links as well.

Thanks for posting this @alexhollender - From my perspective, the interaction is Edit (no matter if you are in Wikitext or Visual Editor). Then, the second level of interaction is choosing how you want to edit. For consistency the buttons should say the exact same thing and never change.

@matmarex

Can you load the page with ?uselang=qqx (see https://mediawiki.org/wiki/qqx) to reveal which localisation message generates this text?

before clicking "Edit"after clicking "Edit"
normal
Screen Shot 2018-10-12 at 5.19.28 PM.png (236×2 px, 124 KB)
Screen Shot 2018-10-12 at 5.19.39 PM.png (298×2 px, 158 KB)
?uselang=qqx
Screen Shot 2018-10-12 at 5.18.54 PM.png (242×2 px, 152 KB)
Screen Shot 2018-10-12 at 5.19.07 PM.png (366×2 px, 213 KB)

I agree with @iamjessklein that it would make sense for the button to always say "Edit", regardless of the editor experience you're about to get. I don't feel like the benefit of knowing which editor experience you're about to get (which is hard to articulate) outweighs the potential confusion from the button having different labels. I do, however, find it annoying to switch to my desired mode once I am inside the editing experience so depending on how often average editors switch between editing experiences it could be worth exploring having a dropdown next to the edit button that would allow you to directly access the mode you want (i.e. the non-default one for a respective user):

edit-dropdown.jpg (226×768 px, 138 KB)

@alexhollender Thank you, that's very helpful. I was able to find where we use the incorrect localisation message ( 'edit' instead of 'vector-view-edit'). I filed T206892 with some more details about this. Let's make this task just about the 'Edit' vs 'Edit source' distinction.

In T206554#4662534, @alexhollender wrote:

I agree with @iamjessklein that it would make sense for the button to always say "Edit", regardless of the editor experience you're about to get. I don't feel like the benefit of knowing which editor experience you're about to get (which is hard to articulate) outweighs the potential confusion from the button having different labels. I do, however, find it annoying to switch to my desired mode once I am inside the editing experience so depending on how often average editors switch between editing experiences it could be worth exploring having a dropdown next to the edit button that would allow you to directly access the mode you want (i.e. the non-default one for a respective user):

edit-dropdown.jpg (226×768 px, 138 KB)

We already have a preference for your use case: on https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-editing, set "Editing mode" to "Show me both editor tabs". Then you will get two tabs, "Edit" and "Edit source", side-by-side:

image.png (449×1 px, 258 KB)

This was actually the only available option at the beginning when VisualEditor was introduced; the single-edit-tab modes were added later. Possibly we kept the distinction in single-edit-tab mode for familiarity to users who used the multi-tab mode previously? Alas, I wasn't on the team yet when this was being changed.

JTannerWMF subscribed.

Is this something that is a blocker for our Toolbar work? @iamjessklein

No, it shouldn't be relevant for toolbars.