discourse/app/assets/javascripts/select-kit/addon/templates/components
Martin Brennan 72648dd576
FIX: Base topic details message on current category and tag tracking state (#12937)
The user may have changed their category or tag tracking settings since a topic was tracked/watched based on those settings in the past. In that case we need to alter the reason message we show them otherwise it is very confusing for the end user to be told they are tracking a topic because of a category, when they are no longer tracking that category.

For example: "You will see a count of new replies because you are tracking this category." becomes: "You will see a count of new replies because you were tracking this category in the past."

To do this, it was necessary to add tag and category tracking info to current user serializer. I improved the serializer code so it only does 3 SQL queries instead of 9 to get the tracking information for tags and categories for the current user.
2021-05-06 09:14:07 +10:00
..
category-drop Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
color-palettes UX: Tweaks to admin color palette dropdown (#10502) 2020-08-21 09:30:11 -04:00
combo-box A11Y: Add aria-label to input clear button (#11803) 2021-01-21 21:58:34 -05:00
dropdown-select-box Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
future-date-input-selector Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
mini-tag-chooser Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
multi-select A11Y: makes aria-owns an ID and not a data attribute (#12075) 2021-02-15 12:32:09 +01:00
notifications-filter Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
period-chooser Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
select-kit UX: Allow select-kit to have an autofocus option (#12183) 2021-02-23 13:20:32 +03:00
tag-drop UX: shows a hint when there are more tags than displayed (#12649) 2021-04-08 15:51:31 +02:00
toolbar-popup-menu-options Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
user-chooser Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
category-row.hbs Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
create-color-row.hbs Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
email-group-user-chooser-header.hbs A11Y: makes aria-owns an ID and not a data attribute (#12075) 2021-02-15 12:32:09 +01:00
email-group-user-chooser-row.hbs DEV: {{user-selector}} replacement (#11726) 2021-02-01 13:07:11 +03:00
multi-select.hbs A11Y: makes aria-owns an ID and not a data attribute (#12075) 2021-02-15 12:32:09 +01:00
pinned-button.hbs Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
selected-name.hbs A11Y: makes select-kit header a listbox (#12078) 2021-02-15 18:22:10 +01:00
single-select.hbs A11Y: makes aria-owns an ID and not a data attribute (#12075) 2021-02-15 12:32:09 +01:00
tag-chooser-row.hbs Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
tag-row.hbs Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
topic-notifications-button.hbs FIX: Base topic details message on current category and tag tracking state (#12937) 2021-05-06 09:14:07 +10:00