Commit graph

4033 commits

Author SHA1 Message Date
jenkins-bot 961d36f13e Merge "BetaPreferenceHooks: Reuse $this->config" 2024-07-03 16:08:26 +00:00
Fomafix c675410755 BetaPreferenceHooks: Reuse $this->config
Change-Id: I782da96af4786ce812665a1e08bd89cacc52747e
2024-07-03 15:14:47 +00:00
Fomafix b06b96b915 Inject services into DiscussionToolsHooks
Change-Id: If15fd7cca27832ed8ff6738c90556be701be269f
2024-07-03 15:00:54 +00:00
jenkins-bot 11ef3a577d Merge "permalinks: Only handle unmodified left clicks" 2024-07-03 14:29:05 +00:00
jenkins-bot b785276cec Merge "Inject service ContentLanguage into ThreadItemStore" 2024-07-03 14:09:34 +00:00
Fomafix 3c76c7918b Inject service ContentLanguage into ThreadItemStore
Change-Id: Ie9b7d462c8ddf4abb749ee07537ccec1949b8fba
2024-07-03 10:16:27 +00:00
Fomafix 32069364ff Use $this->getServiceContainer() in maintenance and tests
Use
	$this->getServiceContainer()
instead of
	MediaWikiServices::getInstance()
in maintenance and tests.

Change-Id: I4066d7b2029296f1edb164acc5f8c812ccfba808
2024-07-03 08:44:55 +00:00
Translation updater bot af1ee2ded7
Localisation updates from https://translatewiki.net.
Change-Id: I9ff092089c7f4befc25859490cb2057caaabed60
2024-07-03 09:26:17 +02:00
Bartosz Dziewoński eb497b00c7 permalinks: Only handle unmodified left clicks
Allow using Ctrl+click to open the link in a new tab, or Alt+click to
select the text, without annoying side effects.

Change-Id: I3ab4c1ec3d5fc6c69e7f44489bbe63c536a64b91
2024-07-02 10:38:42 +02:00
Translation updater bot 9f9a73c746
Localisation updates from https://translatewiki.net.
Change-Id: Id328a5c942bafe8a4533db3f395b7d3c08d86a9f
2024-07-02 09:49:30 +02:00
jenkins-bot 6796c26cc9 Merge "Fix color contrast issues in DiscussionToolsDebug in night theme" 2024-07-01 15:59:54 +00:00
jenkins-bot 1be8a4e281 Merge "Use green rather than yellow for newly posted messages" 2024-07-01 15:59:52 +00:00
jenkins-bot 76dad90e28 Merge "Fixes background of talk page highlights in dark mode" 2024-07-01 15:59:51 +00:00
Translation updater bot c70888a2db
Localisation updates from https://translatewiki.net.
Change-Id: Ib81ea7c4cbeb6feb4db4aa0f6eb36a7612e13d94
2024-07-01 09:25:10 +02:00
Fomafix f6c3c98bc3 Use service 'GadgetsRepo' instead of deprecated GadgetRepo::singleton()
Change-Id: I226b259e361d3d27ec89975353fdf6396ba60ccb
2024-06-30 09:03:11 +00:00
xtex 1a2ccbb58c
Add Simplified Chinese magic word aliases
Change-Id: Ib050aa998e38473ad9c16c4cea36235a0d1c18c9
2024-06-30 15:12:42 +08:00
xtex cdf5801d4d
Add Simplified Chinese special page aliases
Change-Id: Idb7fd3e8d793c41716c6baf5e196a8968d17eb42
2024-06-30 14:22:24 +08:00
Jon Robson b3bb486e30 Fix color contrast issues in DiscussionToolsDebug in night theme
Visual change: tokens are switched out for closest available.

Bug: T366524
Change-Id: I185bf496e3b2974ec4cb873719327e6898ca57db
2024-06-28 17:12:52 +00:00
David Lynch edb23dc849 Permalink copying: fix another reference to e.target
Bug: T368701
Change-Id: Iae20e4573dfc12ea9d4010390fe2acb135e1b1cd
2024-06-28 11:05:11 -05:00
jenkins-bot 339a609c45 Merge "Reword the missing target heading message" 2024-06-28 15:51:25 +00:00
David Lynch cd39c267b5 Permalink copying: use currentTarget to avoid conflicts with userscripts
Bug: T368701
Change-Id: I70b1cbf8aaf917ed843f003eec7bbd61db39ecc7
2024-06-28 10:17:27 -05:00
Translation updater bot 12bca79877
Localisation updates from https://translatewiki.net.
Change-Id: I53311b62fad92f4e3766bc90675f1304cf803c78
2024-06-28 09:41:23 +02:00
Jon Robson f81739f8b4 Use green rather than yellow for newly posted messages
Use @background-color-success-subtle following discussion

Bug: T368086
Change-Id: I216fdb576ee9066df0c3cd3bc62d424f258fe265
2024-06-27 15:45:34 -07:00
Jon Robson 6896c8c879 Fixes background of talk page highlights in dark mode
Bug: T368086
Change-Id: I6ca92afeba448f953d1ef5f54d7f1e966c017b48
2024-06-27 15:45:34 -07:00
jenkins-bot 4a2a1670de Merge "Fix white on white text in source preview" 2024-06-27 19:54:19 +00:00
bwang e830713b64 Fix white on white text in source preview
Bug: T367432
Change-Id: I2beabfe21e0c7402804a6968d983b8ef96b5329b
2024-06-27 09:51:06 -05:00
Translation updater bot 146ea49a12
Localisation updates from https://translatewiki.net.
Change-Id: Ic5515a107dd1bc42932c07e2a6a3e8c21ffbf5e3
2024-06-27 09:20:36 +02:00
Nemoralis 6c8280a7a7 Reword the missing target heading message
Added "or renamed" to "discussiontools-target-heading-missing" because often the title may change a little, but the topic will remain on the page

Bug: T362707
Change-Id: Idfe50a01743fb7fe6dcd5a73aaf830dc5e3881ca
2024-06-27 07:32:45 +04:00
jenkins-bot 549466c852 Merge "Disable beta feature automatically when all sub-features are available" 2024-06-26 21:24:06 +00:00
Ed Sanders 08d540f6b5 Disable beta feature automatically when all sub-features are available
Change-Id: I87886c894f652db339d3f07630366b3b4ff74e9e
2024-06-26 12:03:58 +01:00
Bartosz Dziewoński f4e419b019 FixTrailingWhitespaceIds: Don't crash on complex conflicts
Also, move output and waiting to the outer loop.

Bug: T356196
Change-Id: Ibb88bfe3fb14e53eef4837ce9e681cebce399be1
2024-06-24 19:33:02 +02:00
jenkins-bot 5b415eb241 Merge "Reduce unused mocks in CommentFormatterTest" 2024-06-24 16:07:28 +00:00
Translation updater bot 51456e51cd
Localisation updates from https://translatewiki.net.
Change-Id: Ib3378e94165e30fe57573d77d500b09397bb0076
2024-06-24 09:25:12 +02:00
thiemowmde 15a9304bc5 Reduce unused mocks in CommentFormatterTest
For example, in case nothing is ever called it's sometimes helpful to
use "NoOp" mocks to make this more visible.

There is also no actual OutputPage needed, just the much more narrow
interface.

Change-Id: I44522276726786abd75c85c02a7003c33a5602bb
2024-06-23 13:56:34 +00:00
jenkins-bot 7281eec5b2 Merge "Improve unwrapFragment() for multi-paragraph comments" 2024-06-22 09:48:56 +00:00
jenkins-bot da90f4b049 Merge "Remove A/B test code" 2024-06-21 21:35:20 +00:00
Ed Sanders 66ddcf5b64 Remove A/B test code
It's unlikely we'll do another feature A/B test any time soon.

Bug: T322492
Bug: T341491
Depends-On: Ia3712e2930fcd971bce44f568430602ce3949f23
Change-Id: I1ef4191f9466b7420a2fead571615ed6d49f873e
2024-06-21 21:08:15 +00:00
Bartosz Dziewoński 674353691b Improve unwrapFragment() for multi-paragraph comments
I've been reading some discussions in Special:DiscussionToolsDebug
and saw a good number of comments where the first paragraph has
a bullet point (`*`), and the following paragraphs are indented (`:`).

Change-Id: I1afadc49565e843c97286a3744941ffb4062ddec
2024-06-21 22:37:09 +02:00
jenkins-bot c11460a527 Merge "Fix parsing usernames with +" 2024-06-21 15:19:33 +00:00
Translation updater bot 93d9417dba
Localisation updates from https://translatewiki.net.
Change-Id: I4809d67db596b8dbf2fecf6aca3f9fdffb46e19e
2024-06-21 09:41:46 +02:00
libraryupgrader d271121a28 build: Updating npm dependencies
* grunt-stylelint: 0.20.0 → 0.20.1
* stylelint-config-wikimedia: 0.17.1 → 0.17.2

Change-Id: Id90531e0c1e1ce96ae56d7e3e2901d60577dc4d2
2024-06-20 06:30:15 +00:00
jenkins-bot fb4d4d77a5 Merge "Trim whitespace from truncated heading titles in IDs" 2024-06-20 02:20:23 +00:00
Bartosz Dziewoński 20ff1a519f Fix parsing usernames with +
urldecode() should be used for decoding URL query parameters,
rawurldecode() should be used for decoding URL paths.

Bug: T367977
Change-Id: I7a7b14da85fb89f612c701d2746803d830017842
2024-06-19 17:14:10 +02:00
Translation updater bot aff2c0be56
Localisation updates from https://translatewiki.net.
Change-Id: Id53f4012db7d9b75ecd772185a85530965508169
2024-06-19 09:22:15 +02:00
Translation updater bot 36da2ea5a0
Localisation updates from https://translatewiki.net.
Change-Id: I106d3ca355b02c0e4a41a96b74621652d61caf43
2024-06-18 09:27:29 +02:00
Translation updater bot 08b62bc068
Localisation updates from https://translatewiki.net.
Change-Id: I3755b7a5ee218475f3b3222b1cbbcafff46fd1da
2024-06-17 09:30:40 +02:00
jenkins-bot d8da88055a Merge "Remove WMF-specific "discussiontools-autotopicsub" settings" 2024-06-16 09:32:41 +00:00
jenkins-bot 7c9450489d Merge "Use ConditionalUserOptions for "echo-subscriptions-email-dt-subscription"" 2024-06-16 09:32:34 +00:00
Bartosz Dziewoński 0f601b690a Remove WMF-specific "discussiontools-autotopicsub" settings
WMF config change should be deployed first: Ica7dba4f17eb3e57a1a2415cc970c54a67eac696

The default value for this preference was already '1', and this code
was a no-op unless it was overridden to '0' like it was in WMF config.

Bug: T357221
Change-Id: I6b09bbea9bfb7a8f8ed17114dc59e657c5b66e91
2024-06-15 13:05:07 +00:00
Bartosz Dziewoński 488e35d82e Use ConditionalUserOptions for "echo-subscriptions-email-dt-subscription"
WMF config change should be deployed first: Iaff2d5ffee78d6200e1fa971c5c62137a400005d

Bug: T357221
Change-Id: I2744d52c5ff8c89166c19ab0ff2b4a27bfbf7cd7
2024-06-15 13:04:58 +00:00