Commit graph

5343 commits

Author SHA1 Message Date
libraryupgrader 2ed17dc985 build: Updating dependencies
composer:
* mediawiki/minus-x: 1.1.1 → 1.1.3

npm:
* @wikimedia/codex: 1.5.0 → 1.6.0
* @wikimedia/codex-icons: 1.5.0 → 1.6.0

Change-Id: Ie380608c4fa8e067571a0f39453942216bf998dd
2024-05-17 04:29:53 +00:00
jenkins-bot 4966ec2271 Merge "Reflect production defaults" 2024-05-16 22:03:07 +00:00
Jon Robson 9bdde667fb Reflect production defaults
Bug: T363814
Change-Id: Iea89208342f09f621acc6219f814271955bbd5fc
2024-05-16 21:09:45 +00:00
Ed Sanders 11b9e7fd2d configuration.md: Fix list formatting
* Use unordered lists at the top level. These
  items have no inherent order, and any patch
  to remove an item would require renumbering
  all subsequent items.
* Use consistent indentation

Change-Id: Ied3768e9c53d7d1104b20711fb0213ba6b27a555
2024-05-16 21:02:13 +00:00
Taavi Väänänen e2bfd5f957
Fix one more message using "day mode" instead of "light mode"
Bug: T361157
Change-Id: Iaa8f8792b5c93fe31655c8e97e6e032ef255d236
2024-05-16 14:28:45 +03:00
Jon Robson 176a6397ce Correct behaviour of ConfigHelper, add tests
Bug: T365084
Change-Id: I220990554d0a07642dd03a0c7bd53f9bd7ff55ec
2024-05-16 08:04:45 +02:00
Umherirrender fb03108304 i18n: Replace mw: interwiki with url to mediawiki.org
The interwiki table must not contains an interwiki link with prefix mw:

Bug: T285439
Change-Id: I2aa9c676d42d1741d57c6792c7fb85b844a6f969
2024-05-15 22:57:17 +02:00
Moh'd Khier Abualruz 37e8e4c929 feature(Vector): Add configurable font size exclusions
This patch introduces the ability to configure font size exclusions
for specific pages within the Vector skin, ensuring certain pages
always use a small font size. This change is part of ongoing improvements
to the Vector skin's customizability features.

Changes:
- Updated `skin.json` to include `VectorFontSizeConfigurableOptions`
- Added new i18n string `vector-feature-custom-font-size-exclusion-notice`
- Modified logic for font size exclusion handling in `FeatureManager.php`

Additional Notes:
- Affects testing and beta deployment environments, ensure relevant
  settings are updated in `LocalSettings.php`.
For testing and on beta deployment, these settings should be set in
the LocalSettings.php of the environment, example:

$wgVectorAppearance = [
    "logged_in" => true,
    "logged_out" => true,
    "beta" => true
];
$wgVectorFontSizeConfigurableOptions = [
	"exclude" => [
	"namespaces" => [ -1, 2, 6, 8, 10, 14, 100, 710, 828 ],
		"querystring" => [
			"action" => "edit|submit|diff|info|protect|delete|undelete|diff|history",
			"diff" => ".+"
		]
	]
];

Bug: T364887
Change-Id: I23b9c4fb63f35c7d27544197fead3ad7619c67f1
2024-05-15 19:19:38 +00:00
jenkins-bot 7cf832dd50 Merge "Remove list-style-image used by ul elements" 2024-05-15 18:39:29 +00:00
bwang f13bc5ed80 Remove list-style-image used by ul elements
Bug: T364865
Change-Id: Id365e946e8c71f4812cbb9e4b00618fb73572554
2024-05-15 15:01:40 +00:00
Translation updater bot 6a06e8f0e1 Localisation updates from https://translatewiki.net.
Change-Id: Ibacebd86aebbe451b2d49d5026367f186feeec3a
2024-05-15 09:23:38 +02:00
jenkins-bot e27ef588fb Merge "Mark night mode as a valid beta feature" 2024-05-14 22:15:26 +00:00
Jon Robson 2d4f0a86d2 Mark night mode as a valid beta feature
This was not well documented but it seems that anything that
can be a beta feature needs to be added to this constant for it
to function as a beta feature.

Bug: T363814
Change-Id: I556114c65d9507829d9eb737edf09245ae14c0f4
2024-05-14 13:43:00 -07:00
Jan Drewniak 0d1de4773d [Follow-up] Override VE overlays in night-mode
Follow-up to 26d39ec, change VE overlay selector
from `.ve-ui-overlay-global` to `.ve-ui-overlay`.

Bug: T363861
Change-Id: Ie531ce6d03d81fbce374f7e17c785d4bb076bfda
2024-05-14 14:30:56 -04:00
Translation updater bot 60b0191340 Localisation updates from https://translatewiki.net.
Change-Id: I3e6e4b540426b4f3d06251018b62485380393d77
2024-05-14 09:29:26 +02:00
jenkins-bot e5c51204ac Merge "Override VE overlays in night-mode" 2024-05-13 22:30:45 +00:00
Jan Drewniak 26d39ecafa Override VE overlays in night-mode
Creates a Less variable `@OOUIOverrideSelectors` which can serve
as a list of selectors that we want to treat the same as the `.notheme`
class (as an alternative to adding the `.notheme` class across repos).

Adds only one selector to this variable, `.ve-ui-overlay-global`
in order to force VE overlays to appear in light-mode while night-mode is
enabled.

This is a temporary measure until T363849 is resolved.

Bug: T363861
Change-Id: I3e3a209f1a9bd9130fc61915b9b2ff7134405e59
2024-05-13 21:58:20 +00:00
Jdlrobson b7743a1dbe Revert "Add exclusion notice for "width" option in Appearance menu"
This reverts commit 89c250c18e.

Reason for revert: We need some more time to test this one and
the resulting behaviour. After discussing this morning we decided
to remove from the next train release.

Bug: T364015
Change-Id: I0dfc17d9c8a8697b8b4f590acdbc2d2c54de9429
2024-05-13 21:33:49 +00:00
jenkins-bot ed49a09010 Merge "Deploy limited width settings" 2024-05-13 15:34:23 +00:00
Translation updater bot 262523ffba Localisation updates from https://translatewiki.net.
Change-Id: I1b00e1697731af08d269620ee46cc89dcdcda5dc
2024-05-13 09:30:22 +02:00
Fomafix ca5c48052f Replace WebRequest::getText by WebRequest::getRawVal
The Unicode and line break normalizations of getText are not needed
here.

Change-Id: I53974627aec4b1b6724abb128a10c2a8d64059a9
2024-05-11 08:41:45 +00:00
ksarabia 5c9fc606dd Deploy limited width settings
* Main page set to true for exclude.
* Makes it default to all wikis.

Bug: T357706
Change-Id: I72d2e9e4eb2e11b1c9bfbdacbd6e298ec205040d
2024-05-10 17:34:08 -05:00
Translation updater bot 48b497f09a Localisation updates from https://translatewiki.net.
Change-Id: I2564a625af0d80145a4f6b104a5f3a759176b7c0
2024-05-10 09:33:46 +02:00
jenkins-bot 68742b8c41 Merge "Add exclusion notice for "width" option in Appearance menu" 2024-05-09 21:53:22 +00:00
Jan Drewniak 89c250c18e Add exclusion notice for "width" option in Appearance menu
Adds the notice "This page is always wide" and disables
the inputs for the "width" options in the Appearance menu
when pages are excluded via configuration ( `$wgVectorMaxWidthOptions`).

Bug: T364015
Change-Id: Ie99b41c9130f496ab23b60c95e551a9ea602d5a0
2024-05-09 16:47:07 -04:00
Translation updater bot 1d58612130 Localisation updates from https://translatewiki.net.
Change-Id: I0983c5fde866b71db452b01fa62e13de03289ab3
2024-05-09 09:43:15 +02:00
jenkins-bot 277135ef58 Merge "Fix red link color in dark mode" 2024-05-08 14:53:37 +00:00
bwang 337d608a56 Fix red link color in dark mode
Bug: T363778
Change-Id: Iae4fe2d793b8efbb10b54144ce4093c3e2112da2
2024-05-08 14:31:43 +00:00
Translation updater bot de363abb6d Localisation updates from https://translatewiki.net.
Change-Id: Iae929f571e20c7ee02eec2789f3e7eaa5eba4896
2024-05-08 09:25:49 +02:00
jenkins-bot 537ec7d3ef Merge "Use context of FeatureManagerFactory in FeatureManager" 2024-05-08 02:30:20 +00:00
Fomafix d7735c8d57 Use context of FeatureManagerFactory in FeatureManager
Change-Id: I5e77b6ce2df1245e8a5c710b7e84813f04a77ae2
2024-05-07 18:49:06 +00:00
jenkins-bot 0125ea1986 Merge "Inject service UserOptionsLookup into FeatureManager" 2024-05-07 17:19:47 +00:00
Translation updater bot 42a44cd0b6 Localisation updates from https://translatewiki.net.
Change-Id: Ic56053d85e0665456d52e1514e91397289cbfa06
2024-05-07 09:25:18 +02:00
Fomafix 6320921bd4 Inject service UserOptionsLookup into FeatureManager
Change-Id: I3a056731c4a4e970cae0b974dab574bdbb0401f5
2024-05-06 20:07:58 +00:00
Jon Robson 55e6dfd81c Fixes: exclusion logic for anonymous users
Bug: T364159
Change-Id: I7c7e9cff7b99f8e37f3f1ffb93464fd3f31c799b
2024-05-06 12:20:40 -04:00
Translation updater bot 1d416d50ef Localisation updates from https://translatewiki.net.
Change-Id: I260af90d4be8766ce4b99482fd2d8a1bd9179198
2024-05-06 09:28:41 +02:00
Translation updater bot 792a916a1a Localisation updates from https://translatewiki.net.
Change-Id: I29c2fb6f3095ebe786e351b8a8fa1f0a60e3addf
2024-05-03 09:32:26 +02:00
Jon Robson ca0d404e50 Enable night theme in Vector
- New night theme added via Codex `.cdx-mode-dark();` mixin.
- CSS custom properties separated from skin.less.
- Font-size rem conversion removed since Codex now uses rems.
- bundlesize increased by 1kb ( followup from
Icfcb5c7418061a5727580f0685054356ba4edb72 ).
- Icons that use background-images are inverted for night-theme.
- Linter error fixed for long-lines in clientPreferences.js

Co-Author: <Bernard Wang> bwang@wikimedia.org
Bug: T354889
Depends-On: I1f54bf4f144eaec6ed317c04bd0c851c2f01b42c
Change-Id: I3a8a147b6be67bc830f0d3b816a4b85c26f99cf1
2024-05-02 13:22:59 -05:00
Translation updater bot 57c2e79220 Localisation updates from https://translatewiki.net.
Change-Id: Icb5103e874d4ec6515eeb208136836a42ac143f6
2024-05-02 09:21:29 +02:00
Translation updater bot d1b7ff0cdb Localisation updates from https://translatewiki.net.
Change-Id: Ic77e6bf2fee744852cce8b918518b7e474e2dbf0
2024-05-01 09:24:07 +02:00
libraryupgrader ecb38e41da build: Updating dependencies
composer:
* php-parallel-lint/php-parallel-lint: 1.3.2 → 1.4.0

npm:
* @wikimedia/codex: 1.4.0 → 1.5.0
* @wikimedia/codex-icons: 1.4.0 → 1.5.0

Change-Id: I8ee16876540614da38e6a663f8f37f5e6b799d99
2024-05-01 05:22:34 +00:00
Jon Robson dcfa7d1c56 Prepare for night theme
The new night theme will add about 1kb of CSS to the page due
to additional styles in Codex and additional styles in Vector to
be added in  I3a8a147b6be67bc830f0d3b816a4b85c26f99cf1

Since the bundle size increase is a precursor to updating Codex
this is done now rather than as part of the patch that introduces
night theme.

Bug: T354889
Change-Id: Icfcb5c7418061a5727580f0685054356ba4edb72
2024-04-30 15:33:17 -07:00
Eric Gardner 84a69360a7 Update Vector bundlesize config
Codex 1.5.0 requires a bit more overhead, due to ex. the
use of fallback variable definitions in the main design
tokens file now that we are introducing CSS vars.

Change-Id: I539f4523b8d15a7815b303078529eb945c479be4
2024-04-30 14:17:12 -07:00
Translation updater bot dcad0a38ce Localisation updates from https://translatewiki.net.
Change-Id: I4b6f7b39d9ff4a90e7b9512d30d79ec0e64d98a6
2024-04-30 09:22:38 +02:00
jenkins-bot c3987d472b Merge "Rename client preference menu to appearance menu" 2024-04-29 20:41:19 +00:00
jenkins-bot 50c34aedf5 Merge "Wrap sitenotices in core" 2024-04-29 17:49:40 +00:00
bwang 0109218ab9 Rename client preference menu to appearance menu
Bug: T362808
Change-Id: Id6800d38eebf433cf0c9e3f179dd83df2eefd1fb
2024-04-29 15:38:20 +00:00
Translation updater bot 7338c9a51f Localisation updates from https://translatewiki.net.
Change-Id: Ib9d61b9c0e2d37fcae3126e551179d9baba78713
2024-04-29 09:26:13 +02:00
jenkins-bot 7663c6674a Merge "Prepare variables for night mode" 2024-04-26 15:54:48 +00:00
Translation updater bot cf8dbb11d9 Localisation updates from https://translatewiki.net.
Change-Id: I88b8ffe64eb0e7111093126af0385fb7371ec543
2024-04-26 09:51:56 +02:00