Commit graph

5281 commits

Author SHA1 Message Date
Translation updater bot fffd9e5dcf
Localisation updates from https://translatewiki.net.
Change-Id: I9415534562b7bc8a8dab11d9a2bf4e01c8eb51d5
2025-01-03 08:30:54 +01:00
Translation updater bot 31ab6650ff
Localisation updates from https://translatewiki.net.
Change-Id: I279c088d8025ec69979b90813ce8ec8a3d070d61
2024-12-30 08:22:18 +01:00
Translation updater bot 1eb7ec6d3e
Localisation updates from https://translatewiki.net.
Change-Id: I2ebf7cf4b9c2afaf1af13a0a4038cb1019b784cc
2024-12-25 08:24:10 +01:00
Translation updater bot 79bd554cd4
Localisation updates from https://translatewiki.net.
Change-Id: I3a1115d9dfe3e5d774ff6417e81b232b64ee378f
2024-12-23 08:24:05 +01:00
jenkins-bot 618db294d0 Merge "[Cypress] Remove replaced backlinks tests" 2024-12-20 12:53:45 +00:00
jenkins-bot 010e731ce1 Merge "[qunit] Convert backlinks e2e tests to qunit" 2024-12-20 12:53:44 +00:00
jenkins-bot 20ede4b0f4 Merge "[qunit] Use strict and wrap test scope" 2024-12-20 11:23:17 +00:00
jenkins-bot 3b83aea30d Merge "[qunit] Use more stubs for test setup" 2024-12-20 11:23:16 +00:00
WMDE-Fisch 2968185bf0 [Cypress] Remove replaced backlinks tests
See QUnit replacement in Ic6aa2c657f047b417e5ae8a3a7049f87568b7963

Bug: T368267
Bug: T381468
Change-Id: I610c1edd137cc4ea7454dd80170869c675f606a0
2024-12-19 18:55:27 +01:00
mareikeheuer f025dfdc90 [qunit] Convert backlinks e2e tests to qunit
Convert e2e test to qunit and delete backlinks tests.

Bug: T381468
Change-Id: Ic6aa2c657f047b417e5ae8a3a7049f87568b7963
2024-12-19 18:38:23 +01:00
WMDE-Fisch 8f0ae21eca [qunit] Use strict and wrap test scope
Wrapping the test mainly to avoid that declared vars or functions
bleed into other tests.

Includes lint auto-fixes

Change-Id: Ia4577f7496ddecf4985525de674ade46f53e03a6
2024-12-19 18:30:11 +01:00
WMDE-Fisch 589e77cbfc [qunit] Use more stubs for test setup
Change-Id: I73883397f107aca92b8e1808ec1d8dacd391971f
2024-12-19 18:26:11 +01:00
Translation updater bot 028cc62a9f
Localisation updates from https://translatewiki.net.
Change-Id: I5ae275567ae5dd16daf61e210fa2eba929e87d7d
2024-12-19 08:21:38 +01:00
jenkins-bot 175ad76a08 Merge "[refactor] Merge some ReferencePreviews code" 2024-12-18 10:19:10 +00:00
Translation updater bot c1627d1c82
Localisation updates from https://translatewiki.net.
Change-Id: I8c5237caee6d13c5bd4426f5d09dc01129642d65
2024-12-18 08:21:40 +01:00
jenkins-bot 7d05624a4d Merge "[refactor] Parsoid: Extract methods when composing a reference" 2024-12-17 09:30:36 +00:00
Translation updater bot 0130bd04e2
Localisation updates from https://translatewiki.net.
Change-Id: Ia2aa9d345f0419668fac26ae7d0312a1f03aaf81
2024-12-17 08:16:59 +01:00
WMDE-Fisch bb6ad5721b [refactor] Parsoid: Extract methods when composing a reference
Just starting point to give that massive method a bit more
structure.

Bug: T382232
Change-Id: I050cc32220b0f0faac2470afa757c23ee06b1b62
2024-12-16 15:26:16 +00:00
WMDE-Fisch ad56220cc4 Rename remaining Reference Previews i18n keys
This is just a minor optimization. The keys should now all follow
the schema for Reference Previews in this extension.

I'm not touching the `popups-prefs-conflicting-gadgets-info` key.
That one was not copied over to this codebase and IMO we could
really remove it for the reasons in that comment.

Bug: T355194
Change-Id: I1948cf0aaca4d0ab3676bac806c7287568db8712
2024-12-16 15:06:38 +00:00
WMDE-Fisch 036cb99775 [refactor] Merge some ReferencePreviews code
It's not making much sense to have the things merged in seprate
files IMO. I'll try to merge what's needed for the init to see
what could be delayed and lazy loaded.

Bug: T361670
Change-Id: Ia0bc9b68bbd9cfeed385520a868fe8726f7aa872
2024-12-16 14:49:38 +01:00
WMDE-Fisch b43b3546e8 [refactor] Parsoid: Rename and reorder some code for readability
Just some random variables I renamed. Mostly writing out what's
shortened. In some minor cases moving declarations a bit so they
are closer to the usage.

More stuff to follow.

Bug: T382232
Change-Id: I2b372f65e548074366652caf477b897fea2eeb0a
2024-12-16 10:54:33 +00:00
Translation updater bot c2dc9ca49d
Localisation updates from https://translatewiki.net.
Change-Id: Ia004c79551a54b979c8f05a69bb37ebe6b753f8d
2024-12-16 08:22:04 +01:00
Translation updater bot 6b90628cc6
Localisation updates from https://translatewiki.net.
Change-Id: I79df145ce60856aafef063a55e5a73030d59c353
2024-12-13 08:34:47 +01:00
Translation updater bot 482573cd41
Localisation updates from https://translatewiki.net.
Change-Id: I78f195ec6af10bd762086bcc9416b39d213d3ba6
2024-12-12 08:16:21 +01:00
Translation updater bot 13fe26aa83
Localisation updates from https://translatewiki.net.
Change-Id: I189f33b2fa76b1588e5a8a3e2da6f9509f2ef258
2024-12-11 08:24:28 +01:00
libraryupgrader ab316aca4a build: Updating nanoid to 3.3.8
* https://github.com/advisories/GHSA-mwcw-c2x4-8c55

Change-Id: I12e87d256b7df0f4917688fa8e1464c1ca5c0e7c
2024-12-11 03:14:51 +00:00
Ed Sanders 0aa60c4853 DiffElement: Fix failing test
Wrapper paragraph was fixed by I12117d8843.

Change-Id: I19fe05dc66ad821d8633a85bae088092bd07676c
2024-12-09 18:16:25 +00:00
Translation updater bot 99bd18159b
Localisation updates from https://translatewiki.net.
Change-Id: I027ae92e536e877b3795a43d8873a27773821147
2024-12-09 08:21:24 +01:00
Translation updater bot f1eae90e54
Localisation updates from https://translatewiki.net.
Change-Id: I8f633af030143c219e52d1a2093d9bf73ee7e826
2024-12-06 08:16:44 +01:00
Translation updater bot 75bff999a3
Localisation updates from https://translatewiki.net.
Change-Id: Iad82780f4e95da5a36b541f5052afb9a77d8d0c6
2024-12-05 08:20:23 +01:00
mareikeheuer 8da1ac8bcd Disable Cypress backlinks tests temporarily for Qunit conversion
Once the Qunit tests are done, the file can be deleted

Bug: T368267
Change-Id: I564f7a9cfa606d5ab4759682ec6084f9c59a7923
2024-12-03 11:28:24 +01:00
Translation updater bot f3b5bb9c5d
Localisation updates from https://translatewiki.net.
Change-Id: Icdbb78450b6d6d1acf7944f42abc7e63f3d18bcf
2024-12-02 08:21:34 +01:00
libraryupgrader e6040dd079 build: Updating jsdoc to 4.0.4
Change-Id: I04c0f6f0d2319182fab8b18e5ead9ff09851f5ff
2024-12-02 00:47:51 +00:00
jenkins-bot ca4746ae74 Merge "Revert "Normalize ref html before comparison"" 2024-11-27 17:28:12 +00:00
C. Scott Ananian 4ecb325052 Revert "Normalize ref html before comparison"
This reverts commit 91316d49c2.

Reason for revert: Caused T380977 when Remex was given math
content to normalize.

Change-Id: I6d7585a990322b5c8e2a6886b9cd05a556c501ad
2024-11-27 17:04:56 +00:00
Translation updater bot 8480d12c6e
Localisation updates from https://translatewiki.net.
Change-Id: If4e19031e0d3af9c3317cba6300005ee935e758d
2024-11-27 08:20:00 +01:00
Translation updater bot 40b7673dea
Localisation updates from https://translatewiki.net.
Change-Id: I13eb383c5f97dfde60054ef67b6b27e167990b11
2024-11-26 08:16:21 +01:00
Arlo Breault 63f8631298 Remove no longer relevant comment
In I3b82aea975ed84c7410e57e19e83c508554e1b05, it was determined that
this edge case is not going to be supported.

Change-Id: Ia2ea80fc55af9f1e7e9a475afd730315ae6715cd
2024-11-25 15:39:49 -05:00
jenkins-bot e23ae99870 Merge "Normalize ref html before comparison" 2024-11-25 18:13:45 +00:00
Translation updater bot f5f7d52984
Localisation updates from https://translatewiki.net.
Change-Id: I4f38ae86d2ce37e6d1ea0432ceed4f3c1b8c6070
2024-11-25 08:22:47 +01:00
Translation updater bot 848571d1f8
Localisation updates from https://translatewiki.net.
Change-Id: I366105614097cda52d73c9ee592ef2b63ec84e12
2024-11-22 08:41:03 +01:00
Isabelle Hurbain-Palatin 5c48186329 Replace uses of deprecated ParserOutput::getText()
Bug: T293512
Change-Id: I32ffc6c0e36095fccddde0af988fc692ae530f01
2024-11-21 18:49:12 +01:00
Translation updater bot 1ec44a7b60
Localisation updates from https://translatewiki.net.
Change-Id: I69382c2d191ee8a8c3451f8131531289ca124147
2024-11-20 08:25:13 +01:00
Isabelle Hurbain-Palatin 91316d49c2 Normalize ref html before comparison
If the ref generated HTML contains attributes such as data-parsoid or
about, the string comparison fails, and two references that have the
same content end up being seen as different.
This patch filters out data-parsoid and about attributes from the
generated HTML.

Bug: T380152
Change-Id: I4c201c469d21ff9cb54f746386ce53b8d636361d
2024-11-19 14:01:00 +01:00
Translation updater bot bb75737fad
Localisation updates from https://translatewiki.net.
Change-Id: If29ab3ca62f62ec96c72996e884898933058039b
2024-11-19 08:17:29 +01:00
libraryupgrader 894e560ffe build: Updating cross-spawn to 7.0.6
* https://github.com/advisories/GHSA-3xgq-45jj-v275

Change-Id: I214dce473492642e69a7a9e8495456b2e737c304
2024-11-19 05:39:31 +00:00
Isabelle Hurbain-Palatin d3f85b16c5 Only display the first occurrence of an error
It can happen that an error is reported multiple times for a given
reference. In this case, we only display one.
We still display different errors if a reference contains multiple
different errors. This behaviour is differs from the legacy parser's
(so, in this case, we add the category
cite-tracking-category-cite-diffing-error), but not from the legacy
parser's desired behaviour, as hinted by the various comments and TODO
in this area.

Bug: T380153
Change-Id: I9b3d5cbd086fc72c66a2afbae8f92297681989ce
2024-11-18 13:54:56 +01:00
Translation updater bot 87ae1a1de0
Localisation updates from https://translatewiki.net.
Change-Id: I99800d338449c1dece3915f0fa0467404f05ea70
2024-11-18 08:23:16 +01:00
jenkins-bot aea41f900f Merge "backlinks.cy.js: Disable flaky test" 2024-11-15 21:20:04 +00:00
jenkins-bot 2446419b9d Merge "Re-enable duplicated fragment parsoid tests after parsoid release" 2024-11-15 19:57:33 +00:00