Doğu Abaris
2414a69730
Add PHPUnit tests for VectorComponentLink
...
Adds tests for VectorComponentLink in Vector skin, ensuring:
- Initialization with parameters.
- Generation of html-attributes string with title and aria-label.
- Consistency in link attributes for accessibility and UX.
Change-Id: I80b8a84d1d10bc7274ba5267910206d7f6e68534
2024-02-06 23:41:35 +01:00
Doğu Abaris
b4064a5aa5
Add PHPUnit test for LoggedInRequirement
...
Change-Id: I9724513399bc3d2c1b62365fdad13d51ce68623b
2024-02-06 04:09:04 +01:00
jenkins-bot
8dff67dc05
Merge "Refactor and clean up FeatureManagement classes"
2024-02-06 01:08:37 +00:00
Doğu Abaris
348e6f6cc8
Refactor and clean up FeatureManagement classes
...
This commit introduces several changes to improve the structure and
readability of the FeatureManagement code in the Vector skin. Key
changes include:
- In ABRequirementTest.php, improved test method names for clarity.
- In ABRequirement.php, simplified property declarations and cleaned up
code structure.
- In DynamicConfigRequirement.php, cleaned up property declarations.
- In LimitedWidthContentRequirement.php, cleaned up property
declarations and added type hints.
- In LoggedInRequirement.php, cleaned up property declarations.
- In OverridableConfigRequirement.php, cleaned up property declarations.
- In OverrideableRequirementHelper.php, cleaned up property declarations.
- In SimpleRequirement.php, cleaned up property declarations.
- In UserPreferenceRequirement.php, cleaned up property declarations.
Each change aims to enhance the codebase's maintainability and
understandability. No functional changes were introduced.
Change-Id: I23283c5a6799b1f03a6a9b5832c34c7dbbcca527
2024-02-06 00:37:14 +00:00
bwang
e964cbb785
Add Vector night mode feature flag
...
Bug: T355065
Change-Id: Ica63eb61ee042e8684168f6787b27a5e58e38bee
2024-02-05 11:33:37 -08:00
Translation updater bot
1c2dc9cbd3
Localisation updates from https://translatewiki.net .
...
Change-Id: Ie5e2f0e6478c08545f0611771a3b898dda9e905d
2024-02-05 08:52:30 +01:00
James D. Forrester
4deefe4d17
build: Upgrade mediawiki/mediawiki-phan-config to 0.13.0
...
Change-Id: Iee9d20b4ada7e2dde4f9ef5bef744ed429f92397
2024-02-02 11:03:38 -05:00
Translation updater bot
53f50f3c44
Localisation updates from https://translatewiki.net .
...
Change-Id: Iacbed6381d0b321fa34ed57cf621e3174ee77417
2024-02-02 08:56:28 +01:00
Umherirrender
4c5d039f13
Add return type hint to function in ServiceWiring.php
...
This is a common pattern for service wiring functions
Change-Id: Ia7bb6e22ca56aa263288fbf3afed5fb3c5d2df1a
2024-02-01 19:51:03 +01:00
Translation updater bot
a7052bd7d8
Localisation updates from https://translatewiki.net .
...
Change-Id: I9e3f0c060b5be32bb17f93dcad52c7f3f5066cbd
2024-02-01 09:08:14 +01:00
jenkins-bot
035e5826df
Merge "Register night mode as a client preference"
2024-01-31 19:36:45 +00:00
jenkins-bot
3efce8545a
Merge "Client preferences accept a callback"
2024-01-31 19:05:50 +00:00
Jon Robson
63b3a23ead
Register night mode as a client preference
...
The night mode setting should only show up if the feature flag
is enabled.
The messages are currently added to Vector, but we may want to upstream
these to core in future.
Change-Id: Idcd53399fa06821bbf5f463d1a242ecf59442c70
2024-01-31 10:14:30 -08:00
Translation updater bot
a1db9c2a86
Localisation updates from https://translatewiki.net .
...
Change-Id: I22132b46d25262a2deeb17401ddf752747f5bf2e
2024-01-31 08:31:03 +01:00
Jon Robson
29f73c960b
Client preferences accept a callback
...
In the mobile site we want to show a notification when settings
are changed. In some cases we want to reload the page.
Bug: T350170
Change-Id: I71bd97de8e041d641aded02b8fdf84359f6d830b
2024-01-30 12:31:43 -08:00
jenkins-bot
3961cbcfb4
Merge "Deactivate sticky header menus and search when sticky header is hidden attempt 2"
2024-01-30 19:36:34 +00:00
Bernard Wang
8172710236
Deactivate sticky header menus and search when sticky header is hidden attempt 2
...
This reverts commit 47e58d53d4
.
Reason for revert: second attempt at the patch
Bug: T325083
Change-Id: I2190005fcad41ad61bbd02ea3603e222fc58ceb8
2024-01-30 18:14:21 +00:00
Translation updater bot
95bd8fbb82
Localisation updates from https://translatewiki.net .
...
Change-Id: Ic6cf9d6f3c003e0726f2cf058a5db6ee4539ef94
2024-01-30 09:41:30 +01:00
jenkins-bot
851bc5aecd
Merge "Revert "Deactivate sticky header menus and search when sticky header is hidden""
2024-01-30 02:48:24 +00:00
Jdlrobson
47e58d53d4
Revert "Deactivate sticky header menus and search when sticky header is hidden"
...
This reverts commit 984a8a03ae
.
Reason for revert: For anonymous users this was triggering the
error "Cannot read properties of null (reading 'contains')"
Change-Id: I0bd78d195768c95b188208fa6fbab60fb483ed87
2024-01-30 02:24:15 +00:00
bwang
142591afdc
Hide limited width client prefs on screen sizes below 1400
...
Bug: T355331
Change-Id: Ic32cede70645637bdc887cfef23b1e7385a834a3
2024-01-30 02:14:50 +00:00
jenkins-bot
3d747b504a
Merge "Deactivate sticky header menus and search when sticky header is hidden"
2024-01-30 00:56:46 +00:00
jenkins-bot
89def4131f
Merge "Fix linter warnings"
2024-01-29 17:38:37 +00:00
bwang
c893934ee7
Fix linter warnings
...
Change-Id: I24c3ecb7858142dc1b90cf1e34456691660157f1
2024-01-29 17:06:53 +00:00
jenkins-bot
293ef7776f
Merge "Document button alignment edge cases"
2024-01-29 16:02:44 +00:00
Translation updater bot
9a9f0f9a30
Localisation updates from https://translatewiki.net .
...
Change-Id: I838ad81292e2790e36a69b4276613ab2f03902ef
2024-01-28 16:11:24 +01:00
jenkins-bot
4004add15c
Merge "Revert "Update <p> spacing to improve consistency of ul/ol spacing, also update heading spacing to be more consistent, relying on mw defaults more""
2024-01-24 22:27:13 +00:00
Jdrewniak
8d3bda7867
Revert "Update <p> spacing to improve consistency of ul/ol spacing, also update heading spacing to be more consistent, relying on mw defaults more"
...
This reverts commit ee73437745
.
Reason for revert: This patch caused T355805
Bug: T355805
Bug: T354433
Change-Id: Ibe9edcf6c4d8f25c3cc0c35cebb3aadd5dc09b00
2024-01-24 21:15:46 +00:00
bwang
a48a96a73e
Document button alignment edge cases
...
Change-Id: Ib25fa1af2d76c9cb449002deeea6900d5e501c3c
2024-01-24 12:26:39 -08:00
Umherirrender
b74b33f1f1
Use UserIdentity in VectorResourceLoaderUserStylesModule
...
Context::getUserIdentity was added with 6fbea844
Change-Id: I3d590b1b104af804edeb91dc58155a54114aa4ba
2024-01-23 21:26:35 +01:00
jenkins-bot
04ed14432b
Merge "Client preferences supports toggle switches"
2024-01-19 22:54:18 +00:00
Jon Robson
8c49b1eb49
Client preferences supports toggle switches
...
Bug: T350418
Change-Id: I359924874e7232eaee73b7dc3678b9e8e26794ac
2024-01-19 12:56:27 -08:00
Translation updater bot
1e3abb4bf2
Localisation updates from https://translatewiki.net .
...
Change-Id: I3115d727d252ad8e27f69594b1bdae87a90570f0
2024-01-19 08:29:44 +00:00
bwang
984a8a03ae
Deactivate sticky header menus and search when sticky header is hidden
...
Bug: T325083
Bug: T336965
Change-Id: Ie2cc38b1cadf239f8350d47eba1f2fefc60e1f28
2024-01-18 14:24:36 -06:00
jenkins-bot
f2eb6fb2e8
Merge "Generalize skins.vector.clientPreferences library for use in MobileFrontend"
2024-01-18 05:28:00 +00:00
Jon Robson
7d5caf3f66
Generalize skins.vector.clientPreferences library for use in MobileFrontend
...
Bug: T354224
Change-Id: I6949c4f49ec34b8e47036da4222a5f3ff491af32
2024-01-17 14:51:29 -08:00
Translation updater bot
1f861f2d62
Localisation updates from https://translatewiki.net .
...
Change-Id: I602a451783d9d71c5f680f8a7045778ef5c1b32c
2024-01-17 08:38:56 +01:00
bwang
ee73437745
Update <p> spacing to improve consistency of ul/ol spacing, also update heading spacing to be more consistent, relying on mw defaults more
...
Bug: T352875
Change-Id: I1f08681c8145bd95781752cb5728ebc9e84dd218
2024-01-16 19:48:33 +00:00
jenkins-bot
4fdf90c515
Merge "Simplify heading styles. Avoid using .vector-body"
2024-01-16 17:43:49 +00:00
bwang
91c5357917
Simplify heading styles. Avoid using .vector-body
...
Bug: T352875
Change-Id: Iba444d2324aeb578fa739cb12f1b31fb630c9ec7
2024-01-16 11:16:06 -06:00
Translation updater bot
e23fde811e
Localisation updates from https://translatewiki.net .
...
Change-Id: I2294e0d1fda9d9571177e4e068f701a813b1c2e8
2024-01-16 08:27:46 +01:00
Translation updater bot
d5caf507ca
Localisation updates from https://translatewiki.net .
...
Change-Id: Iaeb55341db568faf73aacef8c8ab92142be48ab7
2024-01-15 08:27:28 +01:00
Umherirrender
a5486b3a35
Use namespaced SkinModule and OOUIIconPackModule in extension.json
...
Change-Id: I3465f2708965c57bc268105c55042638cd014025
2024-01-13 22:45:46 +01:00
James D. Forrester
e5eb3f9523
skin.json: Drop 'es6' flag, always true since MediaWiki 1.41
...
Change-Id: I1a66eb4d066f335b3ca0433725ec4a0c8b003692
2024-01-12 19:11:15 -05:00
jenkins-bot
28976b1975
Merge "Reapply "mw.notify: Limit width of overlay to max-width-page-container""
2024-01-12 22:08:13 +00:00
Translation updater bot
b43a9aaaa2
Localisation updates from https://translatewiki.net .
...
Change-Id: I9d0874d37c38dd70a31575ea471a5403d6b70787
2024-01-12 09:03:21 +01:00
jenkins-bot
6a40112ceb
Merge "VectorComponentUserLinks: Replace array_reduce with array_filter"
2024-01-12 02:02:26 +00:00
jenkins-bot
23d1927e92
Merge "build: Upgrade eslint-config-wikimedia from 0.25.1 to 0.26.0"
2024-01-12 01:47:30 +00:00
jenkins-bot
ced3d7ec00
Merge "Hooks: Minor cleanup"
2024-01-12 01:46:30 +00:00
jenkins-bot
991c63f3db
Merge "Remove empty MakeGlobalVariablesScript hook"
2024-01-12 01:17:47 +00:00