Commit graph

4280 commits

Author SHA1 Message Date
jenkins-bot 3408613347 Merge "Use PHP types" 2024-05-08 18:14:48 +00:00
Fomafix f1b2416fbf Use PHP types
* Add type hints where possible.
* Add initialization values to properties where needed.
* Remove @var block if redundant to type declaration.
* Use single line /** @var type $var */ instead of multi line.
* Add improvements to avoid Phan warnings.

Change-Id: I8e391700dcbfbbcc88cceb589dc3a36fb8e3b357
2024-05-08 07:38:21 +00:00
Translation updater bot b395880db4 Localisation updates from https://translatewiki.net.
Change-Id: I6986d4e8b0a38115d877cf2d42942c3b547abe57
2024-05-08 09:25:48 +02:00
Fomafix e85265ada5 Improve PHP class references
* Declare class names from other namespaces in the `use` block.
* Use Foo::class instead of 'Foo' to reference a class name.

Change-Id: I5a1aba6b0cc8842d71b6b6df0a0b67e16e5b6453
2024-05-07 18:30:43 +00:00
jenkins-bot bb87e3d2de Merge "Remove ResourceLoaderSkinModule" 2024-05-07 17:35:36 +00:00
Translation updater bot ce4c537df6 Localisation updates from https://translatewiki.net.
Change-Id: Id6ac5fb7629bf20dc4ceb22e5618c2bfa80c7fbe
2024-05-07 09:25:17 +02:00
Translation updater bot ea28831725 Localisation updates from https://translatewiki.net.
Change-Id: I260af90d4be8766ce4b99482fd2d8a1bd9179198
2024-05-06 09:28:43 +02:00
libraryupgrader b8d951564c build: Updating dependencies
composer:
* mediawiki/minus-x: 1.1.1 → 1.1.3

npm:
* ejs: 3.1.8 → 3.1.10
  * https://github.com/advisories/GHSA-ghr5-ch3p-vcr6

Change-Id: Iacb67db4533e2cbdbf300bb53902bcb71eee9222
2024-05-06 04:45:08 +00:00
Fomafix dd424cb9cc Remove ResourceLoaderSkinModule
Since 95c4454cf9 the class
ResourceLoaderSkinModule doesn't do anything.

Change-Id: I2d870278485d40c1b47c910d4fc34bafc58fc66c
2024-05-04 20:43:25 +00:00
jenkins-bot 520fa3a671 Merge "Remove old styles for CAPTCHA on Special:CreateAccount" 2024-05-04 16:08:46 +00:00
Sjoerd de Bruin 40c819c0c3 Apply white-space:normal to buttons in preferences
Bug: T356467
Change-Id: Iffc24107c45fdf078129cbd74eb03b1841bdb953
2024-05-04 12:49:55 +00:00
Bartosz Dziewoński 690c6aafe8 Remove old styles for CAPTCHA on Special:CreateAccount
I think they custom design is no longer needed now that the form uses
Codex, and some of the rules are applying incorrectly now and causing
bad rendering.

Depends-On: I3dd4509e8fbe43c8c3fee405d81e1e6efe5ee296
Bug: T364214
Change-Id: I994c1dc6492c39964b21f0ab2e8a0e0ca848cc7a
2024-05-04 13:05:03 +02:00
Amir E. Aharoni dd7ae1aa8d Delete an unused message
Bug: T364205
Change-Id: Id09f5d0537861230084783fb5958401b35aae38a
2024-05-04 11:51:17 +03:00
Jon Robson 1f83fd0d68 History rows should be clickable
Bug: T362683
Change-Id: I8a3b3554991eb8229b0d734fd577c48868480fdc
2024-05-02 12:08:39 +00:00
Translation updater bot f18ea974de Localisation updates from https://translatewiki.net.
Change-Id: Idf7304a9ddf5d19360f2571e6a3e850b3d4edefb
2024-05-02 09:21:28 +02:00
Jon Robson 120a0c7c3d Show history link on diff page for anonymous users
Note: This will not show on main page for now, that will be
handled in a follow up as it is a little more complicated.

Bug: T361526
Change-Id: Ib2eb38f93f5f03304a6164e313b2298b425af01e
2024-05-01 12:16:31 +00:00
Eric Gardner 3e32517f45 Update Minerva to get Codex CSS vars from default files
As of Codex 1.5.0, all files relating to the "experimental"
build have been removed. Instead, the default Codex design tokens
refer to CSS variables for color-related values, and new files
like theme-wikimedia-ui-root.css have been provided as part of the
new distribution.

Bug: T363006
Change-Id: I1a3c5194013f8f4523098458db45ce867fdfd8c9
Depends-On: I1f54bf4f144eaec6ed317c04bd0c851c2f01b42c
2024-05-01 00:00:42 +00:00
jenkins-bot 3a98957d5a Merge "Complete transition to Codex color palettes" 2024-04-30 17:35:19 +00:00
jenkins-bot daad8bc177 Merge "Use light theme colors for focus colors" 2024-04-30 17:34:16 +00:00
Translation updater bot 43881954e1 Localisation updates from https://translatewiki.net.
Change-Id: Idcad338f7ce668e5b946c92f1b6f97d24c1ae9d5
2024-04-30 09:22:36 +02:00
jenkins-bot f1d455893b Merge "Wrap sitenotices in core" 2024-04-30 07:03:26 +00:00
jenkins-bot 9bcffb739e Merge "Remove tokens with same values in light theme" 2024-04-29 21:21:14 +00:00
Jon Robson ba64c4168d Complete transition to Codex color palettes
* Update mediawiki.skin.variables to point non-Codex tokens to
Codex token equivalents
* Replace box-shadow-color-drawer with @box-shadow-color-base
* Leave FIXME comments for migrating the last two CSS variables
* Replace direct access to CSS variable with @color-link-new
design token instead since the former may no longer exist.

Bug: T360845
Change-Id: Ie531044d320cde50689064f10ff00db5adcaf859
2024-04-29 14:16:36 -07:00
Jon Robson f0a72a6837 Wrap sitenotices in core
Depends-On: Ib48b1f54c326a0363841b2f592d8fd4cf7312b9b
Bug: T361966
Change-Id: I28255d9630d2d69ace28fde1954f2a5811feae2a
2024-04-29 18:04:39 +00:00
Translation updater bot 39ab8682c2 Localisation updates from https://translatewiki.net.
Change-Id: I09e1fa21bb426eaad3fd16dc39a8cff60fbe3295
2024-04-29 09:26:12 +02:00
Jon Robson 6359571312 Use light theme colors for focus colors
According to Derek
"We actually just recently updated all focus tokens
to use the same value (#36c).
This is true for both light and dark modes.

Bug: T360845
Change-Id: I277b685b85c187ff2f25d1b9280bd77e0c0e5057
2024-04-26 17:33:14 +00:00
Jon Robson 8174fe629f Remove tokens with same values in light theme
Certain tokens have the same value in night and light theme so
do not need to be specified in the night mode palette

Bug: T360845
Change-Id: Ibaf6bb1f45997bfee4fa8334948def64265917b0
2024-04-26 17:33:06 +00:00
Jon Robson 14ca9d0ad9 Selenium: Drop dead code
All these tests and associated steps are skipped and apply to pages that
no longer exist - Special:MobileDiff and Special:MobileHistory and can
safely be removed.

Change-Id: I15edf8c2fc88fbc01585c2b7e1243daa6d9210b9
2024-04-26 10:15:10 -07:00
jenkins-bot 292e4ff958 Merge "Class page-Main_page is now defined in core" 2024-04-26 16:32:32 +00:00
jenkins-bot ccc02cc1b4 Merge "feature(Minerva): Standardises terminology to 'Dark Mode'" 2024-04-26 16:23:04 +00:00
Jon Robson 9ad8766d67 AMC-disabled Watchlist should mirror MobileFrontend version
* Hide RC filters on AMC -disabled view
* Add margin between tabs and list and full width border
* Hide 3rd and 4th tabs on watchlist view

Bug: T266065
Change-Id: I39a20bb763c6057d65550bdfface0d9156799dac
2024-04-25 23:29:36 +00:00
Jon Robson 25cfc8e38a Class page-Main_page is now defined in core
We need this class in Vector 2022 and other skins so this is
now upstreamed to core.

Depends-On: I4b77356364f7d7670139d9a1860b3e228b4dcf21
Bug: T363281
Change-Id: I948d7d3ade90583b91e7e19946b6b2354c349829
2024-04-25 23:18:16 +00:00
jenkins-bot b01d9420a0 Merge "Use tokens from Codex" 2024-04-25 20:50:56 +00:00
jenkins-bot b15c5eb427 Merge "Remove styles for deleted diff special page" 2024-04-25 19:32:09 +00:00
jenkins-bot a90cdd6cd8 Merge "Remove MinervaKnownTemplateHacks" 2024-04-25 19:25:36 +00:00
Jon Robson db5852ecc7 Remove styles for deleted diff special page
MobileDiff special page no longer exists so none of this CSS which applies to #mw-mf prefixed code is not applying to anything.

Bug: T360389
Change-Id: I6638850a6e1cd1e27072ecd17dd1524f62f976cd
2024-04-25 19:07:12 +00:00
Moh'd Khier Abualruz ac73f998e7 feature(Minerva): Standardises terminology to 'Dark Mode'
This update standardises the terminology from 'Night Mode' to
'Dark Mode' across interface messages. This change aligns with common
terminology used in the industry.

Changes:
- `i18n/qqq.json`: Updated the term in the description of
  `skin-minerva-night-mode-unavailable` to 'Dark Mode'.
- `skin.json`: Revised the description under the dark mode configuration
  section to use 'Dark Mode' instead of 'Night Mode', ensuring clarity
  and uniformity in our settings documentation.

Additional Context:
- This patch is not as critical as the Vector patch

Bug: T361157
Change-Id: Ib6261b329f4cb5c466893c22b225d97e627f4aee
2024-04-24 23:00:06 +00:00
Jon Robson 551901726d Use tokens from Codex
Bug: T360845
Change-Id: Id32a8b861aacacdfddc528882973b1043d83a5ff
2024-04-23 16:05:50 -07:00
Steven Rawson 22de1919ed Minerva: Fix README render of #$wgMinervaAlwaysShowLanguageButton
f9c055e7f5 removed a feature and some of the documentation but not all
of it, causing bad <pre> rendering instead of intended paragraphs etc.

Change-Id: I89b1054306fb5fcfe3a7503ea7ab9d8b2ed981f7
2024-04-23 22:53:39 +00:00
libraryupgrader 4fe2a79c88 build: Updating dependencies
composer:
* php-parallel-lint/php-parallel-lint: 1.3.2 → 1.4.0

npm:
* eslint-config-wikimedia: 0.26.0 → 0.27.0

Change-Id: I429a3d7e3c2cfca35965b32df94c4eb180a11c0d
2024-04-23 14:32:08 +00:00
Ed Sanders b77a8e0608 Remove margin reset on <pre> tags
Bug: T363158
Change-Id: Ie401daa984c17581d707cc7a3d76732881d0cae0
2024-04-23 12:51:52 +01:00
bwang 95c4454cf9 Remove MinervaKnownTemplateHacks
Bug: T362727
Change-Id: Iccb2e15df25f35d625d88ec4e39a16f97f84b505
2024-04-22 17:33:01 +00:00
Translation updater bot 4d3cb80b2c Localisation updates from https://translatewiki.net.
Change-Id: I7eb1b6bda8a722077db8ace23b7ab749f03f823f
2024-04-22 09:32:34 +02:00
Jan Drewniak fa71422bd0 Import codex-design-tokens-experimental.css as Less file
Previously, the Less @import was followed by the
`(inline)` option, which caused the `:extend` feature
on the following lines to not work as expected.

Importing the codex-design-tokens.css file with
the `(less)` option instead produces the desired
output, i.e: `:root, .skin-invert, .notheme {...}`.

Bug: T361325
Change-Id: I58d391b4105f077ac928a698403763268d2b4171
2024-04-19 13:51:48 -04:00
Translation updater bot d10dec2790 Localisation updates from https://translatewiki.net.
Change-Id: Icfffff8c060efce4fc2b4ced68151735dcd20e12
2024-04-19 09:50:11 +02:00
Translation updater bot 5dd3bd9f1f Localisation updates from https://translatewiki.net.
Change-Id: I85e18a90cffce1b3dedd856574c678110021ee68
2024-04-18 09:22:48 +02:00
Jon Robson 530b7fd900 Main menu should link to EditWatchlist by default for users that haven't edited
This moves poorly documented logic from MobileFrontend to Minerva.

Bug: T362338
Change-Id: I7d73044ad26b089c7225a4a5be6772398946b9f8
2024-04-17 23:31:31 +00:00
jenkins-bot 83c0b7d907 Merge "Get namespace ids from wgNamespaceIds" 2024-04-16 05:02:49 +00:00
jenkins-bot 5c56c33d7b Merge "Some small JavaScript/jQuery improvements" 2024-04-16 05:02:20 +00:00
Fomafix 3bae52817b Fix HTML errors reported by Firefox view-source
* Add missing spaces between attributes.
* Remove duplicate attributes.
* Remove unnecessary spaces and newlines.

Change-Id: Ia688234712f24f20cb1b45496f4736a98e69b00f
2024-04-15 22:51:21 +00:00