Page MenuHomePhabricator

[wmf.20 - mobile] closing New Impact drawer closes Impact overlay
Closed, ResolvedPublicBUG REPORT

Description

Notes:

Steps to replicate the issue (include links if applicable):

  • Visit https://en.m.wikipedia.beta.wmflabs.org/wiki/Special:Homepage and click arrows next to "My impact". "Suggested Edits"
  • You may use new mw.Api().saveOptions( { 'growthexperiments-tour-newimpact-discovery': 0 } ); to bring up the Updated design info drawer.
  • Click on "Got it" on the drawer - the overlay with (Impact module) will close and a user is returned to Homepage.

What should have happened instead?:

  • the Updated design info drawer will close
  • user stays on the Impact overlay

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Etonkovidova renamed this task from [betalabs - mobile] to [betalabs - mobile] closing New Impact drawer closes Impact overlay.Aug 1 2023, 12:43 AM
Urbanecm_WMF renamed this task from [betalabs - mobile] closing New Impact drawer closes Impact overlay to [wmf.20 - mobile] closing New Impact drawer closes Impact overlay.Aug 1 2023, 9:19 AM
Urbanecm_WMF updated the task description. (Show Details)

Seems to be present since wmf.20. Moving to sprint as a current Regression.

Seems to be present since wmf.20. Moving to sprint as a current Regression.

I am not sure if this is a regression or there's a race condition between the browser handling a MobileFrontend Anchor with an href="#" and some ad-hoc code in a click handler trying to prevent that navigation.

Since it was already marked as fixme/odd I'm updating the link to the impact view router path which shouldn't cause any navigation. For mobile details renders without the overlay the path addition should not do any harm so no investing in that scenario because of T264992: Remove mobile-details mode from Special:Homepage. Worth mentioning that the current code is producing a duplicated POST request for saving the user option.

Change 946926 had a related patch set uploaded (by Sergio Gimeno; author: Sergio Gimeno):

[mediawiki/extensions/GrowthExperiments@master] Homepage mobile: avoid navigate away from the impact overlay

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

Sgs changed the task status from Open to In Progress.Aug 8 2023, 9:45 AM
Sgs moved this task from In Progress to Code Review on the Growth-Team (Sprint 0 (Growth Team)) board.

Change 946926 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Homepage mobile: avoid navigate away from the impact overlay

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

Urbanecm_WMF changed the task status from In Progress to Open.Aug 9 2023, 11:50 AM

Checked on wmf.22 - the fix is in place.