Commit graph

5184 commits

Author SHA1 Message Date
jenkins-bot 43c865d5e4 Merge "build: Updating npm dependencies" 2024-04-22 09:21:54 +00:00
Translation updater bot be9b161915 Localisation updates from https://translatewiki.net.
Change-Id: Icb1b175a244d0da4758c3ef37c7f5f99fcdeef93
2024-04-22 09:32:36 +02:00
libraryupgrader d22fd0d7ab build: Updating npm dependencies
* eslint-config-wikimedia: 0.26.0 → 0.27.0
* @wikimedia/codex: 1.3.5 → 1.4.0
* @wikimedia/codex-icons: 1.3.5 → 1.4.0

Change-Id: I3dbc33dde89f03b188918e29f89434aafc3690a9
2024-04-21 21:57:17 +00:00
jenkins-bot 0ee7e0d944 Merge "[VISUAL CHANGE] Make spacing in UserLinks menus more consistent" 2024-04-19 20:59:17 +00:00
Translation updater bot ead56d1942 Localisation updates from https://translatewiki.net.
Change-Id: If8d6968dfc6ef829c0b6078536bf2d6b254e4056
2024-04-19 09:50:13 +02:00
Jan Drewniak c3c7462951 [VISUAL CHANGE] Make spacing in UserLinks menus more consistent
Changes spacing around icons in the user-links menus
so that the spacing is more consistently 8px.

Bug: T353987
Change-Id: I860ab858363f0535fd80e3a823cf90f91c2e9a86
2024-04-18 23:49:07 +00:00
Translation updater bot 81f256864b Localisation updates from https://translatewiki.net.
Change-Id: Ic331cb8e0773dec97bfa6b54864e33fc63a1fa01
2024-04-18 09:22:49 +02:00
jenkins-bot f6c0071bd7 Merge "Add exclusion notice for night mode feature" 2024-04-17 16:44:03 +00:00
jenkins-bot e917d8e097 Merge ".nvmrc: Update version from 18.17.0 to 18.20.2" 2024-04-17 15:04:55 +00:00
James D. Forrester f1bf7ed973 .nvmrc: Update version from 18.17.0 to 18.20.2
Change-Id: I4f09dd1740dce7ea96af2aab894ce89ed3b9404b
2024-04-17 14:01:41 +00:00
Translation updater bot 50ea9648e1 Localisation updates from https://translatewiki.net.
Change-Id: I2c87bb4b0624a48adab8f757092a1c490850902f
2024-04-17 09:30:32 +02:00
Jan Drewniak a3801497b9 Add exclusion notice for night mode feature
If night-mode is disabled on a certain page via the
exclude list in skin.json, then the following class:
".skin-theme-clientpref-excluded" will be added to the HTML element.

In this scenario, the related client-preferences
menu options are visible, but disabled, and a notice
is rendered below the options informing users of this state.

Bug: T361158
Change-Id: I46d335d079a2d27c7a4122e23ac7e479c286b886
2024-04-16 22:38:35 -04:00
jenkins-bot f0673ac58a Merge "Use client preferences for appearances menu" 2024-04-16 18:02:38 +00:00
Jon Robson e678a43b6e Extension:DarkMode should persist for anons
Bug: T360534
Change-Id: I41ea40defedbede6c6c430f1e0d90fde6d5c1981
2024-04-16 17:02:06 +00:00
Translation updater bot 6a5821800c Localisation updates from https://translatewiki.net.
Change-Id: Ie373cd01cda247d90bd6976bc6c4f6e7569fa880
2024-04-16 09:31:02 +02:00
Jon Robson c8442ba32e Drop background base declaration
This has been confusing a few editors and breaks support with
Extension:DarkMode so let's remove for now.

Change-Id: I84a58b49f8f3d5af8765531bc14c43b42fe39a1d
2024-04-15 16:06:41 -07:00
bwang c69a53a16c Use client preferences for appearances menu
Bug: T361586
Change-Id: I636a557e724f23ea18da135bac59cb304ba81091
2024-04-15 22:36:48 +00:00
Translation updater bot c867810c66 Localisation updates from https://translatewiki.net.
Change-Id: Ie0af172a2486ffece66937fe9fad5f7006f6700d
2024-04-15 09:31:01 +02:00
Translation updater bot d7f77ba0cf Localisation updates from https://translatewiki.net.
Change-Id: I9232fcc5aa98476f6e4a69b4173b65e390a2122a
2024-04-12 09:45:28 +02:00
Translation updater bot 7b0cb1098b Localisation updates from https://translatewiki.net.
Change-Id: I4bfc54db5ecfe89580b6effa645550b4fbbd7f47
2024-04-11 09:23:37 +02:00
Translation updater bot 498e229cdd Localisation updates from https://translatewiki.net.
Change-Id: I0278e8720d1911674e92b23dee3c8e2487a3254a
2024-04-08 09:29:28 +02:00
jenkins-bot 9f430e72cc Merge "tests: Use remoteSkinPath in QUnitTestModule in skin.json" 2024-04-05 12:58:30 +00:00
jenkins-bot de06d9e104 Merge "Add h1 headings to fix for applying font-sizes" 2024-04-05 07:04:34 +00:00
Arlo Breault ff2e6a48ec Add h1 headings to fix for applying font-sizes
h1 headings can be created in wikitext but are discouraged.  They
nevertheless appear in the corpus.

https://www.mediawiki.org/wiki/Help_talk:Formatting#Level_1

Bug: T359881
Follows-Up: I15eaf43c6750c76363ec804eda9b8ca6ec4709c2
Change-Id: I1caa6809e1be14f87c791faac852610a522d1c5e
2024-04-04 13:19:17 -04:00
Jon Harald Søby 8416fd3796 Add transparent bottom border to .mw-list-item.vector-tab-noicon
Add a 2px transparent bottom border to .mw-list-item.vector-tab-noicon
in order to prevent visible "jumps" when no item in the list is selected
and one is hovering items (thus giving them a 2px bottom border).

Bug: T361841
Change-Id: I5b6ccd6fc68bab399647c270cf5ef573034bb622
2024-04-04 16:17:25 +02:00
Translation updater bot 5def09c76d Localisation updates from https://translatewiki.net.
Change-Id: I10317cf22c195b2e114f83d279cba6bb14c440c7
2024-04-04 09:42:16 +02:00
Translation updater bot 6dcc0c5744 Localisation updates from https://translatewiki.net.
Change-Id: Iaaaa4bb671cc289911b29eca4c15fd19f9443585
2024-04-03 09:26:04 +02:00
Translation updater bot 0f22ca3a15 Localisation updates from https://translatewiki.net.
Change-Id: If432367ed89f3fb11e5da2f156673873ccd22f27
2024-04-02 09:23:10 +02:00
Umherirrender f43b97ff4c tests: Use remoteSkinPath in QUnitTestModule in skin.json
Skins should define a skin path to be relative to $wgStylePath,
not relative to $wgExtensionAssetsPath

Change-Id: Ie3adbd7adcbc1836803b8df7b657363e88061e60
2024-04-01 20:53:23 +02:00
Translation updater bot 145f77f63c Localisation updates from https://translatewiki.net.
Change-Id: Icfcb5cb860afd20ea04e7c9c1d1be52716b66df0
2024-04-01 09:24:56 +02:00
Moh'd Khier Abualruz 1fbdc0828a Accessibility settings menu should default to open for all users
Refine Feature Management in Vector Skin, in this patch we simplify the feature management criteria within the Vector skin by adjusting the requirements for the Constants::FEATURE_CLIENT_PREFS_PINNED feature. By removing the Constants::REQUIREMENT_LOGGED_IN constraint, we aim to enhance and unify the user experience by making certain preferences more accessible to users, regardless of their login status.

Changes:
- Updated FeatureManagerFactory.php by removing the Constants::REQUIREMENT_LOGGED_IN from the list of requirements for Constants::FEATURE_CLIENT_PREFS_PINNED. This modification aligns with our goal of making the Vector skin more user-friendly and accommodating to both logged-in and anonymous users, ensuring a broader range of users can benefit from customized features and settings.

Rationale:
The decision to remove the login requirement for accessing certain client preferences stems from an ongoing evaluation of user engagement and feedback, as detailed in Phabricator task T360099. This change is part of a series of improvements aimed at enhancing the accessibility and usability of the Vector skin, making it more adaptable to the diverse needs of our user base. By enabling more features for anonymous users, we anticipate an increase in engagement and a more personalized browsing experience for all users.

Bug: T360099
Change-Id: Ic477cd66df34c1caeb822d8d2162a7299cd648a0
2024-04-01 05:49:36 +02:00
jenkins-bot b98e0a0017 Merge "Allow disabling of night mode on certain pages via config" 2024-03-29 08:03:00 +00:00
Translation updater bot 97069bbb48 Localisation updates from https://translatewiki.net.
Change-Id: Ic70a64ca10388fc0760d5db9fbda82174019daa4
2024-03-29 08:49:13 +01:00
Steph Toyofuku feb8cc90dc Allow disabling of night mode on certain pages via config
* Using the new ConfigHelper, support disabling night mode on certain
pages via configuration options
* In addition, adds test coverage for this case and the query parameter
case (in a new integration test file as we now require accessing the
service container for request context)
* Finally, supply a default configuration in skin.json with all the
values set to null

For the easiest possible approach while we evaulate our general feature
management system, this logic is handled inside of getFeatureBodyClass
using the new shouldDisable general function.  In the future, it may
make sense to break this out into its own requirement class, but for now
that feels premature

Bug: T359606
Change-Id: I3e7a4720ec3cc2afd9777e36f59aa56b682258f0
2024-03-28 16:37:30 -07:00
Translation updater bot 779db3618e Localisation updates from https://translatewiki.net.
Change-Id: Id6be0184d8bb611e6c308d3359b6a769de8b8f2d
2024-03-28 08:35:07 +01:00
Steph Toyofuku 3387ef3ee4 Add tests for ConfigHelper
This class is being used in both vector and minerva, and we are
currently depending on it working for our night mode rollout, so let's
add some test coverage!  Also fixed a small spacing issue in production
code that was bothering me lol

Note: these are not totally exhaustive - next steps would be to ensure
that the exclusions/inclusions work with arrays and not only single
elements, but hopefully this helps build some confidence ☺️

Change-Id: Iebea43eae6b1517fd778763db4f5db3b0fd9c30f
2024-03-27 16:49:39 -07:00
Translation updater bot 6d9e3abe9c Localisation updates from https://translatewiki.net.
Change-Id: I0ba4846df708c29a64bbc8fcc2872f6618f58ca7
2024-03-27 08:20:01 +01:00
Translation updater bot 1e9e6a536d Localisation updates from https://translatewiki.net.
Change-Id: I2e12543bad35bb1e8a01cbe9ee0c87b5fb171799
2024-03-26 08:23:32 +01:00
Translation updater bot b632dfea27 Localisation updates from https://translatewiki.net.
Change-Id: I635da2eb9ed1ba95d1788b72a0c0909e26f70083
2024-03-25 08:39:09 +01:00
Translation updater bot 6f06af8ebb Localisation updates from https://translatewiki.net.
Change-Id: I71b7fafd432474ca0d4b2cfa300c0616f48bbf2b
2024-03-22 08:48:00 +01:00
Jon Robson 3f7f355a2e Support legacy message box styles markup in JavaScript
Log a console warning to assist developers in migrating to the new
markup.

Bug: T360633
Change-Id: Iaa1a3fc3b910c5fe491459fc82c61bc329f3408d
2024-03-21 18:19:52 +00:00
Translation updater bot 394b0c4655 Localisation updates from https://translatewiki.net.
Change-Id: I59f0e731a89afb992cbf949253b73b950222922f
2024-03-21 08:59:57 +01:00
jenkins-bot 9a362f52cd Merge "Vector - Rename the skin night mode classes to more readable classes" 2024-03-21 00:19:29 +00:00
Moh'd Khier Abualruz b3ab84f9e5 Vector - Rename the skin night mode classes to more readable classes
The classes:
- skin-night-mode-clientpref-0
- skin-night-mode-clientpref-1
- skin-night-mode-clientpref-2
is being replaced with
- skin-theme-clientpref-day
- skin-theme-clientpref-night
- skin-theme-clientpref-os

Other Changes:
- Change vector-night-mode preference to vector-theme
- Add skin-theme-os-label and other messages to skins.vector.clientPreferences
- Remove skin-night-mode-* messages from skins.vector.clientPreferences

Bug: T359983
Change-Id: I31eb086e623a97df9fbd004425559e05b0cae170
2024-03-20 23:54:47 +00:00
Jon Robson 9c063383a3 Permit sharing of code between Vector and Minerva
Bug: T359607
Change-Id: Iab6ca28b8b460be864fb6591adb407ccb20f3718
2024-03-20 19:57:11 +00:00
libraryupgrader cf6247422a build: Updating npm dependencies
* @wikimedia/codex: 1.3.4 → 1.3.5
* @wikimedia/codex-icons: 1.3.4 → 1.3.5

Change-Id: I6642a96769b357eb856d42ebbd3a17c0f909a943
2024-03-20 18:01:47 +00:00
Translation updater bot 3718dcfb32 Localisation updates from https://translatewiki.net.
Change-Id: Ibf86ca13511a86ae7186f557ef9f5c6334407de3
2024-03-20 08:26:13 +01:00
Jon Robson f28f5850c5 Separate generic ConfigHelper class from LimitedWidthContentRequirement
In preparation for a decision around how we share code, the generic code in
LimitedWidthContentrequirement is moved to ConfigHelper class. A fix
recently applied to Minerva (Ied3ed927202dd9356ebeb7e404230f571a1d910d)
is also incorporated into the new class.

The expectation is this code will be either:
1) be replaced by a submodule
OR
2) Used directly by Vector
after a decision tomorrow.

Bug: T359607
in I3967803bd75cf78d27c1a7c08e62730e46678a68 or removed

Change-Id: I04066acc86594e721e071e9096e1b12e1255b54b
2024-03-20 00:23:51 +00:00
Translation updater bot cccbea5955 Localisation updates from https://translatewiki.net.
Change-Id: I9f95e62e867f73e5948728929c537b716e982e04
2024-03-19 08:27:07 +01:00
Jon Robson 88e6f9ab59 Prepare for class and preference rename
Bug: T359983
Change-Id: I6937def83d3e71029bf99e5fa7c8e9d2eb96f1fa
2024-03-18 21:38:16 +00:00