Commit graph

21393 commits

Author SHA1 Message Date
Umherirrender 11061d535b build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0
Change-Id: I3fd4f1a1eeca8d82961eef6a0fa4f1a469259b58
2024-03-12 20:51:29 +01:00
Reedy 42df4785e3 Fix casing of MediaWiki
Change-Id: Ic1240acbd90a8bedaeb875bbc393b9892e8dc23d
2024-03-12 15:40:46 +00:00
Translation updater bot be3af176f0 Localisation updates from https://translatewiki.net.
Change-Id: I987b780661b58093cc600b7e6afd2f3ae8d687b5
2024-03-12 08:25:27 +01:00
Ed Sanders d5d2fd0541 Convert ve.init.MWVESwitchPopupWidget.css to LESS
Change-Id: I4c394adc7a510b85b346366f53daf05b96811393
2024-03-11 17:39:22 -07:00
Translation updater bot 1bd77e43de Localisation updates from https://translatewiki.net.
Change-Id: Ic589d11a32709ac96f763993816a1133cb473537
2024-03-11 08:28:25 +01:00
Bartosz Dziewoński 5fb480fa9e Compatibility with new heading HTML
Small fix to support new HTML markup for headings, which will soon be
used by Parsoid page views (T269630) and by the old parser (T13555).

This fixes two issues that were only apparent when using
`$wgVisualEditorEnableVisualSectionEditing = true`:

* When starting an edit from a section edit link, the viewport was
  not scrolled to align with the clicked heading and thus didn't
  provide a smooth transition into edit mode.

* If the editor was started from a section edit link, then when
  leaving the editor without saving changes, the viewport would jump
  to the top of the page instead of returning to the clicked heading.

This is similar to change If71d4d8292 in MobileFrontend editor.

Bug: T13555
Change-Id: I89f8abac521e635f8eaa782703bdb6f6323098b0
2024-03-08 18:54:45 +00:00
Translation updater bot 9d17320a8b Localisation updates from https://translatewiki.net.
Change-Id: I4e55b993e87f45a374bb7297713a34775edc461c
2024-03-08 08:23:55 +01:00
David Lynch 01f17958de Move saveWorkflowBegin to before the saveProcess
This causes saveWorkflowBegin/saveIntent to fire as soon as the save
button is pressed. If edit check is enabled, it will be part of the save
workflow in timings.

Mobile was already behaving this way.

Bug: T352130
Change-Id: I3942fd63057c97365d28a443bcc5ac1cd43a8ae6
2024-03-07 15:28:09 -06:00
Ed Sanders 9204f0a552 Remove slug animation values overrides
Depends-On: If1f260fd4e388296e87f32e87ae2437b4400e35e
Change-Id: I60ef477102733b939e6f2bb6b008de6f808fc10c
2024-03-07 17:54:40 +00:00
Translation updater bot bb747a7893 Localisation updates from https://translatewiki.net.
Change-Id: I8d73575157539dbb49e04cabf373adb0438801c0
2024-03-07 08:49:30 +01:00
David Lynch 49d5c26c08 ve.collab: Move BetaFeature into its own file
Avoids requiring a dependency on the BetaFeatures extension.

Tell the phan config to include the BetaFeatures checkout so it'll pass
on that file, though. (Same as DiscussionTools.)

Change-Id: I258d3be59ea9cf0a798d93f0f8b1fd18a455d45a
2024-03-06 14:50:14 -06:00
Ed Sanders b3853721c8 ve.collab: Create BetaFeature
Change-Id: I36b8361f4fce8d690841e9048498bd5d52131942
2024-03-07 00:45:39 +08:00
Ed Sanders 2359b587ed ve.collab: Create ResouceLoader module
Change-Id: I2fd9d604521901e3ccdf862afc0a4f2099c533b1
2024-03-06 16:31:19 +00:00
Ed Sanders 7acda2e158 mw.Platform: Implement getUserName
Change-Id: I5c9d84d1795ffcdacc6722a2cf46a954d9491a48
2024-03-07 00:00:21 +08:00
David Lynch 4e12ab34b5 Update VE core submodule to master (00520124a)
New changes:
12a9f5a52 Localisation updates from https://translatewiki.net.
69a70c7a5 Localisation updates from https://translatewiki.net.
34d8ee042 Localisation updates from https://translatewiki.net.
8d4714dce ve.collab: Fix alignment of userList group
083cc4cb4 ve.collab: Change icon and label of tool, move to help group so always visible
140f34b16 ve.collab: i18n for automatic usernames
3ae6c3b1f ve.collab: Use query string for collabSession
add402f02 ve.collab: Apply strikethrough after toolbar is re-setup
fcea35ece ve.collab: Remove sideloading infrastructure
501dafff3 ve.collab: Move copylayout to host dialog
cf7feefc0 ve.collab: Resize toolbar properly after adding authorList
00520124a ve.collab: Use platform username over auto-generated one

Deleted files:
- demos/ve/ve-collab-sideLoad.js

Change-Id: Ie9c1519c045bea7ee0a494482c676c3759474063
2024-03-06 09:41:37 -06:00
Translation updater bot b22603b331 Localisation updates from https://translatewiki.net.
Change-Id: Ieda05a577921d58aa6cd816e351c81642447679d
2024-03-06 08:20:28 +01:00
jenkins-bot 5d63d7470e Merge "Use full filename in LESS include" 2024-03-05 15:59:11 +00:00
Translation updater bot b7f698d51b Localisation updates from https://translatewiki.net.
Change-Id: Ie880fce9d4763b38307ccb3ad4f0992c2548dae7
2024-03-05 08:28:38 +01:00
jenkins-bot e502a980f7 Merge "styles: Update color in CSS from #d33 to #d73333" 2024-03-04 11:45:33 +00:00
Translation updater bot da24345018 Localisation updates from https://translatewiki.net.
Change-Id: Ia29be779647f7e437ee087902e402d0593d5ae32
2024-03-04 08:24:29 +01:00
Ed Sanders 4ceadc9f8e Use full filename in LESS include
This appears to be standard in core.

Change-Id: I7f543f2eaf03fb32515878130a0ae96a219cb453
2024-03-01 15:38:05 +00:00
Translation updater bot 635761fefe Localisation updates from https://translatewiki.net.
Change-Id: Id4478577912c4eeb0d63fbc345709a5744c256c7
2024-03-01 08:34:20 +01:00
lwatson ec11ba3ade styles: Update color in CSS from #d33 to #d73333
This patch promotes a consistent design decision across projects in
MediaWiki core, extensions, and skins. The darker red color meets the
W3C Web Content Accessibility Guidelines (WCAG) at Level AA that text
or images of text must have a contrast ratio of at least 4.5:1 (or 3:1
for large text).

Bug: T343239
Change-Id: I517a8f5bee4f62267b37e66a8da7500ca547217e
2024-02-29 15:16:24 -05:00
Translation updater bot 8efd4e5002 Localisation updates from https://translatewiki.net.
Change-Id: I5c1c79dfced44d3a620fcdbb1b54b69fcc8e9773
2024-02-29 08:36:49 +01:00
Ed Sanders f7eef9ce12 Remove unused ve-ui-educationPopup-header CSS
We just use a standard <h3> in the popup.

Also document generated classes.

Change-Id: I8c61a240fe8c7222c70cad19ea9300b2105484ea
2024-02-28 15:44:36 +00:00
Translation updater bot 2881347216 Localisation updates from https://translatewiki.net.
Change-Id: Ia22e72ba9c226392b3e29cc4bebfec368208b89f
2024-02-28 08:15:09 +01:00
daniel 678990cc1e Preserve more error details coming from parsoid.
HtmlOutputRendererHelper will throw HttpErrors when parsoid reports an
error. We catch these in ApiParsoidTrait, and convert them to action API
error responses. When doing so, we should preserve the additional error
data included in the HttpError.

Bug: T356157
Change-Id: I8c89468c59314069025537e6807ccbc46dbe13c6
2024-02-27 18:58:31 +01:00
Ed Sanders 3badbe433a MobileSaveDialog: Remove checks for module existence
1. The module always exists because this file is only
   loaded from MobileFrontend.
2. If the module doesn't exist, mw.loader.using will
   just reject anyway.

Change-Id: I6724078b362782813576cad2459e7b7903655e5e
2024-02-27 15:11:18 +00:00
Translation updater bot f686c57cb3 Localisation updates from https://translatewiki.net.
Change-Id: I2054e59810a3b2ae4f7d0f0cc407efd1f4c76756
2024-02-27 08:20:46 +01:00
Translation updater bot 77e3ac92f8 Localisation updates from https://translatewiki.net.
Change-Id: I277685ccbf144b215549ead9b4bcbac3f5b2abed
2024-02-26 08:37:24 +01:00
Translation updater bot 98bc067e86 Localisation updates from https://translatewiki.net.
Change-Id: I566fbceb860fbac1edb5c9b44b384af8a037f1e2
2024-02-23 08:45:32 +01:00
jenkins-bot 6713c1abfa Merge "Introduce ApiEditCheckReferenceUrl" 2024-02-23 05:35:40 +00:00
Ed Sanders 80e8d65cff Introduce ApiEditCheckReferenceUrl
Checks the URL against SpamBlacklist, and the new
BlockedExternalDomains list in AbuseFilter.

Bug: T349261
Change-Id: I39896ae0d59db4aa918b08b3b2eaacb52bfe4a03
2024-02-22 15:39:43 -06:00
jenkins-bot 084b3845ef Merge "Update VE core submodule to master (4a15803e4)" 2024-02-22 21:29:23 +00:00
Ed Sanders 1e2f3de820 Update VE core submodule to master (4a15803e4)
New changes:
312c00e61 Localisation updates from https://translatewiki.net.
e2e1ef8d3 build: Updating follow-redirects to 1.15.5
f91e074c6 ve.dm.Node: Add test coverage for resetAttributes
bd1bffcc1 Localisation updates from https://translatewiki.net.
f71d3b4ff Localisation updates from https://translatewiki.net.
4a15803e4 Reset wrapper paragraph padding as well as margin

Bug: T358248
Change-Id: I32bef113fa2e9863922a6fb07d9f7d43c955422e
2024-02-22 18:50:59 +00:00
Ed Sanders 245e354b79 Numbered links on mobile: Show "Add label" button
Show this in place of the useless "No preview" message.

Bug: T358258
Change-Id: Ic525aa8cdac5f74b843927b488ace9adbda55a6b
2024-02-22 18:02:10 +00:00
Ed Sanders 37598015b3 Always use the label input for link insertion
Bug: T358258
Change-Id: I17011e0402d9bf84d8a2622b4420eb4a4b5bc722
2024-02-22 17:39:29 +00:00
Translation updater bot 4ba69f654b Localisation updates from https://translatewiki.net.
Change-Id: I0f56d569c56aca64a7d580f360b031199eb6b8a8
2024-02-22 08:44:21 +01:00
thiemowmde 2216426f61 Fix empty provider in HooksTest
This was not doing anything any more after I50b20ed.

Change-Id: I5af8f9cd2f6fb94b3bb007b72417dcb7a7f67ac9
2024-02-20 12:19:49 +00:00
thiemowmde 8825c3dce4 Fix type hint in ApiVisualEditorEdit
This doesn't make much of a difference, but I think it is more
correct. False is returned when the key cannot be found in the
cache. This is an expected situation here (hence the "try"). Null
can only be returned when null was stored in the cache before. This
can't happen here, as far as I understand the code.

Change-Id: I82f24e9f7234d0ec79f8223cd29e3df6e83f7f7b
2024-02-20 11:23:33 +01:00
thiemowmde ea58831d5a Turn property into const in ResourceLoaderData class
We can use this language feature for a while now.

Change-Id: I523d31f0fbe58d51f23ee47372e0f6d1d72df722
2024-02-20 10:50:25 +01:00
jenkins-bot 8d70615b5e Merge "Enrollment for the edit check a/b test" 2024-02-19 15:27:16 +00:00
Translation updater bot 993f595f4f Localisation updates from https://translatewiki.net.
Change-Id: I12d2a688eea033d9b5211e77df53fadee38222aa
2024-02-19 08:41:19 +01:00
jenkins-bot d90ab2b724 Merge "Use OutputPage::setPageTitleMsg() instead of ::setPageTitle()" 2024-02-17 03:23:36 +00:00
Bartosz Dziewoński 1bed037383 Use OutputPage::setPageTitleMsg() instead of ::setPageTitle()
Bug: T343994
Change-Id: I406174f9fe3b269f65dac4a15629e12d2abd6338
2024-02-17 03:01:13 +01:00
David Lynch e7861de221 Enrollment for the edit check a/b test
The enrollment happens in ArticleTargetLoader so that the bucket will be
set for init logging.

Bug: T342930
Depends-On: I9c7c0fb52a6ec68609df6b518c7d35ddd98a95bf
Change-Id: I03c8dc8beb2eb267c052b856a30343ecab3a7657
2024-02-16 10:18:21 -06:00
jenkins-bot 8f058ffe86 Merge "Only activate edit check in visual mode" 2024-02-15 22:27:01 +00:00
David Lynch 9c7f772d4f Only activate edit check in visual mode
Change-Id: I9b2dac998cd33a855f56e91c77332ef6ae156f7d
2024-02-15 12:20:03 -06:00
Translation updater bot 52d1bb5a4e Localisation updates from https://translatewiki.net.
Change-Id: Icfb9c28373ef9c31eb3e5073849a1a52540bf31f
2024-02-15 13:29:23 +01:00
James D. Forrester b72d2db4ab Replace wfGetDB() with ICP getReplicaDatabase()
Bug: T330641
Change-Id: Icdc90aa05cb56a04cf1c7f91bcfc3da5011f41a3
2024-02-14 11:05:30 -05:00