Page MenuHomePhabricator

WebInstallerOutput should not use Vector styles
Closed, ResolvedPublic3 Estimated Story Points

Description

Currently the MediaWiki installer for 3rd parties is configured to use Vector. This is likely to break with future desktop refresh iterations. I suggest we use the Fallback skin for the installer rather than rely on this hack.

Suggested fix

Let's not hardcode the skin module here to avoid risking the desktop refresh from breaking the rendering of the installer and instead ship dedicated styles for the installer. The existing setup also double loads CSS - skins.vector.styles already includes mediawiki.skinning.interface.

Current appearance (using Vector's styles but own HTML):

Screen Shot 2020-03-31 at 2.38.30 PM.png (2,874×1,342 px, 349 KB)

Proposed appearance with Fallback skin:

Screen Shot 2020-03-31 at 2.39.29 PM.png (2,868×1,334 px, 261 KB)

https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/581771/

Proposed appearance with Fallback skin + installer styles:

Screen Shot 2020-03-31 at 2.52.56 PM.png (2,880×1,286 px, 370 KB)

https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/585042 Installer specific styles

Developer notes

Code in question:
https://github.com/wikimedia/mediawiki/blob/73c20062e0d3e0dcd94d841baa7ee7e605a688c7/includes/installer/WebInstallerOutput.php#L154

Event Timeline

Change 581771 had a related patch set uploaded (by Jdlrobson; owner: Jdlrobson):
[mediawiki/core@master] Generalise WebInstallerOutput to allow skins to skin the installer

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

Change 581772 had a related patch set uploaded (by Jdlrobson; owner: Jdlrobson):
[mediawiki/skins/Vector@master] Vector can skin the installer

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

Change 581774 had a related patch set uploaded (by Jdlrobson; owner: Jdlrobson):
[mediawiki/skins/MonoBook@master] POC: Monobook installer

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

Jdlrobson renamed this task from WebInstallerOutput should more elegantly load Vector stylesheet rather than hardcoding a reference to WebInstallerOutput should not use Vector styles.Mar 31 2020, 9:36 PM
Jdlrobson updated the task description. (Show Details)

Change 581772 abandoned by Jdlrobson:
Vector can skin the installer

Reason:
I have descoped these changes to just be about skinning the installer with code in core https://gerrit.wikimedia.org/r/c/581771

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

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

cc @ovasileva - slight risk we're going to break the installer in the next few weeks without this work. I've suggested a fix.

I'm hoping Platform Engineering have some views around the approach here and can help with code review.

Change 581771 merged by jenkins-bot:
[mediawiki/core@master] installer: Replace Vector dependency in WebInstallerOutput with fallback skin

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

Change 585042 had a related patch set uploaded (by Krinkle; owner: Jdlrobson):
[mediawiki/core@master] intaller: Add Installer-specific stylesheet

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

ovasileva set the point value for this task to 3.Apr 2 2020, 5:56 PM

Just as note, I'm for decoupling the installer.
But from a general product and MediaWiki branding perspective I fear that the installer, which already features a lot of outdated, usability unfriendly bits and pieces will be forgotten and left behind even more for the coming years – further emphasizing the impression that you're installing an ancient piece of software.

Change 585042 merged by Jdlrobson:
[mediawiki/core@master] installer: Add Installer-specific stylesheet

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

nray subscribed.