Page MenuHomePhabricator

Improve log-out process in Minerva skin
Closed, ResolvedPublic3 Estimated Story PointsFeature

Assigned To
Authored By
Sdkb
Oct 11 2021, 8:12 PM

Description

Original report

Summary: the logout button currently doesn't have a label, and potential confusion can lead to unintended logouts.

Wikipedia_mobile_side_menu.jpg (2×1 px, 114 KB)

I recently decided to try turning off advanced mode on mobile (Android, the en.m.wikipedia.org site, not the app). In the menu, pictured above, I noticed an icon next to my username that connoted something vaguely external, and I figured I'd tap on it to see what it was.
And WHAM. I'm instantly logged out of my account, and now I have to log in again for all my tabs and all the Wikimedia sites everywhere. Could you please add a basic confirmation step to stop this sort of thing from happening? See T217914 for a related issue.

Design

image.png (1×796 px, 152 KB)

QA Results - Prod

ACStatusDetails
1T293041#7579230

Event Timeline

Aklapper changed the subtype of this task from "Task" to "Feature Request".Oct 11 2021, 8:46 PM
Aklapper added a project: MobileFrontend.

@Sdkb: Thanks for reporting this. For future reference, please use the feature request form (linked from the top of the task creation page) to create feature requests. Thanks.

Jdlrobson renamed this task from Add confirmation for log-out button on mobile to Add confirmation for log-out button on Minerva skin.Oct 12 2021, 6:05 PM
Jdlrobson edited projects, added MinervaNeue; removed MobileFrontend.

@alexhollender - any thoughts on this one? I think there's also a similar request for an additional step on desktop as well

@ovasileva I agree that the log out action is not clear. I wonder if we should improve the button before adding a confirmation step?

AB
image.png (1×790 px, 178 KB)
image.png (1×796 px, 152 KB)
ovasileva triaged this task as Medium priority.Oct 18 2021, 8:01 PM
ovasileva renamed this task from Add confirmation for log-out button on Minerva skin to Improve log-out process in Minerva skin.Oct 18 2021, 8:04 PM
ovasileva updated the task description. (Show Details)
In T293041#7425122, @alexhollender wrote:

@ovasileva I agree that the log out action is not clear. I wonder if we should improve the button before adding a confirmation step?

AB
image.png (1×790 px, 178 KB)
image.png (1×796 px, 152 KB)

I think B creates a clearer organization/hierarchy of the links

In T293041#7425122, @alexhollender wrote:

@ovasileva I agree that the log out action is not clear. I wonder if we should improve the button before adding a confirmation step?

AB
image.png (1×790 px, 178 KB)
image.png (1×796 px, 152 KB)

I think B creates a clearer organization/hierarchy of the links

Thanks @alexhollender for the ping. I agree moving the logout as a separate button (and separate the tap target cell from username) is a good first step before the more drastic addition of a confirm dialog. As for the two options, agree with @ovasileva that B is a clearer hierarchy. Particularly, having the "Donate" button between user pages and logout in A could incorrectly imply that donating is connected to one's account when it's not.

Jdlrobson subscribed.

Sounds like the basic proposal here is to make the non-AMC mode behave like AMC.
Looks like a straightforward change that will remove some AMC-specific code.

Sounds like the basic proposal here is to make the non-AMC mode behave like AMC.
Looks like a straightforward change that will remove some AMC-specific code.

@Jdlrobson - I think for AMC, the logout is in the user menu:

Screen Shot 2021-10-22 at 2.36.23 PM.png (884×974 px, 287 KB)

Thanks for the correction. The logout menu item is the only one which has 2 links in it so this change should still simplify a few things. There's some CSS code we can remove with this change and no caching risk since this is logged in only.

Change 736539 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/skins/MinervaNeue@master] Remove primary/secondary menu items, instead add a separate log out menu item

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

bwang removed bwang as the assignee of this task.Nov 3 2021, 5:26 PM
bwang moved this task from Doing to Code Review on the Web-Team-Backlog (Kanbanana-FY-2021-22) board.
bwang subscribed.

@alexhollender for non-AMC:

For anons:

Screen Shot 2021-11-03 at 12.08.36 PM.png (784×1 px, 74 KB)

For logged in:
Screen Shot 2021-11-03 at 12.09.02 PM.png (1×1 px, 105 KB)

Your mock groups settings with username, watchlist and contributions. Given settings works for anonymous users I'm wondering if that grouping makes sense for anons anymore.

For consistency wouldn't settings appear above log in for anons with this new design?

Alternatively, we could keep settings unchanged by this change and add logout under contributions.

@alexhollender Similar question to @Jdlrobson, should we also update the menu for AMC users for consistency? It currently looks like this: https://jmp.sh/Tx8cjcI

@Jdlrobson @bwang my preference would be to leave AMC and logged-out menus as is

@alexhollender @bwang can I confirm this is what we are proposing: ?

AnonLogged inAMC
Screen Shot 2021-11-09 at 10.54.12 AM.png (880×944 px, 97 KB)
Screen Shot 2021-11-09 at 10.53.13 AM.png (1×1 px, 134 KB)
Screen Shot 2021-11-09 at 10.55.01 AM.png (822×1 px, 507 KB)
Screen Shot 2021-11-09 at 10.55.18 AM.png (588×490 px, 53 KB)

@alexhollender @bwang can I confirm this is what we are proposing: ?

AnonLogged inAMC
Screen Shot 2021-11-09 at 10.54.12 AM.png (880×944 px, 97 KB)
Screen Shot 2021-11-09 at 10.53.13 AM.png (1×1 px, 134 KB)
Screen Shot 2021-11-09 at 10.55.01 AM.png (822×1 px, 507 KB)
Screen Shot 2021-11-09 at 10.55.18 AM.png (588×490 px, 53 KB)

yes looks good

Change 736539 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Remove primary/secondary menu items, instead add a separate log out menu item

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

Edtadros subscribed.

Test Result - Prod

Status: ✅ PASS
Environment: enwiki
OS: macOS Monterey
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: Logout should look like the mockups in T293041#7493457

AnonLogged inAMC
en.m.wikipedia.org_w_index.php_title=Special_UserLogout&returnto=Special%3AMobileOptions&returntoquery=success%3D(iPhone 11 Pro Max).png (2×1 px, 160 KB)
en.m.wikipedia.org_wiki_Special_EditWatchlist(iPhone 11 Pro Max).png (2×1 px, 169 KB)
en.m.wikipedia.org_w_index.php_title=Special_MobileOptions&success(iPhone 11 Pro Max).png (2×1 px, 166 KB)
en.m.wikipedia.org_w_index.php_title=Special_MobileOptions&success(iPhone 11 Pro Max) (1).png (2×1 px, 240 KB)