Commit graph

5294 commits

Author SHA1 Message Date
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
Translation updater bot f761a1c5fa Localisation updates from https://translatewiki.net.
Change-Id: Iaf9690c7f06b304b1ea5abdda26d246cb072ac50
2024-03-18 08:34:05 +01:00
jenkins-bot e7a6fe9b12 Merge "Type hint UserIdentity in Requirements/Components" 2024-03-18 05:58:30 +00:00
Translation updater bot b7e0efc1a8 Localisation updates from https://translatewiki.net.
Change-Id: I6f07ff856af48e0ceb64d249e795c7ea4ce1e18c
2024-03-15 08:36:15 +01:00
jenkins-bot 518251d949 Merge "Remove unbalanced padding from trailing paragraphs in popups" 2024-03-14 21:41:04 +00:00
Jon Robson a67a260451 Restore budget test with better guidance and special case FlaggedRevs
Restore the budget test with better guidance on the process to
handling this issue.

Bug: T360102
Change-Id: I1ca80945e2ef49604a85e1bec6004f30ad13924d
2024-03-14 11:47:54 -07:00
Ed Sanders 84c2e0ae05 Remove unbalanced padding from trailing paragraphs in popups
Bug: T360143
Change-Id: Ieed96c8be61ee4883daaa17d82d1d1214ef85869
2024-03-14 11:42:49 -07:00
Translation updater bot d966223b62 Localisation updates from https://translatewiki.net.
Change-Id: I0aadae1635b886f6c01688eae9507fad08a0d5e1
2024-03-14 14:13:08 +01:00
Muhammad Jaziraly be0e56bb73 Skip PerformanceBudgetTest::testTotalModulesSize
Unblocks CI for Wikibase extension.
CI failed in I824acad352c366a35a243dac2086e3c5e98bc6eb

Bug: T350338
Change-Id: Id9926ff9a60cb0cac56a612a792d5ffde55c4c63
2024-03-14 09:06:34 +00:00
Translation updater bot b69b7846eb Localisation updates from https://translatewiki.net.
Change-Id: Ia7dcc43b87b15457d04ef2f46522306580159e42
2024-03-14 09:06:54 +01:00
Steph Toyofuku 1492669009 Reorder client preferences (color above width)
In accordance with the original design, reorder the client prefs so that
night mode is above limited width

Visual change for users who have access to night mode

Bug: T357707
Change-Id: I21a976655734a2accc57d541bacba391961070a8
2024-03-13 16:29:11 -07:00
Umherirrender 558359c06d Type hint UserIdentity in Requirements/Components
Only id or registered state is needed.

Change-Id: I184db486ed2763e0402fe75ed9afb0e71a0d57c6
2024-03-13 21:59:40 +01:00
jenkins-bot c38e0677c3 Merge "Migrate uses of codex-search in Vector to use CodexModule" 2024-03-13 16:27:55 +00:00
Moh'd Khier Abualruz 182bb7519b Migrate uses of codex-search in Vector to use CodexModule
- Loaded new skins.vector.search.codex.scripts module in skin.json, with only the CdxTypeaheadSearch component with codexScriptOnly flag set to true.
- Included skins.vector.search.codex.scripts in the script loading configuration for Vector22 within skin.json.
- Turned off the "interface-message-box" feature within Vector22's skins.vector.styles configuration in skin.json, as Codex now supplies these styles.
- Fix the style selector to add `.cdx-button` to `.vector-limited-width-toggle` in BottomDock.less since using the codex style
- Substituted "codex-search-styles" with "skins.vector.search.codex.styles" in the existing configuration.
- Ensured the availability of skins.vector.search.codex.scripts module for use, marking it in the list of modules in skin.js.
- Modified App.vue to utilize skins.vector.search.codex.scripts instead of @wikimedia/codex-search.
- Update App.test.js.snap to the latest output form
- Update bundlesize.config.json with newest values

Bug: T356677
Change-Id: I7fc223db01171efe6656792530d4b625be4c8edc
2024-03-13 15:58:26 +00:00
Translation updater bot 518b3fd981 Localisation updates from https://translatewiki.net.
Change-Id: I7833c4592aa74d3a75762a63c1dd6421651be24f
2024-03-13 08:27:18 +01:00
jenkins-bot 87ae000d25 Merge "Increase line height for medium and large font settings" 2024-03-12 23:35:34 +00:00
Umherirrender 7afaa93ab2 build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0
Change-Id: Ic8e1a7bc4bab091b0e959deae5258181fc54891b
2024-03-12 20:51:09 +01:00
bwang 0531fbd117 Increase line height for medium and large font settings
Bug: T359030
Change-Id: I5be2e06c01c1959241d8d5347cb4f37c62c7cee2
2024-03-12 14:25:19 -05:00
Reedy 3ce9fd814f Fix casing of MediaWiki
Change-Id: I1fd944ea6bdd8231d00feb7e5c5b48fbf808d729
2024-03-12 15:44:13 +00:00
Translation updater bot 627c3be3e1 Localisation updates from https://translatewiki.net.
Change-Id: Ifc7e5ec73bb063a74063ee03a84e604b5b3e3def
2024-03-12 08:26:45 +01:00
jenkins-bot c27df316ed Merge "Address FIXME relating to use of !important" 2024-03-11 23:01:50 +00:00
Translation updater bot ce9ee45204 Localisation updates from https://translatewiki.net.
Change-Id: I291472ea9bde5271a7d8d0ebb3e14ff3f6586ed2
2024-03-11 08:30:26 +01:00
jenkins-bot 06ed0b8e19 Merge "Create a FeatureManagerFactory" 2024-03-11 07:24:06 +00:00
Jon Robson 9048285310 Address FIXME relating to use of !important
The !important is no longer needed now that T354975 is done.

Change-Id: I62d9dfd03064167851a34e25751919b73734d1e2
2024-03-08 16:40:39 -08:00
Umherirrender ea4fd5d182 Create a FeatureManagerFactory
Some feature requirements needs access to the request user or title.
Currently the context is given in the ServiceWiring callback,
access to RequestContext::getMain() should be avoided during service
wiring (T218555).
Create a factory to hold the code from the service wiring and call the
factory with the request context from the skin to get a feature manager.

Bug: T359665
Change-Id: I57515ec02ed454620f729a109d0ace43b447b6ce
2024-03-08 20:28:31 +01:00
jenkins-bot 0c16816cb5 Merge "Remove unimplemented configuration" 2024-03-08 18:55:29 +00:00
jenkins-bot 061ce1fc9c Merge "Interaction to Next Paint (INP) Core Web Vital Improvement" 2024-03-08 15:33:30 +00:00
Translation updater bot 38c9d18a65 Localisation updates from https://translatewiki.net.
Change-Id: I7c71ae539e58a6185206be1f6a503f3cf5ee05f8
2024-03-08 08:25:33 +01:00
Jon Robson e9f7f3a3ca Remove unimplemented configuration
This was never implemented and will likely cause avoidable
confusion if allowed to persist in the codebase given our work on T359606

Change-Id: Icf36108f24198358e53bf04942751fe3306bc726
2024-03-08 00:56:12 +00:00
Moh'd Khier Abualruz fb734a46f6 Interaction to Next Paint (INP) Core Web Vital Improvement
According to a Google contact, given we set viewport to 1000px
for mobile devices viewing Vector get a tap delay.

The solution was suggested in https://developer.chrome.com/blog/300ms-tap-delay-gone-away?hl=en
and Peter has confirmed helps improve performance.

A supports query is added to limit this rule to only browsers where
it applies.

Bug: T358380
Change-Id: Ifd7d8951e06e3ba0faaed354492d23e6e0bc8f69
2024-03-07 16:53:06 -08:00
jenkins-bot 69a0f5cecc Merge "ADR - Code sharing between Vector and Minerva Skins" 2024-03-08 00:51:00 +00:00
Moh'd Khier Abualruz d16960e95c ADR - Code sharing between Vector and Minerva Skins
- Added Code sharing between Vector and Minerva Skins ADR
- Updated the title of an old ADR to "Publish client preferences" it was wrong before

Bug: T357077
Change-Id: Ied0d4f008969b6ef0adac7f22bb374843519b408
2024-03-08 00:19:10 +00:00
jenkins-bot fa02f98951 Merge "Inject services in Hooks" 2024-03-07 23:12:25 +00:00
Fomafix 9d1819f4ec Inject services in Hooks
Change-Id: Ice931a7596c73781f05265d96e0086729402ae63
2024-03-07 20:23:51 +00:00
Jon Robson 0f39c03dc6 Mark night mode as experimental feature
Bug: T359571
Change-Id: Ic930ee1ba1af3d463f6d49825dcc4ed72537b254
2024-03-07 19:17:59 +00:00
Translation updater bot d3a4911499 Localisation updates from https://translatewiki.net.
Change-Id: If5c68b7580b8f0bef5b20715f3d4b02d3f26bdc0
2024-03-07 08:51:19 +01:00
jenkins-bot 324f5f93f2 Merge "Use overrideConfigValue/overrideConfigValues instead of setMwGlobals" 2024-03-06 23:34:40 +00:00
Jon Robson 39dfbb0369 Disable Extension:DarkMode on Vector 2022
Bug: T357598
Change-Id: I7a597f5a6b8c670d4373dba110ad39073ddbfbc4
2024-03-06 21:52:54 +00:00
Fomafix e423bf9a45 Use overrideConfigValue/overrideConfigValues instead of setMwGlobals
Change-Id: Ic5b008c3e75226946fe1c6ffd3580303072b38d2
2024-03-06 20:17:36 +00:00
Translation updater bot fc4ad5303d Localisation updates from https://translatewiki.net.
Change-Id: I71589e0cb8b3aeda4bc29f8e23b956e600a4249d
2024-03-06 08:21:33 +01:00
libraryupgrader 81a04d60b6 build: Updating npm dependencies
* @wikimedia/codex: 1.3.3 → 1.3.4
* @wikimedia/codex-icons: 1.3.3 → 1.3.4

Change-Id: If65a80f8f1df43b6440ef329552eb5468057c1ac
2024-03-06 02:36:34 +00:00