Page MenuHomePhabricator

[SPIKE] Define metric for template compatibility with dark mode
Closed, ResolvedPublic5 Estimated Story Points

Description

Background

As a part of our work on dark mode, we will be working with communities to ensure that templates are compatible with dark mode and can appear in dark mode without bugs or issues. We would like to measure how many templates have issues currently and begin setting thresholds for quality prior to deployments

Acceptance criteria

  • Define what broken looks like. Use the prototype https://tarsier.wmcloud.org/ to find examples.
  • Brainstorm various ways to measure template compatibility with dark mode.
  • Document each idea (can instrumentation be used or would this be a tool that runs on a set of articles we have defined?)
  • Schedule time for wider discussion with the team and document next steps

Outcome

Create a task for building out the instrumentation/evaluation tool

Details

Related Changes in Gerrit:

Event Timeline

Jdlrobson renamed this task from [SPIKE] Build out metric for template compatibility with dark mode to [SPIKE] Define metric for template compatibility with dark mode.Nov 20 2023, 6:07 PM
Jdlrobson updated the task description. (Show Details)
ovasileva set the point value for this task to 5.Nov 30 2023, 6:47 PM

Might we want to consider using a generative AI tool for analysis on this? We might say:

  • Look at this codebase
  • See this template in the codebase
  • Find the iterations of this template in this other codebase
  • How many variations are there?
  • Categorize those variations
  • Please create a table that categorizes all the variations of the template in the other codebase, and list the URLs where those variations occur.

I don't really know how the codebases are structured or where templates "live" or how we could have a GenAI injest it. We could take things one Wiki at a time, potentially?

It strikes me that grasping complexity at scale like this might be worth considering a machine-in-the-loop process.
Curious to hear what folks think.

Change 984995 had a related patch set uploaded (by Kimberly Sarabia; author: Kimberly Sarabia):

[mediawiki/skins/Vector@master] [WIP] Create incompatible template list

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

Pre-Winter Break Update: @bwang worked with us to get wmf-a11y to a place where we can configure it to scan the top 100 pages and report out color contrast warnings only.

Per discussion with @Jdlrobson, we have defined a metric for template compatibility and we are proceeding with the instrumentation for measuring compatibility here.

Change 984995 abandoned by Jdlrobson:

[mediawiki/skins/Vector@master] Create incompatible template list

Reason:

Work is being continued in https://github.com/wikimedia/color-contrast-checker

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