Commit graph

4790 commits

Author SHA1 Message Date
Translation updater bot 06b4fe15ed Localisation updates from https://translatewiki.net.
Change-Id: I9027b5856d1ecc522919fafa355447d4dfb8d3d4
2024-05-10 09:28:23 +02:00
jenkins-bot 82f4a50031 Merge "Temporarily skip tests incompatible with Citoid" 2024-05-07 16:57:49 +00:00
jenkins-bot 2349c3ceec Merge "Use OOUI's native "unselect all" feature" 2024-05-07 12:15:20 +00:00
Adam Wight 9699781545 Temporarily skip tests incompatible with Citoid
Cite tests are blocking Citoid patches, by failing in that
environment.

TODO: To be reverted once the incompatibility is resolved.

Bug: T364382
Change-Id: Ie8eeac79966ccb46389e4f9aaa4620e9bd75cc00
2024-05-07 13:37:25 +02:00
WMDE-Fisch 52b9521dc9 Add tracking for VE Cite re-use interaction
Includes a minor drive by cleanup for an obsolete JSDoc block.

Bug: T362347
Change-Id: Ie4a6ebc5a468c0419001b0170c9cc7e13de616ba
2024-05-07 12:47:37 +02:00
Translation updater bot e464b53470 Localisation updates from https://translatewiki.net.
Change-Id: I826992025a712a7e779f00e5d1c99bb333fa996a
2024-05-07 09:22:19 +02:00
Translation updater bot 48a4eb029e Localisation updates from https://translatewiki.net.
Change-Id: I0db6b2fce7293962a8f715ab746c3a8162a75cc1
2024-05-06 09:25:14 +02:00
Translation updater bot fd85662ab7 Localisation updates from https://translatewiki.net.
Change-Id: I80558444c309afb41efef8cbba144bbd16343a20
2024-05-03 09:28:19 +02:00
Translation updater bot 891a757336 Localisation updates from https://translatewiki.net.
Change-Id: Idc961d822a0c9400475c643c434e410e3af15f37
2024-05-01 09:21:53 +02:00
thiemowmde 790b46d41f Reduce minor code duplication in MWReferenceNode class
Parts of this was already done via I3edf0df.

Change-Id: Id71904ab9387c114b15757d35442e6e6632e87f2
2024-04-30 14:02:43 +02:00
jenkins-bot 99cb10d28f Merge "[build] Update Cypress to v13.8.1" 2024-04-30 11:35:13 +00:00
WMDE-Fisch df288d828d [build] Update Cypress to v13.8.1
Fixes issues with Chromium browsers.

Change-Id: I7e3582fcafd382ba666241deb02021ad134721e1
2024-04-30 12:54:37 +02:00
jenkins-bot 29e8ba9ea0 Merge "Further delay search index build in ReferenceSearchWidget" 2024-04-30 10:49:17 +00:00
jenkins-bot 74b42ace80 Merge "Make ReferenceSearchWidget code a bit more functional" 2024-04-30 10:49:14 +00:00
jenkins-bot 18635f501d Merge "Unify and streamline code working with mw.attrs" 2024-04-30 10:39:01 +00:00
jenkins-bot a6405f230e Merge "Add safe-guard to ReferenceSearchWidget.buildIndex" 2024-04-30 10:38:09 +00:00
jenkins-bot d777be6c29 Merge "Don't load ReferencePreviews when not enabled in the config" 2024-04-30 10:27:39 +00:00
jenkins-bot 7d3fcb651d Merge "Drop unused setters from MWReferenceModel class" 2024-04-30 09:48:23 +00:00
jenkins-bot 829d68d1ec Merge "Mark private MWReferenceModel setters as such" 2024-04-30 09:21:23 +00:00
WMDE-Fisch f0d7406811 Don't load ReferencePreviews when not enabled in the config
Includes a test and some improvements to the CiteHooks tests.

Change-Id: I0e9108d0d429ed9b7467f993441eefc2557c8e6f
2024-04-30 11:10:22 +02:00
Translation updater bot 1d20ba24f2 Localisation updates from https://translatewiki.net.
Change-Id: Ibc3fabee8b9be9335ea61cf7c03e75c4c4d32097
2024-04-29 09:22:58 +02:00
libraryupgrader 8e8dae4100 build: Updating dependencies
composer:
* php-parallel-lint/php-parallel-lint: 1.3.2 → 1.4.0

npm:
* eslint-config-wikimedia: 0.26.0 → 0.27.0

Change-Id: Icf14934fe507d9e8147657f38fc441c577d6e09b
2024-04-26 11:10:51 -07:00
jenkins-bot a004fbb2f7 Merge "Streamline ReferencePreviewsGadgetsIntegrationTest" 2024-04-26 11:01:40 +00:00
WMDE-Fisch 963933ed33 Streamline ReferencePreviewsGadgetsIntegrationTest
Change-Id: If285c1f6fd8abc95e2f3ad393b443b8e8a5f4837
2024-04-26 12:38:18 +02:00
Translation updater bot b66e355680 Localisation updates from https://translatewiki.net.
Change-Id: Ia236ba4b316761c7e7f485a7352db240571c83d5
2024-04-26 09:47:48 +02:00
WMDE-Fisch 179d402344 Add ReferencePreviews config checks to Cite extension
PHP classes and test are somewhat copies from the Popups codebase.
Some refactoring was applied. More could be done. Not to sure if
this should happen more in follow ups though.

Could also reduce the complexity of checks on the JS side. Most of
these things can only change on page load. The only dynamic part
left is the anon user setting managed by the Popups extension.

Note, that I needed to add a new PHP config for here although the
other still exists and is needed in the Popups extension. This
will change, when the user settings code also moves.

I guess it's okay for now though. Both settings default to true
and are not overridden in the config repos.

Also needed to add the Gadget extension as phan dependency.

Bug: T362771
Depends-On: Ia028c41f8aaa1c522dfc7c372e1ce51e40933a5e
Change-Id: Ie6e8bc706235724494036c7f0d873f5c996c46e6
2024-04-25 12:50:27 +02:00
thiemowmde 1391f43d03 Drop unused setters from MWReferenceModel class
These aren't used anywhere:
https://codesearch.wmcloud.org/search/?q=%5Cbset%28ExtendsRef%7CList%28Key%7CGroup%7CIndex%29%29%5Cb
These setters are reaching into internal details that currently
aren't ever modified from outside of the class, and shouldn't.
If it turns out we ever need to modify one of these we can easily
re-introduce setter functions, but probably give them more
meaningful names.

Bug: T363096
Change-Id: I2c9efc114bdc110a29b8d7fb48ea8c1814cdeb21
2024-04-24 14:17:49 +02:00
thiemowmde 14fe315c62 Mark private MWReferenceModel setters as such
This just documents the current status quo. These methods are not
used anywhere, and probably shouldn't:
https://codesearch.wmcloud.org/search/?q=%5Cbset%28ExtendsRef%7CList%28Key%7CGroup%7CIndex%29%29%5Cb
The only place these should ever be called from is from
newFromReferenceNode in the same class.

Bug: T363096
Change-Id: Ic28dbb5cbb2beb98c9fe6d283ed87d879728da0f
2024-04-24 14:16:52 +02:00
Translation updater bot 646f167a2b Localisation updates from https://translatewiki.net.
Change-Id: I26b18de92fee9da0ee746078a90468ffa3b4e0b5
2024-04-24 07:43:01 +00:00
jenkins-bot ca629c3dd1 Merge "Internal config variables renamed from Popups to Cite" 2024-04-22 16:01:31 +00:00
Adam Wight f0849b2b17 Internal config variables renamed from Popups to Cite
This updates the easy variables which are set and get within a single
module, these changes should have no effect and don't need to be
coordinated across extensions.

Bug: T362332
Change-Id: Ibbe69c321e9e2b744ec88cebbdc3476d776f5956
2024-04-22 14:31:55 +02:00
jenkins-bot 7a63c9fa95 Merge "Revert "Remove global for if previews are shown"" 2024-04-22 09:00:09 +00:00
WMDE-Fisch 4f50d3b009 Revert "Remove global for if previews are shown"
This reverts commit afdbf2d46d.

Causing some issues with the dependency. Will do this cleanup in a later step when most of the involved complexity is gone anyways.

Change-Id: I3f29d64503d5088d058bf87dd0448f5754d4c6fe
2024-04-22 08:30:55 +00:00
Translation updater bot d1e164ca8a Localisation updates from https://translatewiki.net.
Change-Id: I5bc4cea5b42fbd4be477cd2452df99593eb2dc0b
2024-04-22 09:27:49 +02:00
jenkins-bot 6ced9418ca Merge "Update ExtensionTagHandler::lintHandler implementations" 2024-04-22 04:55:02 +00:00
Arlo Breault 84a8090248 Update ExtensionTagHandler::lintHandler implementations
I50557e0 changes the ExtensionTagHandler::lintHandler interface so it
can't return a node any more but must return true instead. True
indicates linting has been handled.

Depends-On: I441699e7fe9827a5e06e4638ce88c685deb9b856
Change-Id: I8fe4edc41a840c72cb539bf6f931d45ac777f8a0
2024-04-19 19:59:03 -04:00
Translation updater bot cbfea786d8 Localisation updates from https://translatewiki.net.
Change-Id: If856eec18b5fc87044445ffb1a45edbfa58473c3
2024-04-19 09:46:00 +02:00
jenkins-bot d70af9b1ba Merge "Replcate global variable by MainConfig" 2024-04-18 13:27:06 +00:00
jenkins-bot 583eeafd37 Merge "Use ParserOutput::setUnsortedPageProperty()" 2024-04-18 12:47:56 +00:00
Fomafix f8c9e47118 Replcate global variable by MainConfig
Change-Id: I870f9cdbe150e11adba36ce5b65d247188872e46
2024-04-18 10:30:54 +00:00
jenkins-bot 97ec15d8b1 Merge "Remove global for if previews are shown" 2024-04-18 09:17:37 +00:00
Translation updater bot 5da764af7e Localisation updates from https://translatewiki.net.
Change-Id: I7c0a46799a3a504bc30d81b0bb7e47bc6e4956a8
2024-04-18 09:20:07 +02:00
jenkins-bot 076f8da471 Merge "build: Remove suppression of PhanUndeclaredProperty for Parser property" 2024-04-17 09:10:45 +00:00
Translation updater bot 98a99171c9 Localisation updates from https://translatewiki.net.
Change-Id: I434483e134ceef88df5d6f53499ac0d60f75cfd8
2024-04-17 09:27:45 +02:00
Umherirrender e009aa5ee5 build: Remove suppression of PhanUndeclaredProperty for Parser property
Follow-Up: I701a27459704839f9f996a171b6982ed17cdd00b
Change-Id: I23c14835e5e3b60d21100e835039b8c9b39c72d3
2024-04-16 23:08:04 +02:00
mareikeheuer 30663d285b Cypress test for adding a reference in VisualEditor using templates
Verify the functionality of adding template references

- template dialog opens correctly
- allows undocumented parameter input
- verifies the presence of the added reference in saved mode

Bug: T358657
Change-Id: I5a35a5fe0c6f27f53a1d9de887bdf52b8e7f9c08
2024-04-16 16:44:22 +02:00
C. Scott Ananian 9ff28a0837 Use ParserOutput::setUnsortedPageProperty()
The ::setPageProperty() method has some tricky corner cases where the
type of the value determines whether or not the page property will be
sorted.  Since sort order for the BOOK_REF_PROPERTY is irrelevant,
use ::setUnsortedPageProperty() to communicate this clearly to the
reader.

Depends-On: Ia94c192c429d0482c58467bed787fd2e0aca052f
Followup-To: Ibfd84b52057baa8e249d321ec9df612efd6a29a6
Change-Id: I399f4895ec8720ff2927c5cd5a09c7af4664ee46
2024-04-16 09:51:43 -04:00
jenkins-bot f455659a69 Merge "Add main authors of the current non-Parsoid implementation" 2024-04-16 08:23:36 +00:00
Translation updater bot 335ab0dd9c Localisation updates from https://translatewiki.net.
Change-Id: I652aa327a5293857a588970bb0fa4da255c53cba
2024-04-16 09:27:28 +02:00
WMDE-Fisch afdbf2d46d Remove global for if previews are shown
This global was needed to communicate the actual state of the
previews from Popups to Cite. Now this setting can be retrieved
in a more direct way.

Change-Id: I592761bb0121abcf7e8ab279b7385d6920cce37e
2024-04-15 20:17:25 +02:00