Commit graph

20871 commits

Author SHA1 Message Date
jenkins-bot 4c8b4479cc Merge "Use expression builder instead of addQuotes()" 2023-11-11 01:23:52 +00:00
Bartosz Dziewoński d23e912884 Use expression builder instead of addQuotes()
Bug: T350992
Change-Id: Ide2edebf979a21628aa5832d6ac8774fc55310f6
2023-11-11 00:29:25 +01:00
Ed Sanders 4870a285f2 updateSubmodule.sh: Use gerrit remote if it exists
Change-Id: I82f23ce8721c16d57f5c918d4ceda634c73bc959
2023-11-10 18:13:04 +00:00
Ed Sanders 90f7a2579e Update VE core submodule to master (4ed104936)
New changes:
a6865a3b5 Remove unused message visualeditor-table-caption
fb93ae3cf Fake PeerJS class, for convenient debugging.
2dc3a0645 ve.dm.ProtocolServer: support non-zero client startLength
aa4249fb4 ve.dm.SurfaceSynchronizer: explicitly serialize submitted change
160dd441d ve.collab: peerjs-based collaborative editing
b7b108819 ve.ce.Surface: Fix typo in CSS class name
a705ee3f8 Document generated CSS classes
379e5f6e6 Localisation updates from https://translatewiki.net.
b4a5f76b1 InternalList#sortGroupIndexes: Guard against firstNodes being unset
4ed104936 InternalList: Skip placeholder nodes when sorting

Bug: T332799
Bug: T350902
Change-Id: I13c47077b58f8ed1b8d77feb3661bec9f0ce4348
2023-11-10 18:07:29 +00:00
WMDE-Fisch ec47d4887b VisualDiff: Remember the current mode when the diff changes
I don't think it make sense to always fallback to the inital mode.
The wikipage.diff hook can be fired from 3rd parties to update the
diff. If the users then changes the mode inbetween without a page
reload, every following diff page update should have the latest
option as a default instead of the original option.

Bug: T346369
Change-Id: I2d0f6cbb89a2d98f247fcd77fa4d79708a4220c1
2023-11-10 10:19:15 +01:00
Nardog 9b9f2c50b0 Recognize DEFAULTSORT again
Since Parsoid now treats DEFAULTSORT like any other template, we have to
scan mw:Transclusion spans.

Bug: T337398
Change-Id: Icba92fc14c1c56ec4711ba49407e8be368d57842
2023-11-09 21:26:20 +00:00
Ed Sanders ba28b340db CollabTarget: Remove unused CSS rules
Change-Id: I7439fcef195f59cb1a30f264d1164a91c67424d2
2023-11-09 12:46:31 +00:00
Translation updater bot 2a343cd598 Localisation updates from https://translatewiki.net.
Change-Id: Ib5b13e6fd1256c7aba2efa4155cf9f024344f28f
2023-11-09 10:41:45 +01:00
Ed Sanders 7a3120d9d5 Remove unused CSS classes
Unused since I5839ba62fe4.

Change-Id: I927e64f14f672b9fca6c7e8c6806a38cea07382a
2023-11-08 19:25:32 +00:00
Translation updater bot 69c4659e00 Localisation updates from https://translatewiki.net.
Change-Id: I2166527b43aeb560b1baa01892eaeadf15c9d2cb
2023-11-08 13:08:22 +01:00
Bartosz Dziewoński 89545d2b53 Update VE core submodule to master (df7099eab)
New changes:
b3a237415 Grunt: Simplify ignore pattern for node_modules
78bbdf1d4 Localisation updates from https://translatewiki.net.
538d8ad4d Make VisualDiff#compareNodes static
8652432c4 Tree diffs: Add failing test case for templates in table diff
79eebb566 Tree diffs: Use VisualDiff#compareNodes
32d8c3180 Tree diffs: Use compareElementsUnannotated when comparing structural nodes
53970774a Visual diff: Describe list type changes
23cd3d886 Update diff-match-patch, removing cleanupSemanticLossless

Bug: T332791
Bug: T337698
Bug: T346424
Bug: T350032
Change-Id: I1707d50b06703aae74c654e354cce95541ac5a96
2023-11-07 21:41:49 +01:00
Translation updater bot 0327633191 Localisation updates from https://translatewiki.net.
Change-Id: I24bc32e3200ad638a7179df29ec53cb31fe3012b
2023-11-07 09:09:02 +01:00
Bartosz Dziewoński 5667832c1b Attach content to teleport target instead of <body>, remove Vector hacks
In MediaWiki, OO.ui.getTeleportTarget() is overridden to return
a different element (itself attached to body), which is supposed
to be styled appropriately by skins (e.g. z-index above any
floating header, font-size same as body text, etc.).

As a result, we no longer need to do weird things with the
'vector-body' class to achieve correct font size on Vector,
and we can remove some font-size overrides for Vector and MonoBook.

Bug: T348288
Bug: T339058
Change-Id: I6329b3023573b3dcfc8f471c4693be9bb1e9e430
2023-11-06 14:29:12 +00:00
Translation updater bot 7a935ec017 Localisation updates from https://translatewiki.net.
Change-Id: Idc6f5ff5bd8a13716b340ef72f3699def5aaffdd
2023-11-06 08:58:24 +01:00
jenkins-bot 97f704f9fe Merge "ApiVisualEditor: Remove unnecessary checks" 2023-11-03 17:37:42 +00:00
Bartosz Dziewoński d80a8a6abc ApiVisualEditor: Remove unnecessary checks
According to EventLogging 'editattemptstep' data the error hasn't
happened in the last 90 days.

It probably can't happen since we switched from RESTBase to direct
Parsoid access, but keep the checks as assertions just in case.

Change-Id: I0bad1e4364c2f1b154383bc1a984c4ccc83e1700
2023-11-03 17:05:08 +01:00
Ed Sanders 3bbcb66e9a Wikitext table tool: Use different message for caption placeholder
The wikitext table tool is re-using messages meant for other
things anyway, so might as well use a message that is still
in use elsewhere, as opposed to one for a tool that was removed
7 years ago (in Ife3f3505b845d).

Change-Id: I305f5f5a67e0340f89160e6654ad86f81609f9ab
2023-11-03 15:48:55 +00:00
Ed Sanders e238544d6e Document generated messages
Change-Id: I4467f0563a5c09ae063e13c372ebbde4f6e1d112
2023-11-03 15:39:00 +00:00
Ed Sanders 284fb20da4 Restore help toolbar title
Was lost when we converted it from a PopupTool
in I81d217bc1ab9.

Also visualeditor-help-title is unused since that commit,
and remove debugging code.

Change-Id: Ic1d40bac8ef76fbb6f009dd8cecec8dc74c1aa4b
2023-11-03 15:38:40 +00:00
jenkins-bot 286068d6c0 Merge "Remove unused docserver-http messages" 2023-11-03 15:17:27 +00:00
Ed Sanders 91c2107654 Remove unused docserver-http messages
These were removed in I50b20ed5ab.

Change-Id: I363a5ac45eaff04f4611367fb92ecb5cfb75d641
2023-11-03 13:18:30 +00:00
Translation updater bot f2c5eb91f4 Localisation updates from https://translatewiki.net.
Change-Id: Ife81a59cd78bac194997f52246bf6b380168a787
2023-11-03 08:59:47 +01:00
Bartosz Dziewoński ef0d37cc97 Update VE core submodule to master (af9ff31db)
New changes:
ea961803e Localisation updates from https://translatewiki.net.
c886092d3 Attach content to teleport target instead of <body>
bacf54a22 Localisation updates from https://translatewiki.net.
c1562081b Consistent usage of header/title in toolbar groups
f8a25c2ca Remove unused messages
af9ff31db Fix remaining uses of 'parent'->'super'

Local changes:
* Remove references to unused messages

Bug: T120821
Bug: T348288
Change-Id: I82dbbc5a8f82ca6bb5b225cb1c2e1734470ed9c8
2023-11-02 23:11:44 +01:00
jenkins-bot bfb4f04635 Merge "Make GalleryImageNode dm match (Inline|Block)ImageNode imgWrapper" 2023-11-02 21:40:44 +00:00
jenkins-bot a7b7f659c7 Merge "Roundtrip media tag name in galleries" 2023-11-02 21:40:12 +00:00
jenkins-bot 979cc39472 Merge "Set alt in data-mw for non-img media" 2023-11-02 21:39:02 +00:00
Ed Sanders 09d60e784b Fix remaining uses of 'parent'->'super'
Bug: T120821
Change-Id: Id6ccb82d6d6027265d1595dbf11c1c4abeabc392
2023-11-02 16:42:31 +00:00
Translation updater bot 61ba76a2a5 Localisation updates from https://translatewiki.net.
Change-Id: I755458209301e2382afe4b5ec4e4a93e6d11d7a1
2023-11-02 09:59:50 +01:00
Translation updater bot deaed7faaa Localisation updates from https://translatewiki.net.
Change-Id: I02fb94275ac9ba34742a058d57ce546d744ac2c6
2023-11-01 09:09:13 +01:00
Translation updater bot 34394364cb Localisation updates from https://translatewiki.net.
Change-Id: I3a1b7d44d6d880a6d7bd84030180c16947149b65
2023-10-31 09:09:38 +01:00
jenkins-bot a87cc5cb9f Merge "styles: Use 'mediawiki.skin.variables.less', remove WikimediaUI Base ref" 2023-10-30 18:07:49 +00:00
Translation updater bot fc797d1ea6 Localisation updates from https://translatewiki.net.
Change-Id: If87cb5f884cf240059e094fb652ce45d6246731f
2023-10-30 18:00:00 +01:00
thiemowmde a6aa681d51 Drop meaningless version number 0.1.2
This number is from 2020. It's certainly meaningless by now. Even
causes extra confusion, see e.g.
https://www.mediawiki.org/wiki/Topic:Xsi5ull7fkcnbzuw

Depends-On: If1bbb57919af4948cecb0a63472ac323175f90c1
Depends-On: Iaae0ac43174f471d8d210958704f98182e9979c5
Change-Id: Iaa56abbc7b54f4a551ca330ff08d542cb5a2b895
2023-10-30 08:15:20 +00:00
Translation updater bot cf8fa4ed25 Localisation updates from https://translatewiki.net.
Change-Id: I0fb0b9f0ecdbf876ceba3f0a1062a82d298ab4b2
2023-10-27 09:21:26 +02:00
Volker E ba0ca0f0e3 styles: Use 'mediawiki.skin.variables.less', remove WikimediaUI Base ref
Using 'mediawiki.skin.variables.less' with Codex tokens now that
it's available. Also removing a comment that's OOUI variable specific.

Bug: T334934
Change-Id: Id697baa9537013c9e240dbfaa9ead1eb15280133
2023-10-26 17:18:54 -07:00
Arlo Breault 76960385db Make GalleryImageNode dm match (Inline|Block)ImageNode imgWrapper
The observation that the href for wrappers with mw-file-description
class will be the same as the resource still holds.  However, on the
other end, if the href is null, setting it to resource doesn't work.

Timed media and when the "|link=|" media option is used, result in an
imgWrapper that's just a span and wouldn't have an href.

This patch fixes a dirtying of timed media in galleries that was
preventing selser from being used.  Note, that <source>s in <audio> and
<video> tags are still dropped, so selser won't work yet.

Change-Id: Iefc520b8513e833665dae9d5c3a9dca2762264a6
2023-10-26 15:21:27 -04:00
David Lynch 4594a8acf2 Update VE core submodule to master (22943abff)
New changes:
3e1096ac0 Update OOUI to v0.48.2
045f8036f build: Update QUnit from 2.19.4 to 2.20.0

Change-Id: I2f281b5a94d3ccb001d9dcdd468e839ff3c5969a
2023-10-26 11:21:16 -05:00
jenkins-bot e5c81199c9 Merge "Template dialog: Use wrapping/expanding input for "line" inputs" 2023-10-26 16:11:45 +00:00
jenkins-bot aac7f99742 Merge "ve.ui.MWEditSummaryWidget: Use built-in 'allowLinebreaks' option" 2023-10-26 15:55:41 +00:00
Ed Sanders 1fcf167028 Template dialog: Use wrapping/expanding input for "line" inputs
Bug: T348482
Change-Id: I5cbbd84723c042dee176be8d77a7beec7d86e226
2023-10-26 09:16:24 -05:00
Ed Sanders c6f732914f Template dialog: Remove height override of collapsed LazyMultilineTextInputWidget
The default rendering is already correct unless there are more
than 2 lines of text present.

Change-Id: I5be936d75f81dcbbb58793d93796240540555124
2023-10-26 14:22:10 +01:00
jenkins-bot 60b7420e3f Merge "Media Dialog: make the alt field wrap and autosize for longer values" 2023-10-26 12:48:31 +00:00
David Lynch e2a7592bab Media Dialog: make the alt field wrap and autosize for longer values
Bug: T349319
Change-Id: I60e0a9c85f24132651007b436f146be801e77ebb
2023-10-26 12:20:05 +00:00
Translation updater bot e878cec9b0 Localisation updates from https://translatewiki.net.
Change-Id: I1b46d6f09d6f0d80260a46e5b42d0e705e3b6056
2023-10-26 11:07:25 +02:00
Arlo Breault f909f87b02 Roundtrip media tag name in galleries
This should have been part of
If5dc6b794dacd6973d3b2093e6b385591b91d539

Bug: T348703
Change-Id: I85f83d8b336ab4d6799bbe8007ef0441570a84ca
2023-10-25 13:29:19 -04:00
Arlo Breault 2497a5254e Set alt in data-mw for non-img media
Follow up to I02ea8421e468635ba6297bb5cda488a5a79c9a1d the depends on
I7a5c24f6ffc15ff0455adf5b025b695ee71501b6 in Parsoid.

Note that the mediaTag isn't currently being passed around for gallery
image nodes so, for example, a <video> becomes an <img> as is.  But,
that's independent of this patch, and a follow up will fix it.
Noted in T348703#9278332

Bug: T348703
Bug: T214603
Change-Id: I5f7d3dfe0a41fac1568c97dccc41209c14e741d0
2023-10-25 13:23:47 -04:00
Bartosz Dziewoński 0167346cbb ve.ui.MWEditSummaryWidget: Use built-in 'allowLinebreaks' option
New in OOUI v0.48.2.

Change-Id: I28dfa2405167ee4b9d9cd2fd3bb3e15498247ac6
2023-10-25 08:26:59 -04:00
jenkins-bot 07f4a7b3b1 Merge "styles: Replace WikimediaUI Base vars with equivalent skin variables" 2023-10-25 09:42:25 +00:00
Volker E fa3f2781b7 styles: Replace WikimediaUI Base vars with equivalent skin variables
Replacing several values with MediaWiki skin variables featuring new
Codex design tokens, available since >= v1.41.0.

The values are 1:1 visual replacements in the default Codex
'WikimediaUI' theme, a continuation of the base vars, and the default
for Vector and MinervaNeue skins.

Also replacing
- other static color values with variables
- and outline value as the Codex default brings an accessibility
  advancement for free

Bug: T334934
Change-Id: I512427803cffce1c16879015c45cf1e35fe17480
2023-10-25 09:30:56 +02:00
Translation updater bot 6d999aa282 Localisation updates from https://translatewiki.net.
Change-Id: I446bfcbd42230826dad4ea03aafda69f558f0ba5
2023-10-25 09:03:07 +02:00