Page MenuHomePhabricator

Improve discoverability of full-page editing on mobile
Closed, ResolvedPublic

Description

T203151 introduced an affordance that enables people to edit an entire page on mobile using the Visual Editor (see below), as opposed to editing one section at a time.

This task involves the work of making this affordance/ability easier for people to discover

Stories

As someone motivated to make a change to the article I’m reading on mobile web, I want to be able to edit any part of the page — regardless of which Edit button I tapped — so that I can easily locate the part of the article I'm seeking to change and maintain a sense of forward momentum that could be "blunted" by needing to navigate back out of the editor if/when I come to find the content I'm trying to change is located in a section that's different from the one the Edit button I tapped is associated with.

Hypothesis

What follows is *DRAFT* language that will be finalized in Q2 experiments addressing mobile web editing experience and eventually published on-wiki.

If we enable people on mobile web to edit any article section, regardless of which edit icon they first tap, then mobile edit abandonment (for newer editors) will decrease by ##% because they will be able to more more easily reach and modify the content they tapped edit intending to change.

Current state

image.png (720×355 px, 168 KB)

Considerations

  1. The current app behavior opens section editing when selecting each edit button in the article. We need to decide if we want consistency between web and app.
  2. Another consideration is whether we want this behavior to be consistent between visual and source modes. There’s different trade-offs there from visual:
    • Source has far less of a performance concern to load the entire page
    • Scrolling through huge amounts of wikitext on a small screen is much more unfriendly
    • Automatically scrolling to the start-of-a-section isn’t really possible in source

Potential approaches

  • Approach #1: By default, only load section you tapped edit button for and sections immediately before and after, load rest of article in the background. If someone scrolls to section that's not yet loaded, we can approach this by one of the following:
    • a) Using a skeleton while loading non-loaded sections
    • b) Expose an affordance that would enable them to load the next section while scrolling (e.g. a button to load next section)
  • Approach #2: only load the section related to the edit button someone tapped. When they scroll/reach the boundaries of sections loaded, load subsequent sections.
  • Approach #3: when someone taps "Edit", use a dropdown menu to let them choose editing the full-page or just that single section.
NOTE: We've decided on Approach #1 as the best, so we will continue working on this as follows:

Acceptance criteria (or Done)

  •  Explore potential approaches
  • Investigate likelihood of performance gains in T409125
  • if gains looking promising, we'll implement PoC in T409130
  • if PoC feels good, we'll refine the UX in T409131

Related Objects

Event Timeline

Change #1170573 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/MobileFrontend@master] Make the action bar edit button edit the whole page

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

ppelberg updated the task description. (Show Details)

Summarizing here the explorations and next steps discussed with the team:

Possible approaches explored when selecting the "Edit" button on each article's section:

  • Approach #1: By default, only load section you tapped edit button for and sections immediately before and after, load rest of article in the background. If someone scrolls to section that's not yet loaded, we can approach this by one of the following:
    • a) Using a skeleton while loading non-loaded sections
    • b) Expose an affordance that would enable them to load the next section while scrolling (e.g. a button to load next section)
  • Approach #2: only load the section related to the edit button someone tapped. When they scroll/reach the boundaries of sections loaded, load subsequent sections
  • Approach #3: when someone taps "Edit", use a dropdown menu to let them choose editing the full-page or just that single section.

We've decided on Approach #1 as the best, so we will continue working on this as follows:

  1. eng is going to investigate likelihood of performance gains in T409125
  2. if gains looking promising, we'll implement PoC in T409130
  3. if PoC feels good, we'll refine the UX in T409131

Approach 3 has the interesting side-effect of removing the "accidental edit" mobile issue.

Status
Implementation on the UX we converged on is blocked on T409125, wherein we are determining whether the work required to limit the amount of sections that are loaded upfront is "worth" the performance improvements it could unlock.

Change #647036 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/VisualEditor@master] Provide a UI for switching to full page editing

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

Test wiki on Patch demo by ESanders (WMF) using patch(es) linked to this task was deleted:

https://a7c03783ae.catalyst.wmcloud.org/w/

Change #647036 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Provide a UI for switching to full page editing

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

Marking this task Resolved as we've implemented this in T409990.

@ppelberg what about the remaining checks in the acceptance criteria? Are we planning to continue working on those tasks?

  • if gains looking promising, we'll implement PoC in T409130
  • if PoC feels good, we'll refine the UX in T409131

Change #1170573 abandoned by Esanders:

[mediawiki/extensions/MobileFrontend@master] Make the action bar edit button edit the whole page

Reason:

Went with T409990 instead.

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