Page MenuHomePhabricator

Update Special:IPContributions UI messages according to design specification
Closed, ResolvedPublic1 Estimated Story Points

Assigned To
Authored By
Tchanders
Jul 11 2024, 6:04 PM
Referenced Files
F57471295: image.png
Sep 9 2024, 5:11 PM
F57471324: image.png
Sep 9 2024, 5:11 PM
F57471308: image.png
Sep 9 2024, 5:11 PM
F57288826: 90dayscopy.png
Aug 23 2024, 4:21 PM
F57288863: deletedlegacyip.png
Aug 23 2024, 4:21 PM
F57288829: legacyip.png
Aug 23 2024, 4:21 PM
F56472921: image.png
Jul 17 2024, 3:31 AM
F56472918: image.png
Jul 17 2024, 3:31 AM

Description

Overview

Following T367121: Design review and user testing for Special:IPContributions, update some UI messages according to the table in T367121#9962620:

Details

Change the following message translations in en.json:

  • Default page title: "Search for IP contributions" (checkuser-ip-contributions)
  • Inline error message: "Enter a valid IP address or IP range" (checkuser-ip-contributions-target-error-no-ip)

Customize the following messages currently defined in the parent classes:

  • Accordion form title: "Search for IP contributions" (to replace sp-contributions-search)
  • IP search results title: "Temporary user IP contributions for 172.16.5.238" (to replace contributions-title)

Event Timeline

Change #1053976 had a related patch set uploaded (by Tchanders; author: Tchanders):

[mediawiki/extensions/CheckUser@master] Update Special:IPContributions UI messages according to design spec

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

Change #1053976 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Update Special:IPContributions UI messages according to design spec

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

Change #1054567 had a related patch set uploaded (by Tchanders; author: Tchanders):

[mediawiki/core@master] ContributionsSpecialPage: Allow some messages to be customizable

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

Change #1054568 had a related patch set uploaded (by Tchanders; author: Tchanders):

[mediawiki/extensions/CheckUser@master] Customize some messages on Special:IPContributions

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

Change #1054567 merged by jenkins-bot:

[mediawiki/core@master] ContributionsSpecialPage: Allow some messages to be customizable

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

Change #1054568 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Customize some messages on Special:IPContributions

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

@Tchanders is there anything else left to do in this task (considering it is still in 'In Progress')? If not, can we move it to 'Needs QA'?

@Dreamy_Jazz It should've been in review - moved to QA.

Thanks.

Djackson-ctr subscribed.

I have verified the new code has been implemented and is functioning and displaying as expected.

image.png (811×1 px, 252 KB)

image.png (846×1 px, 385 KB)

image.png (739×994 px, 45 KB)

image.png (748×996 px, 48 KB)

image.png (734×990 px, 45 KB)

image.png (779×987 px, 49 KB)

image.png (859×490 px, 182 KB)

image.png (868×488 px, 221 KB)

image.png (853×450 px, 207 KB)

image.png (851×585 px, 227 KB)

image.png (874×609 px, 186 KB)

Opening this back up for design review.

@KColeman-WMF It should be testable on testwiki once you get the rights. (Cc @JayCano, who is handling this.)

I have checked this on test wiki and can confirm copy changes are updated.

Opening this up again as I spotted some small copy changes that are missing. As per https://phabricator.wikimedia.org/T367121#9962620:

PageComponentUX copyMockup
Special:ContributionsIP search results titleLegacy IP contributions for 172.16.5.238
legacyip.png (422×1 px, 82 KB)
Special:DeletedContributionsIP search results titleDeleted legacy IP contributions for 172.16.5.238
deletedlegacyip.png (415×1 px, 79 KB)
Special:IPContributionsSearch results descriptionShowing results from the last 90 days.
90dayscopy.png (440×1 px, 91 KB)
JayCano set the point value for this task to 1.

Change #1069177 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Add "showing results from last 90 days" to Special:IPContributions

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

Change #1069212 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/core@master] Indicate IP contributions are legacy when temporary accounts enabled

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

Change #1069177 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Add "showing results from last 90 days" to Special:IPContributions

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

Change #1069213 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Update signature of SpecialIPContributions::getResultsPageTitleMessageKey

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

Change #1069216 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Remove now un-needed default value in SpecialIPContributions method

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

Change #1069213 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Update signature of SpecialIPContributions method

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

This adds the message checkuser-ip-contributions-subtitle: "Showing results from the last $1."

$1 is documented as "formatted representation of the maximum age that revisions can be to be shown on the page".

Can anyone provide more details? Is it in seconds, days, or something else? The word "last" has to be translated differently according to the context in many languages.

If this is used with durationParams(), which eventually uses duration-seconds or duration-days, then it cannot be conveniently to many languages at all. Those messages may be OK as standalone time descriptions, but they are not very good at being integrated into sentences. Consider changing it to something like "Showing results from the last {{PLURAL:$1|day|$1 days}}."

By default it is 90 days. Depending on the value of $wgCUDMaxAge the interval could be something other than days though.

Maybe it should be updated to have the duration always be in days like checkuser-tempaccount-no-ip-results.

I can update checkuser-ip-contributions-subtitle to only ever display days.

Change #1070033 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Improve checkuser-ip-contributions-subtitle message for translators

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

Change #1070033 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Improve checkuser-ip-contributions-subtitle message for translators

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

Change #1069212 merged by jenkins-bot:

[mediawiki/core@master] Indicate IP contributions are legacy when temporary accounts enabled

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

Change #1069216 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Remove now unneeded default value in SpecialIPContributions method

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

QA has been completed and the new design copy changes have been implemented:
(NOTE: the positioning of the Temporary User IP Edits button and Legacy IP Edits button will be addressed in a different ticket: T369930).


Legacy IP contributions for 172.16.5.238:

image.png (243×1 px, 121 KB)


Deleted legacy IP contributions for 172.16.5.238:

image.png (231×1 px, 151 KB)


Showing results from the last 90 days:

image.png (338×1 px, 193 KB)