Page MenuHomePhabricator

VisualEditor: Offer to retain changes when switching to the "Edit Source" tab
Closed, ResolvedPublic

Description

When a user clicks on Switch to source editing option from the settings drop down it tells user that switching to source editing will keep the changes made in the document.But if a user attempts to switch from the tab it does not retain those changes.This seemed confusing to me because when user uses the "switch to source editing" , the "Edit Source" tab is selected ,indicating the same destination for both action.

If a user can switch to source editing in multiple ways, i think it is better both ways have similar mechanism of handling the changes to have uniform experience.
Specially when switching from tab is one click away compared to the "[]switch to source editing" option.


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=57699
https://bugzilla.wikimedia.org/show_bug.cgi?id=42141

Details

Reference
bz57462

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:38 AM
bzimport set Reference to bz57462.

Created attachment 13890
Inside Edit Source tab

Attached:

Screen_Shot_2013-11-22_at_4.14.53_PM.png (689×1 px, 91 KB)

[Removing "[Suggestion]" from summary; setting severity field to "enhancement" instead]

This is possible, but would be ugly, because we'd need to replace the existing two-choice option (switch or don't switch) with a custom three-choice one (switch and keep changes, switch without changes, don't switch)… Maybe.

I personally think that this bug report is a duplicate of bug 42141.

Change 142064 had a related patch set uploaded by Alex Monk:
Offer to retain changes when switching to the wikitext editor

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

Change 142064 merged by jenkins-bot:
Offer to retain changes when switching to the wikitext editor

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

Change 143203 had a related patch set uploaded by Alex Monk:
Don't offer to retain changes when switching to wikitext editor by tab if no changes have been made.

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

Change 143203 merged by jenkins-bot:
Don't offer to retain changes when switching to wikitext editor by tab if no changes have been made

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

Verified the fix in production