Page MenuHomePhabricator

On click [ref], jump down to references section
Closed, ResolvedPublic3 Estimated Story Points

Description

After usability testing confirmed, current behavior feels broken to users. Currently, the preview pops up both on hover and on click - so that if a user hovers and then clicks, nothing happens.

This ticket is to change this behavior. Hover should stay the same, but on click the page should jump down the clicked reference in the bottom (same behavior as if they had clicked the button 'Jump to reference').

Acceptance criteria:

  • Clicking on a reference reverts to its old behavior, jumps down to the footnote in the references section.
  • Clicking on the reference should still send the clickedFootnote event via through the ReferencePreviewsCite topic.
  • Remove the "Jump to reference" link.
  • Hover over a reference should open the popup, same as now.

Event Timeline

Lena_WMDE set the point value for this task to 3.Oct 19 2020, 9:13 AM

Change 636424 had a related patch set uploaded (by Awight; owner: Awight):
[mediawiki/extensions/Popups@master] Clicking on a reference should behave normally

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

@ECohen_WMDE @Lena_WMDE I wonder if this behavior would make the link Jump to reference obsolete? Have you discussed that? It would make the preview popup less clumsy...

I'll work on this a bit more, there's some cleanup and I'd like to restore the click metrics (and giving this a new event ID).

I wonder if this behavior would make the link Jump to reference obsolete?

Underrated suggestion.

Thanks for raising the question. @ECohen_WMDE and I discussed it and are also in favour of removing the jump to reference link. This also then more closely aligns with the behaviour of Page Previews, which is a plus.

The margins are a bit funny, but I'm not planning to fine-tune because we're changing again in T234205: Add cog wheel to the popup to disable ReferencePreviews.

Without scrollbars:

image.png (112×347 px, 8 KB)

With scrollbars:

image.png (386×330 px, 27 KB)

Change 637408 had a related patch set uploaded (by Awight; owner: Awight):
[mediawiki/extensions/Popups@master] Remove reference preview "Jump to reference" link

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

With scrollbars:

Is there a reason that there is a horizontal scrollbar visible? It should only ever be a vertical one right?

The margins are a bit funny, but I'm not planning to fine-tune because we're changing again in T234205: Add cog wheel to the popup to disable ReferencePreviews.

Also since it's a bit unclear when the cogwheel change will take place/go into effect it might make sense to check the margins now. Can I take a look somewhere? Maybe on beta?

With scrollbars:

Is there a reason that there is a horizontal scrollbar visible? It should only ever be a vertical one right?

Very good point, I carefully crafted some run-on text to not have any whitespaces, for another bug. Otherwise, it would be rare to see the horizontal scrollbar. The "without scrollbars" proportions should apply to the majority of cases.

Can I take a look somewhere? Maybe on beta?

Once the patch is merged it will land on the beta cluster. In theory I could push it to our user testing instance immediately, but IMO it wouldn't make sense to potentially jeopardize those tests over something this minor...

I just realized this is the perfect use of Patch Demo! I was introduced to it awhile ago so I'll see if I can get it working. Agree doesn't seem worth the hassle to get it onto the test instance.

Otherwise, it would be rare to see the horizontal scrollbar.

Great!

Change 636424 merged by jenkins-bot:
[mediawiki/extensions/Popups@master] Clicking on a reference should behave normally

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

Change 637408 merged by jenkins-bot:
[mediawiki/extensions/Popups@master] Remove reference preview "Jump to reference" link

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

awight removed awight as the assignee of this task.Nov 2 2020, 5:03 PM
awight subscribed.