Commit graph

5094 commits

Author SHA1 Message Date
Translation updater bot cf8dbb11d9 Localisation updates from https://translatewiki.net.
Change-Id: I88b8ffe64eb0e7111093126af0385fb7371ec543
2024-04-26 09:51:56 +02:00
Jon Robson e84ec101f7 Prepare variables for night mode
* Drop all hexcodes
* Drop unused background-color-secondary - only applies in legacy
skin and replaced by background-color-secondary--modern
* Drop unused  border-color-content and border-color-content--tabs-inactive -
only apply to legacy Vector skin

Bug: T354889
Change-Id: Ie0accaaac2ac3717b6f034c5832f8c372b91c343
2024-04-25 21:29:23 +00:00
jenkins-bot a25cc2da9b Merge "feature(Vector): Standardises terminology to 'Dark Mode'" 2024-04-25 19:06:23 +00:00
Translation updater bot 5e70f98379 Localisation updates from https://translatewiki.net.
Change-Id: I4f474431de1faa78945f9a0b830901d4afdf12e0
2024-04-25 09:19:28 +02:00
Jon Robson 3c01ccc9f0 Wrap sitenotices in core
Depends-On: Ib48b1f54c326a0363841b2f592d8fd4cf7312b9b
Bug: T361966
Change-Id: I14cab105a798a5c9e615892c3305bfbd459a7a51
2024-04-24 17:12:26 -07:00
Moh'd Khier Abualruz 780d475176 feature(Vector): 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/en.json` and `i18n/qqq.json`: Updated labels and descriptions
  for UI elements from 'Night' to 'Dark' to reflect the new terminology.
  This includes changes in labels like 'skin-night-mode-0-label' to
  'Light' and 'skin-night-mode-1-label' to 'Dark'.
- `skin.json`: Updated descriptions in configuration settings to
  mention 'Dark Mode' instead of 'Night Mode', ensuring that
  documentation reflects current terminology.

Bug: T361157
Change-Id: I682a79fd7d9b37b4f908581e8fd28fd40f798c5c
2024-04-24 22:58:35 +00:00
Translation updater bot 6531a7bcba Localisation updates from https://translatewiki.net.
Change-Id: I107cef388bf3894729b083402c00576b03001738
2024-04-24 09:20:30 +02:00
jenkins-bot cbac8d5d93 Merge "styles: Remove references to the legacy Codex build" 2024-04-24 01:41:31 +00:00
Translation updater bot 6f904ca161 Localisation updates from https://translatewiki.net.
Change-Id: Ib3ebe746aba564139e15a16ee901a9500d2865de
2024-04-23 09:30:44 +02:00
Eric Gardner cb8c7a17fd styles: Remove references to the legacy Codex build
Since Codex switched over to rem units, all differences between the
"legacy" and non-legacy builds of the library have disappeared.

This change removes references to the legacy version of the library
in preparation for the removal of these artifacts from Codex.

Bug: T360806
Change-Id: I158519eddc1738a5daeedb94eb7d2f692e74b84a
2024-04-22 18:41:05 +00:00
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