Commit graph

18879 commits

Author SHA1 Message Date
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
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
jenkins-bot 82051a35d3 Merge "DesktopArticleTarget.init: Wait for deactivating to finish before activating" 2022-04-08 08:49:55 +00:00
jenkins-bot 49b45b0e7d Merge "Store copyright message in auto-save data" 2022-04-08 08:49:32 +00:00
jenkins-bot 95d7f74ddd Merge "Add tests for the expected properties in API result and auto-save" 2022-04-08 08:49:01 +00:00
Translation updater bot d221b2dd22 Localisation updates from https://translatewiki.net.
Change-Id: Ie37a0e143826387d29bb7f61484ef0a58a099f35
2022-04-08 08:28:37 +02:00
Bartosz Dziewoński 01bfdb17d9 Update VE core submodule to master (0fde38782)
New changes:
01cf60f3e Fix position of close button on wide tablet
f859601b4 Match padding of mobile context header & footer
f8675af1b getAnnotationsFromRange: Distinguish between "no annotations" and "no content"
176c2b334 Always assert diff sidebar descriptions

Bug: T304233
Bug: T305645
Change-Id: Icb32737e9222a537ed1fa1bdbeebf8c2a5d15363
2022-04-08 01:23:14 +02:00
Bartosz Dziewoński c8b0f17ce6 Store copyright message in auto-save data
Bug: T305225
Change-Id: Ie70587393715a461509dac6192d033a05c894f96
2022-04-07 23:03:37 +00:00
Bartosz Dziewoński 37bb0075db Add tests for the expected properties in API result and auto-save
The goal is to have some tests fail if a new property is added to the
API result, but it's not stored in auto-save data.

Bug: T305225
Change-Id: I9ac328c71c616a8f33e1cfb39431cd9a665adafc
2022-04-08 01:02:53 +02:00
Bartosz Dziewoński bda0f44666 DesktopArticleTarget.init: Wait for deactivating to finish before activating
Bug: T305449
Change-Id: Ic2170450c851a10d01ef88c0b1de11d1d573acea
2022-04-07 23:26:58 +02:00
Ed Sanders 15bc24205e Update VE core submodule to master (41653c74a)
New changes:
7f80d75ce Context: Move copy/delete buttons to MobileActionsContextItem
2be9610ec Move close button from contextItem to context

Bug: T304233
Change-Id: I49ce23f31afd003cf2dd6a525aeabde6332eb9a1
2022-04-07 00:01:09 +02:00
Bartosz Dziewoński cae66eb2b3 Update VE core submodule to master (ffaefe32c)
New changes:
7646c56c9 Localisation updates from https://translatewiki.net.
26988b80a Fix for showing "invisible icon" when root node is hidden
d9bc2297c Emit ve.ce.Surface 'position' in some more places
d5dfd326e Revert "Fix for showing "invisible icon" when root node is hidden"

Bug: T303795
Bug: T305110
Change-Id: I748d8b6c4702efd44b6b3da458d5c717076eb13a
2022-04-06 22:48:35 +02:00
Translation updater bot acbd7c32ab Localisation updates from https://translatewiki.net.
Change-Id: I6d2e203569206b5b1e0c039c052f844f8eaf9e3e
2022-04-06 08:27:21 +02:00
jenkins-bot 39c350ae3e Merge "selenium: Check if editing toolbar is displayed" 2022-04-04 14:24:47 +00:00
Translation updater bot 5648463ceb Localisation updates from https://translatewiki.net.
Change-Id: I98ff381676e55788a223ff6792d2649c5f1fe45c
2022-04-04 09:35:24 +02:00
gerritbot 41fa36d7a9 Fix usage of ApiBase::PARAM_* deprecated constants
The ones that are replaced with ParamValidator

Bug: T275455
Change-Id: I9dc1a587ded43d7211b1518b0b34d8dbb29381bf
2022-04-04 01:30:46 +02:00
jenkins-bot be8625576a Merge "Remove "delete" button from link node desktop context" 2022-04-01 15:44:23 +00:00
jenkins-bot d03f54bc56 Merge "Use new config option signature when building sequences" 2022-04-01 15:44:20 +00:00
jenkins-bot 9ae30574e1 Merge "Follow-up I0eaeb987: Sync temp wikitext editor before activating target" 2022-04-01 15:44:12 +00:00
Bartosz Dziewoński 37dc95f098 Update VE core submodule to master (05fbb163c)
New changes:
35b3a2ef5 Localisation updates from https://translatewiki.net.
02adce4a5 tests: Add some tests for ve.init.Target
cbe0a1011 Always show label-only button for MergeCellsContextItem button

Bug: T304233
Change-Id: Ic7b0325e856199ceaab06a34daf51c173b13d082
2022-04-01 17:03:07 +02:00
jenkins-bot 5fef22001d Merge "Full fallback to prefixsearch when Cirrus returns nothing" 2022-04-01 13:24:51 +00:00
Translation updater bot 73d6973ff1 Localisation updates from https://translatewiki.net.
Change-Id: I3f8b375536e6a40002ad4aee91e7532ef21d459f
2022-04-01 08:27:48 +02:00
jenkins-bot 2daec32db2 Merge "Use boolean RegExp.test() instead of .match() where possible" 2022-03-31 21:20:44 +00:00
Ed Sanders 5fa2373f15 Follow-up I0eaeb987: Sync temp wikitext editor before activating target
The refactor in I0eaeb987 broke this feature by moving
the call that modifies the response object to after it
is passed to the target.

Change-Id: Id98c1ccabde478540af34ed3356f319ae336590a
2022-03-31 22:01:19 +01:00
jenkins-bot 4bd4410b7b Merge "Allow hook implementations to modify params" 2022-03-31 12:41:49 +00:00
jenkins-bot 69dd886ea8 Merge "Update VE core submodule to master (38b8213b5)" 2022-03-31 11:29:38 +00:00
Bartosz Dziewoński 130f3e80fc Update VE core submodule to master (38b8213b5)
New changes:
91a762803 ve.dm.ModelRegistry: Disallow unknown types on tag and tag+func matches
8575e8ad8 PreviewElement: Document event
d24f96874 Allow unknown types for ve.dm.AlienMetaItem
106354b38 Follow-up I534ce003d: Fix height restriction calculation of desktop context

Local changes:
* Allow unknown types for ve.dm.MWExternalLinkAnnotation, it is meant
  to match all <a> tags and handles unknown types in toDataElement()

Depends-On: I785be75f389136769084a8e14832a09e3a519fc1
Bug: T303298
Bug: T304847
Change-Id: I75d1e82a43f5f96a9093cd334c524527918efaa5
2022-03-31 13:01:51 +02:00
Translation updater bot 27a6212758 Localisation updates from https://translatewiki.net.
Change-Id: I577420888c6f5afc0398ca1cbaa8d716901fd092
2022-03-31 08:36:36 +02:00
Ed Sanders 6068cec0e8 Remove "delete" button from link node desktop context
This was added to make the context a bit more consistent
with the regular link inspector, however with I2fec865570
we making these delete buttons strictly mobile only.

Change-Id: I52936919e332aee851ccd11a862367c97eb41b39
2022-03-30 17:43:02 +01:00
Translation updater bot 98a3a7d269 Localisation updates from https://translatewiki.net.
Change-Id: Ica3606b56e3332f2e9a1e6211edd12884e4913ca
2022-03-30 08:18:50 +02:00
Kosta Harlan 9241add01e Allow hook implementations to modify params
This is needed because the $params array is then passed on to
ApiEditPage, so if the hook implementer wants to alter the data used
with the edit, it needs to be able to modify the $params.

See I494d72a42d9103c28c4d44077cfe0f1269fc7b00 for an example where
GrowthExperiments would like to modify the 'tags' parameter for an
edit.

Depends-On: Idd052281898f99e4f13f241d5633294b59b29329
Bug: T304747
Change-Id: Ia4842a1593028f5fa145de167ccf9b72efa81351
2022-03-29 11:31:30 +00:00
Thiemo Kreuz 912bc34f62 Fill template search results with prefix matches when Cirrus fails
This code is optimized for the 2 most relevant use cases:

1. When Cirrus finds 10 results, we still want to search for the top 1
prefix match. This is critical for templates like !!. This will appear
at the top. unshiftPages() makes sure the limit of 10 is enforced.

2. When Cirrus fails to find anything, we search for 10 prefix matches
and use these instead.

The code can also handle everything in between. For example, when
Cirrus finds 5 results, we search for 5 more prefix matches and add
them when Cirrus missed them. The total number in the end might be 5 to
10 depending on the number of duplicates. This is intentional. Why?
Let's say we always search for 10 prefix matches and add them to the
top when Cirrus missed them. This might remove _all_ Cirrus results.
This shouldn't happen. This extra code is only to fill in glaring gaps,
not to replace Cirrus. 5 results are fine.

Bug: T303524
Change-Id: Ib0471795124c0c7001b6901edaf8e7b380e426b1
2022-03-29 13:18:12 +02:00
Thiemo Kreuz 6bbf7d1907 Full fallback to prefixsearch when Cirrus returns nothing
There is already some kind of "fallback" to prefixsearch. We always
check if the top-1 prefixsearch result is part of the result set.
Because of this the current worst-case scenario is that only this
1 result is shown.

This patch implements a full fallback to prefixsearch. But only when
there are 0 CirrusSearch results. Further tuning might be done in
later patches.

Bug: T304925
Change-Id: I1927eedad60c9b9ac2021481a85376c08ccf6fdb
2022-03-29 13:17:05 +02:00
Translation updater bot 2f8122aec8 Localisation updates from https://translatewiki.net.
Change-Id: I254ae16364387dc9365d2d52ed57b41f0f0b0eb9
2022-03-29 08:06:22 +02:00
Bartosz Dziewoński 4868974bca Update VE core submodule to master (dbcb897f2)
New changes:
14fd3ce2d Initialize ContentBranchNode CSS classes properly
d36dd38ee Refactor renderContents
7b1cf5092 Initialize and document existing property
98fe8c06f Localisation updates from https://translatewiki.net.
61f40aa92 Localisation updates from https://translatewiki.net.
d4db5e375 Revert "Add backtick sequence for <code> formatting"
dc11132c8 Revert "Refactor renderContents"

Bug: T304804
Change-Id: I9a6050fcb23c7266e51b1e00d7e0977107d7e92e
2022-03-28 16:39:36 +02:00
Translation updater bot 83db4cc3e8 Localisation updates from https://translatewiki.net.
Change-Id: I1a16df64dc1f00c793ae9368cea1efa6f5d5daea
2022-03-28 08:22:24 +02:00
jenkins-bot 2913158b35 Merge "Remove delete button from template context" 2022-03-26 17:22:40 +00:00
Translation updater bot 09a378d515 Localisation updates from https://translatewiki.net.
Change-Id: I9ce9d4d898bf7c41e690610aab06a3d8c0d7ca83
2022-03-25 08:35:29 +01:00
Thiemo Kreuz c8af207681 Use boolean RegExp.test() instead of .match() where possible
.test() is the dedicated syntax for a boolean "does match? yes/no?"
check. .match() returns an array of matches, or null. This is just not
needed in these situations.

Change-Id: Ibb996ab843d1a6c7d7af98d6a112990665d543b2
2022-03-24 11:04:43 +01:00
Translation updater bot dbf21a69c1 Localisation updates from https://translatewiki.net.
Change-Id: Ide53e51336412411d7291e55eb2ed64e829d36e0
2022-03-24 08:35:27 +01:00
Ed Sanders be2a1ccf62 Respect useeditwarning user option when tearing down target
Also invert logic and rename variables to make tests in tryTeardown
and switchToWikitextSection identical.

Bug: T294463
Change-Id: Icb86a676c3f315e4a3d229f46eb383dcd7959973
2022-03-23 14:55:13 +00:00
Translation updater bot dac7de1355 Localisation updates from https://translatewiki.net.
Change-Id: I6b452c770a11a794cd44b15b8b9b262612c917d2
2022-03-23 08:25:51 +01:00
Thiemo Kreuz a6f784c095 Fix hiding unused template parameters sometimes not working
We ended mixing two concepts in a single method:

* We need a method that allows us to create the parameter list widget
when it's needed, even if it's empty. This is relevant when a template
is entirely empty, and the first parameter is added. This wasn't
working. Instead the parameter list was created with all parameters.

* On initialization we either want all parameters to be shown, or only
used ones. But this code is only needed once, on initialization. I
ended inlining this code in this patch.

Bug: T300640
Bug: T304046
Change-Id: I6620a870e4420dcb8fecf522b3274458eeec891d
2022-03-22 15:41:55 +01:00
Translation updater bot a824d0c5c8 Localisation updates from https://translatewiki.net.
Change-Id: Ia8f70d7d541c0776e57adadc90c46525fa315748
2022-03-22 08:30:27 +01:00