Page MenuHomePhabricator

User Info Card: Only show tooltip on activity graph when there are edits
Closed, ResolvedPublic0.5 Estimated Story PointsFeature

Description

Summary

When hovering over the editing activity graph, a tooltip currently displays even if there have been no edits (meaning a tooltip frequently appears as a user hovers over the entire graph). This makes it harder to quickly see when edits have been made.

image.png (756×190 px, 30 KB)

Specifications

  • Only display the tooltip if there are 1 or more edits

Acceptance criteria

  • Tooltip displays when there are 1 or more edits

Event Timeline

I think this is more than a feature, I think this is a necessary correction.

When the user has made more than 1000 edits, the graph only shows the most recent 1000 edits. In this case, the tooltip is probably showing wrong information: the tooltip "(No edits)" is probably wrong for any day preceding the 1000-edits-recent-period.

For instance: the user has made 200 edits per day in May, 200 edits per day in June, and 1000 edits between July 1 and July 6; the tooltip says "(No edits)" when the cursor hovers over any day in May/June, even if the user made 200 edits on this day. So I think it is necessary that the tooltip is not displayed for any day preceding the 1000-edits-period (and for any other day without edits).

kostajh set the point value for this task to 0.5.Jul 23 2025, 9:39 AM

Change #1173021 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/CheckUser@master] UserInfoCard: Only show tooltip on sparkline when there are edits

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

Change #1173021 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] UserInfoCard: Only show tooltip on sparkline when there are edits

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

mszwarc subscribed.

I'm skipping QA as this is a very minor change, which I've verified myself and works as intended.