Page MenuHomePhabricator

Enable night theme on action submit and action edit pages (non-JavaScript based edit workflows)
Closed, ResolvedPublic2 Estimated Story Points

Description

Background

Non-Javascript users and users who have disabled all the editors in their preferences access a form based version of the editor. There is also other editors that can load in this URL. All need work for dark mode support.

Screenshot 2024-06-06 at 12.17.53 PM.png (1×2 px, 450 KB)

Screenshot appears in dark-mode since all pages are dark-mode enabled on beta cluster

User story

As a user I want my editing workflow to be in dark mode.

Acceptance criteria

  • We have fixed the footer (wmf.12)
  • Night mode is enabled on pages with ?action=edit
  • Night mode is enabled on pages with ?action=submit

Communication criteria - does this need an announcement or discussion?

N/A

Rollback plan

N/A

This task was created by Version 1.0.0 of the Web team task template using phabulous

QA Results - Beta

ACStatusDetails
1T366372#9963122

Event Timeline

Jdlrobson renamed this task from Enable night theme on action submit and action edit pages to Enable night theme on action submit and action edit pages (non-JavaScript based edit workflows).May 31 2024, 4:53 PM
Jdlrobson lowered the priority of this task from High to Low.
Jdlrobson added a project: Web-Team-Backlog.
ovasileva raised the priority of this task from Low to Medium.Jun 6 2024, 1:23 PM
Jdrewniak updated the task description. (Show Details)
Jdlrobson added a subscriber: Jdrewniak.

@Jdrewniak after the OOUI release this looks a bit different:

Screenshot 2024-06-07 at 3.17.04 PM.png (1×2 px, 292 KB)

Looks like this is the problematic code for the footer:
https://gerrit.wikimedia.org/g/mediawiki/core/+/d478d4fdc66e3d08b9cea6125ef7d70732414004/resources/src/mediawiki.action/mediawiki.action.edit.styles.less#101

Note the global invert will make this even worse as .wikiEditor-ui-toolbar has a white background:

Screenshot 2024-06-07 at 3.19.37 PM.png (1×2 px, 332 KB)

Without global icon invert:

Screenshot 2024-06-07 at 3.22.25 PM.png (1×2 px, 279 KB)

With global icon invert:

image.png (1×2 px, 243 KB)

This seems to only require one token update to resources/src/mediawiki.action/mediawiki.action.edit.styles.less in core, assuming we fix https://phabricator.wikimedia.org/T367362 separately.

Earliest possible deploy date is 4th July, given holiday this can go out on Monday 8th.

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

[operations/mediawiki-config@master] Enable action edit/submit and remaining special pages in dark mode (1.43.0-wmf.12)

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

Change #1049975 abandoned by Jdlrobson:

[operations/mediawiki-config@master] Enable action edit/submit and remaining special pages in dark mode (1.43.0-wmf.12)

Reason:

Moved into https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/1050671?usp=search

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

ovasileva raised the priority of this task from Medium to High.Jul 8 2024, 10:54 AM

@Jdlrobson What about the drop-down arrow that's still in black as seen in the screenshots below? Do you want that in white like how it is when Java is on?

Test Result - Beta

Status: ❌ FAIL
Environment: Beta
OS: macOS Sonoma 14.5
Browser: Chrome 126
Device: MBA
Emulated Device: NA

Test Artifact(s):

Test Steps
  1. Visit https://en.wikipedia.beta.wmflabs.org/wiki/Polar_bear?action=edit as a non-javascript user in dark mode

2024-07-08_13-13-57.png (1×2 px, 326 KB)

  1. https://en.wikipedia.beta.wmflabs.org/wiki/Polar_bear?action=submit as a non-javascript user in dark mode

2024-07-08_13-13-38.png (1×2 px, 316 KB)

Jdlrobson added a subscriber: GMikesell-WMF.

Ill open a bug. Thanks for catching that!

Jdlrobson updated the task description. (Show Details)

I've opened T369576 to capture the issue discovered in QA! Thanks again @GMikesell-WMF