discourse/app/assets/stylesheets/common
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 UX: modifies admin email template to have more space for the form (#7993) 2019-08-12 10:27:25 +02:00
base FEATURE: Quick access panels in user menu (#8073) 2019-09-09 11:03:57 -04:00
components FEATURE: Login with Discord (#8053) 2019-08-30 10:54:19 +01:00
foundation FEATURE: Login with Discord (#8053) 2019-08-30 10:54:19 +01:00
select-kit update color variable 2019-08-14 22:57:13 -04:00
d-editor.scss UX: Mobile editor style fixes (#7878) 2019-07-11 09:57:53 -04:00
input_tip.scss DEV: adds prettier (#5956) 2018-06-08 11:49:31 +02:00
printer-friendly.scss DEV: Add before button hook in post-menu. (#7550) 2019-05-15 22:48:23 +03:00
topic-entrance.scss Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
topic-timeline.scss UX: Align timeline controls to the top 2019-09-04 17:28:54 -07:00