[go: up one dir, main page]

Page MenuHomePhabricator

Font size should support multiple font size
Closed, ResolvedPublic5 Estimated Story Points

Description

Following up T345363, currently our font size control only supports small (the current default) and standard:
https://www.mediawiki.org/wiki/Reading/Web/Accessibility_for_reading?vectorclientpreferences=1

Screenshot 2023-09-20 at 10.29.54 AM.png (395×443 px, 32 KB)

TODO

  • Repurpose the existing feature flag to support multiple sizes e.g. small, regular, large, x-large.
  • Update the client preferences dialog to show 4 options.

QA

Sign off

  • Jon should create a ticket for paying off the technical debt we've accumulated for working around the fact client preferences doesn't work for logged in

QA Results - Beta

ACStatusDetails
1T346954#9263871
2T346954#9263871

QA Results - Prod

ACStatusDetails
1T346954#9297115
2T346954#9297115

Event Timeline

ovasileva set the point value for this task to 5.Sep 21 2023, 5:29 PM
Jdlrobson added a subscriber: Mabualruz.

@Mabualruz want to pair on this? I want to be involved in the initial design but it might be worth you working on the bulk of this!

@Jdlrobson lets have a meeting to go over the current state and the aim, and sure I love to be involved in this it is very interesting and it have a lot of work that I like to do.

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

[mediawiki/skins/Vector@master] Add multiple font size to frontend

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

Hey @Mabualruz https://gerrit.wikimedia.org/r/c/mediawiki/skins/Vector/+/965790 takes care of the frontend side of things.
I think for the backend we need to provide some kind of abstraction for a Feature

I jotted down some code at a high level to describe how this could work but I'm not attached to it.
https://gerrit.wikimedia.org/r/c/mediawiki/skins/Vector/+/965810
Given a feature can have multiple requirements I think the suffix actually belongs to the feature.

Please take a stab at this yourself, and feel free to use any of the code in that proof of concept.

Mo and I synced this morning.
NExt steps:

  • We can merge https://gerrit.wikimedia.org/r/c/mediawiki/skins/Vector/+/965790/ as is - no concerns from Olga about shipping something that only works for anonymous users.
  • Mo is going to explore a quick short term fix to search preferences table for the appropriate class suffix for logged in users
  • Mo is going to think about the architecture more deeply. We're open to incurring technical debt and creating a spike come Wednesday if we feel this requires more thought.

Change 965583 had a related patch set uploaded (by Mabualruz; author: Mabualruz):

[mediawiki/skins/Vector@master] Add multiple font size to logged-in users

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

The Patch https://gerrit.wikimedia.org/r/965583 addresses logged in user preference loading.

I will put this one in review will try to move https://phabricator.wikimedia.org/T347772 Make Vector feature flags compatible with beta features in review then will start on the architecture part here

Change 965790 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Add multiple font size to frontend

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

Change 965583 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Add multiple font size to logged-in users

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

Edtadros removed Edtadros as the assignee of this task.EditedOct 19 2023, 1:46 AM
Edtadros subscribed.

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Sonoma
Browser: Chrome
Device: MBA
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: https://www.mediawiki.org/wiki/Reading/Web/Accessibility_for_reading?vectorclientpreferences=1 should show 4 options
✅ AC2: All 4 options should work and persist across page views Note: for logged in there may be a delay in saving these preferences.

screenshot 71.mov.gif (594×1 px, 2 MB)

ezgif.com-resize.gif (451×1 px, 3 MB)

Looks good on beta! Resolving.

Noting the sign off checklist was skipped here. I've made a note to do this myself in my own TODO list.

Test Result - Prod

Status: ✅ PASS
Environment: enwiki
OS: macOS Sonoma
Browser: Chrome
Device: MBA
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: https://www.mediawiki.org/wiki/Reading/Web/Accessibility_for_reading?vectorclientpreferences=1 should show 4 options
✅ AC2: All 4 options should work and persist across page views Note: for logged in there may be a delay in saving these preferences.

screenshot 194.png (736×1 px, 291 KB)

screenshot 108.mov.gif (587×1 px, 3 MB)