Commit graph

5425 commits

Author SHA1 Message Date
Jan Drewniak a448233d1d Make Vector feature flag compatible with clientPrefs
Adds the `-clientpref-` string to the Vector font-size
feature flag class, which will now read:

    vector-feature-custom-font-size-clientpref-enabled

Bug: T343928
Change-Id: Iefc575229d52bea820fbee35711650408c917338
2023-08-25 14:58:30 -04:00
jenkins-bot 580b7a022f Merge "Add font size feature flag" 2023-08-24 21:33:39 +00:00
ksarabia 1805561923 Add font size feature flag
Add feature flag that for new (eventually customizable) font size.
Enabled via url param VectorCustomFontSize=1 and font size set to
a hard-coded 16px value for testing purposes.

Bug: T343928
Change-Id: I75801db7506ba2a8212df94bb2079c33a3b64614
2023-08-24 20:57:46 +00:00
Translation updater bot 770c176098 Localisation updates from https://translatewiki.net.
Change-Id: I07b00fab477d71d6fbbbd2f38878823acfe11693
2023-08-24 09:56:10 +02:00
Ed Sanders 1177320e3c build: Update linters
Change-Id: Idff91da3e6a490bbd31b39651f35544e9cb3fd9c
2023-08-23 18:46:49 +01:00
Translation updater bot a412ceffeb Localisation updates from https://translatewiki.net.
Change-Id: I0e675c58069bf2fce9f5b1291fa2ad0471e1d0aa
2023-08-23 08:42:51 +02:00
Translation updater bot 75768a1ee2 Localisation updates from https://translatewiki.net.
Change-Id: I2ab4bcb32099b723291cda2b7123a2177ed6f052
2023-08-22 09:03:29 +02:00
Translation updater bot eced614ed4 Localisation updates from https://translatewiki.net.
Change-Id: I7e24ab3069a2b6d553ff042ce7c32c5c1da53f7a
2023-08-21 08:50:51 +02:00
Umherirrender 7adf4575a5 Use namespaced MediaWiki\Request\FauxRequest
Bug: T321681
Change-Id: Ib4e07d560062caf562aa99c493d53eb8c67a0f2e
2023-08-20 01:54:58 +02:00
Umherirrender 3640c7e390 Use namespaced Title
Bug: T321681
Change-Id: I45a13ec69f114538fd7c0047c3fce0e81f197b50
2023-08-19 20:19:12 +02:00
gerritbot b5c38e7158 Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: I7283b3a22bedf6d05d0959cd6edb40b0b15c57b0
2023-08-19 04:23:07 +00:00
jenkins-bot 0f3e42bf68 Merge "skin.json: Enable 'clientPrefEnabled' option" 2023-08-18 20:49:13 +00:00
Translation updater bot 72cd2c67da Localisation updates from https://translatewiki.net.
Change-Id: I0e177f293392e989320894f8ce3c1f1166c3822e
2023-08-18 09:13:41 +02:00
bwang 54b620042a Remove wmf-a11y dependency and tests
Change-Id: Ib3a61615af634ad7dc94fa09d521b90bc5db3e0d
2023-08-17 12:38:55 -05:00
Translation updater bot 4e4a2791af Localisation updates from https://translatewiki.net.
Change-Id: I544cb5feb48baabe9fe3bee42daa986b7d248c4d
2023-08-16 09:14:27 +02:00
Translation updater bot 4309de2259 Localisation updates from https://translatewiki.net.
Change-Id: I05930e4fda1dfa76e2d30de675feaafc8b579c88
2023-08-14 09:21:01 +02:00
Timo Tijhof b7ab3b1f76 skin.json: Enable 'clientPrefEnabled' option
Ahead of core change Ib0b5ee29ec7acc.

Bug: T344069
Change-Id: If9b83dd559cda2dac315afcb65a4761b9e97f319
2023-08-11 18:33:06 +00:00
Jon Robson 2ea12a11ef Remove limited width cached HTML handling
Bug: T343843
Change-Id: Ib49e8325fddef90e202d4e753526af45ed7b2c26
2023-08-10 22:04:32 +00:00
bwang 72bac95cf9 Remove unnecessary styles about temp user page
Bug: T340152
Depends-on: Ic99c9cf2c8e7ea9a6520b4c9b6e5b69d358cbd58
Change-Id: Ifa01b010224181d125e6886c07f3e5ad8321e4ec
2023-08-10 12:01:58 -05:00
Translation updater bot 84a2c37235 Localisation updates from https://translatewiki.net.
Change-Id: Id41faa936748130031144e46bbac891c72002c22
2023-08-10 09:45:04 +02:00
Jon Robson beb466521b Fix suffix check
Follow up to I120f8f7114b33d2cfbd1c3c57ebf41f8b2d7fec4
Caught by Pixel.

Bug: T341641
Change-Id: If11d78bc48648647b9aab48908214058270eea57
2023-08-09 16:42:42 +00:00
Translation updater bot 97442b6888 Localisation updates from https://translatewiki.net.
Change-Id: I5b8445dbe56ba215dd4e9eca1b674c884f222f4f
2023-08-09 09:17:40 +02:00
jenkins-bot e8a681de2b Merge "Fixes the pinning functionality" 2023-08-08 23:38:20 +00:00
Jon Robson 93a4b76b00 Fixes the pinning functionality
Pinning functionality was broken in
I120f8f7114b33d2cfbd1c3c57ebf41f8b2d7fec4
as it breaks the check against "legacy" feature
classes. We should resort to using the legacy mode
when neither of the new classes can be found.

Bug: T341641
Change-Id: If97a393140175fd41551c3db14b19becb8d9f460
2023-08-08 23:18:12 +00:00
Abijeet 0739360cf5 Display ULS vector-dropdown-content when on non-content pages
Functionality in I37d8e61a1287b31d1a304d2a955f532b9b8fa505
was working until  Ic83eaa34ffa74a42c7cf6df7c0857dd7a9401aba

Bug: T342845
Change-Id: Ie7f18e2228420b3269b0be969474e605d48ba682
2023-08-08 23:07:23 +00:00
jenkins-bot e4e762eb32 Merge "Limited width uses new client preferences system" 2023-08-08 17:56:58 +00:00
Translation updater bot 1ab35da403 Localisation updates from https://translatewiki.net.
Change-Id: Ie3d3147d64aa2472ec1e2e4938ac2f16cff899f4
2023-08-08 09:03:27 +02:00
Translation updater bot f417dfcb05 Localisation updates from https://translatewiki.net.
Change-Id: Ic7cc506a33f3eedbc02f5560274d77a9c5994533
2023-08-07 08:42:54 +02:00
jenkins-bot cd45d2938f Merge "Avoid DB access in SkinVectorTest" 2023-08-06 06:06:24 +00:00
Daimona Eaytoy 473dc07eb4 Avoid DB access in SkinVectorTest
The test is not in the Database group and it shouldn't be, so avoid
(unintentionally) making DB queries.

Change-Id: I68de8806e58b9ebef9c31d6d66ab9b9c95b08fa7
2023-08-06 02:22:42 +02:00
Jon Robson e5bf8adad7 Limited width uses new client preferences system
* Update classes to use clientpref-1 and clientpref-0 suffix for limited width
I've limited this to the only client preference for now to reduce
risk.
* For cached HTML retain existing CSS rules, and continue saving
a cookie
* Migrate cookie if found for newly generated pages. This will be
to ensure the old cookie and new cookie are in sync (this should be
a one time operation)

Depends-On: I1e635f843ac9b2f248b1f7618134598e80291b38
Bug: T341641
Change-Id: I120f8f7114b33d2cfbd1c3c57ebf41f8b2d7fec4
2023-08-04 21:31:21 +00:00
Translation updater bot 9444cfe58c Localisation updates from https://translatewiki.net.
Change-Id: Ibdfef356e980ce373980eaa453742e112b2b8728
2023-08-04 09:24:21 +02:00
Translation updater bot 5cbfa38234 Localisation updates from https://translatewiki.net.
Change-Id: I0e74804eff753d202f8da08bd207266950827f07
2023-08-03 08:50:36 +02:00
Translation updater bot 25ec050c6f Localisation updates from https://translatewiki.net.
Change-Id: I2fdd219e5a5306e5f1b6c1414768f18a789c8678
2023-08-02 09:06:33 +02:00
jenkins-bot 634a578ff5 Merge "Add mw.util.addPortlet handler for legacy Vector" 2023-08-01 17:16:37 +00:00
Translation updater bot cc06fd7708 Localisation updates from https://translatewiki.net.
Change-Id: Ia40d2477c1b32701e559e14c6c51f17079cda074
2023-08-01 08:38:52 +02:00
jenkins-bot 9c9a621428 Merge "Revert "Reset line height on tab elements"" 2023-08-01 00:51:02 +00:00
Jdlrobson 18ecb0755f Revert "Reset line height on tab elements"
This reverts commit cb4265f003.

Reason for revert: This makes the situation worse when language
is not mixed.

Bug: T343110
Change-Id: I40158b15bad1ac06256894fc7ec6ffbac1e45fb0
2023-08-01 00:34:58 +00:00
bwang eb64a09a7d Separate dropdown/menu references in PHP and templates
- VectorComponentMenuVariants.php is renamed to VectorComponentVariants.php, and returns menu and dropdown data
- Remove TabsMenuContents.mustache in favor of MenuContents.mustache
- Fix the variants dropdown to use the full Menu template

Follow-up: Idf05c1664c026f58487ba34af5ede8a11e695baf
Change-Id: I0e9b1ab3306b04ee0d226048c6885beab4f310c6
2023-07-31 14:03:12 -05:00
Translation updater bot 1b88b29fa1 Localisation updates from https://translatewiki.net.
Change-Id: I7e8983d59ee038b33d132998bc5590ae2fddf412
2023-07-31 09:07:38 +02:00
Translation updater bot 74e2a42d7e Localisation updates from https://translatewiki.net.
Change-Id: I1837ad31db6070be995b9dbe8852f8605033c66d
2023-07-28 09:26:08 +02:00
jenkins-bot e860f10ca2 Merge "Fix issues with addPortlet handler" 2023-07-27 11:28:56 +00:00
Translation updater bot 55b47bfa79 Localisation updates from https://translatewiki.net.
Change-Id: I4d00b4b9c4f29881914d941f8a99c2fc809497ab
2023-07-27 10:51:42 +02:00
Jon Robson 967965b260 Add mw.util.addPortlet handler for legacy Vector
This copies the Vector 2022 hook approach and applies
it to legacy Vector.

Bug: T342814
Change-Id: I382bfa3b25f4814fbf627856fa5957f7e50bf8a8
2023-07-26 14:05:16 -07:00
Jon Robson 6b81214687 Fix issues with addPortlet handler
Follow up to I35a51df6ece2e48e086e722337d4c6bba427eeb4

1) the insertBefore function raises a JS error
2) We must take into account portlets added before the
Vector hook is registered.
3) Register the portlet in main. Loading the module should
not have side effects.

Bug: T303488
Change-Id: Iee6b308d6da63bc53bcba0fa5bb383d88787892a
2023-07-26 13:51:06 -07:00
jenkins-bot 48af341410 Merge "Add hook support for mw.util.addPortlet method" 2023-07-26 11:42:17 +00:00
Moh'd Khier Abualruz 4b4fc6c6c9 Add hook support for mw.util.addPortlet method
- Hooking into mw.util.addPortlet
- merged in tests from: I3258388d74c103515e3f0680304f9a376e439a35

possible follow-ups:
- tooltips support
- custom attributes support
- Adapting portlets of types dropdown, tab to vector skin. Check patch set 10 for a starting point

Depends-on: I79bad8661e34e653d41e6cb1cd4462ac5c6bc3b1
Bug: T303488
Change-Id: I35a51df6ece2e48e086e722337d4c6bba427eeb4
2023-07-26 13:37:09 +03:00
Translation updater bot 835106d884 Localisation updates from https://translatewiki.net.
Change-Id: Iebe6b2e949378634aa053ee5138f96db366c3579
2023-07-26 10:29:23 +02:00
bwang 20c216c829 Fix text showing on icon only buttons
Change-Id: Ie1ab40cd479b5a8e83ce13537a7e8d6387f7a441
2023-07-25 11:15:46 -05:00
Translation updater bot 1a60251500 Localisation updates from https://translatewiki.net.
Change-Id: Iea64d5ba3481372d00ab63ca014af852a04f7bb2
2023-07-25 10:45:04 +02:00