Page MenuHomePhabricator

Performance regression: reflow of section headings
Closed, ResolvedPublic1 Estimated Story PointsBUG REPORT

Description

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

What happens?:
The section headings are aligned left

Screenshot 2023-08-09 at 11.54.54 AM.png (219×1 px, 25 KB)

After JS kicks in an arrow appears pushing the heading right

Screenshot 2023-08-09 at 11.55.19 AM.png (81×1 px, 8 KB)

What should have happened instead?:
Space for the icon should be reserved.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Short term solution

If at the half way point in the sprint, the switch to Codex is not likely to happen we should add a temporary style to Minerva to make sure space is allocated

.section-heading .indicator { min-width: 32px; }

QA Results - Prod

ACStatusDetails
1T343919#9112004

Event Timeline

@bwang this looks like it might relate to T343053.

I think the issue is the icon is using codex-search-styles which is not loaded on page load, so I think this will be fixed when we switch to Minerva.

Change 948173 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/MobileFrontend@master] Reserve space for section toggle icon to avoid reflow

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

Change 948173 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] Reserve space for section toggle icon to avoid reflow

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

Test Result - Prod

Status: ✅ PASS
Environment: enwiki
OS: macOS Ventura
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

Throttle your connection
Visit https://en.m.wikipedia.org/wiki/Strategy_video_game?safemode=1
✅ AC1: Space for the icon should be reserved.

Screen Recording 2023-08-22 at 4.56.35 PM.mov.gif (960×1 px, 1 MB)

Edtadros added a subscriber: ovasileva.

Hey @ovasileva, please take a look at T343919#9112004 above. Since I didn't test this in QA I'd like a second pair of eyes on the test results to make sure the testing is being done correctly before signing off.

Hey @ovasileva, please take a look at T343919#9112004 above. Since I didn't test this in QA I'd like a second pair of eyes on the test results to make sure the testing is being done correctly before signing off.

@Edtadros - this looks good to me. Resolving.