Go to file
Bartosz Dziewoński 90283b3a7e Update the [subscribe] buttons when auto-subscriptions are added
When our interface initialized on a page that the current user
recently edited (using the reply tool, the full-page source editor,
or any other way), check if any new automatic topic subscriptions
were added and update the interface to reflect that.

This requires doing some API requests after the page is loaded,
because adding auto-subscriptions happens asynchronously in a
DeferredUpdate (potentially after the user is already viewing
the page with their comment saved), and depends on the contents
of the edit.

(When using the reply tool, we could avoid this API request and
replicate the logic, but that's not implemented in this commit
to keep it simple.)

Bug: T284836
Change-Id: Ic0fabda0de4ebbc5e424f49641e6b03ebb4b7e6a
2021-11-15 22:45:42 +01:00
.phan Logging for new comments 2021-10-28 21:50:23 +00:00
i18n Merge "Messages for Automatic Topic Subscriptions feature" 2021-11-15 18:52:50 +00:00
images Compress emptystate.svg with svgo 2021-10-04 12:56:20 +01:00
includes Update the [subscribe] buttons when auto-subscriptions are added 2021-11-15 22:45:42 +01:00
maintenance Defensive use of dynamic paths in maintenance script 2020-02-20 19:51:07 +01:00
modules Update the [subscribe] buttons when auto-subscriptions are added 2021-11-15 22:45:42 +01:00
sql Automatic topic subscriptions (on any edit) 2021-11-15 22:45:42 +01:00
tests Automatic topic subscriptions (on any edit) 2021-11-15 22:45:42 +01:00
.eslintignore Fix linting on i18n key order 2021-10-07 17:37:51 +01:00
.eslintrc.json build: Updating ansi-regex to 5.0.1 2021-10-09 07:08:30 +00:00
.gitignore Remove extra blank line from .gitignore file 2020-08-31 15:24:56 +01:00
.gitreview Add .gitreview 2019-10-09 21:18:34 +00:00
.phpcs.xml build: Updating mediawiki/mediawiki-codesniffer to 32.0.0 2020-10-29 10:53:01 +00:00
.stylelintrc.json Remove deprecated dt- classes 2021-03-23 12:39:34 +00:00
CODE_OF_CONDUCT.md build: Updating npm dependencies 2020-01-09 06:43:15 +00:00
composer.json build: Updating mediawiki/mediawiki-codesniffer to 38.0.0 2021-10-24 02:15:38 +00:00
COPYING Add required files for an extension 2019-10-10 19:42:56 +01:00
DiscussionTools.alias.php Add Special:TopicSubscriptions 2021-10-06 20:06:01 +00:00
extension.json Automatic topic subscriptions (only for reply tool and new topic tool) 2021-11-15 22:45:42 +01:00
Gruntfile.js eslint: Lint root folder with server rules 2021-10-07 17:37:52 +01:00
package-lock.json build: Update eslint-config-wikimedia to 0.21.0 2021-11-08 19:03:40 +00:00
package.json build: Update eslint-config-wikimedia to 0.21.0 2021-11-08 19:03:40 +00:00