New issue
Advanced search Search tips

Issue 688863 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature



Sign in to add a comment

[WPT Dashboard] Change color scale of test results on directory pages

Project Member Reported by jeffcarp@chromium.org, Feb 5 2017

Issue description

Via  bug 679560 

Right now the algorithm is just a simple linear scale from white (0% subtests passing) to green (100% subtests passing). The algorithm in pseudo-code is:

passing = (number of passing subtests for one test_file)
total = (total number of subtests for one test_file)
pass_rate = passing / total
luminance = 100 - pass_rate * 35

In CSS: `background-color: hsl(129, 85%, {luminance}%);`

foolip@ pointed out that we should make 0% passing, 99% passing, and 100% passing more visually distinct from each other. Here are the options discussed:

Current options:

- Red-yellow-green
  - 0% passing = red
  - 50% passing = yellow
  - 100% passing = green
- Red-green
  - 0% passing = 100% red
  - 50% passing = 50% red
  - 99% passing = 0% red
  - 100% passing = green
 
Labels: -Type-Bug Type-Feature
Note, most tests have less than 100 subtests, so it's usually not 99%. But I agree that "all passing" is should be clearly different than "all but one passing". Anyway, any way that you think looks good is good to me, I think.

Another idea: Maybe it could be the same as it is now, but if it's 0% or 100%, then it gets an extra border or something?
Status: Fixed (was: Assigned)
Closed by https://github.com/GoogleChrome/wptdashboard/pull/15
Components: Blink>Infra>Ecosystem
Components: -Blink>Infra>Predictability

Sign in to add a comment