Commit graph

40 commits

Author SHA1 Message Date
Tim Starling
bbb4a81dd6 Move services state management out of DatabaseInstaller
* Remove the scattered enableLB() calls from DatabaseInstaller. The
  table creation step should not be responsible for managing the state
  of the service container. We have a full installer step called
  restore-services, and deferring enableLB() until then only affects
  populateInterwikiTable, populateSiteStats, generateKeys and
  insertUpdateKeys, which all use local connection management, not
  LBFactory. This is a breaking change only for the overrides mechanism,
  not for extensions.
* Move DatabaseInstaller::doUpgrade() and its helper outputHandler() to
  WebInstaller, since it is specific to web upgrade. Move state
  management logic from WebInstallerUpgrade to the new method.
* Fix the excessively narrow width of the upgrade output box, which was
  annoying me during testing.

Change-Id: Ica42c4c2e104d5581702e83ae8f9dafadd0053e5
2024-10-01 16:47:30 +00:00
Fomafix
1ba8a15a88 Remove superfluous spaces
Change-Id: I6ef0953be7b9a0baac5fb96df4d254a463fb7298
2024-07-03 04:24:59 +00:00
Ed Sanders
5728537128 build: Update stylelint-config-wikimedia to 0.17.2
Change-Id: I8d68bcae416463ceec6d7b617e38d34c57360698
2024-06-13 16:11:25 +00:00
Amir Sarabadani
877546a2de installer: Make logo preview use codex elements
Currently, it is unstyled divs that don't look very well.
Alternative approach to I85e38a9ff16979f

Change-Id: Ic5cb76dbc4c919e059a6648200feecc037326230
2024-02-06 23:40:02 +00:00
Amir Sarabadani
bccdfd85da Redesign the installer with Codex
It is not perfect, but it's a major improvement compared the existing
one. We need to clean up a lot more once it has landed but it's a good
start.

Bug: T337435
Change-Id: I1f85110e754546c797d3325b8dd6878093790266
2023-12-13 14:25:38 +01:00
jenkins-bot
dde9c55fd6 Merge "Use SVG instead of GIF for help-questionmark" 2022-10-26 17:08:31 +00:00
Fomafix
addf41d06d Use SVG instead of GIF for help-questionmark
Change-Id: Ibcaba746b912aa17da8423115d633a074c2f6038
2022-10-26 16:49:39 +00:00
Jon Robson
d3f34664d7 Installer: Disable logo dropper for now
A follow up will restore this with required
functionality

Bug: T318753
Change-Id: I1a41d83594497ea7c64f358145d4eb24429fd7a5
2022-10-06 11:49:31 -07:00
Volker E
96fb3fb408 WebInstaller: Increase #mw-panel width to 11em
Take all available space to improve rendering of portal contents
in languages like German and Russian with long words.

Bug: T318205
Change-Id: I6e8a5fe4e8358751085ecadf0a6c63a007095584
2022-09-30 17:47:26 +02:00
Volker E
0738913d65 WebInstaller: Lighten success message and add top margin
Lighten success message slightly while still complying to WCAG 2.0 AA
contrast ratio. Also add top margin to the message to set it better
apart from installer config messages above.

Bug: T318204
Change-Id: Ic9b8b940f1598667bb5e184ac14dc3b9ab474d38
2022-09-30 17:47:26 +02:00
Volker E
c304af2a45 WebInstaller: Remove inlined inconsistent bullet image and indent
Removing the bullet image and indent the (fake) list items to
makes the text more readable.

Bug: T318203
Change-Id: I495b0a6a3c4c28a40fadbf054396d38ada1d550c
2022-09-30 17:47:26 +02:00
Volker E
644af7fac8 WebInstaller: Unify background colors and sort background props first
Use one background color shade `#f7f7f7` and not two similar ones
including `#f6f6f6`.
Also sort the background properties first to better orientate in the
code aligning to CSS property order proposal.

Change-Id: I70ed641521640218c8d17c10a021df9b1e52dc30
2022-09-30 17:38:34 +02:00
Volker E
32dd10b1b2 WebInstaller: Increase line-height for legibility
Bug: T318202
Change-Id: Ie0d0e177b8c8aad9db295bc5bfabf1abbff1bc87
2022-09-30 17:38:33 +02:00
Volker E
b39e48a54a WebInstaller: Increase color contrast of coming installation steps
Bug: T318200
Change-Id: I9ff6e79842ea8a8aa746897854712e0cf4cca838
2022-09-30 17:38:33 +02:00
Ed Sanders
4c845198b0 build: Update stylelint-config-wikimedia to 0.13.0
Change-Id: I59c7507fef057a880bca62a156662ee66f89ed94
2022-05-04 23:17:03 +01:00
Jon Robson
9bd3af32fc Update installer to reflect modern logos
There are now 4 types of logos, only one of which is needed.
Update documentation in installer to reflect this.
Also make it possible to drag and drop files into the installer
and see live previews of what the logos will look like to aid
setup.

The 1x is no longer required.

Bug: T255913
Change-Id: I58226ae8fb02c32d2eeea65a50aaabbc193cb51c
2022-03-10 16:48:39 +00:00
James D. Forrester
d3078c0926 build: Upgrade stylelint-config-wikimedia from 0.10.3 to 0.11.1
Just disabling the `declaration-property-unit-disallowed-list` failures
for now, but it looks like at least most of these could be switched over
to ems without breaking anything. For another patch!

Change-Id: I9220334d670f71eba1b0e392da826036d54bc2f3
2021-06-29 11:22:30 +01:00
Ed Sanders
b089533e03 stylelint: Enforce no-unsupported-browser-features
Change-Id: Ic4fb9d27aa94594584327a3d1fc5495861e09ebd
2021-06-05 14:42:03 +01:00
Volker E
14dc9229b4 Unify list-style CSS
`list-style: none none` was a workaround for an IE 6 & 7 rendering issue.
Same goes for `list-style-image: none; list-style-type: none;` combination.
Let's unify to shorthand `list-style: none` for any non-ancient browser.

Change-Id: I05f00db8a08a9fc1523ea00fab91e91d3c00cab3
2021-05-03 01:26:50 -07:00
jdlrobson
046c0b8a9a Installer: Simplify stylesheet
The installer needs a handful of the styles provided by
ResourceLoaderSkinModule. Reduce it to the minimum required in
preparation for the deprecation of the `legacy` feature.

Bug: T232903
Change-Id: I6a718232897448a94fe1ddda547ae5a5c671b7aa
2021-04-20 00:53:13 +00:00
jdlrobson
251405ed02 Installer: The installer should use .warningbox for styling warnings, not .mw-infobox
Bug: T232903
Change-Id: Ibf6426ab90445d7aac94d59336e25957cf48fc1f
2021-04-15 20:55:44 +00:00
jdlrobson
ee0c7798cc Mark .mw-infobox styles as deprecated
Now that Html::infobox is deprecated in 1.36 let's make sure it's
clear the styles are too.

No release note is needed given the already existing note about
Html::infobox.

Styles are copied to the installer for now, but please note
their future standardization in T232903.

Bug: T268194
Change-Id: I5f7929e698c99e73f5186aa4d9bfe5f7788c12a1
2021-02-09 12:46:18 +01:00
jenkins-bot
9f868e6803 Merge "installer: Add overflow:hidden to help box" 2020-05-28 20:36:41 +00:00
jdlrobson
28090bfe39 installer: Add Installer-specific stylesheet
Follows-up 00e8bde685, which removed loading of Vector styles.
Let the Installer maintain its own appearance instead.

Bug: T248133
Change-Id: Ibdb0a72083a837a369d8d660c79fecd5aac55407
2020-04-03 21:00:19 +00:00
Fomafix
4e7c376d29 installer: Add overflow:hidden to help box
This avoids an overlap of the help box with the floating page list.

The min-width:min-content prevents that long words get cut.

Change-Id: I2d9f38e84d6030de6b00f7105a8373ff9b69e0f9
2020-03-30 14:42:52 +02:00
Volker E
93643275a0 Remove IE 6 & 7 hasLayout hacks
Bug: T234582
Change-Id: I029f41c468a4d7bae9b0d2657dacb91401c8f91a
2019-10-04 19:01:48 +00:00
Volker E
4d8763ef49 Remove unused .success-box class
Change-Id: Ie5ecaed60fc7f6342301550c57b238044c20e4a4
2019-09-17 15:24:24 -07:00
Fomafix
1dc40b1cb3 Installer: Use HTML/CSS instead of JavaScript to toggle the help message
Changes in the behavior:
* The expanding/collapsing now works even with disabled JavaScript.
* There is no FOUC on loading anymore.
* The animation on show/hide is absent.

Change-Id: I1b88d8e2cdbb1c969670a7a8637dba10bf447330
2019-06-15 12:29:07 +02:00
Fomafix
0f346d6822 Installer: Move style of background image from HTML to CSS
Change-Id: I5fb8a9fc87290c407be123238397accbc5a886dc
2019-06-14 10:46:40 +02:00
James D. Forrester
ae3f5f12ff linting: Start enforcing a basic CSS class naming rule (with lots of opt-outs)
Wow, so many opt-outs, and a lot of probably-not-going-to-change ones.

Actually wanted pattern:
* "^mw-…"

Content-related classes we're probably not going to scrap:
* "^wikitable$"

Hard-to-change classes used in lots of skins:
* "^toc$"
* "^toctoggle$"
* "^tochidden$"

Necessary for over-rides/specificity battles:
* "^oo-ui-…"

Probably worth considering changing soon:
* "^client-js$"
* "^client-nojs$"

Some of the exemptions have been applied to deprecated styles (where they're being
renamed); some are for code in entirely deprecated areas themselves; some have the
"wrong" name but sit alongside classes with an appropriate one. And some are, very
clearly, in the wrong repo. Such sigh.

Change-Id: I9b8423d53b6750b5ca79d2f69e111f75c93c5bdc
2019-04-12 10:18:45 -07:00
Volker E
d939ca58a4 build: Upgrade stylelint-config-wikimedia to 0.5.0 and make pass
Change-Id: I648375927bace5fc21bd842268c645570759ce85
2018-11-28 16:30:32 -08:00
Kunal Mehta
b3db0b5be1 installer: Hide empty textbox if no extension tables were created
The textarea is for extension update messages to go, but in some cases
extensions don't create any tables so you're left with an empty,
confusing textbox. Hide it with CSS if it's empty, since that's an
expected condition.

Bug: T48802
Change-Id: I798d07d1d6ed65011e9f2a2ac5cc77ad0595df7d
2018-04-12 00:24:47 -07:00
James D. Forrester
fdf499f2ff stylelint: Drop over-ride for 'declaration-no-important' and make pass
Change-Id: I150acaf188c445ca983583d9de107f10d425a0fb
2017-03-01 12:55:16 -08:00
Volker E
0ea9d4ca33 build: Enable selector-list-comma-newline-after stylelint rule
Enabling selector-list-comma-newline-after stylelint rule and
making it pass.

Change-Id: I8fa3fbe03fcce57d555c47f39361c2a8d9828c3c
2017-02-23 14:15:43 +00:00
James D. Forrester
05f6ab86ca build: Enable stylelint rule 'number-leading-zero' and make pass
Change-Id: I7f6d7784b5a415d4fd4fc098800bfdf9ed61790f
2017-02-20 13:01:59 -08:00
James D. Forrester
9cdbf83593 Follow-up 276c30e: Use the correct hex for the green we want
Bug: T136175
Change-Id: I4ce6010d55c361c56584a36ac252a68f0d2ee363
2016-05-26 09:38:23 -07:00
James D. Forrester
a508bb1efc build: Enforce stylelints on function calls
* Function calls to calc should use operators with spaces
* Function calls should not be split over lines
* Function calls should have a space after each comma
* Function calls should have space inside of the parentheses
* Function calls should not quote url parameters

Change-Id: Ia35f0bb5ca2dde23ce4ec90256b4fa958203e1cc
2016-05-19 16:25:09 +00:00
James D. Forrester
276c30ebee build: Enforce the rest of the colour-related stylelints
* Hex colours must be in short form where possible ('fff' not 'ffffff')
* Hex colours must be used over named colours ('fff' not 'white')
* Hex colours must be valid ('fff' not 'ffq')

Change-Id: I2ba04cc3ad9898c17fee3c65bb3bead834c3a1fd
2016-05-19 17:22:41 +01:00
Ori Livneh
1e06a9f02f mediawiki.legacy.config: use own help-field styling
Instead of using .mw-help-field-container from mediawiki.legacy to style help
tooltips, use a class that is specific to the WebInstaller and which is styled
in its stylesheet. This allows us to stop embedding it in mediawiki.legacy
(which is loaded on every page).

The CSS is copied directly from the styles for mw-help-field-container et al.
in mediawiki.legacy.

Change-Id: I8e092e9d2c91b5f70499d93c1134f43f2e96348c
2015-08-14 21:28:37 -07:00
Bartosz Dziewoński
a8e474c1f2 Move installer files from skins/common/ to mw-config/
The CSS and JS files are definitely used only by the installer.

As for the images:
* mediawiki.png is still used directly by some error pages
  (includes/PHPVersionError.php, includes/templates/NoLocalSettings.php)
* ajax-loader.gif is still used by shared.css
* bullet.gif is mysteriously used by *something*, according to the
  logs at bug 69277 comment 11; I currently have no idea what, so
  let's keep it here for a while
* All other ones don't grep (outside of the installer itself) and
  don't appear in the logs on bug 69277.

Bug: 69277
Change-Id: I9146d9211a807911a5e0cfaa1dd3ab8170f333ca
2014-08-17 22:32:25 +00:00
Renamed from skins/common/config.css (Browse further)