discourse/test/javascripts/fixtures
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
..
concerns DEV: Use `this.site.get("notification_types")` instead. 2019-06-06 08:18:25 +08:00
about.js.es6 FEATURE: English locale with international date formats 2019-05-20 13:47:20 +02:00
badges_fixture.js.es6 DEV: test badge titles presence on badge page 2019-06-12 15:04:21 +02:00
category-fixtures.js.es6 DEV: Remove fields from fixtures that are no longer valid. 2018-11-09 13:52:40 +08:00
dashboard-general.js.es6 DEV: removes old dashboard (#7295) 2019-04-01 12:39:49 +02:00
dashboard.js.es6 DEV: removes old dashboard (#7295) 2019-04-01 12:39:49 +02:00
directory-fixtures.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
discovery_fixtures.js.es6 FIX: `expandAllPinned` was not resetting after visiting a category 2019-01-14 13:02:25 -05:00
draft.js.es6 FEATURE: Drafts view in user profile 2018-08-01 16:34:54 +10:00
drafts.js.es6 Add test for user drafts stream 2019-01-28 22:30:01 -05:00
group-fixtures.js.es6 FEATURE: add support for group members visibility level (#8004) 2019-08-14 19:00:04 +05:30
groups-fixtures.js.es6 FIX: Groups list does not refresh when query changes. (#6481) 2018-10-11 21:20:17 +08:00
notification_fixtures.js.es6 FEATURE: Send notification when member was accepted to group. (#7614) 2019-08-06 13:29:46 +03:00
poll.js.es6 FIX: polls acceptance tests 2019-02-27 19:16:24 +01:00
post.js.es6 FEATURE: Flag count in post menu 2019-05-06 16:13:31 -04:00
private_messages_fixtures.js.es6 FEATURE: Quick access panels in user menu (#8073) 2019-09-09 11:03:57 -04:00
problems.js.es6 UX: reworks dashboard problems section to be in line with new style 2018-06-12 12:47:03 +02:00
reports.js.es6 FEATURE: adds a /admin/reports route to list all reports 2018-06-18 12:31:56 +02:00
reports_bulk.js.es6 fix tests (#7853) 2019-07-03 16:32:27 +02:00
search-fixtures.js.es6 FEATURE: displays tags in search menu results when enabled (#7819) 2019-06-27 19:26:14 +02:00
session-fixtures.js.es6 FIX: display conextual count on favicon if selected 2019-04-12 10:04:23 +10:00
site-fixtures.js.es6 DEV: Use `this.site.get("notification_types")` instead. 2019-06-06 08:18:25 +08:00
site_settings.js.es6 FEATURE: Upload Site Settings. (#6573) 2018-11-14 15:03:02 +08:00
static_fixtures.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
top_fixture.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
topic.js.es6 FIX: close user card after clicking Message button 2019-08-30 13:40:12 -04:00
user-badges.js.es6 DEV: test badge titles presence on badge page 2019-06-12 15:04:21 +02:00
user_fixtures.js.es6 FEATURE: Quick access panels in user menu (#8073) 2019-09-09 11:03:57 -04:00
watched-words-fixtures.js.es6 FEATURE: Add a test facility to the watched words admin interface 2019-08-02 15:29:12 +01:00