Page MenuHomePhabricator

Create feature flag for Zebra#9 design update
Closed, ResolvedPublic1 Estimated Story Points

Description

Create a feature flag that will enable/disable the upcoming design: https://di-content-separation.web.app/Moss

This feature flag will add a class on the html element that will enable & disable the new design.
Until someone comes up with a better name, we can call this feature VectorZebraDesign.

Acceptance criteria

  • Set up a feature flag for the new design. It should be false by default.
  • When the feature flag is enabled, the class vector-feature-zebra-design should be added to the <html> tag.
  • A query string param is available to override the feature flag

QA steps

Navigate to a page on beta cluster with the query parameter &vectorzebradesign=1 i.e. https://en.wikipedia.beta.wmflabs.org/wiki/Albert_Einstein?vectorzebradesign=1
Inspect the <html> tag in dev tools and note that the class vector-feature-zebra-design-enabled`.

QA Results - Beta

ACStatusDetails
1T332448#8748139

QA Results - Prod

ACStatusDetails
1T332448#8769880

Event Timeline

ovasileva moved this task from Incoming to Current Quarter on the Web-Team-Backlog board.
LGoto set the point value for this task to 1.Mar 23 2023, 5:19 PM

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

[mediawiki/skins/Vector@master] Create feature flag for Zebra#9 design update

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

Jdlrobson updated the task description. (Show Details)
Jdlrobson added a subscriber: Mabualruz.

Change 903640 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Create feature flag for Zebra#9 design update

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

Jdlrobson subscribed.

@Mabualruz can we update the default value of the new VectorZebraDesign configuration to use the same format as VectorStickyHeader with logged_in and logged_out keys? We'll need to be able to define these in production.

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

[mediawiki/skins/Vector@master] VectorZebraDesign configuration logged_in and logged_out keys

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

Change 904263 merged by jenkins-bot:

[mediawiki/skins/Vector@master] VectorZebraDesign configuration logged_in and logged_out keys

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

Edtadros subscribed.

Test Result - Beta

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

Test Artifact(s):

QA Steps

Navigate to a page on beta cluster with the query parameter &vectorzebradesign=1 i.e. https://en.wikipedia.beta.wmflabs.org/wiki/Albert_Einstein?vectorzebradesign=1
✅ AC1: Inspect the <html> tag in dev tools and note that the class vector-feature-zebra-design-enabled`.

Screenshot 2023-04-01 at 4.11.57 PM.png (1×1 px, 343 KB)

Edtadros removed Edtadros as the assignee of this task.

Test Result - Prod

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

Test Artifact(s):

QA Steps

Navigate to a page with the query parameter &vectorzebradesign=1 i.e. https://en.wikipedia.beta.wmflabs.org/wiki/Albert_Einstein?vectorzebradesign=1
✅ AC1: Inspect the <html> tag in dev tools and note that the class vector-feature-zebra-design-enabled`.

Screenshot 2023-04-10 at 7.30.52 PM.png (1×878 px, 260 KB)