Update: 08/14/18
We synced around this task and it was expressed that the code is becoming difficult to read and thus its hard to pinpoint the remaining bugs. Code was moved to Minerva and concerns separated by splitting out code relating to overlay and event logging.
Update: 08/08/18 One open bug and one open question (maybe other open bugs) for Jon to answer. We had started with the idea of issues type/severities, but these definitions were not well defined. Alex, Olga, Stephen had to sit down and understand and define these. In future we should be more careful with defining our task descriptions before working on them. This led to building a issue parser, increasing the scope and complexity of simply adding/changing icons.
Background
We would like to display issues with different severity (based on ambox type) differently
Precursors
T191303 should be done before tackling this task.
User story
As a reader, I want the ability to distinguish between severe, moderate, and low priority issues on a page, so that I can gauge the overall reliability of the article
Acceptance criteria
Create severity logic by ambox type
Severity - severity will be set according to ambox type(https://en.wikipedia.org/wiki/Template:Ambox#type) as follows:
- High: type=speedy, type=delete
- Medium: type=content, type=pov
- Low: type=style
- Notice: type=notice, type=move, type=protection
All other templates will display with normal severity
Issues will change position and styling based on severity level (as defined in design criteria below)
Severity logic for multiple issues
- Issue severity level will be derived from the severity levels of the individual issues. If an article contains the template {{Multiple issues}}, the issue level of the article will be the highest issue level available
Example: if template {{Disputed title}} has level high, the article https://en.wikipedia.org/wiki/Chinese_unification will have issues appear at high level
- Each multiple issue level will receive unique copy, appearance, and position within the page (as defined below). Individual descriptions for issues will not be used.
Design criteria
Default Icons
Each severity level has a default icon. For cases where we can't identify the severity level see unknown below.
severity level | default icon | color | in OOUI? | example |
high | #DD3333 | yes (alert) | ||
medium | #FF5D01 | yes (notice) | ||
low | (in svg) | no | ||
notice | #54595d | yes (alert) | ||
unknown | #54595d | yes (alert) | ||
Specialized icons
For some templates there are specialized icons which should be used instead of the defaults.
template | severity level | icon | color | in OOUI? | example |
pov | medium | #54595d | no | ||
move | notice | (multiple, in svg) | no | ||
Multiple issues
Use the default icon of the issue with the highest severity level among the multiple issues. For example: if the highest severity level of the multiple issues was medium, the issue would look like this:
Notes and questions
enwiki | eswiki | jawiki | ruwiki | itwiki | |
parameter name | type | tipo | type | type | tipo |
Severe | speedy, delete | serio | Same as enwiki | Same as enwiki | importante |
Medium | content | contenido | Same as enwiki | Same as enwiki | contenuto |
Low | style | estilo | Same as enwiki | Same as enwiki | stile, struttura |
Notice | notice, move, protection | tipo=fusionar, tipo=desarrollo, tipo=aviso | Same as enwiki | Same as enwiki | avviso, generico |
https://en.wikipedia.org/wiki/Template:Ambox | https://es.wikipedia.org/wiki/Plantilla:Metaplantilla_de_avisos | https://ja.wikipedia.org/wiki/Template:Ambox | https://ru.wikipedia.org/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Ambox | https://it.wikipedia.org/wiki/Template:Avviso | |
QA steps
Bucket yourself into the A/B test. Since you will need to visit en.wikipedia.org to find examples, be careful when testing that youtest on http://reading-web-staging.wmflabs.org/ or http://rreaders-web-master.wmflabs.org/
When running all tests, ensure the icon in the article matches the one inside the issues overlay (the thing that shows when the banner is clicked)
- Check articles for deletion are marked as "severe" (dark red triangle icon)
Visit https://en.wikipedia.org/wiki/Wikipedia:Articles_for_deletion/Log/2018_July_31 and navigate to today's date. From the list, visit the associated article on http://reading-web-staging.wmflabs.org/ (type in the address manually e.g. for article with title A visit http://reading-web-staging.wmflabs.org/wiki/A)
- Check high priority issues
Visit http://reading-web-staging.wmflabs.org/wiki/Duke_Nukem_3D and check marked as "high" (red circle icon)
Find other test examples listed here:
https://en.wikipedia.org/w/index.php?title=Special%3AWhatLinksHere&target=Template%3AUnreliable+sources&namespace=
(make sure to check equivalent page on http://reading-web-staging.wmflabs.org/ and please ignore any which have "multiple issues")
- Check sweep icon
http://reading-web-staging.wmflabs.org/wiki/Transport_in_Cape_Verde
More examples can be found in https://en.wikipedia.org/w/index.php?title=Special%3AWhatLinksHere&target=Template%3ACleanup&namespace= (please ignore any which have "multiple issues")
- Grey triangle warning
http://reading-web-staging.wmflabs.org/wiki/Asparagales
More examples: https://en.wikipedia.org/w/index.php?title=Special%3AWhatLinksHere&target=Template%3Aexpand+spanish&namespace= (please ignore any which have "multiple issues")
- Multiple issues
http://reading-web-staging.wmflabs.org/wiki/Ainu_people
More examples: https://en.wikipedia.org/w/index.php?title=Special%3AWhatLinksHere&target=Template%3Amultiple+issues&namespace=
- Neutrality balance icon (scales)
http://reading-web-staging.wmflabs.org/wiki/Fiorello_H._La_Guardia
http://reading-web-staging.wmflabs.org/wiki/Australian_Catholic_University
http://reading-web-staging.wmflabs.org/wiki/Economy_of_Indonesia
http://reading-web-staging.wmflabs.org/wiki/XFS#Disadvantages
http://reading-web-staging.wmflabs.org/wiki/Ulfilas
http://reading-web-staging.wmflabs.org/wiki/Women_in_Northern_Ireland
http://reading-web-staging.wmflabs.org/wiki/Golden_Rule
http://reading-web-staging.wmflabs.org/wiki/Apartment_List
More examples: https://en.wikipedia.org/w/index.php?title=Special%3AWhatLinksHere&target=Template%3APOV&namespace=
(please ignore any which have "multiple issues")