Commit graph

3034 commits

Author SHA1 Message Date
Translation updater bot cfdeadfdb8 Localisation updates from https://translatewiki.net.
Change-Id: Iebb3397c20d01a1533c566a90176f799aa1fb30e
2023-01-10 08:24:31 +01:00
Bartosz Dziewoński 3a9997d6ea Improve handling for comment separators
* Detect comment separators at the end of comments too
* Consider TemplateStyles associated with ignored templates

This unexpectedly improves a lot of cases other than T313097 too,
mostly where <br> or {{outdent}} was used within a paragraph:
splitting comments that were previously jumbled together, or restoring
content that was previously ignored for apps / notifications.

Bug: T313097
Change-Id: I9b2ef6b760f2ffd97141ad7000f70919aeab7803
2023-01-10 01:59:52 +00:00
Bartosz Dziewoński 56dcaa833b Add another test case for {{tracked}} template
Bug: T313097
Change-Id: I3ac1bfe40d808eee32f9b713dc40f502a6e54f8a
2023-01-10 01:59:46 +00:00
Bartosz Dziewoński 2a38098785 Flip the reply button icon on RTL
Bug: T325664
Change-Id: Id254420db317848e4894c9c683a3b27a98931155
2023-01-10 00:38:17 +00:00
Translation updater bot 97160052b0 Localisation updates from https://translatewiki.net.
Change-Id: Ia17a9460858563a4e9a0968c1dbb765c5f08fae1
2023-01-09 09:26:05 +01:00
jenkins-bot d7fe1c7979 Merge "Delay API requests for preloading metadata until user interaction" 2023-01-06 21:46:34 +00:00
Translation updater bot d00504bf0e Localisation updates from https://translatewiki.net.
Change-Id: I7a05d9e5fd14b3b6b92f08be7efce24897ad4a52
2023-01-06 08:54:34 +01:00
Bartosz Dziewoński 360e3584c6 Delay API requests for preloading metadata until user interaction
Instead of doing them right after page load, only do them on
hover/touch/focus, when we can expect that the user is about to
click/tap/activate a reply link, but which lets us start the work a
fraction of a second earlier.

Bug: T325598
Change-Id: Ida4cb70d8e9ab423ad2dabca7258f92e9fca3157
2023-01-06 01:24:00 +00:00
jenkins-bot 6d52132754 Merge "Clean up ApiDiscussionToolsPageInfo hack" 2023-01-05 23:28:04 +00:00
Translation updater bot d326fa4671 Localisation updates from https://translatewiki.net.
Change-Id: Id7868796caad0b0440ed00abdf619446e64a17bb
2023-01-05 09:08:02 +01:00
Translation updater bot c7353aa27d Localisation updates from https://translatewiki.net.
Change-Id: I4dba5cc5da07059676143fbcef0f9e2cf5943551
2023-01-04 08:28:56 +01:00
Bartosz Dziewoński af7097f02f Enable collapsible content in mobile talk page lede content
Bug: T323639
Change-Id: I3cfc8e7337172b44156a7f3bed9ff134c0851475
2023-01-03 18:16:15 +00:00
Translation updater bot 2c9ec88c0f Localisation updates from https://translatewiki.net.
Change-Id: Iadf53f11e3a7f58448fdd14f3b4263b9a3752795
2023-01-03 08:20:34 +01:00
Translation updater bot 38bc50a710 Localisation updates from https://translatewiki.net.
Change-Id: Iab8a194dac195e19ea87de5594162575ac417400
2023-01-02 08:42:52 +01:00
Translation updater bot 96787594a7 Localisation updates from https://translatewiki.net.
Change-Id: I9f5e3236ed55aa2103fcc9e4d0ff58972de49ea1
2022-12-29 10:01:23 +01:00
Translation updater bot e92112ea27 Localisation updates from https://translatewiki.net.
Change-Id: I8df95dfd389d86cb4256d0c78e49f1b6d4afdcf6
2022-12-26 09:09:38 +01:00
David Lynch d3a44b1092 Language code for zh-yue wiki is just yue
Bug: T323537
Change-Id: Ia6563b15ac92afc79eb3507bdd69bc4bf3000e33
2022-12-22 14:04:49 -06:00
jenkins-bot 8070ce8a57 Merge "a/b test anonymous ID was being reset because of cookie prefixes" 2022-12-22 15:12:25 +00:00
Translation updater bot dc936b87d8 Localisation updates from https://translatewiki.net.
Change-Id: Ib6ed325af35c475f7ba5d03140995a6b42f88b08
2022-12-22 11:03:18 +01:00
Translation updater bot 15474764f9 Localisation updates from https://translatewiki.net.
Change-Id: I607cae84983e66fb75ab3840c6aafb76847bbff4
2022-12-21 09:15:01 +01:00
Tim Starling ef7213a3d3 Clean up ApiDiscussionToolsPageInfo hack
Treat non-talk pages as empty ContentThreadItemSet objects, instead of
returning early from execute().

Exclude non-talk pages even if only the rev_id is specified.

If both rev_id and title are specified, use the title from the
database.

Bug: T325477
Bug: T325598
Change-Id: I3947ac94bb7c9a3d24b73c95f0df2cf847c955f2
2022-12-21 00:57:34 +00:00
Translation updater bot 075593343d Localisation updates from https://translatewiki.net.
Change-Id: I40a8ce11c927c0586881b6d641c5d5f59315ee76
2022-12-20 09:29:25 +01:00
jenkins-bot 477917e7e7 Merge "Only preload getPageData if there's thread data for the page" 2022-12-19 10:08:58 +00:00
David Lynch 013872ae22 Only preload getPageData if there's thread data for the page
This should avoid hitting the API if the DT JS is loaded off of talk
pages. At worst, if this is overly restrictive, later calls should still
load it when someone actually interacts with a reply widget.

Bug: T325477
Change-Id: If898dd4a21f1d2620c5a1e79908647070c441854
2022-12-19 03:03:02 -06:00
jenkins-bot 0a5397b4b5 Merge "Emergency: discussiontoolspageinfo return empty response in non-talk ns" 2022-12-19 08:55:49 +00:00
Translation updater bot 248f1e754c Localisation updates from https://translatewiki.net.
Change-Id: I0b76b5c79cbcf69b8cf2a6b8a1f1fe982425e3dd
2022-12-19 09:03:50 +01:00
Amir Sarabadani 00f5ba5db4 Emergency: discussiontoolspageinfo return empty response in non-talk ns
Bug: T325477
Change-Id: Ia7c8cca8051c800646c0f403065589f682d1ff17
2022-12-19 08:57:43 +01:00
David Lynch fcb6468805 a/b test anonymous ID was being reset because of cookie prefixes
Bug: T321961
Change-Id: Ie37d0dbefaf10bf48c32461cd7d5d1b4c7882725
2022-12-16 14:45:07 -06:00
Translation updater bot 92f31745c4 Localisation updates from https://translatewiki.net.
Change-Id: Iaf79a984603dff3f14813e356b84647748d6368c
2022-12-16 08:46:48 +01:00
David Lynch 0db7b997f3 Log an event when the lede button is clicked
Bug: T314596
Change-Id: Ifb5c9eb3cfac8b217546d4945e6f39ce38251e1e
2022-12-15 11:27:26 -06:00
Translation updater bot 9cc104cb88 Localisation updates from https://translatewiki.net.
Change-Id: I698db4062d0449b9e26a20244464b59727973fde
2022-12-15 11:35:42 +01:00
jenkins-bot 459554b18c Merge "Use new stable API for subtitle modification" 2022-12-14 04:09:58 +00:00
jenkins-bot 05e717f3ef Merge "VisualEnhancements: in some languages put an arrow by the reply button" 2022-12-13 19:47:12 +00:00
daniel a6a12730fc Don't write to parser cache from maintenance script
The parser cache for parsoid output isn't yet ready for full load.
Don't flood it when running batch operations.

Change-Id: I77f3de30b0500f0e5c593f4d31dceef7720f848e
2022-12-13 16:26:03 +00:00
Translation updater bot 9fd313fb38 Localisation updates from https://translatewiki.net.
Change-Id: Ie39a2262a390c2234c884a9b37346ca81e51e3b6
2022-12-13 08:16:50 +01:00
David Lynch c706562ce9 VisualEnhancements: in some languages put an arrow by the reply button
New config: DiscussionTools_visualenhancements_reply_icon_languages

Config is set up with a provide_default merge strategy so we can remove
items from it quickly if need be.

Bug: T323537
Change-Id: Ib748897a2162bb233000f7364e30b268932f4c4a
2022-12-13 00:11:08 -06:00
Jon Robson fbd951906a Use new stable API for subtitle modification
Bug: T324876
Depends-On: Id8436324e2ae2fd9f488b65b3b7bfc19611870d1
Change-Id: I4b178f67b6718fa9a84827e1804ec4eb1483f735
2022-12-13 01:13:29 +00:00
Translation updater bot cc91a40738 Localisation updates from https://translatewiki.net.
Change-Id: I2a0a2d66f1e2a467d62c0ec946fbad5a92f4353a
2022-12-12 08:22:17 +01:00
Translation updater bot 8cb138133f Localisation updates from https://translatewiki.net.
Change-Id: I21e25c8b787fc680b3ab724218d098b4a021a559
2022-12-09 08:45:59 +01:00
jenkins-bot beded3d29d Merge "Add 'collapsible-headings-collapsed' body class" 2022-12-09 01:34:09 +00:00
jenkins-bot ae323bf5e9 Merge "Deemphasize "Learn more about this page" link" 2022-12-08 17:03:35 +00:00
Translation updater bot 7d826422c2 Localisation updates from https://translatewiki.net.
Change-Id: I12df288cfe2dd0aecfcc29d7105060105049d2fb
2022-12-08 08:28:47 +01:00
Bartosz Dziewoński fda9f159f5 Deemphasize "Learn more about this page" link
* Increase selector specificity to make it work
* Tweak colors, they were lighter than intended
* Use color rather than opacity on text to avoid making it blurry
  (opacity disables subpixel rendering)

Bug: T324702
Change-Id: Ie32a7481ea90b983cd33e6eae981d47db8612c9f
2022-12-07 22:13:55 +01:00
Ed Sanders c2dc05b085 Add 'collapsible-headings-collapsed' body class
Used by MobileFrontend in I78cfb22fbe7d to prevent sections from
auto-expanding.

Bug: T321618
Bug: T322628
Change-Id: I6dafd5b9cb170bfa57f185849db6450162173399
2022-12-07 16:51:22 +00:00
Translation updater bot 529e83fce6 Localisation updates from https://translatewiki.net.
Change-Id: I34554806317ea686163a6ab722d02df48da46af9
2022-12-07 08:13:09 +01:00
Translation updater bot 05dcc05f89 Localisation updates from https://translatewiki.net.
Change-Id: I8724b4d5b6a9bab70746dbfe86b836a446ae544e
2022-12-06 08:51:59 +01:00
Francois Pignon de107bb6a8 Optimize some jQuery selectors
Bug: T324523
Change-Id: I57a86f3f29cd33e93db31338420af15fdb3113b9
2022-12-05 23:56:09 +00:00
daniel 683edf3947 Track parsoid render reason.
Call ParserOptions::setRenderReason to allow us to track why we render
and in particular, why we write to the parser cache.

Change-Id: If42f802f4cf2da39b06cbb8a30c4dc7d9a663001
2022-12-05 20:54:55 +01:00
jenkins-bot 984f804f17 Merge "Don't collapse the lede section when it has comments" 2022-12-05 19:04:37 +00:00
jenkins-bot 8a6bc91f46 Merge "Consider MediaWiki:Talkpageheader message when adding "Learn more" button" 2022-12-05 19:04:35 +00:00