Commit graph

20318 commits

Author SHA1 Message Date
jenkins-bot f1ce07c29d Merge "Move the diff-mode selector to the new TextSlotDiffRendererTablePrefix hook" 2023-06-06 18:26:57 +00:00
thiemowmde a6a61983c1 Make "add undocumented parameter" hotkey ctrl+shift+d work much better
* Make it always work when there is only a single template anyway, no
  matter if the template is selected or not.
* Auto-expand the widget and focus the input field when it receives
  focus. The only way it can receive focus is via the hotkey. It can
  not be selected from the sidebar.

Bug: T338108
Change-Id: I567a0b99a8ad2e837993437e47f07d62e8b003d2
2023-06-06 17:22:30 +02:00
Translation updater bot a9464b8453 Localisation updates from https://translatewiki.net.
Change-Id: If10ce94fd924dec32f044c3dd8ecbc2ae86e2890
2023-06-06 08:11:57 +02:00
Bartosz Dziewoński 5b9bbbe5e5 Update VE core submodule to master (3e2e25aa6)
New changes:
19c463cf9 Localisation updates from https://translatewiki.net.
fe8b5048b Localisation updates from https://translatewiki.net.
97774870c Tests: Convert more test data to template literals
04bfb31b2 CompletionAction: Use action.source to calculate if sequence was used

Change-Id: I969210c1fa6f746ee4ef1d85978286e6c407fd2d
2023-06-06 00:47:20 +02:00
jenkins-bot 1f503e807f Merge "Convert more test data to template literals" 2023-06-05 22:30:57 +00:00
Ed Sanders 9f3d61ba6b Make new wikitext editor available by default for 3rd party installs
Note that it is still disabled by default in user options.

For WMF environments this value is set explicitly for all wikis, so
should result in no change.

Change-Id: I4629cd433107a3413933b4ea19c844dd869a2eb0
2023-06-05 14:46:10 +01:00
Translation updater bot 948289cc85 Localisation updates from https://translatewiki.net.
Change-Id: I9c8ea5904dcfac3dcbe8c9cdb9a54cf896b6205a
2023-06-05 08:41:54 +02:00
Ed Sanders f923081e3f Autosize the EditSummaryWidget
Change-Id: I4df49b1ea202dcb7bbb82cb99d26f0dec17133bc
2023-06-02 12:39:33 +01:00
Translation updater bot 8adceadac0 Localisation updates from https://translatewiki.net.
Change-Id: Iec715e9b7ebe90fdaf99640f60b994601a55bfa0
2023-06-02 09:25:03 +02:00
Ed Sanders 1c592ae93d MWImage: Use mw-file-element class in converter methods
Change-Id: I7415a61a9d19242a8aec87fb719e0f4990aeedfb
2023-06-01 15:53:46 +01:00
Ed Sanders d5b11247c3 Convert more test data to template literals
Change-Id: I6e5565714148a637ed83a8571b2034e4e7cbbe63
2023-06-01 15:53:46 +01:00
Translation updater bot 9ebdbccdab Localisation updates from https://translatewiki.net.
Change-Id: Ieca0c443dbd27de04bfd45ccb3b5caf4b1ad41f5
2023-06-01 08:44:25 +02:00
jenkins-bot db9dbbbc5d Merge "Converter tests: Use template literals to make HTML more legible" 2023-05-31 23:51:00 +00:00
jenkins-bot 3e55052c15 Merge "Update VE core submodule to master (d463fbd15)" 2023-05-31 23:30:15 +00:00
jenkins-bot a15e38e2fe Merge "MWImage: Update test data" 2023-05-31 23:22:08 +00:00
Bartosz Dziewoński 1468db9b6a Update VE core submodule to master (d463fbd15)
New changes:
d91717c8b Fix diff move labels for changed-and-moved nodes
3c1b8befa Use template literals to make HTML more legible
528a94d86 build: Updating grunt-banana-checker to 0.11.0

Bug: T336313
Change-Id: If2c7db08834529d9d8f6a5c7ae05f25bfe3cf1b8
2023-06-01 01:08:57 +02:00
Bartosz Dziewoński 09fec16583 Don't try to prefix browser title if a custom message is incompatible
Some wikis customize the 'pagetitle' in ways that are not compatible
with the client-side message parser.

Depends-On: If1979da12777e4ee4e97937640fc5e6176f9b5fe
Bug: T317600
Change-Id: Ie7c1813552582e10de9e57cd8d772c2134146289
2023-06-01 01:08:31 +02:00
jenkins-bot 2cc586b9dc Merge "Add i18n for category sort key changes" 2023-05-31 22:46:19 +00:00
jenkins-bot 544bfacbf9 Merge "Never compare different categories" 2023-05-31 22:35:47 +00:00
Ed Sanders 9e64821bd6 Add i18n for category sort key changes
Also treat the empty string as unset.

Change-Id: I72d9ab0180f416122ca31c44787fe86aa32e88e2
2023-06-01 00:23:23 +02:00
Arlo Breault 7d5b964507 Bump requested Parsoid HTML version to 2.8.0
This will ensure that media have the mw-file-element classes so that the
styling changes in I70c61493fe492445702f036e5b24ef87fc3bdf43 apply.

Older 2.7.0 content still in storage is missing the classes and doesn't
render correctly.

Note that I545ed75ed3c87e88b5e776696754e23c05645f81 made sure that
editing of both versions was always compatible.

Bug: T337596
Depends-On: Ia70f819df79fbb12a5b1dd6a98bfe0b968808d18
Change-Id: I40ed887e03f983e0737e1ee7cba5a4012fea31db
2023-05-31 12:12:59 -04:00
Arlo Breault e7e5241802 Ensure a compatible Parsoid output version for direct client
Presumably VE will move in lock step with the Parsoid library but this
retains the ability to negotiate even at this level.

Change-Id: Ice3beabcb1a475f2de9ad61e0f234a9cc23f80bd
2023-05-31 12:08:28 -04:00
Translation updater bot 4b661a1fcd Localisation updates from https://translatewiki.net.
Change-Id: Ifc74c3970ddf847f860e6ec41f91abc3a810348b
2023-05-31 08:21:15 +02:00
Sam Wilson 137124a837 Move the diff-mode selector to the new TextSlotDiffRendererTablePrefix hook
Use the new hook to add the diff-mode selector to the area directly before
the diff table.

Also toggles the new inline-diff legend, when the initial diff-type is 'inline'.

Depends-On: I2a3c67bcfa47313dee597e602a62073e4e298cd2
Bug: T324759
Change-Id: I1584a84b3caea9eb142afba976c6ff47650c3832
2023-05-31 15:45:22 +10:00
Ed Sanders a2d4cca0f5 Never compare different categories
Bug: T336313
Change-Id: I287b228c5559ff1dd35226a9533a8a160dc70009
2023-05-30 21:13:29 +00:00
Ed Sanders b3673a1042 Converter tests: Use template literals to make HTML more legible
Depends-On: Iee8184dd6524b6dc12d19ac79761f6bd15990297
Change-Id: Idf0dde21e2ca0b01393ddda9e4d722fe50f0314f
2023-05-30 18:22:23 +01:00
jenkins-bot 139975c237 Merge "DesktopArticleTarget.init: Support '&editintro=…' in edit links" 2023-05-30 17:19:39 +00:00
jenkins-bot 94b5ae6ade Merge "DesktopArticleTarget.init: Simplify parameter types" 2023-05-30 17:18:39 +00:00
Ed Sanders be5f04b779 MWImage: Update test data
Add mw-file-element and mw-file-description classes by default.

Change-Id: I8b3a9c39582e1400b628e102c254021772513939
2023-05-30 15:07:19 +01:00
Bartosz Dziewoński 872679aeec DesktopArticleTarget.init: Support '&editintro=…' in edit links
Support gadgets adding '&editintro=…' to the default edit link.
It was already supported when opening the link in a new window, or
following an external link, or when clicking a section edit link.

Also, clean up these parameters when leaving the editor. This also
applies to 'preload', 'preloadparams', 'preloadtitle', 'summary'.

KNOWN BUG: Only works the first time the editor is loaded on the page.
Afterwards, DesktopArticleTarget.init lets DesktopArticleTarget handle
initialization, and it ignores extra parameters. I made a few attempts
at fixing this, but I only broke it further. I don't understand why
the history handling code even works. Maybe I'll come back to this.

Bug: T56029
Change-Id: I38fcde573f728250aaa125b391815e7fac7df362
2023-05-30 12:52:53 +00:00
Bartosz Dziewoński 53217d24e0 DesktopArticleTarget.init: Simplify parameter types
I prefer not having to think what type `link` is.
Just pass `linkUrl` everywhere.

Add and correct some related doc comments.

Change-Id: I5aa03149d7e1b32cd9ec19c589b16d03a9981857
2023-05-30 14:51:53 +02:00
jenkins-bot fda191a1cc Merge "Drop incomplete images generated by legacy parser" 2023-05-30 12:14:23 +00:00
jenkins-bot 5cdc10a9b2 Merge "ve.ui.MWGalleryDialog: Fix showing the search panel" 2023-05-30 12:10:25 +00:00
jenkins-bot 160569211e Merge "Hide 'editnotice-notext' message in VE (and mobile apps)" 2023-05-30 12:10:22 +00:00
Translation updater bot 32288de8a1 Localisation updates from https://translatewiki.net.
Change-Id: I226a77e67253d2c3448986017baa376edd43548f
2023-05-30 08:57:29 +02:00
Bartosz Dziewoński 03571e5a49 Update VE core submodule to master (b66c8ebb5)
New changes:
acfa59ff4 build: Upgrade grunt-tyops to 0.1.1
e214c0c3b Fixes/updates to various JSDoc type hints
ae844f5ea Patch WindowManager fix for multiple window managers

Change-Id: Idd6690b4f74e4bd720707fde96a361e2231e1eb0
2023-05-29 16:31:46 +02:00
Bartosz Dziewoński c5ef3946aa Update VE core submodule to master (1af79a8a0)
New changes:
4061523da rebaser: Update dependencies
ce15d3c90 build: Update eslint-config-wikimedia to 0.25.1
984f89e76 build: Update stylelint-config-wikimedia to 0.15.0
de6b75cc9 CompletionWidget & Action: Add missing documentation
052afafb5 HelpCompletionAction: Remove unused insertAndOpen method
d7c6aaa6a HelpCompletionAction: Remove unnecessary IIFE
7369779a3 Actions: Improve documentation of 'source' argument
7170d5076 HelpCompletionAction: Wait for widget to close before triggering tool
1c5e3bcbd Localisation updates from https://translatewiki.net.
4715457db HelpCompletionAction: Update getToolIndex to use new group titles
ee55ca615 CompletionAction/Widget: Rename 'trigger' to 'sequence'
1af79a8a0 Localisation updates from https://translatewiki.net.

Change-Id: I31c4a23003152d022cf96005f2d0d9eac0fbe4a8
2023-05-29 16:20:48 +02:00
Translation updater bot 8d491e51c3 Localisation updates from https://translatewiki.net.
Change-Id: I53feaf14d606b6aa43e9fd742d2c2f39b88b403d
2023-05-29 10:00:28 +02:00
Bartosz Dziewoński c37633bb83 Hide 'editnotice-notext' message in VE (and mobile apps)
Bug: T337633
Change-Id: I142edff12492e80b9c281353e6a53efc3339159c
2023-05-29 02:07:19 +00:00
Bartosz Dziewoński 3109c82cc4 ve.ui.MWGalleryDialog: Fix showing the search panel
Due to changes in StackLayout in OOUI v0.47.0 it is no longer able to
show a panel that was hidden using `.toggle( false )`.

Hiding it in this way seems to not have been needed anyway.

Bug: T337638
Change-Id: I81ed015986ed03fab1e65a7f3a826ac4296077b7
2023-05-29 01:30:29 +02:00
jenkins-bot 64fec813c3 Merge "Output config var when VE disabled by hook" 2023-05-26 19:01:31 +00:00
Ed Sanders fe14ffb76b Output config var when VE disabled by hook
Currently we only disable the desktop init code when this hook
returns false, but other integrations may want to know about this,
e.g. MobileFrontend.

Bug: T174180
Change-Id: I0268239cc9ea2d397140e617fcb6e4e104a75f31
2023-05-26 18:42:19 +00:00
libraryupgrader c8c1539efa build: Updating grunt-banana-checker to 0.11.0
Change-Id: I5c8d55432660824559aeb98ef3305d64baeb8508
2023-05-26 10:14:39 +00:00
Translation updater bot c0537de1f7 Localisation updates from https://translatewiki.net.
Change-Id: I3fe7c53c661e22acb6214e0284b7de9292d77bdc
2023-05-26 08:31:04 +02:00
jenkins-bot 14fb1dc1de Merge "build: Update stylelint-config-wikimedia to 0.15.0" 2023-05-25 15:40:16 +00:00
jenkins-bot 30a2cf1276 Merge "build: Update eslint-config-wikimedia to 0.25.1" 2023-05-25 15:40:13 +00:00
Ed Sanders dfe0283b07 Drop incomplete images generated by legacy parser
Bug: T337438
Change-Id: I076dd91bad9e5fe2758d41ac158cad8b86dbadce
2023-05-25 16:06:45 +01:00
jenkins-bot f6994eafe4 Merge ".gitignore: Add .vscode directory to .gitignore" 2023-05-25 11:29:55 +00:00
Translation updater bot d9f1e753a1 Localisation updates from https://translatewiki.net.
Change-Id: I5d453991156a7a4e6940ebb5a9fa83575cf8ceb9
2023-05-25 09:11:14 +02:00
Ed Sanders 7d39310830 build: Update stylelint-config-wikimedia to 0.15.0
Change-Id: I87b7975b91a25f994ef9fc55759549e4c27e3e8b
2023-05-24 18:50:35 +01:00