mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 16:34:21 +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 |
||
---|---|---|
.. | ||
EventDispatcher.php | ||
SubscribedNewCommentPresentationModel.php |