Commit graph

5210 commits

Author SHA1 Message Date
Translation updater bot 37f473d68a
Localisation updates from https://translatewiki.net.
Change-Id: Ib8fbc904274ab107b1c50015ff44ab58805cce5c
2024-11-04 08:21:10 +01:00
libraryupgrader 84f8152cdb build: Updating mediawiki/mediawiki-codesniffer to 45.0.0
Change-Id: I607ffbb2bfd559375bce540c3a696556eb3921ef
2024-11-02 04:11:18 +00:00
Arlo Breault 123c6bee9d Re-enable tests after CI dance
"cite_references_link_many" message unconditionally includes an id
attribute, even if empty.

Follows-Up: Iec3c919ed1ea51acef9efabe979bd8d0feaf651a
Depends-On: I3c547f5524530e976eb7aa960751265c8383f7b4
Change-Id: I9d3f660788fab9af7bdc8c1fa093a9a7912da2ad
2024-11-01 15:35:01 -04:00
Arlo Breault 7fdeefede5 Temporarily disable some tests for CI dance
Re-enabled in I9d3f660788fab9af7bdc8c1fa093a9a7912da2ad

Needed-By: I3c547f5524530e976eb7aa960751265c8383f7b4
Change-Id: Iec3c919ed1ea51acef9efabe979bd8d0feaf651a
2024-11-01 15:34:25 -04:00
jenkins-bot b0bb7c878a Merge "[cypress] Always wait for the Citoid inspector" 2024-11-01 12:57:53 +00:00
jenkins-bot b662067c2c Merge "Also count sub-ref re-uses when getting total usages" 2024-11-01 10:12:27 +00:00
WMDE-Fisch 4a1e04e7c4 [cypress] Always wait for the Citoid inspector
The application logic is not quite ready even if the inspector is
shown. So we should always wait before clicking there.

Change-Id: If81dfb676b6a25c9eba0711e774ae45b3988bca2
2024-11-01 10:47:55 +01:00
jenkins-bot c9ab25159a Merge "[cypress] Re-enable flaky test" 2024-11-01 09:41:39 +00:00
WMDE-Fisch 76aa5d9cb4 Also count sub-ref re-uses when getting total usages
Bug: T373023
Change-Id: I12a37be8a1e26d25b152eb929f41188675e35038
2024-11-01 10:38:46 +01:00
Translation updater bot 1f8dc1d414
Localisation updates from https://translatewiki.net.
Change-Id: Iac0e9ef78da53c538372252d60dfbc8a9a994234
2024-11-01 08:35:12 +01:00
Adam Wight e4e6b59306 No-op wiring to get ref "extends" into Parsoid
This doesn't change behavior yet, it's pure wiring to make the
attribute available to Parsoid logic.

Bug: T378567
Change-Id: I6182b601f6fee66a9c32d5006d0a36150eb47e7f
2024-10-31 13:20:02 +01:00
Adam Wight 373ed01123 Parsoid wiring for footnote mark formatting
After this patch, Parsoid-rendered pages will include the same
footnote markers as the legacy parser for custom group markers.

The divergent CSS implementation is left intact, for a soft migration.

Bug: T377454
Change-Id: I576dfff4155fb8c2f91ef0d28a65b319aa5bbb07
2024-10-31 11:16:49 +00:00
Adam Wight 1af67c0416 Prematurely move References test to integration
This isn't needed until patch I576dfff415, but is split into a
predecessor to keep the test and logic changes obviously separate.

Bug: T377454
Change-Id: Iff4a96be77af53a71a1ebe179f31bcc214182bfe
2024-10-31 11:16:33 +00:00
Adam Wight 60fbb32c1a Split apart mark formatting into a simpler labeler
The new mark label renderer is a service and can be called from
Parsoid.

Bug: T377454
Change-Id: I6f4983c4288bf29954ad4e5fa3309f9bdf48215d
2024-10-31 11:16:13 +00:00
jenkins-bot 141b18277d Merge "Expose the footnote mark formatter label method" 2024-10-31 10:41:52 +00:00
WMDE-Fisch 442394cec9 [cypress] Re-enable flaky test
Issues should be solved.

Bug: T377666
Change-Id: If43635a7ff035c95394503e7a2da3d9d53aee2cd
2024-10-31 11:16:41 +01:00
WMDE-Fisch 58d1880ae8 [cypress] Streamline the WT2017 tests
Using a bit more methods from the utils to reduce duplication.

Bug: T373787
Change-Id: Iead8ac8ba18370414dda16270c9b26f9c15db743
2024-10-31 07:49:29 +00:00
WMDE-Fisch d341b3f4fc [build] Update Cypress library to 13.15.1
Change-Id: I6271660b62b536b6db8da4d8aa2b704020bef403
2024-10-31 07:49:19 +00:00
WMDE-Fisch 5f6403b7bc [cypress] Focus the surface at least once before testing WT2017
Intended as workaround to make sure that the temp account notice is
closed before opening Citoid. But does not hurt in any case I guess.

Bug: T378537
Bug: T378417
Bug: T377666
Change-Id: I4c3bf156cbb7306eda924bcebc2fbed3b5864f8a
2024-10-31 07:49:09 +00:00
Translation updater bot 866ae77e0a
Localisation updates from https://translatewiki.net.
Change-Id: Ieb3996c60ec112d0c86000ebffff02d75332dce8
2024-10-31 08:15:30 +01:00
Kosta Harlan 5600b1fc47
wt2017Integration.cy.js: Disable flaky test
Bug: T377666
Change-Id: I34de82574e172359a334e8e8c4ef7382a92e5509
2024-10-30 20:05:39 +01:00
Adam Wight 87d1229bf2 Expose the footnote mark formatter label method
Behavior change: previously, an error would be rendered once the
custom markers run out. After this patch there is a graceful fallback
to default group rendering (eg. "lower-greek 1000").
This is a slight improvement, but is user-facing so should be
discussed before merging.

In future work we'll render custom marks programmatically so this edge
case would be unreachable, and since the error message only exists to
nudge editors to extend the custom group symbol sequence, this would
also become wasted effort.

This patch splits out a lower-level method which produces the bare
mark label, with no link or wikitext formatting.  The patch narrows
and simplifies the interface so that the method can be made available
to Parsoid, and will be converted to a service in a separate patch.

Bug: T377454
Change-Id: I719b60b46cdef0be7463d76e9125d75ab4f333ae
2024-10-30 12:14:10 +01:00
Translation updater bot 3dfbcacddd
Localisation updates from https://translatewiki.net.
Change-Id: I79c061619321bf276654d9e1da0dc73df91b3b24
2024-10-30 08:22:38 +01:00
jenkins-bot 685fdefd4e Merge "Fix regression to auto-save" 2024-10-29 13:09:52 +00:00
Umherirrender ebd526f2af Split isset() check for array and property
Check the array part first and afterwards the property for null,
which does not need the isset() error suppression.

Found by a new phan plugin (2efea9f989)
This bypass a false positive from phan (T378284)

Change-Id: I08651c4b2cd03ecfb38d28ca1cbff599d922208a
2024-10-28 19:31:58 +01:00
Translation updater bot 873bee7e20
Localisation updates from https://translatewiki.net.
Change-Id: Ie925cde5ccb6136a239e3d3c1f302ecd929c09b0
2024-10-28 08:21:44 +01:00
Umherirrender 875b747d3c Replace isset() with null check
isset() should only be used to suppress errors, not for null check.
When the variable is always defined, there is no need to use isset.
Found by a new phan plugin (2efea9f989)
https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#isset

Change-Id: I2eee98fdcb21192108183c431b10e0072b951f72
2024-10-27 14:36:26 +01:00
Andre Klapper 41bafe6f2c 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: I73a4ce1ecd9b4fe040e5bfd22889e783071fab0d
2024-10-26 14:56:31 +02:00
Translation updater bot 1824469ded
Localisation updates from https://translatewiki.net.
Change-Id: I05dbddc6369072558c2ad0d3c3108864bd951360
2024-10-25 09:46:29 +02:00
Translation updater bot 5cad96f438
Localisation updates from https://translatewiki.net.
Change-Id: I8706cb7b809a468344d303faecbf9c3a961fe180
2024-10-22 09:29:47 +02:00
Translation updater bot 62c5791d36
Localisation updates from https://translatewiki.net.
Change-Id: Ifc93ddc8fd876ea78b88fae6f04be24fd92b7a1f
2024-10-21 18:17:47 +02:00
Translation updater bot 1ae12f3f3b
Localisation updates from https://translatewiki.net.
Change-Id: I413c261c76be6180715e08b5d1ef31dcdd161748
2024-10-21 09:19:45 +02:00
Adam Wight b3e8737829 Fix regression to auto-save
Cite's MWDocumentReferences included a Document, which caused
auto-save serialization to fail silently on the cyclical reference.

This patch moves the caching to per-instance scope, which was the
better choice to begin with.  The document refs are recalculated after
each change anyway, and caching is only necessary to work around an
awkward control flow in which each ReferenceNode is responsible for
its footnote number.

Bug: T377484
Change-Id: Iebe4befd603fe07d9da2a5bb6126228ec4d5dfea
2024-10-20 11:00:03 +02:00
Umherirrender 411ee7efad Use namespaced classes
Changes to the use statements done automatically via script

Change-Id: I0768f296b528c81edd6bd9ac7d76515b15f3da6f
2024-10-19 23:25:16 +02:00
Translation updater bot 74ce9db4d4
Localisation updates from https://translatewiki.net.
Change-Id: I4c199f7a392d0468bf1b3b3c609c4290bbbc6ce3
2024-10-18 09:24:43 +02:00
Translation updater bot 29c8e1c1d3
Localisation updates from https://translatewiki.net.
Change-Id: I4c0769dabd274f264b21cdd4e7b37d2148b89dd2
2024-10-17 09:21:25 +02:00
Translation updater bot 7db9f1270f
Localisation updates from https://translatewiki.net.
Change-Id: I4fe41af433240471a3f06058f403a2e8a2e355df
2024-10-15 09:40:27 +02:00
Translation updater bot aab7c56085
Localisation updates from https://translatewiki.net.
Change-Id: Ieb84ae636dea9487030309f95d89ec1322f4843f
2024-10-14 09:28:40 +02:00
jenkins-bot 52238b95f3 Merge "Remove MWSetExtendsContentDialog" 2024-10-11 11:05:21 +00:00
Translation updater bot 35e4495733
Localisation updates from https://translatewiki.net.
Change-Id: I3a96329cc7a8be3725a54e0071bf595d6bf88d48
2024-10-11 09:24:30 +02:00
jenkins-bot 1194289ede Merge "Add ReferencePreviews EventLogging schema from Popups" 2024-10-10 21:30:49 +00:00
WMDE-Fisch 189f5ae998 Add ReferencePreviews EventLogging schema from Popups
Should have moved with the tracking implementation but also seem to
have worked this way.

Bug: T355194
Change-Id: Ie2f161a9be19734f540935c6b5c0de95002f065d
2024-10-10 22:12:57 +02:00
WMDE-Fisch b225366805 Remove MWSetExtendsContentDialog
This is not needed anymore. The additional details to a newly
created sub-reference are set using the ReferenceDialog now.

Bug: T375156
Depends-On: Iae32e95b7ede1c9c0891a910537e1e36514f5a0c
Change-Id: I941b6928cbfbc51a77c4381356f2a54ff72847eb
2024-10-10 13:41:09 +02:00
WMDE-Fisch ff1790755a Add check for placholder node in sub-ref create flow
Make it a bit more explicit when we want to remove that node and
be a bit more verbose with comments.

Bug: T375156
Change-Id: Ibb5efefa03037b99b50284071d06231e518530a6
2024-10-10 13:24:54 +02:00
Translation updater bot 863565ec3a
Localisation updates from https://translatewiki.net.
Change-Id: I7e97e05098b614eda4d81981f6cb835460fb9fe7
2024-10-10 09:21:23 +02:00
jenkins-bot 05df48daa4 Merge "Prepare the ReferenceDialog to be opend for creating a sub-ref" 2024-10-09 20:06:17 +00:00
jenkins-bot 91bf6c9efd Merge "Use the default edit dialog to create a sub-ref" 2024-10-09 20:02:08 +00:00
jenkins-bot 72dd9f74ca Merge "[refactor] Don't setup the edit panel when re-using a ref" 2024-10-09 20:00:38 +00:00
jenkins-bot 3beb678313 Merge "Separate sub-ref content from main content in ContextItem" 2024-10-09 19:29:54 +00:00
WMDE-Fisch a776b8d753 Prepare the ReferenceDialog to be opend for creating a sub-ref
The ReferenceDialog can be used to insert a new sub-ref and set
the additional details for that. Here I'm creating an entry point
for that workflow.

Bug: T375156
Change-Id: I47db21cd44d19ff209f9d5fa736bd6a057b983f2
2024-10-09 11:00:25 +02:00