This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/app/controllers
Alan Guo Xiang Tan fc1fd1b416
FEATURE: Display new/unread count in browse more messages for PMs. (#14188)
In order to include the new/unread count in the browse more message
under suggested topics, a couple of technical changes have to be made.

1. `PrivateMessageTopicTrackingState` is now auto-injected which is
   similar to how it is done for `TopicTrackingState`. This is done so
we don't have to attempt to pass the `PrivateMessageTopicTrackingState`
object multiple levels down into the suggested-topics component. While
the object is auto-injected, we only fetch the initial state and start
tracking when the relevant private messages routes has been hit and only
when a private message's suggested topics is loaded. This is
done as we do not want to add the extra overhead of fetching the inital
state to all page loads but instead wait till the private messages
routes are hit.

2. Previously, we would stop tracking once the `user-private-messages`
   route has been deactivated. However, that is not ideal since
navigating out of the route and back means we send an API call to the
server each time. Since `PrivateMessageTopicTrackingState` is kept in
sync cheaply via messageBus, we can just continue to track the state
even if the user has navigated away from the relevant stages.
2021-09-07 12:30:40 +08:00
..
badges FIX: Don't try to load badges if there none left (#13695) 2021-07-14 14:42:31 +10:00
discovery UX: improve the link to the preferences page on the new and unread tabs (#13701) 2021-07-12 16:52:23 +04:00
navigation DEV: Use import { inject as controller} Ember idiom (#13140) 2021-05-25 18:37:32 +02:00
preferences FEATURE: enable users to choose unseen as a default view (#14242) 2021-09-06 21:51:52 +04:00
about.js FIX: do not include contact url & email in client site settings payload (#13004) 2021-05-19 16:15:24 +10:00
account-created-edit-email.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
account-created-index.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
activation-edit.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
application.js FEATURE: Rename 'Discourse SSO' to DiscourseConnect (#11978) 2021-02-08 10:04:33 +00:00
associate-account-confirm.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
auth-token.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
avatar-selector.js FEATURE: Make allow_uploaded_avatars accept TL (#14091) 2021-08-24 10:46:28 +03:00
basic-modal-body.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
bookmark.js DEV: Add time shortcut picker component and libs and refactor bookmark modal controller into component which uses time shortcut picker (#11802) 2021-02-01 09:03:41 +10:00
bulk-notification-level.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
change-owner.js DEV: Use import { inject as controller} Ember idiom (#13140) 2021-05-25 18:37:32 +02:00
change-post-notice.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
change-timestamp.js DEV: Use import { inject as controller} Ember idiom (#13140) 2021-05-25 18:37:32 +02:00
composer.js DEV: Add addComposerUploadPreProcessor to plugin-api (#14222) 2021-09-06 08:22:50 +10:00
convert-to-public-topic.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
create-account.js A11Y: Improve create account modal for screen readers (#14234) 2021-09-03 13:04:24 +10:00
create-invite-bulk.js FEATURE: Various improvements to invite system (#12023) 2021-03-03 11:45:29 +02:00
create-invite.js FEATURE: Warn if invited user cannot see topic (#13548) 2021-07-06 12:49:26 +03:00
delete-topic-confirm.js DEV: Use import { inject as controller} Ember idiom (#13140) 2021-05-25 18:37:32 +02:00
discard-draft.js FEATURE: Allow users to save draft and close composer (#12439) 2021-03-19 09:19:15 -04:00
discovery-sortable.js FEATURE: add period filter in top topics route for tags. (#13415) 2021-07-06 15:25:11 +05:30
discovery.js FEATURE: add period filter in top topics route for tags. (#13415) 2021-07-06 15:25:11 +05:30
do-not-disturb.js FEATURE: Create notification schedule to automatically set do not disturb time (#11665) 2021-01-20 10:31:52 -06:00
edit-category-tabs.js UX: Small tweak to category delete warning (#11799) 2021-01-26 09:43:47 -05:00
edit-slow-mode.js UX: show Update button instead of Enable button when slow mode is already enabled (#13077) 2021-05-25 13:33:39 +04:00
edit-topic-timer.js FIX: Reorder and hide topic timer options (#13597) 2021-07-01 13:18:38 +10:00
edit-user-directory-columns.js DEV: Plugin API to add directory columns (#13440) 2021-06-22 13:00:04 -05:00
email-login.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
exception.js FEATURE: Improvement to history stack handling on server errors 2021-06-21 11:09:23 -07:00
explain-reviewable.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
feature-topic-on-profile.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
feature-topic.js DEV: Use import { inject as controller} Ember idiom (#13140) 2021-05-25 18:37:32 +02:00
flag.js DEV: Use key over the deprecated keyCode (#13795) 2021-08-09 11:41:36 +02:00
forgot-password.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
full-page-search.js DEV: Add plugin API to extend search results (#12966) 2021-06-15 15:32:41 +10:00
grant-badge.js DEV: Use import { inject as controller} Ember idiom (#13140) 2021-05-25 18:37:32 +02:00
group-activity-posts.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
group-activity-topics.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
group-activity.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
group-add-members.js FIX: Reintroduce add group user by email (#13581) 2021-06-30 17:59:22 +03:00
group-default-notifications.js FEATURE: update existing users when group default notifications changed. (#13434) 2021-07-15 19:53:57 +05:30
group-index.js DEV: don't swallow a promise from group.findMembers method and switch to using async/await (#13888) 2021-07-30 21:00:34 +04:00
group-manage-categories.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
group-manage-logs.js DEV: enforces eslint’s curly rule to the codebase (#10720) 2020-09-22 16:28:28 +02:00
group-manage-profile.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
group-manage-tags.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
group-manage.js FIX: Show group Email settings if just SMTP enabled (#13362) 2021-06-15 10:09:25 +10:00
group-messages.js FIX: Allow mobile-nav to work without loading transitions (#12184) 2021-02-23 11:16:40 +00:00
group-permissions.js FEATURE: Group category permissions tab (#10388) 2020-08-10 09:49:05 -05:00
group-requests.js FIX: Ascending/descending sorting in the group membership requests page 2021-07-16 11:02:24 +03:00
group.js FEATURE: Let users select flair (#13587) 2021-07-08 10:46:21 +03:00
groups-index.js Revert "Revert "DEV: Wrap Ember.run.debounce. (#11352)"" (#11509) 2020-12-18 10:18:52 -03:00
groups-new.js DEV: Deprecate {{user-selector}} and replace it with {{email-group-user-chooser}} (#12042) 2021-02-12 13:51:36 +03:00
history.js UX: Indicate capped history revisions only when they're actually capped (#14000) 2021-08-11 00:24:37 +03:00
ignore-duration-with-username.js DEV: Deprecate {{user-selector}} and replace it with {{email-group-user-chooser}} (#12042) 2021-02-12 13:51:36 +03:00
ignore-duration.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
insert-hyperlink.js FIX: Close hyperlink modal on ESC key (#13166) 2021-05-26 15:11:12 -04:00
invites-show.js FEATURE: Allow linking an existing account from invite acceptance (#13998) 2021-08-11 10:26:37 +01:00
json-schema-editor.js DEV: Add experimental json_scheme site setting type (#12226) 2021-03-01 09:15:17 -05:00
jump-to-post.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
keyboard-shortcuts-help.js Fix i18n issues reported on Crowdin (#13191) 2021-06-22 11:29:35 +02:00
login.js A11Y: Improve create account modal for screen readers (#14234) 2021-09-03 13:04:24 +10:00
modal.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
move-to-topic.js DEV: Use import { inject as controller} Ember idiom (#13140) 2021-05-25 18:37:32 +02:00
not-activated.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
password-reset.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
preferences.js FIX: don't allow category and tag tracking settings on staged users (#13688) 2021-07-16 14:50:40 -04:00
publish-page.js UX: publishes page, on public change, only when page is published (#12123) 2021-02-18 17:34:50 +01:00
raw-email.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
reject-reason-reviewable.js FEATURE: reason to reject user signup (#11700) 2021-01-15 09:43:26 +11:00
rename-tag.js FIX: ensures successive tags can be renamed (#12818) 2021-04-23 16:18:23 +02:00
reorder-categories.js UX: Improvements for reordering categories (#13013) 2021-06-09 13:01:06 +03:00
request-group-membership-form.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
review-index.js FIX: Review Queue Query parameters were not refreshing in Ember CLI builds (#13101) 2021-05-20 14:00:25 -04:00
review-settings.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
second-factor-add-security-key.js DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
second-factor-add-totp.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
second-factor-backup-edit.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
second-factor-edit-security-key.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
second-factor-edit.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
share-and-invite.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00
share-topic.js UX: Add success state to copy button (#13691) 2021-07-12 10:47:24 +10:00
static.js UX: fix button alignment on log-in required page (#11965) 2021-02-04 14:38:58 +11:00
tag-groups-edit.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
tag-groups-new.js UX: Adjustments to tag groups layout (#13269) 2021-06-03 13:58:28 -04:00
tag-groups.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
tag-show.js FEATURE: add period filter in top topics route for tags. (#13415) 2021-07-06 15:25:11 +05:30
tags-index.js Fix i18n issues reported on Crowdin (#11747) 2021-02-02 10:50:04 +01:00
topic-bulk-actions.js FIX: Show staff bulk actions only to staff (#12823) 2021-04-26 12:40:52 +03:00
topic.js FEATURE: Disallow putting urls in the title for TL-0 users (#13947) 2021-08-05 13:38:39 +04:00
user-activity-bookmarks.js FIX: the empty state message was appearing in wrong moments on the user bookmarks stage (#14127) 2021-08-24 23:40:08 +04:00
user-activity.js FEATURE: Show draft count in user menu and activity (#13812) 2021-07-27 14:05:33 +03:00
user-badges.js FEATURE: Make max number of favorite configurable (#13480) 2021-06-22 18:58:03 +03:00
user-card.js FEATURE: Optional filtered replies view (#11387) 2020-12-10 12:02:07 -05:00
user-invited-show.js FEATURE: Various improvements to invite system (#12314) 2021-03-09 00:15:14 +02:00
user-notifications.js FEATURE: improve "blank page syndrome" on the user notifications page (#14103) 2021-08-25 20:57:27 +04:00
user-posts.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
user-private-messages-tags.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
user-private-messages.js FEATURE: Display unread and new counts for messages. (#14059) 2021-08-25 11:17:56 +08:00
user-summary.js DEV: Use import { inject as controller} Ember idiom (#13140) 2021-05-25 18:37:32 +02:00
user-topics-list.js FEATURE: Display new/unread count in browse more messages for PMs. (#14188) 2021-09-07 12:30:40 +08:00
user.js DEV: Use import { inject as controller} Ember idiom (#13140) 2021-05-25 18:37:32 +02:00
users.js FIX: Do not reload whole directory table on username input change (#13616) 2021-07-02 09:51:14 -05:00