Page MenuHomePhabricator

Watchlist Expiry: Display remaining watch period via star [small]
Closed, ResolvedPublic

Description

As a Watchlist Expiry user, I want to be able to identify the expiration date directly on the page, so that I can see the status of the watch period and determine if any modifications must be made.

Acceptance Criteria:

  • Display the remaining watch period via star in the following manner:
    • When user hovers over half star, a tooltip should appear
    • The tooltip text should read: "XX days left. Click to remove this page from your watchlist [ctrl-opt-w]."
    • Include keyboard shortcut
  • Keep remaining tooltip behavior for pages that are watched permanently

Visual Examples:

tooltip.png (300×600 px, 73 KB)

Event Timeline

ARamirez_WMF renamed this task from Watchlist Expiry: Display remaining watch period via star to Watchlist Expiry: Display remaining watch period via star [small].Apr 14 2020, 11:44 PM
ARamirez_WMF moved this task from Needs Discussion to Up Next on the Community-Tech board.

Question about the number that goes in the message: is it the total number of days a user will be watching the page (e.g. if a user selects 3 months, 90 will be the number always displayed), or the number of days a page has been watched (e.g. if a user temporarily watched a page for 3 months 2 days ago, the number will be 2). Maybe the phrasing of the sentence can be changed for better clarity?

We're going to have a similar tooltip in Special:Watchlist (T250212), where the phrase is "expires in XX days". Maybe that could be used here too?

Change 597145 had a related patch set uploaded (by Scardenasmolinar; owner: Scardenasmolinar):
[mediawiki/core@master] Display remaining watch period in watchstar

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

Note: @Prtksxna and I have discussed the question of language standardization (XX days left vs. Expires in XX days). We want the language to be standardized, clear, translatable, and friendly-sounding (rather than more removed or corporate). For this reason, we're proposing potentially updating the language to be "XX days left in your watchlist." This can be tackled in a separate ticket (T253135). Thanks!

Change 597145 merged by jenkins-bot:
[mediawiki/core@master] Display remaining watch period in watchstar

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

dom_walden subscribed.
  • Display the remaining watch period via star in the following manner:
    • When user hovers over half star, a tooltip should appear
    • The tooltip text should read: "XX days left. Click to remove this page from your watchlist [ctrl-opt-w]."
    • Include keyboard shortcut

Yep.

  • Keep remaining tooltip behavior for pages that are watched permanently

Tooltip is:

  • unwatched: Add this page to your watchlist [<shortcut>]
  • permanently watched: Remove this page from your watchlist [<shortcut>]

This change also adds the same tooltip to Special:Watchlist. To enable, go to Special:Preferences, click the "Watchlist" tab, and turn on the preference Add direct unwatch/watch markers (×/+) to watched pages with changes.

Then, temporarily watched pages in Special:Watchlist will have the same tooltip as the watch star when hovering over the unwatch marker.

watchlist_tooltip.png (559×1 px, 67 KB)

I mainly tested on legacy Vector, but briefly looked at Timeless and Monobook.

Test environment: test.wikipedia.org MediaWiki 1.36.0-wmf.1 (rMW652572fd47fb) 18:24, 22 July 2020

FYI: Sometimes the tooltip is not immediately updated after submitting ?action=watch or editing a page. I am guessing for the same reasons as T253937.

Change 616966 had a related patch set uploaded (by Samwilson; owner: Scardenasmolinar):
[mediawiki/core@REL1_35] Display remaining watch period in watchstar

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

Change 616966 merged by jenkins-bot:
[mediawiki/core@REL1_35] Display remaining watch period in watchstar

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

I have tested, and this behavior is on testwiki (see screenshot example below). For this reason, I am marking it as Done.

Screen Shot 2020-07-31 at 2.10.47 PM.png (82×268 px, 28 KB)