Commit graph

1027 commits

Author SHA1 Message Date
Translation updater bot 72b94c9244 Localisation updates from https://translatewiki.net.
Change-Id: Ib0b74672ee6d359f11401d18e56387c7e1b45221
2023-06-26 12:38:21 +02:00
Translation updater bot 88e504647d Localisation updates from https://translatewiki.net.
Change-Id: I9030217a54e9bd7bc79a204f8281377ed73b7c69
2023-06-19 11:06:28 +02:00
Translation updater bot 6e1b2c8be8 Localisation updates from https://translatewiki.net.
Change-Id: Id77ec86541c52e8883a22a6aa585c5b0da61ef50
2023-06-14 13:06:17 +02:00
jenkins-bot 9bd0f969bb Merge "Display text of parent reference in VE popup" 2023-06-14 10:12:53 +00:00
jenkins-bot 87a1466782 Merge "Add extends warning to reference dialog" 2023-06-13 12:57:45 +00:00
Svantje Lilienthal eac4213cc9 Display text of parent reference in VE popup
This is a first demo that it is possible to get the text of the parent.
This is hidden behind a feature flag.
Next: see if the parent ref can be added to the rendering

Bug: T247922
Change-Id: Idd409f25b253a19c20ed8623737ecc49315587dc
2023-06-12 16:32:40 +00:00
Svantje Lilienthal da30b2b626 Add extends warning to reference dialog
To warn users when they are editing a sub-reference we
add a warning containing the text of the parent reference.
This is hidden behind a feature flag.

Bug: T247922
Change-Id: I3749683d8a18e502bf16e5bd5f2fe385581625be
2023-06-12 16:24:58 +00:00
Translation updater bot 1abb521be7 Localisation updates from https://translatewiki.net.
Change-Id: I885384031bcece55da8c85597e01214817baee09
2023-06-12 13:07:02 +02:00
Translation updater bot 994df7c0bf Localisation updates from https://translatewiki.net.
Change-Id: I5a83796515935ff06b282c15b0a742aac343fc1e
2023-06-09 09:13:04 +02:00
jenkins-bot 36f8dc85ae Merge "Fix inconsistent usage of lastIndexOf in VE reference code" 2023-06-06 21:27:19 +00:00
Svantje Lilienthal 3d4f0a933e Use message widget for reuse warning in reference dialog
* Use OOUI message widget to make code cleaner
* By default message is toggled off and only displayed when needed
* To prevent visible changes the message widget is slightly adapted:
 * Use black alert icon to prevent yellow default icon for warning messages
 * Remove bold text (in css)
 * Some padding to top and bottom
* Changes can easily be removed if message should be closer to the standard

Bug: T247922
Change-Id: I2296cd497c935ea4638650bdb4b3c833a71a6c6a
2023-06-06 15:07:51 +02:00
thiemowmde 341847a410 Fix inconsistent usage of lastIndexOf in VE reference code
I assume the code was using lastIndexOf as some kind of performance
optimization. Certain StackOverflow threads suggest it without going
into detail. It's not correct here. You can actually name a group
"mwReference/", which will result in the (valid) internal name
"mwReference/mwReference/". This works as expected with indexOf but
not with lastIndexOf.

Change-Id: I8e85ae5c11a74016c7720fcdb6ac6478431aaa8e
2023-06-06 13:37:25 +02:00
jenkins-bot eaa2228afa Merge "Tests: Convert more to template literals" 2023-06-05 22:26:41 +00:00
Translation updater bot f823468e1c Localisation updates from https://translatewiki.net.
Change-Id: I892f830cc96cd8b9a2b28d6b9fb97fbf1c8220dd
2023-06-05 08:40:27 +02:00
Translation updater bot 61ae890e2a Localisation updates from https://translatewiki.net.
Change-Id: I036398ae88af1bd3cf57a94ee1d78472b62d8fc1
2023-06-02 09:23:25 +02:00
Ed Sanders b7024b6668 Tests: Convert more to template literals
Change-Id: I68da55d32ee9ac6c09439c04a7d7ed71c5bafd29
2023-06-01 15:51:43 +01:00
Translation updater bot a54a251e1e Localisation updates from https://translatewiki.net.
Change-Id: I333c57a82638de816a39946de8b8b49e5f143041
2023-06-01 08:42:56 +02:00
jenkins-bot c9fb272bdf Merge "Converter tests: Use template literals to make HTML more legible" 2023-05-31 23:50:12 +00:00
Ed Sanders 18b0b91f50 Converter tests: Use template literals to make HTML more legible
Depends-On: Iee8184dd6524b6dc12d19ac79761f6bd15990297
Change-Id: Ie5fd3f180dd2f7882ec10477117f4b0cdee374ad
2023-05-31 17:28:30 +01:00
jenkins-bot 04fd532292 Merge "Add a test for "extends" round-tripping" 2023-05-31 08:33:23 +00:00
Adam Wight 00eede66f0 Add a test for "extends" round-tripping
Bug: T247922
Change-Id: Iaf8417814aa264fbeca0ad139c1a5f073ea10e8b
2023-05-31 08:15:17 +00:00
Translation updater bot 4dffe6d8e3 Localisation updates from https://translatewiki.net.
Change-Id: I268098cba51f1cfbb580e9e5ff970ef06c9e69a6
2023-05-31 08:19:55 +02:00
jenkins-bot fc1e14cae7 Merge "Adding extendsRef to reference model" 2023-05-30 10:20:55 +00:00
Svantje Lilienthal 227b50d964 Adding extendsRef to reference model
* reads the new attribute extends from wikitext
* saves it into the reference model
* adds a message to the VE popup of an extension as a first demo
* tests will be added in a separate patch

Bug: T247922
Change-Id: If4d309c4678022642f39e21565950dc45e557d47
2023-05-30 11:56:47 +02:00
Translation updater bot 4070b9b54f Localisation updates from https://translatewiki.net.
Change-Id: If4234742ebf1ffd76c97ac3a51d4b5ff184af66c
2023-05-29 09:58:47 +02:00
jenkins-bot 1d4997560f Merge "Register a HelpCompletionAction group alias for cite" 2023-05-24 17:51:48 +00:00
Ed Sanders dca26d905d Disable mw-body-content clearfix in reflist
Bug: T337415
Change-Id: Ic94414a4b0e483b6f8945525d07ae7cbcb42045c
2023-05-24 17:22:28 +01:00
David Lynch 03bac936be Register a HelpCompletionAction group alias for cite
Bug: T66905
Depends-On: I7bc614c81ae3fc1e16d8fffd9f733186bdc9c472
Change-Id: I4a0242386bb595e04a9d72a8efcff9e8949260d4
2023-05-24 15:42:36 +00:00
jenkins-bot dc243e48aa Merge "Streamline/minimize duplicate code in reference node classes" 2023-05-23 14:09:22 +00:00
thiemowmde edcb4ddd0b Streamline/minimize duplicate code in reference node classes
E.g. reducing indention and utilizing convenient jQuery features.

Change-Id: I08fe9d4a09630042b28fc5e35cab4460be44a0d9
2023-05-23 10:54:56 +00:00
Ed Sanders d107f3d5a8 Fix ref list click-to-edit on mobile
On mobile, the first action is always 'mobileActions', so
ignore it.

Bug: T54750
Change-Id: I06e3f6225bf7a185680d89dee5b204a19a7a4fd7
2023-05-22 18:22:05 +01:00
Translation updater bot b8af25b157 Localisation updates from https://translatewiki.net.
Change-Id: I46e1d6e57aafc5081a838bbc4bc10261e922f2c7
2023-05-22 08:45:03 +02:00
jenkins-bot c9abd842a5 Merge "Add missing space to reference list rendering" 2023-05-20 10:29:49 +00:00
Ed Sanders 744cbdb56b Launch reference editors from ve.ce.MWReferencesListNode
Bug: T54750
Depends-On: I502358a3229fbda44950f7f7513548d49d25e0c9
Change-Id: Idea26ffbc5ee859f6ad9456029af4180226c1a07
2023-05-17 16:05:02 +00:00
jenkins-bot 2ab7c55748 Merge "Render reference list on first load in idle callback" 2023-05-17 14:01:02 +00:00
Ed Sanders 8587e445a1 Render reference list on first load in idle callback
This means the reference list is always in sync with the model's
understanding of which references are available to edit.

An exception is left in if there are no references in the model
at all, as will be the case on he.wiki, as all references are
template generated. In this case we continue to use the Parsoid
DOM, so that there is a static rendering of the reference list.

Bug: T336865
Change-Id: Iaf1089c9de532e7749c9cb70a9e697917955dca8
2023-05-17 13:34:15 +00:00
thiemowmde e4e1a38e1e Add missing space to reference list rendering
Minimal test case:
 <ref name=a>a</ref>
 <ref name=a/>
 <references/>

This renders as "1. ↑ 1.0 1.1 a" in both the legacy parser as well
as Parsoid. The moment you start editing this in VisualEditor the
space before "a" disappears. This patch fixes this inconsistency.

Change-Id: Idfea1a445fc98a0433640b4f706fafcc4e236c18
2023-05-16 15:43:16 +00:00
Translation updater bot 46a2205f5f Localisation updates from https://translatewiki.net.
Change-Id: Id06f53e8ab8d0b70388cf155419f84e493bdcf9d
2023-05-16 08:18:33 +02:00
jenkins-bot fd8db433a6 Merge "Fix empty previews in reference reuse dialog" 2023-05-11 09:43:54 +00:00
Translation updater bot 79c3edaa3e Localisation updates from https://translatewiki.net.
Change-Id: If653baf2bc9e95fddc85f7e9e1dc693e32a10831
2023-05-11 09:13:41 +02:00
thiemowmde 889c2ea011 Fix empty previews in reference reuse dialog
This fixes a minor inconsistency: A reference that comes from a
template and is already reused outside of the template is only
partially available to VE, and previewed with a warning message
because of this:

"This reference is defined in a template or other generated block,
and for now can only be previewed in source mode."

This was missing in the reuse dialog.

Note this patch is not meant to make any design decision, but to use
the existing design consistently.

You can test this with and without the Citoid extension. It works in
both cases.

Bug: T336372
Change-Id: I962cf111b1882bcd736f1090ca17d2b176495d2f
2023-05-10 13:03:24 +00:00
jenkins-bot d886cbd70f Merge "Migrate CiteVisualEditorModule to a virtual file callback" 2023-05-10 04:57:57 +00:00
Translation updater bot d6fbd0cc11 Localisation updates from https://translatewiki.net.
Change-Id: Ic98e2df23aabe41eb558fc8028334309661d2367
2023-05-05 10:38:10 +02:00
Tim Starling 5315297f38 Migrate CiteVisualEditorModule to a virtual file callback
Depends-On: I97d61b5793159cea365740e0563f7b733e0f16de
Bug: T47514
Change-Id: Iabfbb6751707813b7ec68f49b35441ab5dbb5622
2023-05-05 16:25:14 +10:00
Translation updater bot b81e7bd0c5 Localisation updates from https://translatewiki.net.
Change-Id: I01c920c74716fc99c2d36de87239a65a15173df9
2023-05-01 09:57:21 +02:00
thiemowmde 2a8fdf3d81 Hide wrong "this reference is used 0 times" in citation dialog
This fixes a minor regression introduced in Ib003b8a. The problem is
that undefined is not equal to anything in JavaScript, and not smaller
than 2 either.

Bug: T241885
Bug: T335410
Change-Id: Ia6deb291d923b88a08ceac8fbc0efb682e14f358
2023-04-26 16:42:08 +02:00
Translation updater bot ad830cce16 Localisation updates from https://translatewiki.net.
Change-Id: Ibc776022544a8f73e77735dc1256135598fb676c
2023-04-25 08:47:26 +02:00
Translation updater bot 3c902a8f34 Localisation updates from https://translatewiki.net.
Change-Id: Ifb96b94e80763ea5e5e7d9f3582ca835f5a17823
2023-04-24 09:15:43 +02:00
jenkins-bot 23d7c3d3bf Merge "Fix wrong "this reference is used twice" in VisualEditor" 2023-04-17 06:40:44 +00:00
Ed Sanders ec88bde672 Drop IE CSS hacks
IE is no longer supported

Change-Id: I27901e87301a4ce0993f789913c83d151f264562
2023-04-12 16:33:23 +01:00