Page MenuHomePhabricator

Consider a different way of communicating logout process
Open, MediumPublic

Description

Description

Currently when you click the logout button if you have JS enabled we show a notification that says You are being logged out, please wait.

Imagined use case: you are editing Wikipedia on a public computer (e.g. in a library) with a slow connection, and after you are done you log out to make sure that nobody else will access your account. You click "Log out" and wait, but don't see anything happening. After a few seconds you get frustrated and try clicking "Log out" again. In this case it is nice to communicate to you that your request to logout is processing.

I wonder if a notification is the correct way to communicate that feedback/status. Is there a more subtle/in-context way we can communicate this process?

Proposed design

legacy vectornew vector
image.png (1,810×1,086 px, 551 KB)
image.png (1,810×1,052 px, 402 KB)

Event Timeline

Hi, Yes. I implemented that and it was based on discussion with @Volker_E in Wikimedia Hackahon 2019. The notification for log out is because when the user click on the link, they need to get a feedback otherwise if the internet is slow or there is network issues, they think nothing is happening. It seems useless to people with stable and fast connection but I think it shouldn't be removed for people who don't have a good internet connection.

@Ladsgroup I agree that communicating when some process is running behind the scenes is a good practice in general, as it helps avoid confusion and frustration. I just wonder if we could communicate this process in a more subtle/in-context way, rather than using a notification/alert.

• alexhollender_WMF renamed this task from Don't use a notification to communicate logout process to Consider a different way of communicating logout process.Jan 7 2022, 5:46 PM
• alexhollender_WMF updated the task description. (Show Details)

One thing I'm confused about here, is that if a user has a slow internet connection with JavaScript disabled, won't clicking logout also take a long time with the only indication being the address bar/status bar change in the browser?

(The spinner idea seems fine to me though as an alternative that expresses the same info)

I'm sure mw.notify was chosen because it's an already existing UX primitve and is trivial to use, not because it was better for the task than a dedicated spinner.

I wonder if we couldn't just make the browser POST to Special:UserLogout via an invisible form? That way they could rely on the browser's progress bar, just like in no-JS mode.

In T297220#7605715, @alexhollender wrote:

@Ladsgroup I agree that communicating when some process is running behind the scenes is a good practice in general, as it helps avoid confusion and frustration. I just wonder if we could communicate this process in a more subtle/in-context way, rather than using a notification/alert.

Using that would be fine by me specially given that spinner is close to the actual link you click, it's easy to miss the notification in some circumstances. That being said, I'm not a designer (and I'm getting more backend due to my job) so I suggest talking to Volker too.

One thing I'm confused about here, is that if a user has a slow internet connection with JavaScript disabled, won't clicking logout also take a long time with the only indication being the address bar/status bar change in the browser?

I'm a bit confused about your confusion 😅 Having slow connection and having JS disabled are two different things and most of the time don't happen together. With JS being disabled, you lose lots of functionalities anyway and I feel it's out of scope of this. In a very similar manner, watching a page and the spinning star. You can have slow connection for variety of reasons, like traffic shaping, spotty connection in mobile, or the need to use proxies. For places that block websites, e.g. Iran blocks so many websites (but not Wikipedia) that basically lots of people just keep their proxies on all the time and 20% of Persian Wikipedia's traffic is through known proxies. Also the Iranian government tries everything to ban/block proxies and that includes traffic shaping, making them slow, packet loss, etc. making it like cat and mouse game reducing QoS of users of Wikipedia but that doesn't mean the js would be disabled for them or they use an old non-support browser (Grade A).

I'm a bit confused about your confusion 😅 Having slow connection and having JS disabled are two different things and most of the time don't happen together.

I'm playing devils advocate. I've not seen this pattern before. When I click log out on any site, it navigates me to another page. If I'm on a slow connection that process is going to be slow, but that doesn't mean I need user feedback that it's slow. At worse case I'm going to click the link again. Perhaps in this situation it might be helpful to tell me things are going slow, but for the most part neither a spinner or notification seems useful.

A link operates in exactly the same way. If clicking log out is slow, clicking some text Iran that links to the Iran article is also going to be slow, but we don't give feedback there "You are being navigated to the Iran article." Why is the logout link different?

In the case of a user without JavaScript, I am not going to see a spinner or a notification and that seems like an acceptable experience to me, so I'm wondering why not having a spinner or notification is not acceptable.

The browser is very much giving you feedback that it's in the process of navigating.

I think the log out could be even clearer to the user than a small progress spinner next to the option. It should show a clear transition between being logged in and logged out, which is why my opinion is that an interaction blocking dialog would both be the best and arguably an easier implementation.

The user is being logged out, so we shouldn't let them interact with the page whilst logging out as on a slow connection it can take a few seconds before a log out is processed and a user is redirected, which is plenty enough time for a user to accidentally click another link which could easily cause confusion or other issues, say if an error occurs on MediaWiki's end. Using an OOUI dialog that fills the page should do the trick.

Here's a quick concept I made, it should have a spinner on it too but the OOUI docs don't seem to mention those and it's just a quick mock.

en.wikipedia.org_wiki_Main_Page.png (1,540×1,468 px, 738 KB)

Why is the logout link different?

A log out should be a clear and obvious interaction with acknowledgement given the security implications of not logging out, especially on shared computers or for users with elevated permissions. Mainly though, it's just friendlier and provides a better experience to show the user on the page itself and acknowledgement that something is happening that would change the experience, i.e. going from logged it to logged out - the vast majority of major apps and sites do this.

Jdlrobson moved this task from Incoming to User interface on the Vector 2022 board.