Commit graph

5182 commits

Author SHA1 Message Date
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
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
jenkins-bot 160b0d05d8 Merge "Use - instead of _ in LESS file names as language code" 2024-10-07 13:06:40 +00:00
jenkins-bot ebf38366e7 Merge "Rename internal BOOK_REF_ATTRIBUTE constant" 2024-10-07 12:02:13 +00:00
Translation updater bot c5607f0205
Localisation updates from https://translatewiki.net.
Change-Id: I454feb21a27b51dd1f4ca202b7798871dfcea45c
2024-10-07 09:25:17 +02:00
WMDE-Fisch 39679be927 Use the default edit dialog to create a sub-ref
There's no need to open another dialog to set the additional
details when creating a sub-reference. We can just use the edit
panel that's already added to the ReferenceDialog.

In the edit panel I assume that whenever it is loaded with a
reference that uses the extends attribute and has no content
then the panel is used to create a sub-ref.

Note: SetExtendsContentDialog is still used for the Citoid flow.

Bug: T375156
Change-Id: I8cb3663f2f45a807b1d00f543ae13e8c5f53c6d8
2024-10-06 20:34:29 +02:00
WMDE-Fisch 60eb760dd8 [refactor] Don't setup the edit panel when re-using a ref
In the setup process the dialog is loaded and initialized. For the
case where the user opens this dialog to directly re-use a
reference, it does not make sense to fill out the form or create
the internal ref model. The edit panel is not used then.

This method might also be an entry point to create a new sub-ref
when triggered from e.g. Citoid. Switching to the re-use panel
still would not require to setup the edit panel.

I'm also moving a setup for the abilities, that's only relevant
in the edit case.

Bug: T375156
Change-Id: I061b88abc6cfd702a53208bac76be7a2ed6812c2
2024-10-06 17:34:39 +02:00
jenkins-bot e31bfa9845 Merge "Use DataMwError" 2024-10-04 23:08:07 +00:00
jenkins-bot 4ad9c4c8eb Merge "Use $this->getServiceContainer() in tests" 2024-10-04 21:54:44 +00:00
jenkins-bot 8f60a489bd Merge "Inject MainConfig services into Cite" 2024-10-04 19:34:11 +00:00
jenkins-bot 442ba0bf6b Merge "Update JSDocs related to the reference re-use dialog" 2024-10-04 11:56:43 +00:00
jenkins-bot 3591e4f14d Merge "Allow the ref re-use sub-menu options to wrap" 2024-10-04 11:50:23 +00:00
jenkins-bot de79466a08 Merge "Use more narrow UserIdentity interface where possible" 2024-10-04 09:40:05 +00:00
jenkins-bot 281b5765f6 Merge "Remove misplaced tooltip on ellipsis in citation dialog" 2024-10-04 09:40:04 +00:00
WMDE-Fisch bcd76a24c4 Allow the ref re-use sub-menu options to wrap
We discovered that the label can be really long depending on the
language. On mobile, where the screen is quite narrow it seems
more useful to let it wrap.

In this context it's even more relevant, because the options you
can choose from might only differ in the last parts of the message.

Bug: T375053
Change-Id: I9ec111ab1b80843f993d605ff11a1702c3d7b37c
2024-10-04 11:11:22 +02:00
thiemowmde 9ceabba9fe Update JSDocs related to the reference re-use dialog
Bug: T375053
Change-Id: I69a5caa8de730328ce4b5e2f92d9e04dcc576b6d
2024-10-04 11:08:58 +02:00
jenkins-bot 990ea23797 Merge "Extend height of the SetExtendsContent dialog" 2024-10-04 09:02:08 +00:00
WMDE-Fisch d1451ac6db Extend height of the SetExtendsContent dialog
I mock something similar to what's done in the ReferenceDialog,
just to improve the situation for now.

Change-Id: Ie3a1facf79a1920fe282a023b2ac33165d62f117
2024-10-04 08:27:37 +00:00
Fomafix 656b00134e Use - instead of _ in LESS file names as language code
Change-Id: Ifcd6d8f927a651d13e8a01ac3995210292551bc8
2024-10-04 08:25:49 +00:00
thiemowmde 44aefe2a6e Remove misplaced tooltip on ellipsis in citation dialog
We want the tooltip on the entire search result item, but not on
the button. The button probably needs a dedicated tooltip. To be
discussed. Let's start with removing the wrong tooltip.

Bug: T375053
Change-Id: I69da1f3cf80cf94342498a30b47acac8412d08ca
2024-10-04 10:16:23 +02:00
WMDE-Fisch c517172ecb Position the re-use sub-menu under its button
When the reference to re-use has a lot of content the button element
of the sub-menu expands over the whole height of the result widget.

The expanded sub-menu will always be positioned at the end of the
button element, that's why it was always added to the end of the
result widget and not the visible button.

Makeing sure that the element of the button is not larger than the
visible outlines fixes that problem.

Bug: T375053
Change-Id: I3c16aeae37c3774808544b03c7e6e52762e6d145
2024-10-04 10:05:18 +02:00
Fomafix 53d8aaa04a Use $this->getServiceContainer() in tests
Change-Id: I80a915e773a087a1fa663e0eebe9f0bab9be6d03
2024-10-04 07:40:44 +00:00
Translation updater bot 81c0036b91
Localisation updates from https://translatewiki.net.
Change-Id: I44fa8923a7ae6e0283121395f649b8572e95dadd
2024-10-04 09:21:17 +02:00
Translation updater bot c68496d327
Localisation updates from https://translatewiki.net.
Change-Id: Iad41ac44401b067751ccea59cc120097b8fe774e
2024-10-03 09:16:47 +02:00
thiemowmde 0ed6cafb3b Use more narrow UserIdentity interface where possible
Change-Id: I766eaa904a9eaeb7ac2a32a98289a364b1c25355
2024-10-02 12:56:28 +02:00
Adam Wight 9d665a8521 Hide group selector when editing a subref
Since changing the group will break a subref, we'll hide the field
for now.

TODO: There's more that can be done here: the main ref group
selector could also be hidden, and changing group could be supported
if we change the group on all linked refs.

Bug: T375156
Change-Id: I220850edae58097e09616a4b100878513767deae
2024-10-02 12:17:53 +02:00
jenkins-bot c5539052b9 Merge "Improve sub-ref check to avoid false positives" 2024-10-02 07:36:45 +00:00
Translation updater bot 5f21f8ac57
Localisation updates from https://translatewiki.net.
Change-Id: Idb2909ccc24e834471e10b85b2c52f205720a9a1
2024-10-02 09:23:49 +02:00
WMDE-Fisch d478955777 Improve sub-ref check to avoid false positives
Bug: T376242
Change-Id: If922dbd52ceb9b1a7973fececa2d062a043f8191
2024-10-02 07:52:23 +02:00
C. Scott Ananian 87d747a54d Use DataMwError
Depends-On: I63f48887690ea916c4e54b4a1a703f301dd64b6a
Depends-On: I63ca14ad4d5b2cdbce2fd61c4d6eb544b634bc8d
Followup-To: I14930937c1beca039484cffd19e486cd06cbc124
Change-Id: Ic8ee0a7c9ba50e19baf06e21251f8f7710110051
2024-10-01 22:49:52 +00:00