Page MenuHomePhabricator

Installer should have ability to drag and drop logos
Open, Needs TriagePublic

Description

Following on from T318753 the plan is to allow user's to drag and drop images into the installer that are saved locally to make it easier and less error prone to configure a skin.

QA step

  1. User drags image to a special drop area on the installer
  2. A preview area is updated to display the new logo.
  3. Upon clicking "next" in the installer, the logo(s) will be submitted in the form along with other settings
  4. On backend, we will check if the logo fields are of type text or type file. If type text they will be written as is to the generated LocalSettings.php. If they are of type file, we will save them inside the static folder inside the MediaWiki installed directory with generic names relating to their configuration name e.g. static/images/wordmark.svg, static/images/icon.svg, static/images/tagline.svg, static/images/1x.svg etc... and the newly created paths will be output in LocalSettings.php

See also: T319134

Event Timeline

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

[mediawiki/core@master] [WIP] Installer: Restore logo dropper functionality

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

Change 838934 abandoned by Jdlrobson:

[mediawiki/core@master] [WIP] Installer: Restore logo dropper functionality

Reason:

Not working on this right now. Will circle back later.

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