discourse/app/controllers
Kyle Zhao 9b10a78d82 FEATURE: Quick access panels in user menu (#8073)
* Extract QuickAccessPanel from UserNotifications.

* FEATURE: Quick access panels in user menu.

This feature adds quick access panels for bookmarks and personal
messages. It allows uses to browse recent items directly in the user
menu, without being redirected to the full pages.

* REFACTOR: Use QuickAccessItem for messages.

Reusing `DefaultNotificationItem` feels nice but it actually requires a
lot of extra work that is not needed for a quick access item.

Also, `DefaultNotificationItem` shows an incorrect tooptip ("unread
private message"), and it is not trivial to remove / override that.

* Use a plain JS object instead.

An Ember object was required when `DefaultNotificationItem` was used.

* Prefix instead suffix `_` for private helpers.

* Set to null instead of deleting object keys.

JavaScript engines can optimize object property access based on the
object’s shape. https://mathiasbynens.be/notes/shapes-ics

* Change trivial try/catch to one-liners.

* Return the promise in case needs to be waited on.

* Refactor showAll to a link with href

* Store `emptyStatePlaceholderItemText` in state.

* Store items in Session singleton instead.

We can drop `staleItems` (and `findStaleItems`) altogether. Because
`(old) items === staleItems` when switching back to a quick access
panel.

* Add `limit` parameter to the `user_actions` API.

* Explicitly import Session instead.
2019-09-09 11:03:57 -04:00
..
admin FIX: remote theme record not saved when checking for updates (#8054) 2019-08-30 00:32:54 +03:00
users FIX: When activating via omniauth, create tokens after password reset 2019-08-28 14:43:25 +01:00
about_controller.rb FEATURE: list category moderators on the about page (#7916) 2019-07-31 16:46:58 +03:00
application_controller.rb FEATURE: new 'Discourse-Render' HTTP header 2019-08-30 20:45:18 +02:00
badges_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
categories_controller.rb SECURITY: don't reveal category details to users that do not have access 2019-08-19 12:38:28 +05:30
category_hashtags_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
clicks_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
composer_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
composer_messages_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
csp_reports_controller.rb allow CSP reports to be sent when header isn't set by Discourse (#6594) 2018-11-14 16:23:29 -05:00
directory_items_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
draft_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
drafts_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
email_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
embed_controller.rb DEV: validate param value on /embed/topics 2019-09-04 13:31:46 +05:30
exceptions_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
export_csv_controller.rb FEATURE: Watched words improvements (#7899) 2019-07-22 14:59:56 +03:00
extra_locales_controller.rb FIX: ensure extra locales are only available to staff 2019-08-20 12:38:46 +02:00
finish_installation_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
forums_controller.rb DEV: rename ReadOnly module to ReadOnlyHeader 2019-05-06 16:07:49 +02:00
groups_controller.rb FEATURE: Publish read state on group messages. (Originally introduced in #7989) (#8025) 2019-08-27 09:09:00 -03:00
highlight_js_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
inline_onebox_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
invites_controller.rb UX: update invite 'not found' message 2019-07-19 16:39:44 +05:30
list_controller.rb FEATURE: Embed topics list on remote sites via Javascript API. (#8008) 2019-08-15 13:41:06 -04:00
metadata_controller.rb FEATURE: Site settings for linking with iOS/Android native apps 2019-08-27 14:05:37 -04:00
notifications_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
offline_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
onebox_controller.rb DEV: Fix modifying a frozen string. 2019-05-16 11:30:31 +08:00
permalinks_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
post_action_users_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
post_actions_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
post_readers_controller.rb UX/PERF: Update readers count when a post from another user is read. Don't fetch the post data again just to update the count. (#8078) 2019-09-09 11:29:15 +10:00
posts_controller.rb FEATURE: New post editing period for >= tl2 users (#8070) 2019-09-06 07:44:12 -04:00
push_notification_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
qunit_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
reviewable_claimed_topics_controller.rb Make rubocop happy. 2019-05-13 09:55:44 +08:00
reviewables_controller.rb FEATURE: Adds a pop up that shows a more detailed score for reviewables (#8035) 2019-09-04 09:56:25 -06:00
robots_txt_controller.rb FEATURE: Allow customization of robots.txt (#7884) 2019-07-15 20:47:44 +03:00
safe_mode_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
search_controller.rb FEATURE: when under extreme load disable search 2019-07-02 11:22:01 +10:00
session_controller.rb UX: Hide login/signup header buttons during authentication flows 2019-08-08 13:57:18 +01:00
similar_topics_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
site_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
static_controller.rb PERF: use CDN url for proxy of favicon 2019-09-04 18:21:07 +10:00
steps_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
stylesheets_controller.rb FIX: race condition during deploys creating stylesheets 2019-08-29 17:27:07 +10:00
svg_sprite_controller.rb FEATURE: support custom icons in themes (#7155) 2019-03-15 17:16:15 +11:00
tag_groups_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
tags_controller.rb DEV: include TopicQueryParams in TagsController (#8045) 2019-08-28 11:41:50 +03:00
theme_javascripts_controller.rb PERF: include content-length header for CDN 2019-02-22 11:21:07 +11:00
themes_controller.rb Fix string literal when switching theme in dev env 2019-05-13 10:25:51 -04:00
topics_controller.rb FIX: Filter out hidden posts for wordpress 2019-08-23 11:50:03 +02:00
uploads_controller.rb FIX: Ensure lightbox image download has correct content disposition in S3 (#7845) 2019-07-04 11:32:51 -04:00
user_actions_controller.rb FEATURE: Quick access panels in user menu (#8073) 2019-09-09 11:03:57 -04:00
user_api_keys_controller.rb bug: keep query params present in auth_redirect (#7923) 2019-07-23 12:16:03 -04:00
user_avatars_controller.rb DEV: Remove reference to non-existent letter_proxy route 2019-07-03 23:48:32 +01:00
user_badges_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
users_controller.rb FEATURE: mention in secure category to prioritize groups 2019-08-06 17:57:56 +10:00
users_email_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
webhooks_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
wizard_controller.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00