Commit graph

3753 commits

Author SHA1 Message Date
C. Scott Ananian e2c9ca37b0 Use Parsoid HTML to drive notifications
This reuses the existing comment parser code in HookUtils and makes the
DataUpdatesHooks and EventDispatcher code consistent.

Bug: T354792
Change-Id: I58a71b26b3f47898a68a29098a8105ee844403dd
2024-01-18 19:23:13 -05:00
Translation updater bot 99bae67a4b Localisation updates from https://translatewiki.net.
Change-Id: Ie14b988d0ac50d7eb246f0431b6f3638a04c46bf
2024-01-18 09:25:15 +01:00
jenkins-bot 184cd048f1 Merge "Refactor CommentFormatter->addTopicContainer()" 2024-01-18 01:16:07 +00:00
jenkins-bot 55daf9b617 Merge "Re-enable: "Temporarily disable isPreview in Parsoid's rendering""" 2024-01-17 19:47:11 +00:00
jenkins-bot 095502a73e Merge "Comment-not-found toast not showing when enablePermalinksFrontend==false" 2024-01-17 19:45:20 +00:00
Subramanya Sastry 3f2f5dd237 Re-enable: "Temporarily disable isPreview in Parsoid's rendering""
This reverts commit 1cf6000d18.

Reason for revert: Want to do another round of visual diff testing
on wikitech as an anonymous user. Will revert this after test is done.

Change-Id: Ic3facb7ecd9c932be348d47d6a38cff71cd7e1db
2024-01-17 18:02:16 +00:00
Translation updater bot 73bb8f997b Localisation updates from https://translatewiki.net.
Change-Id: I87fc32b3ab8d91f04ac96f4b4df711242c51cc11
2024-01-17 08:37:10 +01:00
David Lynch d74eccad34 Comment-not-found toast not showing when enablePermalinksFrontend==false
results[ 0 ] would be undefined, causing a later JS error before the
toast could be shown.

Bug: T355165
Change-Id: Ia591a1e4db0acfa377201c355938a32f680393ce
2024-01-16 11:13:18 -06:00
Translation updater bot e2b0ebe4ee Localisation updates from https://translatewiki.net.
Change-Id: I353ed0624d0eacdce616bec6adc39bfc82831b45
2024-01-16 08:25:34 +01:00
Translation updater bot b754509c8d Localisation updates from https://translatewiki.net.
Change-Id: Id01adbf082130a48fb2860550664c6d01a2fcf6c
2024-01-15 08:24:13 +01:00
James D. Forrester e0fa5168fa extension.json: Drop RL targets definitions, no longer honoured
Bug: T328497
Change-Id: I0b6639e6e08373c5425a8035761d9a0b73e0e7d7
2024-01-12 08:44:20 -05:00
Translation updater bot 9467f10ed8 Localisation updates from https://translatewiki.net.
Change-Id: Iceabbd2c07cb2be4af29bd2939ce8505f640c703
2024-01-12 09:00:06 +01:00
Ed Sanders c076f170c4 Update TODO documentation around parsing
Change-Id: I14fb4874fdc3e97418b5f41665334e122c17d862
2024-01-10 18:29:40 +00:00
Translation updater bot 317b293b3d Localisation updates from https://translatewiki.net.
Change-Id: I0a2fa0bb3ea449822742fd7e32ee912a1908c7f0
2024-01-10 08:32:46 +01:00
Translation updater bot 8863c80f91 Localisation updates from https://translatewiki.net.
Change-Id: Ie52085f12002555ad6c59695e25fc40092430cea
2024-01-09 08:59:28 +01:00
jenkins-bot 91c5151575 Merge "controller: Use replyWidgetPromise when opening new topic tool" 2024-01-08 21:15:24 +00:00
jenkins-bot 088a4c9d43 Merge "CommentController/ReplyWidget: Document events" 2024-01-08 21:15:23 +00:00
jenkins-bot 1f0a6b9f80 Merge "CommentController#showAndFocus: Use replyWidgetPromise" 2024-01-08 20:50:45 +00:00
Translation updater bot 56db888a0a Localisation updates from https://translatewiki.net.
Change-Id: I1e4c4859d91d453a9908c8a39767e321765c1e0e
2024-01-08 09:15:21 +01:00
Ed Sanders 4f217f4dab controller: Use replyWidgetPromise when opening new topic tool
This prevents an exception being thrown if you open the
new topic tool when a reply widget is still loading.

Change-Id: I17da48ddf91394d05cc82613ce5517f1e176750b
2024-01-05 16:20:30 +00:00
Ed Sanders b6ebb5db56 CommentController/ReplyWidget: Document events
Also rename CommentController#teardown to onReplyWidgetTeardown,
and NewTopicController#clear(Storage) to onReplyWidgetClear(Storage).

Change-Id: Ib1dd50ca69aac6f1836674d1a6aefa2402844c57
2024-01-05 16:20:30 +00:00
Ed Sanders 811dce7bf7 CommentController#showAndFocus: Use replyWidgetPromise
We shouldn't assume callers of this method have waited
for the replyWidget to be built.

Bug: T354292
Change-Id: Ic66b4f04b8786b07f520e329adda37efcf498dad
2024-01-05 15:26:19 +00:00
Translation updater bot 555cfcc622 Localisation updates from https://translatewiki.net.
Change-Id: Ie8d555bd837f0c58109aee0796a66febdc543b91
2024-01-05 09:12:31 +01:00
Bartosz Dziewoński 91d7cdb704 Remove "Read as wiki page" feature on mobile talk pages
Bug: T280417
Change-Id: I8f24531cbe1b6bb3f434c91a9523b0a11110d8e6
2024-01-04 19:34:48 +01:00
Translation updater bot 650253f046 Localisation updates from https://translatewiki.net.
Change-Id: Id62de6475ff9f281fef80878d191567136ed7d8b
2024-01-04 09:55:33 +01:00
Translation updater bot d00fd7d665 Localisation updates from https://translatewiki.net.
Change-Id: I54d3c943b5bbbcc550c4af4fbc3cfc74c75f6a4a
2024-01-03 08:34:23 +01:00
Translation updater bot fb69ea608b Localisation updates from https://translatewiki.net.
Change-Id: I1b1d1f01e86d479822e9061914315db96d7fc522
2024-01-02 10:15:59 +01:00
jenkins-bot a608bff9f8 Merge "tests: Fix tests when LiquidThreads is also installed" 2023-12-31 07:16:05 +00:00
Translation updater bot db3e7ec069 Localisation updates from https://translatewiki.net.
Change-Id: I6b2bde2b1acaf4dcd0761d06cd5759949d25abf1
2023-12-28 14:49:45 +01:00
Umherirrender 6f487698cc tests: Fix tests when LiquidThreads is also installed
Change-Id: Ica43e90fb3e48ddd20ad2b4130fb3a5efb3a4696
2023-12-27 23:07:24 +01:00
Translation updater bot 719cee1436 Localisation updates from https://translatewiki.net.
Change-Id: If4112b6f17ced30829506df41529778ec677a02e
2023-12-26 14:42:43 +01:00
Novem Linguae 3436e2d9e9 Refactor CommentFormatter->addTopicContainer()
To get ready for the subtopic subscriptions feature, this patch
separates the code that adds the topic container from the code
that adds the subscribe button.

The idea is that in the future, an H3 would need a subscribe
button, but not a topic container. Whereas an H2 would need both.

Bug: T275943
Change-Id: I6a82773ed200dcb4083ac38a4d41838f639c097e
2023-12-24 13:34:30 -08:00
Translation updater bot 631cd8352b Localisation updates from https://translatewiki.net.
Change-Id: I60f5e8277e8bd6651f9254cc9a673a4018b791fb
2023-12-22 17:45:48 +01:00
Translation updater bot e3e4b57f3f Localisation updates from https://translatewiki.net.
Change-Id: Iee2ecc8f25aa3f92395a2abe70a52303bedb60a5
2023-12-21 19:45:13 +01:00
jenkins-bot 6ff126eab5 Merge "CommentFormatter: Do not add wrapper if the heading has attributes" 2023-12-20 17:17:18 +00:00
Bartosz Dziewoński 6f92654137 CommentFormatter: Do not add wrapper if the heading has attributes
Bug: T353489
Change-Id: Idf49b40cd745b804dbad3c09960507790be20ae3
2023-12-20 16:56:12 +01:00
Translation updater bot 7effa10d98 Localisation updates from https://translatewiki.net.
Change-Id: I5ec148ff41875288f4d086576522eeb1689cdc39
2023-12-20 14:04:41 +01:00
jenkins-bot 3a2e10588b Merge "Tweak CSS to deal with Parsoid's <section> tags" 2023-12-19 16:50:41 +00:00
jenkins-bot 35ce6582df Merge "Localisation updates from https://translatewiki.net." 2023-12-18 17:22:28 +00:00
jenkins-bot 2d2bcc05ce Merge "ContentCommentItem.php: Documentation fixes" 2023-12-18 17:21:36 +00:00
jenkins-bot 078f57b427 Merge "ThreadItem.js: Rename getNativeRange to getRange" 2023-12-18 17:21:34 +00:00
Translation updater bot 3d3d42478c Localisation updates from https://translatewiki.net.
Change-Id: I8fb6e9aa6783da82b532839d92cf5336c092ff9e
2023-12-18 18:17:04 +01:00
David Lynch 95121b7364 Stop comment-not-found notification always showing when requestedSince
`TEST && false || true` is always true regardless of `TEST`, we want
`TEST && (false || true)` instead.

Bug: T353568
Change-Id: I72fa6b87f43a9d8439883dfedc35fe82974b35de
2023-12-16 09:20:19 -06:00
Ed Sanders 84bc45adf1 ContentCommentItem.php: Documentation fixes
Change-Id: I5ee1c3e1b79f4e9bdab417c68ff447313ecb752d
2023-12-15 17:05:22 +00:00
Ed Sanders 329a268564 ThreadItem.js: Rename getNativeRange to getRange
Makes the class more similar to PHP. The non-native
ranges exist for efficiency, but users will usually
want native ranges.

Change-Id: Ifd7dd034d2e0f3b9af050ecdab3e063df73dde5e
2023-12-15 16:22:52 +00:00
jenkins-bot 70bd4e8f0e Merge "Avoid global state in tests involving CommentParser" 2023-12-15 16:21:21 +00:00
jenkins-bot 8e2d172960 Merge "CommentParser: Replace new uses of Title with TitleValue" 2023-12-15 16:21:19 +00:00
jenkins-bot bf9fc18120 Merge "Move finding transclusion source from ContentThreadItem to CommentParser" 2023-12-15 16:17:13 +00:00
jenkins-bot a77338fd6d Merge "Revert "Temporarily disable isPreview in Parsoid's rendering"" 2023-12-14 17:24:02 +00:00
Subramanya Sastry 1cf6000d18 Revert "Temporarily disable isPreview in Parsoid's rendering"
This reverts commit d004c001be.

Reason for revert: Visual diff done and results gathered.

Change-Id: Iefb0c74a121346286a353dae6cb795b86aa636ce
2023-12-14 14:16:41 +00:00