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/widgets
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
..
actions-summary.js.es6 FEATURE: Flag count in post menu 2019-05-06 16:13:31 -04:00
avatar-flair.js.es6 Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
button.js.es6 FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
category-link.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
component-connector.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
connector.js.es6 DEV: prettier 1.18.2 (#7810) 2019-06-26 17:09:52 +02:00
custom-notification-item.js.es6 FIX: Use title attribute for notification items. (#7840) 2019-07-03 10:48:13 -04:00
decorator-helper.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
default-notification-item.js.es6 FIX: Use title attribute for notification items. (#7840) 2019-07-03 10:48:13 -04:00
discourse-tags.js.es6 FEATURE: displays tags in search menu results when enabled (#7819) 2019-06-27 19:26:14 +02:00
embedded-post.js.es6 FIX: Do not replace text of collapsed ignore posts (#7422) 2019-04-24 13:54:46 +01:00
emoji.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
footer-nav.js.es6 UI: Footer nav fixes 2019-04-15 15:25:40 -04:00
glue.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
group-message-summary-notification-item.js.es6 fix prettier linting (#7809) 2019-06-26 15:26:02 +02:00
hamburger-categories.js.es6 DEV: Do not use concatenation in translations 2018-10-03 11:59:21 +05:30
hamburger-menu.js.es6 FIX: Back button shenanigans when redirecting from index routes 2019-06-21 14:42:01 -04:00
hbs-compiler.js.es6 DEV: enable no-alert & no-console eslint rules 2018-11-14 23:17:56 +01:00
header-contents.js.es6 DEV: Upgrade our widget handlebars compiler 2019-05-02 15:47:57 -04:00
header-topic-info.js.es6 UX: better alignment for tags in the header (#8047) 2019-08-28 18:18:27 +10:00
header.js.es6 fix tests (#7912) 2019-07-18 23:15:36 +02:00
home-logo.js.es6 FIX: Properly support defaults for upload site settings. 2019-03-13 16:36:57 +08:00
hooks.js.es6 FIX: better node check for clickoutside in widgets (#7573) 2019-05-20 12:45:33 +02:00
invitee-accepted-notification-item.js.es6 fix prettier linting (#7809) 2019-06-26 15:26:02 +02:00
liked-consolidated-notification-item.js.es6 fix prettier linting (#7809) 2019-06-26 15:26:02 +02:00
liked-notification-item.js.es6 Pass data to description to prevent duplication 2019-06-26 09:01:25 -04:00
link.js.es6 DEV: Add data-topic-id to more elements containing titles. 2018-11-27 13:05:27 +11:00
membership-request-accepted-notification-item.js.es6 FEATURE: Send notification when member was accepted to group. (#7614) 2019-08-06 13:29:46 +03:00
menu-panel.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
post-admin-menu.js.es6 FIX: Rename deprecated icons, allow custom icons in badges 2019-07-16 11:13:44 -04:00
post-cooked.js.es6 DEV: prevents post-cooked decorators to leak between tests (#7744) 2019-06-11 10:02:10 +02:00
post-edits-indicator.js.es6 FIX: Rename deprecated icons, allow custom icons in badges 2019-07-16 11:13:44 -04:00
post-gap.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
post-links.js.es6 SECURITY: updates lodash from 1.3.0 to 4.17.5 (#7546) 2019-05-16 10:34:19 +02:00
post-menu.js.es6 UX: Hide the read indicator if read count is zero 2019-09-04 16:55:39 -03:00
post-placeholder.js.es6 UX: Changed post stream placeholder to animation (#7434) 2019-04-26 17:29:48 +01:00
post-small-action.js.es6 DEV: remove .property() deprecations (#7906) 2019-07-18 13:28:23 -04:00
post-stream.js.es6 FEATURE: Publish read state on group messages. (Originally introduced in #7989) (#8025) 2019-08-27 09:09:00 -03:00
post.js.es6 FIX: Show same username or name for post notices. (#7862) 2019-07-19 11:05:48 +03:00
poster-name.js.es6 FIX: Show same username or name for post notices. (#7862) 2019-07-19 11:05:48 +03:00
private-message-map.js.es6 DEV: Upgrade our widget handlebars compiler 2019-05-02 15:47:57 -04:00
quick-access-bookmarks.js.es6 FEATURE: Quick access panels in user menu (#8073) 2019-09-09 11:03:57 -04:00
quick-access-item.js.es6 FEATURE: Quick access panels in user menu (#8073) 2019-09-09 11:03:57 -04:00
quick-access-messages.js.es6 FEATURE: Quick access panels in user menu (#8073) 2019-09-09 11:03:57 -04:00
quick-access-notifications.js.es6 FEATURE: Quick access panels in user menu (#8073) 2019-09-09 11:03:57 -04:00
quick-access-panel.js.es6 FEATURE: Quick access panels in user menu (#8073) 2019-09-09 11:03:57 -04:00
quick-access-profile.js.es6 FEATURE: Quick access panels in user menu (#8073) 2019-09-09 11:03:57 -04:00
raw-html.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
search-menu-controls.js.es6 UX: workaround chrome autocomplete bug in search 2019-08-26 10:27:43 +10:00
search-menu-results.js.es6 UX: puts tags and categories on same line in search-menu-results (#7830) 2019-07-01 13:11:43 +02:00
search-menu.js.es6 FEATURE: Add search operator to see all direct messages from a user (#7913) 2019-07-22 10:55:49 -04:00
time-gap.js.es6 FIX: Alignment for small-actions, gap, removing unneeded clearfix 2019-01-21 17:57:47 -05:00
toggle-topic-summary.js.es6 FIX: Set a minimum reading time per post. (#7842) 2019-07-19 18:15:38 +03:00
topic-admin-menu.js.es6 Revert commit that was pushed by mistake. 2019-07-29 11:04:38 +08:00
topic-map.js.es6 FIX: topic-map spec with VDOM and i18n plural (#6564) 2018-11-05 12:02:18 +01:00
topic-status.js.es6 DEV: Added qunit test functions and did minor refactoring 2019-03-13 18:38:27 +05:30
topic-timeline.js.es6 FIX: don't hide back button at the bottom of timeline (#7544) 2019-05-15 19:02:48 +02:00
user-menu.js.es6 FEATURE: Quick access panels in user menu (#8073) 2019-09-09 11:03:57 -04:00
user-notifications-large.js.es6 fix prettier linting (#7809) 2019-06-26 15:26:02 +02:00
widget.js.es6 DEV: don't define _super when modifying widgets unless the property is a function (#8042) 2019-08-27 13:34:16 +03:00