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
Umherirrender
0463bec879
Use namespaced classes
...
Changes to the use statements done automatically via script
Change-Id: Ic6450685433e240a4e93ce2beec381da16587b15
2024-10-20 14:01:32 +02:00
jenkins-bot
3ffa8f92df
Merge "editcheck: Remove try/catch around transaction squashing"
2024-10-18 18:11:07 +00:00
jenkins-bot
c2379d7d9c
Merge "editcheck: Remove mw.editcheck.Diff"
2024-10-18 18:01:11 +00:00
jenkins-bot
b82b2948fe
Merge "editcheck: Rename shouldApplyToSection to isRangeInValidSection"
2024-10-18 18:01:09 +00:00
jenkins-bot
b92ce78406
Merge "editcheck: Move adjustForPunctuation to AddReferenceEditCheck"
2024-10-18 18:00:27 +00:00
jenkins-bot
9cc33b619f
Merge "editcheck: Document some methods and improve some APIs"
2024-10-18 17:58:10 +00:00
Translation updater bot
e637f262d4
Localisation updates from https://translatewiki.net .
...
Change-Id: I1359c287e5aa35d8421fa11d0c5a66cca923453c
2024-10-18 09:25:50 +02:00
Ed Sanders
cf8a08f76c
editcheck: Remove try/catch around transaction squashing
...
According to T333710 we haven't seen an error in the last year.
Change-Id: I7ee3447674cdda8a4350b6cf10d5d907c2162e2e
2024-10-17 17:10:02 +01:00
Ed Sanders
4cd67004de
editcheck: Remove mw.editcheck.Diff
...
This object just contained a pointer to the surface and dm,
and had one utility method.
Move the method to mw.editcheck, and pass around a surface model
or document model to other methods as appropriate.
Change-Id: Ie81d76dea2823b633328f982ee20027808bfc8e3
2024-10-17 17:10:02 +01:00
Ed Sanders
f91c62c0eb
editcheck: Rename shouldApplyToSection to isRangeInValidSection
...
Also refactor the loop at the end, and reorder arguments.
Change-Id: I378e5103889dd57b29948c932389e3dfa071255f
2024-10-17 17:10:02 +01:00
Ed Sanders
0cfeb76abc
editcheck: Move adjustForPunctuation to AddReferenceEditCheck
...
This method is highly specific to reference insertion. If we ever need
it for another check it can be moved back with a more specific name.
Change-Id: Ia629c8672281f33d45ea1fff6630af9bd331d80e
2024-10-17 17:10:02 +01:00
Ed Sanders
de70933dca
editcheck: Document some methods and improve some APIs
...
* Pass just the ve.dm.Document to shouldApplyToSection, instead
of the whole diff.
* Do the quicker range check first in getModifiedRangesFromDiff
Change-Id: I1bda3a77c1c51f50fd7baadaa3619cf6719a073a
2024-10-17 17:10:02 +01:00
Translation updater bot
11c2aafdd2
Localisation updates from https://translatewiki.net .
...
Change-Id: I18aa40260f8c532f3ca1e61ce1cdb7ab1a16daec
2024-10-14 09:30:37 +02:00
David Lynch
3b324983c0
Fix a reference to AbuseFilter that should be Abuse Filter
...
This stopped link reliability from being checked on wikis that only had
Abuse Filter enabled.
Follow-up to e6e104dda5
Change-Id: Ie0045e75633713ad9d529bec647471b2ca0137d3
2024-09-19 09:25:43 -05:00
Translation updater bot
907c7cb941
Localisation updates from https://translatewiki.net .
...
Change-Id: I89ee792cd8e4b2d029d7f52641c12212ac109aa3
2024-09-19 09:18:50 +02:00
David Lynch
0c91e1795c
Edit check: only count ChecksAvailable after the check for source-mode
...
Change-Id: I96091963af56a40d94445d7b65eb5c35326d0403
2024-09-18 10:26:50 -05:00
Translation updater bot
c6a52ab2a4
Localisation updates from https://translatewiki.net .
...
Change-Id: I8f2a57fdc2136b42c5cce7ec87ce0705a04a72a6
2024-09-10 09:30:56 +02:00
David Lynch
709e791acd
Edit check: let ecenable bypass the account age requirement
...
Clean up accountShouldSeeEditCheck since nothing is calling it but the
new method inside BaseEditCheck
Follow-up to e947e53f98
Change-Id: Ic55187bb77f5ef003369313b76a65897fb3be392
2024-09-09 10:52:50 -05:00
jenkins-bot
b19679e381
Merge "Edit check: stop from appearing outside the main namespace"
2024-09-09 13:29:48 +00:00
David Lynch
e947e53f98
Edit check: stop from appearing outside the main namespace
...
This was accidentally removed in d69d366469
during its refactor.
Because of the change to how checks are decided to be shown, I've made
AddReferenceEditCheck always be required -- later code in
hasAddedContentNeedingReference assumes that it's loaded anyway, so a
wiki deciding to configure it to not load at all for some account types
would have broken saving.
Bug: T373692
Change-Id: I007cd705451581ebacfa12e8ac5502bd1bc56a38
2024-09-04 10:33:22 -05:00
Translation updater bot
d29293e043
Localisation updates from https://translatewiki.net .
...
Change-Id: I2417fa6f554a48aeadc0164ea856a15257d1c8e6
2024-09-02 09:21:51 +02:00
Translation updater bot
dedd30bfef
Localisation updates from https://translatewiki.net .
...
Change-Id: I103ce5ad2adc11b48a2d7ed8ea72e4e892dc6b9f
2024-08-30 09:20:39 +02:00
Translation updater bot
471e84a0d9
Localisation updates from https://translatewiki.net .
...
Change-Id: Ic7ad4140ac4eeded1de5331ad1d57f17b2cd11ca
2024-08-28 09:41:04 +02:00
Translation updater bot
d9c7c05e32
Localisation updates from https://translatewiki.net .
...
Change-Id: I5eeb703911cd5914a71d9241be0eb97ebbd4df5c
2024-08-26 09:23:43 +02:00
David Lynch
16c2dd919b
Edit check: center the text in the proofreading toolbar
...
Bug: T341308
Change-Id: I5e12cefe690c2b9fba7cd7998a11723931575465
2024-08-22 01:23:27 -05:00
Translation updater bot
762a5c0ff9
Localisation updates from https://translatewiki.net .
...
Change-Id: I71885816cfe342b8cba5b6e5d443dbee1f12a859
2024-08-19 09:25:55 +02:00
Translation updater bot
fd15b8b6de
Localisation updates from https://translatewiki.net .
...
Change-Id: I7c303550e44dd07c1cca634d5f1f8d7f252bff77
2024-08-15 09:21:17 +02:00
Translation updater bot
ca1586a6ed
Localisation updates from https://translatewiki.net .
...
Change-Id: Ic93b15e04deb2e2795d6163d62be4fca9d721522
2024-08-12 09:23:31 +02:00
Translation updater bot
459a6e2605
Localisation updates from https://translatewiki.net .
...
Change-Id: Ie74c95168186a14433fd1c38f5eabe1dbce6366e
2024-08-09 09:37:31 +02:00
David Lynch
65b695ea2f
Edit check: another counter for the save process
...
preSaveChecksShown + preSaveChecksNotShown = preSaveChecksAvailable
allowing us to use simple stat counters to detect errors in check
generation.
Follow-up to 57daf35bd6
Change-Id: I0586b766b5beec3bd059c90875ad0e2d1f092fab
2024-08-07 21:01:17 -05:00
Translation updater bot
f0f1623051
Localisation updates from https://translatewiki.net .
...
Change-Id: I651b9daca7ca198b3cf4606692438787ab357ad3
2024-08-05 09:26:07 +02:00
David Lynch
57daf35bd6
Edit check: some simple counters for steps in the process
...
Change-Id: Iac0faea1f06eb30ac075a702cdcaaec29e0fbaf0
2024-08-01 11:21:46 -05:00
Translation updater bot
83e951d33a
Localisation updates from https://translatewiki.net .
...
Change-Id: Ia6dc068e460bb43a200a7b8f28affde76788637e
2024-07-15 09:25:24 +02:00
Translation updater bot
c4828126e6
Localisation updates from https://translatewiki.net .
...
Change-Id: I12d6f99bfa9111dd73dcb4019abd5b392fef0196
2024-07-03 09:27:43 +02:00
jenkins-bot
fd7194be26
Merge "EditCheckInspector: initially disable the continue action on mobile"
2024-07-01 18:17:45 +00:00
Translation updater bot
b34e7949f9
Localisation updates from https://translatewiki.net .
...
Change-Id: I93077216310f9a99b4a9c31bb6189a6bcc62b37b
2024-07-01 09:26:47 +02:00
Translation updater bot
265eede395
Localisation updates from https://translatewiki.net .
...
Change-Id: I8e9f5b429f152847eb28bf268504d54582fd0268
2024-06-28 09:43:42 +02:00
David Lynch
58e82f36aa
EditCheckInspector: initially disable the continue action on mobile
...
This would cause an error if the continue action was chosen before
selecting an item in the list.
Change-Id: Ic1eb66caff112c09bb60b31a7221c48e2962b3d8
2024-06-27 23:24:10 -05:00
Translation updater bot
59e1a2fedb
Localisation updates from https://translatewiki.net .
...
Change-Id: Icc3f3ae8161cb6c8a2c4af353bc6a165b1618c8b
2024-06-27 09:22:18 +02:00
Translation updater bot
f1601effc2
Localisation updates from https://translatewiki.net .
...
Change-Id: I5e96c5e8fc3aa96e39bf2f73303c2e8125eec690
2024-06-26 09:22:34 +02:00
Translation updater bot
87af9c72e0
Localisation updates from https://translatewiki.net .
...
Change-Id: I459fcd6b2b525b87b74af1d3ba534262a580b8dc
2024-06-24 09:26:21 +02:00
Translation updater bot
22fedfb771
Localisation updates from https://translatewiki.net .
...
Change-Id: I7c423e6468289083f7580540130ccebb13dff5fe
2024-06-21 09:43:29 +02:00
Translation updater bot
31c8b3a722
Localisation updates from https://translatewiki.net .
...
Change-Id: I7230bb88bda762241e34a33ec24ae4b0dacbf3fa
2024-06-20 09:25:17 +02:00
Translation updater bot
233845cc1c
Localisation updates from https://translatewiki.net .
...
Change-Id: Ibdbad3d5d8dadbba7207884317a0131999c8053f
2024-06-19 09:23:19 +02:00
David Lynch
955bfc4b68
findAddedContentNeedingReference was removed accidentally
...
Replace it with a hasAddedContentNeedingReference that'll need to be
kept in-sync with the internal logic in AddReferenceEditCheck while
we're tagging this.
Follow-up to d69d366469
.
Bug: T367920
Change-Id: I9f4f96bf5c6c4b7b3131b1435426b2e283c9833a
2024-06-18 16:12:30 -05:00
jenkins-bot
b97d66d149
Merge "EditCheck: Use sourceType:commonjs in ESLint"
2024-06-17 17:53:50 +00:00
jenkins-bot
66694cc5f8
Merge "Edit check API"
2024-06-17 15:16:00 +00:00
Translation updater bot
a054bf8fff
Localisation updates from https://translatewiki.net .
...
Change-Id: I7721a4e934d953242709d3d33e10a9ec15f43624
2024-06-17 09:33:29 +02:00
jenkins-bot
dc3128fe4e
Merge "Add code to support showing multiple checks in pre-save workflow"
2024-06-16 15:30:27 +00:00