mediawiki-extensions-Discus.../modules
Bartosz Dziewoński db28a3d3a7 Handle highlighting and scrolling to comments for bundled notifications
Notifications are bundled by section, so instead of linking to the
comment, link to the section.

Additionally, add a parameter to the URL listing all the comment IDs
from the bundle, and highlight them all and scroll to the topmost one.

Having to handle both URL fragments and URL query parameters makes
this code kind of a mess :(

Also, some unexpected changes became necessary:

* EventDispatcher.php: Store the section title in events using
  HeadingItem::getLinkableTitle() instead of ThreadItem::getText().
  The result is mostly the same, except in case of wacky markup like
  images or extension tags. We can more reliably use it to link to the
  section on the page, and we already use getLinkableTitle() when
  generating edit summaries in the reply tool for this reason.

* dt.init.less: Change the mix-blend-mode for the highlights from
  'multiply' to 'darken', so that multiple overlapping highlights do
  not look more opaque. This affects how the highlights look on
  non-white backgrounds and images (they're less blue, and on darker
  backgrounds entirely invisible), but it seems worth it.

Bug: T286620
Change-Id: I21bb5c003abc2747f0350d3f3af558dfb55693e9
2021-08-16 22:03:30 +02:00
..
dt-ve Disallow horizontal rule (----) in reply tool 2021-06-17 21:30:48 +01:00
lib Handle timestamps in daylight saving time 2019-10-22 16:33:21 +02:00
.eslintrc.json eslint: Disable max-len 2020-04-21 15:50:19 +01:00
AbandonCommentDialog.js Separate dialog for abandoning a new topic 2021-01-19 21:40:21 +01:00
AbandonTopicDialog.js Separate dialog for abandoning a new topic 2021-01-19 21:40:21 +01:00
CommentController.js Move reply link handling out of CommentController 2021-06-30 17:05:55 +02:00
CommentDetails.js Show edit notices in the new discussion tool 2021-06-22 21:40:51 +02:00
CommentItem.js Move warnings stuff from CommentItem to ThreadItem 2020-11-02 20:07:23 +00:00
controller.js Handle highlighting and scrolling to comments for bundled notifications 2021-08-16 22:03:30 +02:00
dt.debug.js Code style: Move var declarations inline 2021-04-22 17:43:46 +00:00
dt.init.js Apply an empty-state to pages with the new topic tool enabled 2021-08-04 18:46:28 -05:00
dt.init.less Handle highlighting and scrolling to comments for bundled notifications 2021-08-16 22:03:30 +02:00
dt.ui.NewTopicController.less Show edit notices in the new discussion tool 2021-06-22 21:40:51 +02:00
dt.ui.ReplyWidget.js Introduce CommentDetails to group up and document stuff we pass around 2021-06-21 22:12:18 +02:00
dt.ui.ReplyWidget.less Swap DOM order of summary and watch checkbox 2021-05-27 23:24:25 +02:00
dt.ui.ReplyWidgetPlain.js Introduce CommentDetails to group up and document stuff we pass around 2021-06-21 22:12:18 +02:00
dt.ui.ReplyWidgetVisual.js Introduce CommentDetails to group up and document stuff we pass around 2021-06-21 22:12:18 +02:00
HeadingItem.js Code style: Move var declarations inline 2021-04-22 17:43:46 +00:00
highlighter.js Code style: Move var declarations inline 2021-04-22 17:43:46 +00:00
highlighter.less Change dt- class prefix to ext-discussiontools- 2021-03-13 14:42:39 +00:00
logger.js Code style: Move var declarations inline 2021-04-22 17:43:46 +00:00
ModeTabOptionWidget.js Improve mode selector keyboard interactions 2021-03-18 15:15:40 +01:00
ModeTabSelectWidget.js Improve mode selector keyboard interactions 2021-03-18 15:15:40 +01:00
modifier.js Merge "Fix adding comments in lists containing <dt> tags" 2021-05-25 19:19:49 +00:00
NewTopicController.js Apply an empty-state to pages with the new topic tool enabled 2021-08-04 18:46:28 -05:00
Parser.js Take over extra links to add a new topic added by gadgets/templates 2021-06-30 18:06:39 +02:00
ReplyLinksController.js Apply an empty-state to pages with the new topic tool enabled 2021-08-04 18:46:28 -05:00
ThreadItem.js Follow-up: Adjust comment ranges to exclude the start marker *only* 2021-05-27 21:28:39 +02:00
utils.js Take over extra links to add a new topic added by gadgets/templates 2021-06-30 18:06:39 +02:00