Page MenuHomePhabricator

Give a way to streamline pasting in source mode
Open, LowPublic

Description

Because of T190079 we now ask users in source mode whether they'd like their paste of formatted content to be converted to plain text or to wikitext. Although this is useful, it adds a bit of friction into any paste-heavy workflow, particularly if the task the editor is performing always needs the same answer to the modal.

We do have a keyboard shortcut for forcing plaintext pastes (ctrl-shift-v), but no equivalent for forcing the wikitext. We could add a similar shortcut (ctrl-alt-v?), to mean "paste and convert to wikitext if needed".

Alternately, we could put a checkbox in the modal, as "remember my choice for this edit session" (i.e. sessionStorage). I don't think a flat wiki-level preference would be appropriate, as it's fairly contextual to the task the editor is performing -- they can know that everything they want to do this time needs to be converted, but the next article they edit could be entirely different.

Event Timeline

I think an option on the hamburger menu (three horizontal lines) would be the easiest way for changing the default setting.

Deskana triaged this task as Medium priority.Jun 5 2018, 6:35 PM
Deskana added a project: Design.
Deskana added a subscriber: Pginer-WMF.

@Pginer-WMF gave a good suggestion when I talked to him about this last week, which was to perform the paste immediately when the user pastes something, and give the user the option (as a non-blocking action) to choose the other paste method afterwards. That seemed like an interesting idea worth exploring.

Vvjjkkii renamed this task from Give a way to streamline pasting in source mode to ilbaaaaaaa.Jul 1 2018, 1:05 AM
Vvjjkkii raised the priority of this task from Medium to High.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from ilbaaaaaaa to Give a way to streamline pasting in source mode.Jul 2 2018, 6:58 AM
CommunityTechBot lowered the priority of this task from High to Medium.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.

Nice catch @DLynch - it does feel like one too many clicks and therefore it interrupts the user's workflow.

The work that was done in T190079 assumes that this is a common pain point for the user and possibly frustrates them to the point that they may not complete the edit. Was this verified? (However, I totally agree that it's annoying to have this experience consistently). I'd imagine that depending on whatever editing view (visual vs. wikitext) the user is already in, the format should be maintained by default and then the user would have to take that extra step to essentially opt in to this mode switch. This matches the mental model of the user at the time of the edit.

In order to do this "opt in", we would need to do a little research on the interaction pattern for this and to identify how this is being handled elsewhere on the site.

Deskana lowered the priority of this task from Medium to Low.Aug 21 2018, 10:00 AM

For now, we shouldn't go too far down this rabbit hole. The original work to add these options in was already a stretch to add to our workstream, and we don't really have space to follow up on it right now unless something is severely broken.