⚓ T310257 Refresh should keep the viewport at the top of the suggestions
Page MenuHomePhabricator

Refresh should keep the viewport at the top of the suggestions
Closed, ResolvedPublic

Description

Pending: The issue is less visible, but it is still present after several refreshes.

Section Translation provides a list of suggestions in the dashboard that can be refreshed to get a new set. Currently, refreshing the list keeps the viewport at the bottom of the list requiring the user to scroll up to look at the new set of suggestions:

This ticket proposes to adjust the viewport position after the user taps "Refresh" so that the viewport is placed at the top of the list. In this way, after refreshing the user viewport will be already placed at the top of the list. This will also align the behaviour with the current desktop experience.

This was tested at test Wikipedia.

Event Timeline

Pginer-WMF triaged this task as Medium priority.Jun 9 2022, 10:22 AM
Pginer-WMF created this task.
Pginer-WMF updated the task description. (Show Details)

Change 820143 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] SX: Scroll to the top of suggestion lists on refresh

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

Change 820143 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: Scroll to the top of suggestion lists on refresh

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

@ngkountas I tested this. This works only on 3 attempts. On the 4th attempt the Viewpoint is no longer centralized. It should always be centralized after n-th time.

I will move this back to in-progress

Change 823521 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20220816

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

Change 823521 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20220816

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

ngkountas subscribed.