Commit graph

18921 commits

Author SHA1 Message Date
Mark A. Hershberger 3022b0e4e6 Hooks::onRecentChangeSave: Don't pass null to explode(), avoiding PHP 8.1 deprecation
Change-Id: Iaf2ad6b37c86e1555aaffe6dd08d9e511b319256
2022-05-02 12:11:19 +00:00
WMDE-Fisch 1f4eec1a10 Nudge translators to make unused toggle button label short
Even though we wrap and break word, it would be better fitting with
a short message here.

Bug: T300008
Change-Id: I6ce8dc349bafec75001e3693faaac10d59637c66
2022-04-29 13:47:51 +02:00
jenkins-bot 0e77a51898 Merge "Stop hide unused label from overflowing" 2022-04-29 08:45:20 +00:00
jenkins-bot 051ed820bc Merge "Move message about missing parameters to sidebar" 2022-04-29 08:30:03 +00:00
WMDE-Fisch 4377893297 Stop hide unused label from overflowing
Will implicitly set a max width for the button due to the margin.
Long words will break in the middle of the word.

Also includes a shorter label.

Bug: T300008
Change-Id: I37505af8383d8c0c2bd4af3987ec5e2a3049688a
2022-04-29 10:26:20 +02:00
WMDE-Fisch d996288169 Move message about missing parameters to sidebar
Will be removed when parameters are added. Needs different margins
depending on beeing shown in the single transclusion mode without
header or on multiple transclusions.

Bug: T300710
Change-Id: Ieb95d7276aa4d4b0fcbb74f87ab734e4a393dc21
2022-04-29 10:03:23 +02:00
Translation updater bot 6d9c3a4b22 Localisation updates from https://translatewiki.net.
Change-Id: I2288cdad2630a187f2c773b8b7ee344efca6018b
2022-04-29 08:44:04 +02:00
jenkins-bot 6057f48f42 Merge "build: Replace 'stylelint-config-wikimedia' reference by 'support-modern'" 2022-04-28 19:41:01 +00:00
Translation updater bot ef3116a723 Localisation updates from https://translatewiki.net.
Change-Id: I72a7cb35ad8abf6b665f589936a6d63bcc7235c0
2022-04-28 09:29:12 +02:00
Adam Wight 9922e1c61e Use natural language rather than the brand name
Bug: T306283
Change-Id: I6dcf99d6997d8272ede4e07f0783efa374be59fb
2022-04-27 15:10:07 +02:00
Translation updater bot e7e35a8e38 Localisation updates from https://translatewiki.net.
Change-Id: I7f909904d39900b41f4f4a48539154d86f4dd7cd
2022-04-27 08:08:54 +02:00
Translation updater bot bb30610511 Localisation updates from https://translatewiki.net.
Change-Id: I15d053d07e7a3f5a0ef4d32a42aa52e8825dbd90
2022-04-26 08:55:03 +02:00
Translation updater bot 056d6fb259 Localisation updates from https://translatewiki.net.
Change-Id: I2280b543c6e13d0307e1f9db7f2dcbc081548d56
2022-04-25 08:19:21 +02:00
jenkins-bot 55c496b2b5 Merge "More tests for pasting external links" 2022-04-22 22:44:30 +00:00
Translation updater bot fd50480eab Localisation updates from https://translatewiki.net.
Change-Id: Ic4ee4ec60a1d399dd3f05b1605940d5e1c09bc74
2022-04-22 08:23:55 +02:00
Bartosz Dziewoński d33d88a186 More tests for pasting external links
Change-Id: I2281be66b901d0c969c75869faa4fa632d33118b
2022-04-22 04:43:51 +02:00
rvogel f69438fae6 Check for external url protocols during conversion
If links get pasted into VE and they lack a "//" in the `href`, they
are automatically considered to be "internal", thus being converted into
`[[...]]` wikitext links.

In case of pseudo protocols like `mailto:` this should not be the case.

This patch uses MediaWiki core settings to check if a `href` value is an
external protocol known to the application.

Bug: T297575
Depends-On: I2e584f6d5adc6b2d735e79cea64f2beeb5f2c36d
Change-Id: I2b383106450e02cc6bcc1b99d547ff2ed7832b4c
2022-04-22 01:36:41 +02:00
Thiemo Kreuz 8831887e3c Update template search fallback to max out at 10
Before, the fallback algorithm was somewhat adaptive, trying harder and
harder the fewer CirrusSearch results have been found. This updated
algorithm guarantees that 10 results are shown.

Warning: You might see only 9 results. The reason is a bogus, unrelated
behavior in the mw.widgets.TitleWidget in core that's used as a base
class here. There is a "showMissing" option that's apparently enabled
by default, and prepends a non-existing title from the main namespace,
ignoring the "namespace" option. This extra result from the wrong
namespace is later dropped by the very same widget.

This code here sees 10 results before the bogus one is dropped.
Disabling "showMissing" causes other issues. We would need a series (?)
of custom hacks to work around all this, but this seems inappropriate.
Let's live with 9 for the moment.

Bug: T303524
Change-Id: I2c577c9ef2752b6c6cd360f4023e151e9272fcd5
2022-04-21 09:25:00 +00:00
Thiemo Kreuz 50497ee7f3 Drop assumption that all template search index start at 1
The main advantage of this change is that it drops the assumption
that the index starts with 1. This is not necessarily the case when
we prepend extra search results. Dropping this assumption here allows
to simplify such code.

* The incoming list of pages is guaranteed to be an array.
* There is no point (any more) that could cause the array to become
  sparse.
* Note we still make a copy of the `origPages` array at some point,
  e.g. on `.filter()`.

Bug: T303524
Change-Id: Ifbd92bb052155c613d2ca21ab6d54a0b3ef28c0c
2022-04-21 11:23:48 +02:00
Bartosz Dziewoński 46d9ebe521 Update VE core submodule to master (6609cde00)
New changes:
249c1f3e6 Allow testing import rules in ve.ce.Surface paste tests

Bug: T297575
Change-Id: Ib41fd70066f2052d9e493985a6d1dbf6f1e089a0
2022-04-21 02:10:15 +02:00
Volker E b8df5d8f01 build: Replace 'stylelint-config-wikimedia' reference by 'support-modern'
Grades (here 'grade-a') were deprecated in a previous version of
'stylelint-config-wikimedia'.

Change-Id: I98caba0a1f80ec342403405ba9e22d6fe657deef
2022-04-21 00:00:49 +00:00
jenkins-bot 20e26000e2 Merge "Update VE core submodule to master (86de64d69)" 2022-04-20 23:58:32 +00:00
Ed Sanders 184106418e Update VE core submodule to master (86de64d69)
New changes:
72bd71dbc Localisation updates from https://translatewiki.net.
b7f38d993 Re-apply "Fix for showing "invisible icon" when root node is hidden""

Local changes:
* Ensure templates are attached to DOM before rendering invisible
  icon in converter hack.

Bug: T305110
Change-Id: I0e4c02619b2a06b9932f214ae482093fdb0cb22c
2022-04-20 23:45:31 +01:00
Thiemo Kreuz 89e5c2fb92 Disable useless "showMissing" option in TemplateTitleInputWidget
This option is not only buggy (it just doesn't work when the namespace
option is set the same time), it is not useful in this context even
if it would work. It doesn't make much sense to suggest non-existing
templates in the context of the template dialog. If adding a
non-existing template really is what the user wants, they can still do
this by simply typing the name of the template and submitting the form.
We never need this to show up in the suggester below the input field.

The main advantage of this change is that is saves 1 useless API
request that's potentially done every time a key is pressed.

Bug: T303524
Change-Id: I903340a06d6e6490bb58f628f41903aa044ccb21
2022-04-20 14:43:29 +00:00
jenkins-bot 9c110d63ac Merge "Move "index from redirect" logic up in template search widget" 2022-04-20 14:40:18 +00:00
jenkins-bot a3e2713208 Merge "Fix misleading variable name in TemplateTitleInputWidget" 2022-04-20 14:24:30 +00:00
jenkins-bot 4efede7e33 Merge "Fix API response default in TemplateTitleInputWidget" 2022-04-20 14:23:56 +00:00
Thiemo Kreuz d3d3e1cf75 Move "index from redirect" logic up in template search widget
This separates the two steps:
1. See if items in the list of `origPages` miss their `.index`
   property, and add it if possible.
2. Later code doesn't need to care about redirects any more.

Note that `origPages` is not used for anything else. And even if,
it's not wrong to have the index for each search result on both the
redirect and the redirect target.

Change-Id: I12135f0430c944b4e33c49ece7779d7c3bb6c211
2022-04-20 14:50:36 +02:00
jenkins-bot 63da7799d5 Merge "ApiVisualEditor: Fix 'stash' param validation (it's a boolean)" 2022-04-20 07:51:51 +00:00
Translation updater bot 918c3e8a5c Localisation updates from https://translatewiki.net.
Change-Id: Ic9b84c7023a9c345b116a813018c3de965d77497
2022-04-20 08:19:25 +02:00
Bartosz Dziewoński a420141b2a ApiVisualEditor: Fix 'stash' param validation (it's a boolean)
Bug: T306190
Change-Id: I49a479f79d220c7436364f7543bae9e091fff6a2
2022-04-19 21:53:03 +02:00
Thiemo Kreuz e24c8ecd2d Fix misleading variable name in TemplateTitleInputWidget
This is not a pageid, but a simple numeric index in an array. Luckily
it doesn't make a practical difference for this particluar way of
iterating something.

Change-Id: I7ec9ace00d4fba7adde17670058a0365b30f5617
2022-04-19 14:40:00 +00:00
Thiemo Kreuz 9390b5bc91 Replace non-breaking spaces in AUTHORS.txt
Change-Id: Ic9ce79e5386a0fd4b8339f37d186b264bd704537
2022-04-19 16:09:48 +02:00
Thiemo Kreuz af2779fc06 Fix API response default in TemplateTitleInputWidget
The result is guaranteed to be in formatversion=2, where the list of
pages is an array, not an object.

Change-Id: Ic73a68c3e249a70108a6a19a89f4ff6c475794ed
2022-04-19 13:35:27 +02:00
Translation updater bot 9997ef2fa5 Localisation updates from https://translatewiki.net.
Change-Id: I7402bae95208f8b83a02335f93af84047cb257be
2022-04-19 10:16:16 +02:00
jenkins-bot f07536bfef Merge "eslint: Lint all files except those in .eslintignore" 2022-04-18 15:43:32 +00:00
Translation updater bot 2ddbb6b708 Localisation updates from https://translatewiki.net.
Change-Id: I792241e3d2b2b9f12faa059b020e99ba13f215fa
2022-04-18 10:07:08 +02:00
Translation updater bot 7de5638756 Localisation updates from https://translatewiki.net.
Change-Id: I7fa608ba7f65247d18d6090b968e983e681e42b1
2022-04-15 09:57:10 +02:00
jenkins-bot 933c65a3a9 Merge "i18n: Remove unused "VisualEditor" tab messages" 2022-04-14 22:35:31 +00:00
Umherirrender 47d1d4b385 Remove usage of protection related deprecated Title function
Bug: T306131
Change-Id: Id551a318a9bb1047e449e0ad284b8f73c8886aad
2022-04-14 22:06:02 +02:00
Translation updater bot 3fa5423da0 Localisation updates from https://translatewiki.net.
Change-Id: I76e4ce6b17980b1b36473ac91902794486ff6e55
2022-04-14 08:27:34 +02:00
Bartosz Dziewoński 0173862ba6 Update VE core submodule to master (038522816)
New changes:
038522816 Set dir/lang props on placeholder element

Bug: T306040
Change-Id: I53c6f8efae8642b2100cb8b77ba8f9c027fdb826
2022-04-14 00:02:08 +02:00
Ed Sanders c9046685fa eslint: Lint all files except those in .eslintignore
Fix resulting errors (mostly useless escape in i18n files).

Change-Id: Id29c6aecece75d4a462bddb7e547ca5b4eb5c2db
2022-04-13 15:44:49 +01:00
Ed Sanders 699899c8c4 i18n: Remove unused "VisualEditor" tab messages
Hasn't been used in years, and we no longer use the CamelCase product name.

Change-Id: I8bda918a9db3ac7bf683dc6115af7a89d04ab9b7
2022-04-13 15:43:43 +01:00
Translation updater bot 87c2ee3c79 Localisation updates from https://translatewiki.net.
Change-Id: I43f5f3e5152560d1072420d22dc603c47f373aa9
2022-04-13 08:33:05 +02:00
Translation updater bot 2de1192c6f Localisation updates from https://translatewiki.net.
Change-Id: Ic4a290b062d29caa4bdbdd70b43a1d4ad0a2f59f
2022-04-12 08:15:08 +02:00
Bartosz Dziewoński c1dcdeb43d Update VE core submodule to master (a0bf00838)
New changes:
297255a28 Localisation updates from https://translatewiki.net.
55f32beb8 Follow-up I26486e0e79: Fix when first range returns null annotation set
94ed5bb4e Don't attempt to scroll tall selections into view

Bug: T305645
Bug: T305862
Change-Id: I73dcad06e3a3b384225c16ba1b929cbe9cdaccae
2022-04-11 21:20:28 +02:00
Translation updater bot 913092d03c Localisation updates from https://translatewiki.net.
Change-Id: I9cf2c463fa3d4ead6faacbcca674ec121ce50a78
2022-04-11 08:14:52 +02:00
jenkins-bot d1e777afcd Merge "Simplify ve-mw/init/styles LESS files" 2022-04-08 22:37:10 +00:00
jenkins-bot 616fa37de4 Merge "Fill template search results with prefix matches when Cirrus fails" 2022-04-08 11:57:23 +00:00