mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
db28a3d3a7
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 |
||
---|---|---|
.. | ||
dt-ve | ||
lib | ||
.eslintrc.json | ||
AbandonCommentDialog.js | ||
AbandonTopicDialog.js | ||
CommentController.js | ||
CommentDetails.js | ||
CommentItem.js | ||
controller.js | ||
dt.debug.js | ||
dt.init.js | ||
dt.init.less | ||
dt.ui.NewTopicController.less | ||
dt.ui.ReplyWidget.js | ||
dt.ui.ReplyWidget.less | ||
dt.ui.ReplyWidgetPlain.js | ||
dt.ui.ReplyWidgetVisual.js | ||
HeadingItem.js | ||
highlighter.js | ||
highlighter.less | ||
logger.js | ||
ModeTabOptionWidget.js | ||
ModeTabSelectWidget.js | ||
modifier.js | ||
NewTopicController.js | ||
Parser.js | ||
ReplyLinksController.js | ||
ThreadItem.js | ||
utils.js |