Page MenuHomePhabricator

Display "unreviewed" badge for unreviewed articles
Open, Needs TriagePublicFeature

Assigned To
None
Authored By
Novem_Linguae
Oct 19 2022, 11:38 AM
Referenced Files
F35782847: flagrev-article-tabs.png
Nov 15 2022, 6:45 PM
F35782845: flagrev-no-checked.png
Nov 15 2022, 6:45 PM
F35782841: flagrev-unchecked-unstable-hover.png
Nov 15 2022, 6:45 PM
F35782839: flagrev-unchecked-unstable.png
Nov 15 2022, 6:45 PM
F35782836: flagrev-unchecked-stable-hover.png
Nov 15 2022, 6:45 PM
F35782829: flagrev-unchecked-stable.png
Nov 15 2022, 6:45 PM
F35782824: flagrev-checked-hover.png
Nov 15 2022, 6:45 PM
F35782820: flagrev-checked.png
Nov 15 2022, 6:45 PM

Description

Display the following for all unreviewed articles

unreviewed banner.png (258×1 px, 112 KB)

An unreviewed article is defined as 1) in pagetriage_page table AND 2) ptrp_reviewed = 0 AND 3) page_namespace = 0 AND 4) page_is_redirect = 0. Can probably check this with PageTriageUtil::doesPageNeedTriage()

Need to use a hook. Perhaps ArticleViewFooter or BeforePageDisplay. [[mw:Extension:FlaggedRevs]] displays a similar top right badge. Can take a peek at their source code and see what hook they use.

On-wiki discussion at https://en.wikipedia.org/wiki/Wikipedia_talk:New_pages_patrol/Reviewers#New_article_banner

Acceptance criteria:

  • modifies "From Wikipedia, the free encyclopedia." to be similar to "<i>An <a href="">unassessed</a> article</i> from Wikipedia, the free encyclopedia."
  • adds a blue box to the top right that says "Article review pending (<a href="">Learn more</a>)"
  • creates a config variable to turn this feature on/off
  • creates a config variable to specify the URL of the "learn more" and "unassessed" links
  • tested on all major skins: vector-2022, vector, minerva, monobook, timeless, modern

Event Timeline

Restricted Application added subscribers: Masumrezarock100, Aklapper. · View Herald Transcript
Novem_Linguae renamed this task from Automatic maintenance tagging of unreviewed articles to Display "unreviewed" badge for unreviewed articles.Oct 19 2022, 11:39 AM
Novem_Linguae moved this task from Backlog to Soon on the PageTriage board.

Unreviewed - button position.jpg (176×1 px, 47 KB)
Preferred button position - if possible. Layout constraints permitting.

The target page for the blue button link is already defined.

The target page for the blue button link is already defined.

Great. Can you paste the url in this ticket please? Let's get all the info in one spot.

This comment was removed by MB_phab.

Target page:
Help;Unreviewed new page

Due to time zones the move might not have been effected yet.

The help page is now at Help:Unreviewed new page

The FlagRev button is a source of constant pain - it obscures other things or gets obscured by other things (see T197912: Option to have FlaggedRevs rating box as an indicator). Also Vector 2022 adds a language dropdown in the same location. So the exact placement / design might need some thought.

Edge/file caches would have to be invalidated when the page gets reviewed, but I imagine that's already happening because the noindex flag also changes?

I don't think there's a great way to change the tagline, it comes from a system message and every skin has its own way of rendering it. There are hooks to modify system messages but those are called early and don't have access to page state.

@Tgr , as I mentioned earlier: Preferred button position - if possible. Layout constraints permitting. We had been thinking in terms of the location of the user rights icons on user and user talk pages.
We are aware that page rendering constraints may make this difficult but anywhere else on the page top would be acceptable but not centred and not among any maintenance banners that might be there. The idea is to make it clearly noticeable but not obtrusive.

Is the proposal to show this for all users, or only logged-in editors or patrollers?

All users

Thanks for clarifying!

I'm personally very hesitant about this idea if it's prominently displayed to all readers. It may give a false sense that all other content on the project has been reviewed, when in fact only the initial revisions have definitely been reviewed. I'd just want to be cautious about how readers who don't understand anything about how Wikimedia works would interpret this.

I'm sure this is a topic that has been discussed and researched at WMF in the past, but I'm drawing a blank at the moment. @ovasileva maybe the readers web team has looked at this kind of thing before (flagging article quality or review status to readers)? Do you know of any user research or mockups we've done?

FlaggedRevs can show similar notices when used in full mode (although there the review state is specific to the current revision of the page). E.g. this is how it looks on Hungarian Wikipedia (with a small status badge in the right corner):

defaultwith mouse hovering on the state icon
fully reviewed article
flagrev-checked.png (109×1 px, 15 KB)
flagrev-checked-hover.png (106×1 px, 35 KB)
showing the last reviewed version, there are unreviewed changes
flagrev-unchecked-stable.png (120×1 px, 30 KB)
flagrev-unchecked-stable-hover.png (126×1 px, 38 KB)
showing the latest version, there are unreviewed changes
flagrev-unchecked-unstable.png (112×1 px, 26 KB)
flagrev-unchecked-unstable-hover.png (107×1 px, 33 KB)
the article has never been reviewed
flagrev-no-checked.png (92×1 px, 15 KB)
(no popup for this one)

By default the last reviewed version is shown to non-logged-in readers, there are article tabs to navigate to the latest version:

flagrev-article-tabs.png (108×1 px, 35 KB)

FlagRev is very configurable (has way many options for its own good), including multiple settings for how visible the review state should be; noisier settings use sitenotice-style messages instead of the small icons. Not sure if there are wikis which use the noisy settings though.