Commit graph

21390 commits

Author SHA1 Message Date
Bartosz Dziewoński 02654c0086 Fix forwarding promise rejection arguments
Follow-up to arrow functions refactoring
(4db99d7a27).

Change-Id: I6ea41256d9a91552736742100630aab333375125
2024-11-14 21:38:23 +00:00
Bartosz Dziewoński bf22d07d2b Fix Phan error related to showPendingTakeover()
Caused by type hints added in MediaWiki core in
I3e0df790ff9db2fa630f82408a7254a359fe61ca.

Change-Id: I45d0906c11d9e66801dfedd54e6018e90ef027c4
2024-11-14 22:38:00 +01:00
Ed Sanders ee79edb58b Move edit checks to /editchecks folder
Change-Id: I27eee69c4086d44fd7d60bacde9a76c170af63fe
2024-11-14 16:44:59 +00:00
Translation updater bot a0ec12fda5
Localisation updates from https://translatewiki.net.
Change-Id: Id3a8e36e2344f1dd18b85c70281d41588d7bcac7
2024-11-14 08:20:59 +01:00
Translation updater bot 7b81b03b23
Localisation updates from https://translatewiki.net.
Change-Id: I5710b86c431723ef1a13db5927c3ce94cde4d889
2024-11-13 08:26:46 +01:00
Ed Sanders e434ad65ec MobileArticleTarget: Make close/publish buttons fixed width
This aligns them with the mobile wikitext editor. At mobile
widths the difference is negligible. On tablets this distinguishes
"navigation" buttons from the surface toolbar buttons.

Bug: T344370
Change-Id: I342e3bb579afb9f26e2af743e28eedb32efa3d46
2024-11-12 23:01:05 +00:00
Željko Filipin df82cecfd7 selenium: Replace Node.js Assert library with WebdriverIO Expect library
Assertions from Expect library are more readable that assertions from Assert library.

Bug: T325740
Change-Id: I3255483d99e096deea12aaccbebeabcdcc2e1b21
2024-11-12 13:57:48 +01:00
Translation updater bot 56e1607665
Localisation updates from https://translatewiki.net.
Change-Id: Icb76796ebce9c3604c6ea0637722af88fa4c42a6
2024-11-12 08:19:19 +01:00
Ed Sanders a5200b46e5 Update VE core submodule to master (50d3711de)
New changes:
f9d6ec27b ClipboardHandler: Give importedData annotations unique event IDs
ec97d88b7 ClipboardHandler: Improve handling of text style conversion
6454e904a Demo: Don't restore from auto-save when switching to/from source
8b4a254b9 Localisation updates from https://translatewiki.net.
2e48754b7 Add test case documenting wrong behaviour when moving annotated metadata

Change-Id: I18f2ce43797c464b50197120570ccd5b9891f034
2024-11-11 16:21:34 +00:00
jenkins-bot 6c4b4ec7d4 Merge "Edit check: fix an error when drawing selections" 2024-11-11 11:19:39 +00:00
Translation updater bot a6b5a0e269
Localisation updates from https://translatewiki.net.
Change-Id: I13863d8b54dc1ef138f5172accce7de0806ab816
2024-11-11 08:24:16 +01:00
David Lynch 239aa714fa Edit check: fix an error when drawing selections
Follow-up to 793a1364aa

Change-Id: Ieb4f30ba2fe37fdca8cad559d3e4211c83642a5c
2024-11-10 23:19:13 -06:00
jenkins-bot 98d112aec0 Merge "Diff extension body contents" 2024-11-10 14:01:07 +00:00
Ed Sanders b8f032d266 Handle view tab clicks even on edit pages
This allows the proper "discard changes" dialog to show.
A few more steps of the teardown now happen in the client,
but eventually in DesktopArticleTarget#teardown we check
again if we weren't on a view page and redirect (as this
is what we do after save).

Bug: T379367
Change-Id: I995649f37e5d841b6c1784a74f3bd353adfbe69f
2024-11-08 14:05:09 +00:00
Translation updater bot d414ced79c
Localisation updates from https://translatewiki.net.
Change-Id: Ibc75b2094f88d4eef7eaf9c7ac36a82831a95266
2024-11-08 08:29:59 +01:00
Translation updater bot d0dedfb512
Localisation updates from https://translatewiki.net.
Change-Id: I5e4db7bb8e52c3fbc5f01de5b364c29e13e62f1e
2024-11-07 08:19:59 +01:00
Translation updater bot b67045c994
Localisation updates from https://translatewiki.net.
Change-Id: Ia9dd30ec921c6c93b41b626df84a167e1fbe48e7
2024-11-06 08:24:48 +01:00
jenkins-bot dd56e0c226 Merge "Allow multiple highlight fragments to be passed to an edit check" 2024-11-06 05:28:42 +00:00
Ed Sanders 176e9c3297 CollabTarget: Use generateUniqueId
Change-Id: I69faf3b2efe70d1d880585dd41f227d2d0562594
2024-11-05 15:44:39 +00:00
Ed Sanders f2b44a9364 Update VE core submodule to master (267db0f3c)
New changes:
d4b5b74d7 ve.ce.Surface: Use getLinearFragment shortcut
1c0e86633 Localisation updates from https://translatewiki.net.
fb7f4ed65 Platform: Implement generateUniqueId
6cbed3ff7 Localisation updates from https://translatewiki.net.
507999ffe AnnotationInspector: Remove useless context binding in arrow callback
267db0f3c Localisation updates from https://translatewiki.net.

Change-Id: Ibe022e6439d01d71e5476c2e8f61c3b72c69e0ff
2024-11-05 15:43:53 +00:00
Ed Sanders 793a1364aa Allow multiple highlight fragments to be passed to an edit check
Change-Id: Ie9d7010a1a0ee6a5c570d4fd6988fc876afdb9e2
2024-11-05 11:41:50 +00:00
Translation updater bot 477358b3cb
Localisation updates from https://translatewiki.net.
Change-Id: Idd38f7b3e8b554c91c73d35c9ead3f6a20c2eb90
2024-11-05 08:34:09 +01:00
Translation updater bot ba8f1b28b4
Localisation updates from https://translatewiki.net.
Change-Id: I7114febeebcfcc924f5e725649abee6d9f24a885
2024-11-04 08:23:53 +01:00
Translation updater bot 40ec9aa520
Localisation updates from https://translatewiki.net.
Change-Id: I186490be48fa70d1d1573b610cb3d2e18efed1c5
2024-11-01 08:36:58 +01:00
libraryupgrader e810e1bf6d build: Updating mediawiki/mediawiki-codesniffer to 45.0.0
Change-Id: Id253c6d8319329a9cb156dede70fbe4db761d3f7
2024-11-01 03:10:34 +00:00
jenkins-bot 0dfdc3b009 Merge "EditCheck: Use getLinearFragment shortcut" 2024-10-31 11:32:25 +00:00
jenkins-bot b7c2b41754 Merge "Remove side padding from toolbar dialogs in Vector 2022" 2024-10-30 22:42:44 +00:00
Ed Sanders f3930e7e12 EditCheck: Use getLinearFragment shortcut
Change-Id: I53859c24567e01e24ff46a88799ee0edadbd8e1b
2024-10-30 20:28:14 +00:00
Ed Sanders d06e9dbc31 Update VE core submodule to master (0e82a6db8)
New changes:
db0f21d03 ve.ce.Surface: Check dataTransfer.files is non-empty
e1cd78933 [BREAKING CHANGE] Move selection handling code to SelectionManager
b4b63a463 Move drag/drop handling code to DragDropHandler
540272769 Use the onPaste handler for dropped content
d3f9d8485 ClipboardHandler tests: Run tests in series
1232c0420 Tests: Introduce ve.dm.example.annotateText to simplify runs of annotated text
69d7ca482 Apply an annotation to imported (pasted/dropped) text
0e82a6db8 ve.ce.ClipboardHandler: Fix async test running

Added files:
- src/ce/annotations/ve.ce.ImportedDataAnnotation.js
- src/ce/ve.ce.DragDropHandler.js
- src/ce/ve.ce.SelectionManager.js
- src/dm/annotations/ve.dm.ImportedDataAnnotation.js
- tests/ce/ve.ce.DragDropHandler.test.js

Local changes:
- Implement new selection manager architecture

Added files:
- src/ce/annotations/ve.ce.ImportedDataAnnotation.js
- src/ce/ve.ce.DragDropHandler.js
- src/ce/ve.ce.SelectionManager.js
- src/dm/annotations/ve.dm.ImportedDataAnnotation.js
- tests/ce/ve.ce.DragDropHandler.test.js

Bug: T371996
Bug: T377427
Bug: T78696
Change-Id: If8d38246badf919c32915beda7c9a14f16e62a8a
2024-10-30 17:52:56 +00:00
Ed Sanders b82cd1c975 Remove side padding from toolbar dialogs in Vector 2022
Change-Id: Idcd4491c814154a2d0474eca0e076e12295b7681
2024-10-30 17:29:13 +00:00
Ed Sanders 7ac339ce29 Diff extension body contents
Bug: T359469
Change-Id: Iad2cddcd7c86f8f4c5a9c575e871392f1942aff4
2024-10-30 14:31:06 +00:00
Translation updater bot 2e382cd4c8
Localisation updates from https://translatewiki.net.
Change-Id: Ia79f5e60b4c4782a85f358f9091ab79123efee76
2024-10-30 08:24:59 +01:00
jenkins-bot 80eff2ac37 Merge "MWGalleryDialog: Highlight item at closest index when removing an image" 2024-10-29 14:50:15 +00:00
jenkins-bot 407bb951b8 Merge "MWGalleryItemWidget: Remove unnecessary event argument" 2024-10-29 14:50:13 +00:00
jenkins-bot 56a80e3759 Merge "Update VE core submodule to master (7a373467c)" 2024-10-29 14:34:47 +00:00
jenkins-bot 9425db2172 Merge "Update VE core submodule to master (bae9101b7)" 2024-10-29 14:17:54 +00:00
James D. Forrester 56906735b5 Update VE core submodule to master (7a373467c)
New changes:
a1510bd0a collab: Make the join link work regardless of user preferences
d95719c77 Localisation updates from https://translatewiki.net.
e0bea1191 Localisation updates from https://translatewiki.net.
2b8072471 Update language list from TranslateWikiBot
921adbb50 When build fails due to ve.availableLanguages, output a helpful message
7a373467c Update DOMPurify to 2.5.7

Bug: T370817
Bug: T377905
Change-Id: I73e80cab56ad48bbbd5243f574cd15205cb1999b
2024-10-29 09:56:00 -04:00
jenkins-bot a9c64ebfc6 Merge "MWGalleryNode: Check node still exists when updating" 2024-10-29 10:37:31 +00:00
Translation updater bot 95ed3549cb
Localisation updates from https://translatewiki.net.
Change-Id: Ia95cd51dc16078cf8f37a2aeeb3921c27d40fe09
2024-10-29 08:42:28 +01:00
Translation updater bot 6c1f3e24a9
Localisation updates from https://translatewiki.net.
Change-Id: I7d993f95d817137f75228827195891347997a6f0
2024-10-28 08:24:42 +01:00
Andre Klapper 90aa7fd9cf Use explicit nullable type on parameter arguments (for PHP 8.4)
Implicitly marking parameter $... as nullable is deprecated in PHP
8.4. The explicit nullable type must be used instead.

Bug: T376276
Change-Id: I6b296c77f8a2f6f1a146972271b1fcb3360d0cc2
2024-10-26 15:18:36 +02:00
Translation updater bot d088ccdab0
Localisation updates from https://translatewiki.net.
Change-Id: Icec5cb468e374bf1c1add3cc6c76e226e49f6bc6
2024-10-25 09:53:31 +02:00
jenkins-bot 8bab4a1b40 Merge "Replace uses of deprecated MediaWiki\Message\Converter" 2024-10-23 19:36:54 +00:00
Jon Robson f29daa890d SkinFactory::getSkinNames is deprecated, use getInstalledSkins
Bug: T377521
Change-Id: I4f66ce9929e0240e1c89f59ef781d0a378263322
2024-10-23 08:38:16 -07:00
Ed Sanders 4bc814f1a0 Update VE core submodule to master (bae9101b7)
New changes:
7906a6b9e build: Updating npm dependencies
92e6a5338 TextStyleAnnotation: Don't register abstract base class
456ca9b2e Localisation updates from https://translatewiki.net.
a68ba80d2 Get all annotations by ranges
dc49d9592 Demos: Default to WMUI theme
222ac7d23 Add unit tests for ve.dm.BranchNode#getAnnotationRanges
ba73b9e91 Return annotation ranges in lexicographic order
6e40aa524 Localisation updates from https://translatewiki.net.
1a4640a4a ve.ce.Surface: Remove unused $deactivatedSelection and $findResults
9455e0f0a ve.ce.Surface: Replace text/xcustom clipboard storage with a custom key
ddd14aa9b [BREAKING CHANGE] Move paste handling code to ve.ce.ClipboardHandler
19f0e500b CollabProcessDialog: Replace mw.user.getName with platform method
ecd607353 Implement pasteSourceDetectors
bae9101b7 Localisation updates from https://translatewiki.net.

Added files:
- src/ce/ve.ce.ClipboardHandler.js
- tests/ce/ve.ce.ClipboardHandler.test.js

Local changes:
* Implement new paste handler architecture
* Use new clipboard key

Bug: T360624
Bug: T376306
Bug: T78696
Change-Id: Iea10d32b6132ae364d486cc6b96895bb937ac944
2024-10-22 15:31:24 +01:00
Bartosz Dziewoński d08df5302b Replace uses of deprecated MediaWiki\Message\Converter
The converter is no longer needed now that Message and MessageValue
use the same internal format for the message parameters.

Depends-On: I625a48a6ecd3fad5c2ed76b23343a0fef91e1b83
Change-Id: I9f27d7e31be144e09ed3d0e0e858433477327b00
2024-10-21 20:52:46 +02:00
Ed Sanders 3dfef738e2 MWGalleryDialog: Highlight item at closest index when removing an image
Bug: T373981
Change-Id: Ib0edc97279c6ec4e0529197d9beb1d7c9c51ee28
2024-10-21 17:18:43 +00:00
jenkins-bot f834094206 Merge "Localisation updates from https://translatewiki.net." 2024-10-21 17:17:02 +00:00
jenkins-bot 03f8d2b916 Merge "Use statslib instead of statsd in DirectParsoidClient" 2024-10-21 16:59:40 +00:00
Translation updater bot 32790fc61e
Localisation updates from https://translatewiki.net.
Change-Id: I85087394d706f99079bd5a8183046a67a84e2119
2024-10-21 18:18:22 +02:00