discourse/test/javascripts
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
..
acceptance FIX: close user card after clicking Message button 2019-08-30 13:40:12 -04:00
admin DEV: group_list site settings should store IDs instead of group names (#7860) 2019-07-19 15:17:58 -03:00
components DEV: attempts to fix an heisentest in date-time-input-range (#8017) 2019-08-19 12:39:30 +02:00
controllers DEV: prevents staff computed property to be overridden (#7931) 2019-07-24 22:01:08 +02:00
ember DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
fixtures FEATURE: Quick access panels in user menu (#8073) 2019-09-09 11:03:57 -04:00
helpers FEATURE: Quick access panels in user menu (#8073) 2019-09-09 11:03:57 -04:00
initializers DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
lib FEATURE: favorites emojis will also show in composer autocomplete (#8011) 2019-08-16 11:47:03 +02:00
mixins DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
models FIX: Hide live-loaded posts from ignored users 2019-07-25 12:01:29 +01:00
widgets FEATURE: Quick access panels in user menu (#8073) 2019-09-09 11:03:57 -04:00
plugin_tests.js.erb Support for Acceptance tests in plugins 2015-08-27 17:07:11 -04:00
test_helper.js DEV: Debundle plugin javascript assets and don't load if disabled (#7566) 2019-07-15 20:22:54 +05:30