Commit graph

4109 commits

Author SHA1 Message Date
jenkins-bot a56c60a3f2 Merge "build: Updating wdio-mediawiki to 2.5.0" 2024-02-06 15:31:04 +00:00
libraryupgrader 5c2d903406 build: Updating wdio-mediawiki to 2.5.0
Change-Id: If978d6da9aefce13ebe018a129011629e2908576
2024-02-06 10:02:33 -05:00
Steph Toyofuku 573ac59dc5 Query params can set night mode value
Whereas previously, the value of the query param would simply determine
whether or not night mode was enabled, we would like to be able to
control the actual night mode setting off of the query param

Now, it functions as an option to force the user into a particular
setting, be it automatic, night, or day.  If the query param is not set
(if night mode is enabled via config), we will default to the user
option as before

Bug: T355118
Change-Id: I38ed94bfc1b80d0a827c63c6dbdd92eb6f1bf531
2024-02-05 14:45:49 -08:00
Translation updater bot ece5ac0803 Localisation updates from https://translatewiki.net.
Change-Id: I04dd990815a32d043ad922d489995bab0d0f416b
2024-02-05 08:52:28 +01:00
jenkins-bot 3fb777580f Merge "Set up user option for night mode" 2024-02-02 22:53:49 +00:00
Jan Drewniak d467f0a418 Follow-up to 59fd0cd (red-link typo)
Fixes typo in variable name.
--color-link-new -> --color-link-red

Bug: T356074
Change-Id: I801e5cd90d63c2af00485621f3774a10ca41804f
2024-02-02 16:54:11 -05:00
Steph Toyofuku ef46f238a7 Set up user option for night mode
Add a new user option, `minerva-night-mode`, and configure it with a
default value of 2 (automatic based on OS).  Rework the code in
`getHtmlElementAttributes` to set the initial class value according to
the user option, which will be set and saved inside of MobileFrontend

Bug: T355118
Change-Id: I4b0d63a186f490ba10b7655b3af4dcb8b64bd400
2024-02-02 13:28:35 -08:00
jenkins-bot 6e4c2e4c60 Merge "Convert all color related Less variables to CSS custom properties" 2024-02-02 18:18:57 +00:00
Jon Robson 7c9304cbf4 Replace reset with SkinModule normalize
Retain the existing font,
margin and padding values as without
these we would trigger a visual regression.

Visual change: Four minor visual regression with this change
relating to the button in the AMC CTA Drawer and suggested
edits overlay heading. All are acceptable.

Bug: T205341
Change-Id: I6331d88e5b7301fd13249414350a539738cfae53
2024-02-02 18:00:45 +00:00
Jan Drewniak 59fd0cd5dc Convert all color related Less variables to CSS custom properties
All colors used in Minerva are converted from Less variables
into CSS custom properties. A new file called CSSCustomProperties.less
is created in the skins.minerva.base.styles module to store
these custom properties and an ADR is provided on the rationale for
dropping support for browsers that don't support custom properties.

The new CSS custom properties follow Codex design token conventions
where possible (and noted when not).

Link colors are unique because their styles are defined in core,
so in that case the Less variables values are set to custom properties.
Those values are then fed back into MediaWiki core for core link
styling.

Also adds a temporary night-mode color palette under the
.skin-nightmode-1 class on the <html> element.

Bug: T356074
Change-Id: Ida1f14138f12bd3c600c264bde7b5100f9dbf4ff
2024-02-02 17:57:27 +00:00
James D. Forrester 75e51c1fe2 build: Upgrade mediawiki/mediawiki-phan-config to 0.13.0
Change-Id: Ic293b37b7b0567e4db52162f6eb26356537b8e0d
2024-02-02 11:03:55 -05:00
Jan Drewniak be0b43042e Convert Less variable names from camelCase to snake-case
Converts all Less variable names from CamelCase to snake-case
per the MediaWiki coding conventions.

Removes the following unused Less variables, mostly
related to icons, since those were converted to Codex:
- @icon-touch-area-sm
- @icon-touch-area-md
- @min-size-icon (replaced with @size-icon-medium)
- @icon-glyph-size-sm
- @icon-size-sm
- @icon-padding-sm
- @icon-glyph-size-md
- @icon-size-md
- @margin-icon-md-labelled

Bug: T350581
Change-Id: I1b16e77942d9bea20dcc5636a63d64aa2325a173
2024-01-31 15:24:31 -08:00
Jon Robson bc2c87f4d0 Fixes: Diff footer is overlaying the text when visual diff is clicked
Bug: T353407
Change-Id: I9246c0df582cab485b425dc77e05dc4435656511
2024-01-31 18:09:04 +00:00
Jan Drewniak 7cfdbd196f Add ADR for CSS custom properties in Minerva
Adds an ADR explaining the intent of use CSS custom properties for
night mode in Minerva.

Bug: T356074
Change-Id: I3a67f31ec426a3bb29e36c45adbcc0122e673d85
2024-01-31 17:22:00 +00:00
Steph Toyofuku f614ce6687 Add feature flag for night mode
Adds a config flag, `MinervaNightMode`, and wires it up as a skin option
for enabling/disabling the night mode toggle (sold separately)

Additionally, allow this feature to be enabled via the
`minervanightmode` query param

For now, turning the flag on will result in the class
`skin-nightmode-clientpref-1` being added to the HTML element, but in a
later change this will be updated to switch values based on the
forthcoming client pref

Bug: T355118
Change-Id: I35848ab80ee75d324ceb35d17794e2d3e620cc19
2024-01-31 00:38:51 +00:00
Translation updater bot d44897d631 Localisation updates from https://translatewiki.net.
Change-Id: Ic31fb2fd0fdc85b926b6a9ce5247361cdd39b836
2024-01-30 09:41:28 +01:00
jenkins-bot 411e0b3244 Merge "Fix styling of tabs on history and diff pages" 2024-01-30 00:49:14 +00:00
jenkins-bot 26513e5c26 Merge "Adopt ADRs (architectural decision records)" 2024-01-30 00:28:12 +00:00
Jon Robson 568ab16285 Fix styling of tabs on history and diff pages
On English Wikipedia, talk tabs are enabled so this went undetected.
The history and diff pages should be loading these styles since they
both have tabs.

Bug: T356117
Change-Id: I380cc4ba9a4f809e4400873241d97de5a5fe6c1f
2024-01-29 23:04:12 +00:00
jenkins-bot 7a25179c59 Merge "Replace page-list with mw-mf-page-list" 2024-01-29 16:48:28 +00:00
Jan Drewniak b0af18ccc6 Adopt ADRs (architectural decision records)
Adds the first ADR to the MinervaNeue skin.
The file is placed in a top-level `/adr` folder since the `/doc` folder
is already used for auto-generated documentation.

Change-Id: I83ad4a1bf8e81caaea9312d4c3efc3bf5ce419be
2024-01-29 10:34:28 -05:00
Translation updater bot 6ae120b2be Localisation updates from https://translatewiki.net.
Change-Id: Ia59932daf3b9237d989285e5d9181413df13410c
2024-01-28 16:11:22 +01:00
Derk-Jan Hartman 33797c9a02 Replace page-list with mw-mf-page-list
This class was renamed in Ia33d199b84c978bf26bbaa1645515ae186bd26be

Bug: T337741
Change-Id: I508d8947b6091c216fab13fa608090b894929dad
2024-01-27 23:38:53 +01:00
Ed Sanders 8ef144f936 build: Update linters
Change-Id: I5aa3ab891890b52057a5fc855315e5b1b2203037
2024-01-24 22:02:12 +00:00
jenkins-bot c01d353e96 Merge "Long usernames should wrap on history page." 2024-01-19 21:53:37 +00:00
Translation updater bot e4b7b3032f Localisation updates from https://translatewiki.net.
Change-Id: I4fbfe696ebedd61ed44d3330e8fa568a77dcf904
2024-01-19 09:21:01 +01:00
Jon Robson f1c1347d56 Long usernames should wrap on history page.
Bug: T355369
Change-Id: I1f3c3b7e494cc655c98d662e4c0d822da502ea6a
2024-01-18 23:06:15 +00:00
Translation updater bot 5c30f055f7 Localisation updates from https://translatewiki.net.
Change-Id: Ie4f68533a09940cb9d4fe34b0a5d9bd2510b44f5
2024-01-18 09:33:07 +01:00
jenkins-bot dfc53408d0 Merge "Do not use mw.loader.require" 2024-01-17 18:57:27 +00:00
Translation updater bot c35d9cf370 Localisation updates from https://translatewiki.net.
Change-Id: Iea244bf9e92bf2358c2599fabf9f8177374970fc
2024-01-17 08:38:55 +01:00
jenkins-bot 7f66cb32e9 Merge "Update checkboxHack target node" 2024-01-16 19:13:21 +00:00
Translation updater bot c9f914a575 Localisation updates from https://translatewiki.net.
Change-Id: I68f4e53e3a0a45ab2447cfac033ab7b9c892f3e4
2024-01-16 08:27:45 +01:00
Translation updater bot 7851227f3e Localisation updates from https://translatewiki.net.
Change-Id: I3ec230c295b44cf2ad760712de72eb3f7580c4fd
2024-01-15 08:27:26 +01:00
Volker E 40912af36d build: Update 'svgo' to latest v3.2.0
The latest update of 'svgo' dependency includes three optimizations on
converting path commands, which
- improves closing paths and how we determine if to use absolute or
  relative commands.
- round arc or convert to lines based on the geometric sagitta
- convert cubic Bézier curves to quadratic Bézier curves where possible
Also unifiying npm command to qua standard notation `minify:svg`.

Bug: T354875
Change-Id: Ibf59b3435b82602c5355b6f1c9b03920ea2e8eab
2024-01-12 17:45:54 +00:00
jenkins-bot 6ab98eb62e Merge "Style thanks confirmable panel on mobile" 2024-01-12 17:04:29 +00:00
Jon Robson 5e4e3bd549 Style thanks confirmable panel on mobile
To test you must be using desktop Minerva
This addresses only the problem described in
T353062#9438627.

Bug: T353062
Change-Id: Ia7053b94aae1b6ab48307769de063d825a47c1db
2024-01-12 16:37:21 +00:00
Jon Robson a62f1e06ff Update checkboxHack target node
CHECKBOX_HACK_TARGET_SELECTOR only applies to the first list
and there are three lists in the menu. Use the parent instead.

Additional changes:
* Transform to ES6 while working on this code.

Bug: T354315
Change-Id: I354e33af872e9a2f93d97793f5f33b735d42e804
2024-01-12 08:00:59 -08:00
jenkins-bot 99f457d3a8 Merge "Remove old styles for unnested tabs" 2024-01-11 21:36:09 +00:00
jenkins-bot c5c8f4bbc9 Merge "Fix text overflow in history page" 2024-01-11 21:03:45 +00:00
Jon Robson 72726eac36 Fix text overflow in history page
This omitted the important overflow and text-overflow
rules that we use in MobileFrontend. The line height also
needs a slight adjustment.

Bug: T354218
Change-Id: I4b8dee3395603933aba2818725b1f8fbbde0a2a6
2024-01-11 19:38:15 +00:00
James D. Forrester 25fca0ed51 .nvmrc: Update now we're using Node 18
Change-Id: I788d29ae5ade7b3f0cbb1246353889abc8e21e08
2024-01-11 10:50:43 -05:00
Translation updater bot 1a0d605795 Localisation updates from https://translatewiki.net.
Change-Id: I714f248c05332c467d4a13ee3723999919931641
2024-01-11 10:11:59 +01:00
Translation updater bot b690d47291 Localisation updates from https://translatewiki.net.
Change-Id: I0203b79d17020424c170b151a1c08935f5aaaf0a
2024-01-10 08:34:42 +01:00
Steph Toyofuku 9c8896ae5c Remove old styles for unnested tabs
Once the cache has cleared out and all tab links are nested in li
elements (983960), follow up on the fixmes introduced and update the
stylesheet to reflect the single way we will be styling `minerva__tab`s
going forward.  This should not be merged until after the break to
ensure the cache has had time to clear

No visual changes on this one as it _should_ effectively be a noop

Bug: T340728
Change-Id: I36be5ab3cacfb5e0c0f056264055509d2ee22271
2024-01-09 22:55:42 +00:00
Translation updater bot b1243dae8e Localisation updates from https://translatewiki.net.
Change-Id: I193601fdf93619192d6228dd7633e29e09787ee8
2024-01-09 09:02:58 +01:00
Translation updater bot 25587b00f2 Localisation updates from https://translatewiki.net.
Change-Id: Ifa2c547cc10e5c5fbf709f6fa030c8123f4b32fe
2024-01-08 11:34:08 +01:00
Umherirrender 1ad05f4a2e Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I1eec0823b7af97ea5031ff00b111e0c88b45a155
2024-01-06 16:31:38 +01:00
Translation updater bot fd36ece4a3 Localisation updates from https://translatewiki.net.
Change-Id: Ib422cc6045ecf0266c3ca37f23a41c590b694e78
2024-01-05 09:16:27 +01:00
jenkins-bot 2c135d093e Merge "Add tests for getTabsData and dependencies" 2024-01-04 23:30:01 +00:00
Jon Robson d5e6a0b4ce Do not use mw.loader.require
That method is marked as private. Instead using require (the
ResourceLoader require)

Bug: T235198
Change-Id: I6e4e5c76717808e416dc703639c15d0de1070a09
2024-01-03 10:53:48 -08:00