Commit graph

3495 commits

Author SHA1 Message Date
David Lynch fed37fcc82 preloadparams on other platforms supports numbered indexes
Change-Id: I4f1f5e8758007ab95e342ad5429c909f495d8deb
2023-04-01 22:49:06 +02:00
Translation updater bot 147e5ccf23 Localisation updates from https://translatewiki.net.
Change-Id: I5d7bc6eba7d3701f931c30b47d3d682e364d5cc6
2023-03-31 09:57:40 +02:00
jenkins-bot e6282e9dd8 Merge "New topics notifications: Only highlight comments in new threads" 2023-03-30 21:33:00 +00:00
jenkins-bot 679fbba088 Merge "Log an EditAttemptStep session-abort when refreshing the page contents" 2023-03-30 21:32:57 +00:00
Ed Sanders e66327746a New topics notifications: Only highlight comments in new threads
Bug: T333476
Change-Id: I3f29c4b5a9be916d25415db18f50bd8efe6532af
2023-03-30 18:42:28 +00:00
Ed Sanders fd45c64491 Merge extra arguments to highlightNewComments into 'options'
Change-Id: I2e459b380ee8e1a63af5502eecf166189c9f6916
2023-03-30 16:40:52 +01:00
Translation updater bot 0b760155f9 Localisation updates from https://translatewiki.net.
Change-Id: I64833ff25d3c74fe99d507910eef33e919da70d9
2023-03-30 09:01:39 +02:00
jenkins-bot 8e54c4d52d Merge "Parser: Store timestamp ranges" 2023-03-29 07:49:46 +00:00
jenkins-bot fb4692e9f5 Merge "Don't ship data for skipped tests to JS test code" 2023-03-29 07:49:45 +00:00
Translation updater bot e236fa4009 Localisation updates from https://translatewiki.net.
Change-Id: Ic76378f67e45baa2551c02affaed94fc2c0ccb50
2023-03-29 09:04:13 +02:00
David Lynch 98bab18d91 Log an EditAttemptStep session-abort when refreshing the page contents
Depends-On: I0092789a425ed92e90c71b2125b195b61dcb49c3
Bug: T301582
Change-Id: I2ba94bf9ca28718dac69bb4b2b431471eff63abc
2023-03-28 22:55:45 -05:00
Ed Sanders 2fcc505d50 Parser: Store timestamp ranges
Change-Id: Ifcbe22011f11f4374f38b7aa346da5a96cac968c
2023-03-28 23:51:17 +00:00
Bartosz Dziewoński 8e570a742b Don't ship data for skipped tests to JS test code
In local testing, this reduces the amount of data loaded by
Special:JavaScriptTest from 27 MB to 20 MB.

Change-Id: I37f0f677751031cc965d1921a62871154bbe9201
2023-03-29 01:48:36 +02:00
jenkins-bot 454e15e8aa Merge "List "Topic subscriptions" under "Account management" on Special:SpecialPages" 2023-03-28 11:05:43 +00:00
Translation updater bot 9573d20b0b Localisation updates from https://translatewiki.net.
Change-Id: Ida4cb742fb6883acbb991c7869b649f8c5ccfff2
2023-03-28 08:40:11 +02:00
Bartosz Dziewoński 18689b370a Add optional tracking category for comments in the lede section (before first heading)
The tracking category is disabled by default and has to be
enabled by overriding the localisation message
'MediaWiki:Discussiontools-comments-before-first-heading-category'.

Bug: T324139
Change-Id: I6e4818e9421f76aec814444b2da9f5d8585c75fd
2023-03-28 01:32:04 +02:00
jenkins-bot 9e51f11b8c Merge "Add new topics subscription button in Minerva" 2023-03-27 23:04:55 +00:00
Ed Sanders e6a255215f Add new topics subscription button in Minerva
Bug: T332730
Change-Id: Ib6915319eeae4aa32c875decd51e7fd8db4dbd16
2023-03-27 23:28:38 +01:00
Bartosz Dziewoński 9f5692cf85 List "Topic subscriptions" under "Account management" on Special:SpecialPages
Bug: T333242
Depends-On: Ieba1631ca3c0562b784aa07d2b26c418448e70a1
Change-Id: I98f67216936846005f2fe1482b18c863da7e0bc7
2023-03-27 21:50:24 +00:00
jenkins-bot 15e40153f2 Merge "Add {{GENDER:|}} to some localisation messages" 2023-03-27 17:52:25 +00:00
jenkins-bot d08871fdae Merge "Centralize EditAttemptStep logging code in WikimediaEvents" 2023-03-27 15:30:43 +00:00
Translation updater bot 6b5ff28ba2 Localisation updates from https://translatewiki.net.
Change-Id: Id0a32df0b4998ea53998facd6095eb303d4374a1
2023-03-27 08:40:56 +02:00
jenkins-bot 7bb0265d68 Merge "Add a limit to queries on SpecialFindComment etc." 2023-03-26 10:35:14 +00:00
Bartosz Dziewoński c0cb0bb24d Add a limit to queries on SpecialFindComment etc.
Some mass messages appear on hundreds or thousands of pages and it's
not good to try to list them all.

Change-Id: Ib903d67ba4fd9d85790ef4271933991b9b6f3834
2023-03-26 10:29:39 +00:00
jenkins-bot 0bd7fe6f6b Merge "Fix [reply] spacing on mobile when usability improvements unavailable" 2023-03-25 09:10:06 +00:00
jenkins-bot 98f37c5e9e Merge "Add Special:DiscussionToolsDebug" 2023-03-24 16:25:04 +00:00
Translation updater bot 02b89a8b61 Localisation updates from https://translatewiki.net.
Change-Id: I838a04d29dc3e3f2f54d18afb8db13fddc632b65
2023-03-24 09:26:51 +01:00
jenkins-bot 7106233d59 Merge "Only show the mobile add topic button on view pages" 2023-03-24 00:37:12 +00:00
Bartosz Dziewoński b7ac6387ce Add {{GENDER:|}} to some localisation messages
Although it's not necessary to use `{{GENDER:|}}` (with empty first
parameter – referring to the user viewing the page) in the English
message to enable its use in translations, translators keep asking us
about it, so let's make it clear.

Add the markup to messages that already use it in at least one
translation and those phrased very similarly to one of them.
See task for details.

Bug: T332164
Change-Id: I27ca34c41493921d4c7fda8f92f40c3495af2804
2023-03-23 23:46:22 +01:00
Bartosz Dziewoński 8d2304b3ed Add Special:DiscussionToolsDebug
It demonstrates how the DiscussionTools extension recognizes
the threads and comments present on a page, to help in debugging
or understanding its behavior.

Co-Authored-By: Ed Sanders <esanders@wikimedia.org>
Change-Id: Idbc90bd8d7742615178331889daae5f94a007fcc
2023-03-23 20:43:31 +01:00
David Lynch 0cf9c41b18 Only show the mobile add topic button on view pages
Bug: T332897
Change-Id: Id63c391a286356d9007f9a7a0b6eec75747ee6c3
2023-03-23 10:19:10 -05:00
Translation updater bot 6c66ab7c23 Localisation updates from https://translatewiki.net.
Change-Id: I6ef0c254bf3adb8c636d95735eb80fee08e8857e
2023-03-23 09:25:11 +01:00
Bartosz Dziewoński bfe4a81436 Fix [reply] spacing on mobile when usability improvements unavailable
Minerva uses block placement for the buttons only on pages where
usability improvements are available.

Follow-up to 869520a6d0.

Bug: T325416
Change-Id: I9e828197aea7bbaff86489f3ef6e256e0a0845ff
2023-03-23 00:17:18 +01:00
Ed Sanders d31254005f Update linters
Autofix some stylelint inssues

Change-Id: I5200899d253724a61bde127ccb00d8c0108af205
2023-03-22 22:38:41 +00:00
Umherirrender b7c74a34f4 build: Remove unneeded inline stylelint-disable-next-line
modules/dt.ui.ReplyWidget.less
  39:39  ✖  Needless disable for "no-duplicate-selectors"
--report-needless-disables
  65:2   ✖  Needless disable for "no-descending-specificity"
--report-needless-disables
 205:2   ✖  Needless disable for "no-descending-specificity"
--report-needless-disables

Change-Id: I233fdfbed46a9f8e75629d827b00007679063c29
2023-03-22 21:43:31 +01:00
jenkins-bot 47c40f627e Merge "persistRevisionThreadItems: Allow processing all pages in a namespace" 2023-03-22 15:17:45 +00:00
jenkins-bot 3dc8b69fb5 Merge "Bring over deleted message minerva-talk-full-page from Minerva" 2023-03-22 15:12:16 +00:00
Ed Sanders 763dbf63ea Bring over deleted message minerva-talk-full-page from Minerva
We can rename this later, once TranslateWiki has migrated the translations.

Change-Id: Ida5e19eca71dbe9c1b7c8c1bcd1d61f59d744f2b
2023-03-22 14:38:23 +00:00
Translation updater bot ff8cee4ed7 Localisation updates from https://translatewiki.net.
Change-Id: I72183fd9f9502d32a1f85f5d2fe6b8e8e77527e0
2023-03-22 09:15:18 +01:00
Bartosz Dziewoński 174533e41d persistRevisionThreadItems: Allow processing all pages in a namespace
Bug: T332745
Change-Id: I3014c9aab1df5aff6fe36742daef77b3b21a2445
2023-03-21 23:48:52 +01:00
jenkins-bot 35aa38b423 Merge "Use setExtensionData() instead of marker comments where possible (3/3)" 2023-03-21 17:01:28 +00:00
Translation updater bot 62dbb8128b Localisation updates from https://translatewiki.net.
Change-Id: I3850528bf4e28ca9602c5a2df4b99492f0cb0d7e
2023-03-21 09:16:28 +01:00
Bartosz Dziewoński 6bf128cf2d Use setExtensionData() instead of marker comments where possible (3/3)
We started using marker comments (HTML comments with special content
inserted into the page) for the reply buttons back in the day, because
we needed to indicate their location in the HTML. Later we used the
same idea for things which aren't actually tied to a specific location
in the HTML, such as boolean data like __DTEMPTYTALKPAGE__. There is a
better way to do this.

This commit stop writing the HTML comments, which are no longer used,
and cleans up the tests.

Bug: T328980
Change-Id: I37541356830945cc9abcc79d4c445ff6f2449759
(cherry picked from commit ab40ef62c0)
2023-03-21 00:13:01 +01:00
Ed Sanders 80dd6e2d7c Add new topic subscription button to page actions
Bug: T263821
Change-Id: Iab7f7d5fd1f7c229c2e0cda9369676cfd401a24e
2023-03-20 14:51:10 +00:00
Ed Sanders 2bae1864bd New topic notifications
Bug: T263821
Change-Id: Ied465e732122a1ee39ab4510f73aca11ef556c35
2023-03-20 14:41:53 +00:00
Ed Sanders 4367595bfd EventDispatcher: Generate dt-added-topic events
Change-Id: I98b67e016995866558274809743fa21ed23ee063
2023-03-20 14:41:21 +00:00
Translation updater bot fd519ff015 Localisation updates from https://translatewiki.net.
Change-Id: Ic597e9aa7238f1272c8f8240cfcf8888d42d0863
2023-03-20 09:01:03 +01:00
Bartosz Dziewoński dcecf76ff1 Centralize EditAttemptStep logging code in WikimediaEvents
PHP logging code is not moved.

* Use the new mw.track() handlers from WikimediaEvents
* Ensure that 'integration' and 'editor_interface' are set on init
  events, since they're not hard-coded in the handler any more
* Remove the setting of 'editingStatsId' tracking parameter,
  now happens in WikimediaEvents (by way of VE ArticleTargetSaver)
* Remove code connecting ve.track to mw.track, now happens in VE

This must be merged together with WikimediaEvents change
Iace4d53a972396ca5b8713000570cc47c9986034 (but we can't use
Depends-On, because CI requires code here to be removed first).

Bug: T332438
Change-Id: I0ef0a96aafdf89a4ebe32131a85b18c25744bb2c
2023-03-18 13:26:10 +00:00
Translation updater bot b01b172925 Localisation updates from https://translatewiki.net.
Change-Id: I14ad847e8daa62e62a7c3d6c37765612e65a7dcb
2023-03-17 09:22:01 +01:00
jenkins-bot 3ca1a43e2f Merge "Show usernames when display names are matched" 2023-03-16 19:36:49 +00:00