Commit graph

19122 commits

Author SHA1 Message Date
Thiemo Kreuz 847ab1800b Remove unused CSS from template dialog
These pieces are only relevant when the new "inlineDescription"
feature is enabled. In other words: This can't have an effect on
the old dialog.

The 2.5em left and right are from an old styling when the
parameter pages have been indented.

Change-Id: I022b0dd94ee66f7de114c055c3f453317a7f6131
2021-12-07 13:57:18 +00:00
jenkins-bot 015d3f767f Merge "Raise PHP coding standards in this codebase a bit" 2021-12-07 13:47:33 +00:00
jenkins-bot 131f7e940d Merge "Add safe-guard for early template dialog resize events" 2021-12-07 13:08:42 +00:00
Translation updater bot 1417565551 Localisation updates from https://translatewiki.net.
Change-Id: I0a8ba9b30ff6671d0e8d8b24492c74605edbf8c3
2021-12-07 08:12:38 +01:00
Thiemo Kreuz fd669a4d16 Remove obsolete performance bottleneck from TransclusionModel
This sorting algorithm was introduced via Ic6bc348 (T274544). Note
there is no index parameter in the .onReplacePart() handler at this
point. When a part was moved, it was removed and simply appended
to the end. The additional sorting was needed to move it back to the
correct position.

This changed a few days later via Iafe29f1. There is now an index
parameter. The .onReplacePart() handler does the same as before, but
puts the part at the correct position right away. The additional
sorting is pointless since then.

The removed code alone is responsible for 1/3 of the total blocking
time when the template dialog opens.

Bug: T296335
Change-Id: I6c3fa70b532d34cd29d59c3b48ab81ebf608d548
2021-12-06 17:36:53 +00:00
Svantje Lilienthal 65bef19f73 Prepend multipart message in onReplacePart to prevent it from moving around
onReplacePart is being called when templates are being moved up or down. 
To prevent that the multipart message gets moved around passively e.g. 
by one element being added above it, this patch adds it to the top after each movement.

Bug: T292829
Change-Id: I946c9bc4ba5e1d261aefbb28a8c642bb58964842
2021-12-06 13:58:09 +00:00
jenkins-bot 0978f3fe3d Merge "Remove suggested values message for custom inputs" 2021-12-06 10:49:44 +00:00
Translation updater bot 955f360c52 Localisation updates from https://translatewiki.net.
Change-Id: I77a284fff376a37fdda6b839197b3612e745dc64
2021-12-06 08:20:32 +01:00
Svantje Lilienthal a2afdee49f Remove suggested values message for custom inputs
Bug: T296915
Change-Id: Iecd90b02ea5bebceda1e87ddddb43fdb71b91d9e
2021-12-03 15:28:04 +00:00
WMDE-Fisch eef0ce91f7 Parse new link in multipart message
We forgot change the way that message is build while adding the link
in 07f105fd7. Now it gets parsed correctly and the link will open in
a new tab.

Bug: T284985
Change-Id: I1ed9dfdafd08d08c5aff45f4b74c540b35ec14a1
2021-12-03 10:36:44 +00:00
Translation updater bot 761b287a1c Localisation updates from https://translatewiki.net.
Change-Id: I4bbe442516a4d7293561fd53ffe4ad01c17f6005
2021-12-03 08:43:16 +01:00
WMDE-Fisch 1467800331 Remove temporary hacks that got fixed upstream
Fixes are part of OOUI v0.42.1

Change-Id: Ic133d6cc503538fb8b4319bed037bc6e8596bd1c
2021-12-02 13:27:40 +01:00
Translation updater bot 196824195a Localisation updates from https://translatewiki.net.
Change-Id: Iaeaf739433db99ad359d684864c10c68c08422e5
2021-12-02 08:42:20 +01:00
Thiemo Kreuz 35bc600aa9 Fix action icons breaking into multiple lines on narrow screens
This is only relevant with the old design. It's only noticable when
a field shows all 3 action icons: info, raw wikitext mode, and
trashcan. The last icon can wrap to the next line when the screen
is very narrow.

I tried to apply nowrap, but this causes other style issues.

Removing the arbitrary width allows the action container to be
as wide as it needs to be. I can't tell why this restriction was
there. It is in no way necessary, as far as I can see. I can only
guess it's a temporary artifact from when the dialog was designed.

Bug: T296730
Change-Id: I77129ccc3afe002ba697b1787b41d0a388d5f4b8
2021-12-01 14:57:49 +01:00
jenkins-bot efcc1a6742 Merge "Add links to documentation in help messages" 2021-12-01 10:52:51 +00:00
WMDE-Fisch 07f105fd76 Add links to documentation in help messages
This also updates all links to include [[Special:MyLanguage]].

Bug: T284985
Change-Id: Id5fb43c87a9458fd00524508f063fb1e7fc558a0
2021-12-01 10:02:00 +00:00
Translation updater bot 8d81bbedec Localisation updates from https://translatewiki.net.
Change-Id: Id95806eefd327d57bb6d4b21c90738875c33232a
2021-12-01 08:15:46 +01:00
jenkins-bot 85d64d57bc Merge "Performance: Don't add empty action <div>s to template dialog" 2021-11-30 13:59:53 +00:00
Adam Wight e82eb4832c Cleanups
Split from I280f814e72.  Should have no effect on behavior.

Change-Id: I4a43cbc863c58a4977e8093fa8c1371b56ec9b90
2021-11-30 14:07:32 +01:00
Thiemo Kreuz a40947ed18 Performance: Don't add empty parameter descriptions to dialog
This does have a significant impact on the performance of the
template dialog. Not only on construction time, but also because
MWExpandableContentElement objects do some quite expensive
.updateSize() calculations the moment they become visible.

I profiled a template with (only) 200 undocumented parameters.
Construction time goes down from ~600ms to ~520ms. The mentioned
.updateSize() runtime goes down from ~300ms to ~10ms.

Bug: T296335
Change-Id: I280f814e722b299aae0ec6a5a2fa59292e3e5887
2021-11-30 14:07:11 +01:00
Translation updater bot 752c01cd81 Localisation updates from https://translatewiki.net.
Change-Id: I18a2c6b0fa76d063534c2aeea425c910e161c797
2021-11-30 08:22:34 +01:00
Ed Sanders 47127d290d build: Remove unused eslint overrides
Change-Id: I6f5a0f8e0266c3b8f24be2d99953afd7322bd2e7
2021-11-29 17:05:38 +00:00
jenkins-bot 41418de4ec Merge "Avoid using User::getOption" 2021-11-29 10:16:17 +00:00
Translation updater bot 6322ff5b50 Localisation updates from https://translatewiki.net.
Change-Id: I7cc4ac000065c700763c43b53abe0b2c06a75a12
2021-11-29 08:12:49 +01:00
WMDE-Fisch f65eac3d66 Add placeholder for finding a template
Bug: T296465
Change-Id: I07c6e601111073b1269a3ab6c552f83e12196156
2021-11-26 16:30:19 +01:00
WMDE-Fisch bc89f1d8fd Set search icon on template placeholder search
Bug: T296465
Change-Id: I02932821b26c21eb559fdb391054b83d1da41d2a
2021-11-26 14:34:44 +00:00
Translation updater bot 78fe33919e Localisation updates from https://translatewiki.net.
Change-Id: Ieed9d34f2c493c5f7b0ec0b8fc954716c00d5465
2021-11-26 08:23:58 +01:00
Roman Stolar 4fc6ea3f41 Avoid using User::getOption
Remove using of User:getOption since this method will be hard-deprecated. Now it is soft-deprecated

Bug: T296083
Change-Id: Ic177a170fd3c72ebbb80da60dc8597285ab5e023
2021-11-25 18:48:50 +02:00
jenkins-bot 9853498756 Merge "Update multi-tab code after changes in Minerva" 2021-11-25 11:22:30 +00:00
Translation updater bot ad2920b072 Localisation updates from https://translatewiki.net.
Change-Id: Ifc1087ccc97a7b5632d61df91a1a910bd5f2d132
2021-11-25 09:02:51 +01:00
jenkins-bot ea5f1b7000 Merge "Update Legoktm's mailmap entry" 2021-11-24 22:29:08 +00:00
Translation updater bot 44bd38b61f Localisation updates from https://translatewiki.net.
Change-Id: I1c4b854d627cfaaf1d70374cda19f2aae32ad914
2021-11-24 08:22:44 +01:00
Thiemo Kreuz b435f02efc Performance: Don't add empty action <div>s to template dialog
This doesn't have much of an impact on performance according to my
profiling. But I think it's worth it nevertheless. The idea is to
skip that <div> entirely when it's empty.

Bug: T296335
Change-Id: Id155725fbc2e3453acc1cdcabfdc2d687285d694
2021-11-23 21:38:19 +00:00
jenkins-bot e6b9a91ee9 Merge "Fix missing Meta+D shortcut on Mac" 2021-11-23 10:32:37 +00:00
Thiemo Kreuz ddaa6a18c1 Fix missing Meta+D shortcut on Mac
I also discovered and applied ways to make this code more compact.

Bug: T294905
Change-Id: I1edc2b3b0a77e02bf8e7ac789cabe007c5f5c527
2021-11-23 10:38:50 +01:00
Translation updater bot 5622406793 Localisation updates from https://translatewiki.net.
Change-Id: Ia65d81f9b805ca1ddc7eb206067c9429d5e61ca1
2021-11-23 08:27:12 +01:00
James D. Forrester 8574e2379c build: Upgrade mediawiki-phan-config to 0.11.1
Change-Id: I53e2d8f5450e083660da0da7bf6b90ce8ce25382
2021-11-22 18:34:57 +00:00
jenkins-bot 1579feed75 Merge "Update VE core submodule to master (5a97be3a0)" 2021-11-22 18:23:54 +00:00
jenkins-bot 1a4fb339eb Merge "Make better use of the ARIA mixin" 2021-11-22 17:18:51 +00:00
Bartosz Dziewoński 32d64dc4e0 Update VE core submodule to master (5a97be3a0)
New changes:
1350d9fbf Localisation updates from https://translatewiki.net.
c0ff88105 rebaser: Update dependencies
75bc682e2 Prevent scroll jump when focusing surface in Safari
5a97be3a0 Localisation updates from https://translatewiki.net.

Bug: T258847
Change-Id: I04f653b9be35e8559b80cb160ac204c6b7213880
2021-11-22 16:22:19 +01:00
Translation updater bot 53f7b65342 Localisation updates from https://translatewiki.net.
Change-Id: Iba2243880e1f049d6fb404a6a50e3f576039661d
2021-11-22 09:04:01 +01:00
jenkins-bot 2d6cae4684 Merge "Add mw-show-empty-elt to MW surfaces" 2021-11-19 21:06:45 +00:00
jenkins-bot eb26dc10b2 Merge "MWSaveDialog: Fix specificity of margin override for monobook" 2021-11-19 17:25:41 +00:00
jenkins-bot 9f6c431fbd Merge "MWSaveDialog: Move header out of mw-body-content" 2021-11-19 17:25:38 +00:00
jenkins-bot 4c02fb7cef Merge "MWSaveDialog: Move var declarations inline" 2021-11-19 17:23:45 +00:00
Ed Sanders a4ab89648d MWSaveDialog: Fix specificity of margin override for monobook
Change-Id: Ic37d312cf10777dd5e45c0641295b2f2e766acde
2021-11-19 16:55:22 +00:00
Ed Sanders 69e367464f Add mw-show-empty-elt to MW surfaces
Bug: T295984
Depends-On: Ife0e908edc12b2eb04c5f0b4def969ce843606a0
Change-Id: I49a2b5226a770334a05a51c8ea7b835c8c2c574f
2021-11-19 16:08:53 +00:00
Translation updater bot 3bdba1bb14 Localisation updates from https://translatewiki.net.
Change-Id: I5722df09f612b7127a192f615aa45f06d1062b39
2021-11-19 08:28:55 +01:00
jenkins-bot 90643ef6d0 Merge "Prefere ve.extendObject over $.extend" 2021-11-18 21:22:16 +00:00
jenkins-bot 208beec334 Merge "MobileCollabTarget: Add surface class using dedicated method" 2021-11-18 19:14:01 +00:00