Page MenuHomePhabricator

Indicate global (b)locks on User Info Card
Closed, ResolvedPublicFeature

Description

Feature summary:
The user info card currently shows active blocks, but that only applies to local blocks. If an account is globally blocked or globally locked, another row should appear indicating the global (b)lock. Using the icon proposed in T398286 for globally (b)locked users as well would also be an improvement.

Use cases:
Admins or patrollers checking logs or page histories could spot globally (b)locked accounts more easily. Sometimes LTA sockpuppets are globally (b)locked on sight without any local blocks – currently opening the user info car would't indicate that stewards already dealt with the account.

Benefits:
There are some gadgets and user scripts which already indicate local/global blocks and global locks (e.g. the ones mentioned in T398286#10965452 or MarkBLockedGlobal) which wouldn't be needed if the User Info Card also indicated global (b)locks (the screenshot attached shows two different user scripts which are both able to mark the account as locked while the User Info Card only shows two local blocks).

Screenshot 2025-08-04 at 17.46.16.png (948×1 px, 273 KB)

Event Timeline

This is how I imagine this feature:

image.png (902×782 px, 117 KB)

With possible messages:

  • This user is globally blocked since (date)
  • This user is globally blocked since (date) but can edit this wiki
  • This global account is locked since (date)

@KColeman-WMF what do you think about this design?

This is how I imagine this feature:

image.png (902×782 px, 117 KB)

@KColeman-WMF what do you think about this design?

Thanks for sharing this proposal! I agree we could use the message component, or add a new list item to the top near "active blocks". Any preferences/thoughts on these?

user-info-card-globalblock-21Aug.png (977×2 px, 167 KB)

I'm leaning towards option A (new list item) as it minimises adding too much whitespace.

With possible messages:

  • This user is globally blocked since (date)
  • This user is globally blocked since (date) but can edit this wiki
  • This global account is locked since (date)

These look good, although we can probably trim the copy further:

  • Globally blocked since (date)
  • Globally blocked since (date) but can edit this wiki
  • Global account locked since (date)

On an aside, would be great to get T373388: Merge CentralAuth locks into GlobalBlocking done and reduce the feature duplication various kinds of admin interfaces require.

user-info-card-globalblock-21Aug.png (977×2 px, 167 KB)

Design update:

The consensus on the PSI team is to go with option B (message component above list). We would also like to link to the specific global block that is affecting the user:

image.png (1×1 px, 218 KB)

On an aside, would be great to get T373388: Merge CentralAuth locks into GlobalBlocking done and reduce the feature duplication various kinds of admin interfaces require.

+1

@Johannnes89 I'd be interested to hear your thoughts on how prominent this globally blocked/locked message needs to be? Should it be given the same prominence as "active local blocks" or should it be even more prominent (as it is in design options B and C)?

@Johannnes89 I'd be interested to hear your thoughts on how prominent this globally blocked/locked message needs to be? Should it be given the same prominence as "active local blocks" or should it be even more prominent (as it is in design options B and C)?

I like option B, but I think the same prominence as „active blocks“ is fine, the text doesn’t need to be bold.

Change #1181587 had a related patch set uploaded (by Mszwarc; author: Mszwarc):

[mediawiki/extensions/CheckUser@master] UIC: Separate InfoRowWithLinks into two components

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

Change #1181588 had a related patch set uploaded (by Mszwarc; author: Mszwarc):

[mediawiki/extensions/CheckUser@master] UIC: Display user's active global (b)locks

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

After taking into consideration the comments above and on Slack, I've implemented the proposal A (new list item at the top)

Change #1181587 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] UIC: Separate InfoRowWithLinks into two components

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

  • Globally blocked since (date) but can edit this wiki

We changed this copy during code review to Globally blocked since <date> (locally disabled) because a user could be locally blocked while their global block is still disabled. Therefore, the message of "can edit this wiki" isn't technically correct in all cases. The new wording doesn't imply that the user can definitely edit the local wiki.

Change #1181588 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] UIC: Display user's active global (b)locks

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

Djackson-ctr subscribed.

New Code Changes have been implemented, and verified (UserInfocard now displays the globally blocked verbiage or globally locked verbiage for active global blocks or active global locks)
QA was completed for this ticket using LocalHost: Mediawiki1.45.0-alpha / CheckUser 2.5 (6d1cd2d).
Testing was performed on various: Skins, Desktop View/MobileView, Chrome/Edge/Firefox/Safari, Windows/Mac/Android/iOS, RTL languages