Commit graph

3528 commits

Author SHA1 Message Date
jenkins-bot 1bc53f313c Merge "Fix error message when trying to reply to transcluded comment on a protected page" 2022-05-14 09:23:50 +00:00
Translation updater bot 257cba8546 Localisation updates from https://translatewiki.net.
Change-Id: Ic2873ec87c4af03038f119cf20dc8ad3a34a4034
2022-05-13 08:25:48 +02:00
Bartosz Dziewoński 28db9b8350 Fix error message when trying to reply to transcluded comment on a protected page
If the user can't edit, tell them why, instead of trying to
advise them to use the edit button that they cannot see.

Bug: T303110
Change-Id: Ibc41732a55443331e432987e630976610901c599
2022-05-13 01:56:51 +02:00
jenkins-bot 521760ecdc Merge "Redesign "new comments" warning" 2022-05-12 17:21:23 +00:00
Ed Sanders cf3e7c49d8 Redesign "new comments" warning
Bug: T300560
Change-Id: I5abf22b5a11c2639392a3d571c987ed5afaac2d6
2022-05-12 18:02:32 +01:00
jenkins-bot 1e326c5bc2 Merge "ReplyWidget: Fix 'returntoquery' handling for anon links" 2022-05-12 15:29:06 +00:00
Translation updater bot 53404f8fe0 Localisation updates from https://translatewiki.net.
Change-Id: I7222c4d57d3ab50dc15a9c0d142200c89933a0e3
2022-05-12 08:13:14 +02:00
Bartosz Dziewoński f534e78cde Fix reply links sometimes not working after visiting action=edit&section=new with new topic tool enabled
getPageData() had an optimization where, when it was called with
isNewTopic=true, it would skip querying 'linterrors' and
'transcludedfrom' data and return fake empty responses.

The issue is that they were cached, and then returned when it was
called with isNewTopic=false later.

Remove this optimization, as we make those queries anyway on init.

Change-Id: I1990b16f574c1aec385bd0fa46a9f39c6c2c1df2
2022-05-12 03:38:31 +02:00
Bartosz Dziewoński d7c390a6ca ReplyWidget: Fix 'returntoquery' handling for anon links
mw.util.getUrl() already encodes the values, encodeURIComponent()
isn't needed.

Also, slice off the leading '?' – while MediaWiki seems to accept it,
it looks like it is never present in any other place using this
parameter (this is fine even if there are no query parameters).

Bug: T308198
Change-Id: Iee3747ab53e3b0a5a0b43a7701205ac0c7f07e7f
2022-05-12 03:23:29 +02:00
Bartosz Dziewoński 523efb065c Make comment markers inline-block to fix comment wrapping in Safari (in headings only)
Previous attempt: I40da5272fd9c44a5a81e303349d0e8fc404e344d.
Limit the hack to only end markers and only inside headings
to avoid causing issues with page content.

Bug: T298371
Change-Id: I9dc95e17752b7f048eb3343dbeea3526359197c3
2022-05-12 02:31:22 +02:00
Ed Sanders b76cf89b9b Add missing 'undo' button on mobile
Bug: T308033
Change-Id: If3126cb213fb4a22a419b9b85fdca32b20863f03
2022-05-11 17:37:08 +01:00
Translation updater bot 7fd82831d4 Localisation updates from https://translatewiki.net.
Change-Id: Ie0543e475d94d32f9d127202c6ab6dff281edadd
2022-05-11 08:11:31 +02:00
Translation updater bot 7e52eb542b Localisation updates from https://translatewiki.net.
Change-Id: I52c823dbeffeab1a69fd86a664fc3ffb32e16427
2022-05-10 08:09:23 +02:00
jenkins-bot 804946edca Merge "Dismiss "new comment" highlights when clicking" 2022-05-09 17:33:58 +00:00
Translation updater bot 5afb6cd68b Localisation updates from https://translatewiki.net.
Change-Id: I1a5998d6a94c927c8190b900cba26714225f71a9
2022-05-09 08:11:36 +02:00
Ed Sanders 95ec3e7920 Dismiss "new comment" highlights when clicking
Bug: T307807
Change-Id: I40ae5fdbadfb223b1484ebf6041d29263aafa347
2022-05-06 17:44:21 +01:00
Ed Sanders 4fb474d611 build: Update stylelint-config-wikimedia to 0.13.0
Change-Id: I164d6175f8077487e2d8dfbf0bcfbd13f1545cae
2022-05-04 23:25:06 +01:00
Translation updater bot b7a81cfc94 Localisation updates from https://translatewiki.net.
Change-Id: I4d7a9cd8f9ccd88c74fbc6a4b8a8bc23a137075e
2022-05-04 08:18:24 +02:00
Translation updater bot 5a236b6864 Localisation updates from https://translatewiki.net.
Change-Id: Id55fe0cf66cf7a9b38cfe0e3300a986b2d80a124
2022-05-03 08:45:13 +02:00
Translation updater bot f6e2062188 Localisation updates from https://translatewiki.net.
Change-Id: Ib0f68f1f5ca2d038393ecb79b5e0945e751dd118
2022-05-02 08:19:27 +02:00
Translation updater bot 8bc10a1cdc Localisation updates from https://translatewiki.net.
Change-Id: Id7db01fd6a987efce2f7223dc1ae9231cecfd970
2022-04-29 08:42:51 +02:00
Translation updater bot fc8825a0b8 Localisation updates from https://translatewiki.net.
Change-Id: If073ef94f4c1064bc58e162164c8e4b6a0a28e69
2022-04-28 09:28:27 +02:00
libraryupgrader d3e19be43d build: Updating grunt to 1.5.2
Change-Id: Iabd2bcceebfe962c5c8f74dfbf93f04daf40cfd2
2022-04-27 10:13:42 +00:00
Translation updater bot f8cabe6678 Localisation updates from https://translatewiki.net.
Change-Id: I8c31c16b7bafe7f34df2362cbe89513da92c2973
2022-04-26 08:54:02 +02:00
Translation updater bot 9918b68563 Localisation updates from https://translatewiki.net.
Change-Id: I0a832eac020dbeb2d86c4aabd222f1a7a338b349
2022-04-25 08:17:43 +02:00
Translation updater bot 4b8ad4c21c Localisation updates from https://translatewiki.net.
Change-Id: I4c129a4bea6943dfa1abfdc945ee4ed5b6e72abb
2022-04-22 08:23:04 +02:00
jenkins-bot 4f25201193 Merge "highlighter: Set the location hash for new topics on desktop as well" 2022-04-21 23:55:19 +00:00
jenkins-bot 90018a5b55 Merge "highlighter: Ensure items in .ranges and .$element are in the same order" 2022-04-21 23:55:17 +00:00
jenkins-bot d35c96db97 Merge "Mobile empty state adjustments: hide image, bigger button" 2022-04-21 21:48:07 +00:00
Bartosz Dziewoński f411f1c342 highlighter: Set the location hash for new topics on desktop as well
The old section=new wikitext editor does this, and I'd rather support
the same behavior on desktop and mobile than different ones.
Follow-up to 89a1efc9d8.

Change-Id: I5371f932680638ee159f2f713bbca44bba5675aa
2022-04-21 22:36:35 +02:00
David Lynch faff90b96b Mobile empty state adjustments: hide image, bigger button
Bug: T305261
Change-Id: I503a62fafaebfe17e1dd2181e543dcc2dbac9eb1
2022-04-21 11:48:23 -05:00
Translation updater bot e8f7b099ce Localisation updates from https://translatewiki.net.
Change-Id: I0ccede114ea9262e28f0090729bd5f09f9abbc61
2022-04-21 08:12:03 +02:00
jenkins-bot 40b9b7a536 Merge "Avoid duplicating page content if there are multiple .mw-parser-output elements" 2022-04-21 01:02:06 +00:00
jenkins-bot 32027a313b Merge "ReplyWidget: Fix text-align when content and user language have different direction" 2022-04-21 01:00:12 +00:00
Bartosz Dziewoński d910663bbc highlighter: Ensure items in .ranges and .$element are in the same order
jQuery#add sorts the nodes in DOM order (and removes duplicates).
We did not sort the ranges, so they could end up in a different
order, causing #update to apply the CSS to the wrong nodes.
This was usually harmless, but it could cause incorrect rendering
when some elements are positioned or hidden.

Change-Id: Ic359db08dafa3d86a5778426a7dc2419c94feabd
2022-04-20 19:41:44 +02:00
Translation updater bot c83ce3c5ae Localisation updates from https://translatewiki.net.
Change-Id: I803c04b26b2f0e23a10c5121e749aa458002d9c6
2022-04-20 08:18:37 +02:00
jenkins-bot 0b57fc6d66 Merge "Replace Action::getActionName by IContextSource::getActionName" 2022-04-20 00:15:27 +00:00
Bartosz Dziewoński 0c6013c582 ReplyWidget: Fix text-align when content and user language have different direction
Bug: T306137
Change-Id: Ibb0accc210f3cd922ddfb4f0d95df2f98f684425
2022-04-19 22:05:09 +02:00
Bartosz Dziewoński 1ad185e097 Avoid duplicating page content if there are multiple .mw-parser-output elements
Bug: T306388
Change-Id: Iaee2999f02929d562ae9f78ef50913d515c72bb3
2022-04-19 21:46:59 +02:00
jenkins-bot 32ab7cdd97 Merge "Fix highlighting and expanding of new topics on mobile" 2022-04-19 19:10:31 +00:00
Ed Sanders 89a1efc9d8 Fix highlighting and expanding of new topics on mobile
Set the location hash to that of the new topic, then wait
for the section to expand before drawing the highlight.

Bug: T306399
Bug: T301840
Change-Id: I8bc78b49f359e10279584c16269fcb78a087eae0
2022-04-19 15:41:28 +00:00
jenkins-bot 019b22ed11 Merge "Remove limit on the number of topic subscriptions per user" 2022-04-19 15:29:00 +00:00
Translation updater bot a3a5815927 Localisation updates from https://translatewiki.net.
Change-Id: Id734c5ca9b5a3cbcced8dea8907bb29d86778ccd
2022-04-19 10:14:23 +02:00
Translation updater bot 2916e05c15 Localisation updates from https://translatewiki.net.
Change-Id: I3ffde0dd66c38b547885cf6b02043463aaf465a9
2022-04-18 10:05:54 +02:00
Umherirrender a979257396 Replace Action::getActionName by IContextSource::getActionName
Change-Id: If681252727a161d62444c8edbcd0cf447df1e765
2022-04-15 22:52:30 +02:00
libraryupgrader 2e37c28062 build: Updating minimist to 1.2.6
* https://github.com/advisories/GHSA-xvch-5gv4-984h

Change-Id: I5145191bb257914e8e2d667801417a5cf0a8cd3a
2022-04-15 03:19:54 +00:00
Bartosz Dziewoński a31f022ba5 Remove limit on the number of topic subscriptions per user
We added the limit out of abundance of caution, because we were not
sure how the table is going to grow. We can see now that it's growing
slowly and reasonably.

Bug: T294881
Change-Id: I5da444c5d070926452e96ddbbe728b9e0375e466
2022-04-14 17:52:23 +00:00
Translation updater bot 1d72f8863e Localisation updates from https://translatewiki.net.
Change-Id: I422911a416c37fe82956f78a5a154a6f466714f8
2022-04-14 08:26:24 +02:00
Translation updater bot 62ff76ee59 Localisation updates from https://translatewiki.net.
Change-Id: I8d0a739da313b153aa9c765e18ab9d5bb74b31d8
2022-04-13 08:32:12 +02:00
Ed Sanders 64c76f54a3 Don't reload the page on mobile
Bug: T301839
Depends-On: I0985dd5e8db6f82df882c6f4de4ef3821a0eef13
Change-Id: Ic02de79627b813c1fa6f0e537288206bfb1dbd1c
2022-04-12 18:23:57 +01:00