Page MenuHomePhabricator

Show more helpful messages when temporary users can't access features
Closed, ResolvedPublic2 Estimated Story Points

Assigned To
Authored By
Tchanders
Jun 19 2023, 5:30 PM
Referenced Files
F41566184: image.png
Dec 6 2023, 1:04 PM
F41566169: image.png
Dec 6 2023, 1:04 PM
F41566153: image.png
Dec 6 2023, 1:04 PM
F41566148: image.png
Dec 6 2023, 1:04 PM
F41566150: image.png
Dec 6 2023, 1:04 PM
F41566146: image.png
Dec 6 2023, 1:04 PM
F41566144: image.png
Dec 6 2023, 1:04 PM
F41566136: image.png
Dec 6 2023, 1:04 PM

Description

Background

At the moment several places show some sort of "not logged in" message for temporary users who can't access a feature that can only be accessed by users who have actually created an account.

For example, SpecialPage::requireNamedUser throws a UserNotLoggedIn error, which redirects to the login page. E.g. if I visit Special:Preferences as a temporary user, I see:

image.png (741×467 px, 70 KB)

Similarly, some API endpoints return a notloggedin code for temporary accounts, e.g. ApiOptions.

Why is this confusing

It's not really clear whether temporary users are "logged in". From the user's perspective, they have a sticky identity, as though they were signed in, but they haven't made an account and set a password, etc.

Prompting the user to log in with no further explanation might imply that they can associate a password with their temporary account (which is not the case, at least for now).

What should we do

A clearer, customized explanation for what a temporary user must do in order to access a feature that requires creating an account.

@Niharika Any particular ideas?

Event Timeline

@Tchanders when you say

A clearer, customized explanation for what a temporary user must do in order to access a feature that requires creating an account.

are you thinking about a custom message for each feature that they are unable to access? If so, is it possible to have a list of features that will lead to a similar experience for temp users?

If we need some generic wording I think we can say something like: You are currently using a temporary account which does not allow access to this feature. Please sign up to create a permanent account in order to access it.

@Tchanders thoughts?

Follow up question:

For example, SpecialPage::requireNamedUser throws a UserNotLoggedIn error, which redirects to the login page. E.g. if I visit Special:Preferences as a temporary user, I see:

Is it possible to not redirect them and instead show them an error on the same page? Similar to the permission error an account gets when it cannot access a special page.

image.png (1,842×454 px, 65 KB)

Thanks @Niharika, this sounds great.

Yes I was thinking of a generic message (just tailored to temporary users as opposed to anyone).

Yes we can also make sure the error page doesn't redirect and just shows a message.

Change 951878 had a related patch set uploaded (by AGueyte; author: AGueyte):

[mediawiki/core@master] WIP: Update SpecialPage::requireNamedUser with error message for temp users

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

kostajh added a subscriber: AGueyte.

Change 951878 abandoned by Tchanders:

[mediawiki/core@master] Update SpecialPage::requireNamedUser with error message for temp users

Reason:

I think we should consider some kind of UserIsTemp error page, similar to UserNotLoggedIn

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

@KColeman-WMF As promised, here's some more info about the messages you found:

MessageHow it looks for IP userHow it looks for temporary userWhen shown
watchlistanontext
image.png (402×483 px, 28 KB)
Same as for IP userShown to an IP/temp user when they try to visit Special:Watchlist
sp-contributions-blocked-notice-anon
image.png (1,412×681 px, 200 KB)
image.png (1,403×371 px, 77 KB)
Shown to anyone looking at Special:Contributions for a blocked IP/temp user. Temporary user's message is the same as a registered user's message
sp-contributions-blocked-notice-anon-partial
image.png (1,422×653 px, 202 KB)
image.png (1,419×420 px, 92 KB)
Same as above, but the block is a partial block
softblockrangesreason
image.png (778×114 px, 27 KB)
Same as for IP userShown to an IP/temp user trying to edit if their IP address is blocked because it is listed in the $wgSoftBlockRanges config
tooltip-pt-anonuserpage, tooltip-pt-anontalk, tooltip-pt-anoncontribs
image.png (429×240 px, 16 KB)
Same place, but uses the same messages as a logged in userShown as tooltips when hovering over user links in the top right or the page (or top left in RTL mode)

The final message, tog-watchlisthideanons is shown in Special:Preferences#mw-prefsection-watchlist, where watchlist settings are configured:

image.png (450×346 px, 37 KB)

How these filters will work for temporary users depends on decisions made about the Watchlist, which will probably be closely related to similar decisions for RecentChanges. @KStoller-WMF Are Growth-Team working on Watchlist as well as Recent Changes?

In T339874#9386514, @Tchanders wrote:
@KStoller-WMF Are Growth-Team working on Watchlist as well as Recent Changes?

So far we have added an Unregistered filter to Watchlist and Recent Changes: T343322: IP Masking: Update Recent changes filters user registration filters for IP Masking.

We don't have further changes planned for Watchlist and Recent Changes, please let me know if you believe further Growth team work is needed.

@Niharika @KColeman-WMF I'm not sure if we need to do anything here. I'd suggest resolving this and opening if there is specific feedback to make adjustments.

Niharika claimed this task.