discourse/test/javascripts
Régis Hanol bc63232d2e
FIX: sync reviewable count when opening the hamburger menu (#10368)
When a tab is open but left unattended for a while, the red, green, and blue
pills tend to go out of sync.

So whevener we open the notifications menu, we sync up the notification count
(eg. blue and green pills) with the server.

However, the reviewable count (eg. the red pill) is not a notification and
is located in the hamburger menu. This commit adds a new route on the server
side to retrieve the reviewable count for the current user and a ping
(refreshReviewableCount) from the client side to sync the reviewable count
whenever they open the hamburger menu.

REFACTOR: I also refactored the hamburger-menu widget code to prevent repetitive uses
of "this.".

PERF: I improved the performance of the 'notify_reviewable' job by doing only 1 query
to the database to retrieve all the pending reviewables and then tallying based on the
various rights.
2020-08-07 18:13:02 +02:00
..
acceptance FIX: sync reviewable count when opening the hamburger menu (#10368) 2020-08-07 18:13:02 +02:00
admin DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
components FIX: Raw jQuery usage in tests 2020-07-20 15:13:49 -04:00
controllers REFACTOR: Move Page title / focus / counts logic to service 2020-08-04 12:02:25 -04:00
ember Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
fixtures FEATURE - allow category group moderators to split/merge topics (#10351) 2020-08-05 10:33:25 -04:00
helpers FIX - limit number of embedded media items in a post (#10391) 2020-08-07 12:08:59 -04:00
initializers DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
lib FIX - limit number of embedded media items in a post (#10391) 2020-08-07 12:08:59 -04:00
mixins Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
models FIX: Pretender errors were being swallowed 2020-08-05 15:48:57 -04:00
services REFACTOR: Move Page title / focus / counts logic to service 2020-08-04 12:02:25 -04:00
utils Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
widgets FIX: sync reviewable count when opening the hamburger menu (#10368) 2020-08-07 18:13:02 +02:00
plugin_tests.js.erb FIX: Allow plugins to provide test directories with transpiled `.js` 2020-06-16 14:31:01 -04:00
test_helper.js REFACTOR: Remove `Discourse.__container__` from tests 2020-07-28 14:58:31 -04:00