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
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
..
admin DEV: No need to highlight search if PG headline generation is used. 2020-08-07 10:50:30 +08:00
confirm-new-email Last ES6 files in our app/assets/javascripts 2020-03-25 12:30:20 -04:00
discourse/app FIX: sync reviewable count when opening the hamburger menu (#10368) 2020-08-07 18:13:02 +02:00
discourse-common FEATURE: notification for vote plugin (#10384) 2020-08-07 09:51:16 +10:00
docs Ember Upgrade: 1.0 2013-10-01 11:16:27 -04:00
ember-addons DEV: Remove ember-addons (#9559) 2020-04-28 10:14:49 -04:00
locales REFACTOR: removes various assignments and superfluous params (#9699) 2020-05-08 09:19:48 +02:00
pretty-text FEATURE: Allow picture HTML element in posts 2020-07-28 20:26:32 -03:00
select-kit FIX: Missing bottom border in select-kit color list settings 2020-08-06 14:52:17 -04:00
wizard Remove discourse constants (#9958) 2020-06-01 16:33:43 -04:00
activate-account.js Last ES6 files in our app/assets/javascripts 2020-03-25 12:30:20 -04:00
admin.js.erb Add support for plugins to declare ES6 in the admin bundle 2015-08-17 15:03:55 -04:00
app-boot.js DEV: Have app/app export a class not an instance. 2020-05-05 14:54:13 -04:00
application.js REFACTOR: Remove Discourse.__widget_helpers 2020-08-06 14:35:46 -04:00
auto-redirect.js Last ES6 files in our app/assets/javascripts 2020-03-25 12:30:20 -04:00
browser-detect.js Improve support for old browsers (#9515) 2020-04-29 21:40:21 +03:00
discourse-loader.js Start Discourse in an initializer (#9930) 2020-05-29 14:37:02 -04:00
discourse-objects.js Scaffold for new Wizard - Rails / Ember / Tests 2016-09-22 09:48:58 -04:00
discourse-shims.js Revert "Revert "DEV: Import MessageBus from message-bus-client instead of globals"" 2020-05-28 08:42:36 -04:00
embed-application.js Last ES6 files in our app/assets/javascripts 2020-03-25 12:30:20 -04:00
ember_include.js.erb move template compiler into vendor for now 2015-11-25 15:54:54 +11:00
ember_jquery.js Revert "Revert "DEV: Import MessageBus from message-bus-client instead of globals"" 2020-05-28 08:42:36 -04:00
env.js FIX: attempts to fix an error with EXTEND_PROTOTYPES (#7067) 2019-02-26 11:04:05 +01:00
google-tag-manager.js Last ES6 files in our app/assets/javascripts 2020-03-25 12:30:20 -04:00
google-universal-analytics.js Last ES6 files in our app/assets/javascripts 2020-03-25 12:30:20 -04:00
handlebars-shim.js DEV: Remove global Handlebars 2020-05-01 14:12:09 -04:00
main_include_admin.js DEV: Remove ember-addons (#9559) 2020-04-28 10:14:49 -04:00
markdown-it-bundle.js DEV: Move pretty-text into an ember-addon format (#9689) 2020-05-07 12:37:47 -04:00
onpopstate-handler.js More JS files 2020-03-24 16:18:56 -04:00
polyfills.js DEV: Drop unsupported-browser plugin (#10261) 2020-07-17 15:04:06 +01:00
pretty-text-bundle.js DEV: Remove INLINE_ONEBOX_* constants 2020-05-07 16:14:38 -04:00
print-page.js CSP - extract all other inline JavaScripts (#6528) 2018-10-25 09:52:01 -04:00
service-worker.js.erb FIX: Bypass serviceworker cache for auth routes 2020-03-31 14:24:02 -03:00
set-prototype-polyfill.js DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
start-discourse.js Start Discourse in an initializer (#9930) 2020-05-29 14:37:02 -04:00
template_include.js DEV: Support for import Handlebars from 'handlebars'; (#9600) 2020-04-30 16:41:02 -04:00
vendor.js Revert "Revert "DEV: Import MessageBus from message-bus-client instead of globals"" 2020-05-28 08:42:36 -04:00
widget-runtime.js REFACTOR: Remove Discourse.__widget_helpers 2020-08-06 14:35:46 -04:00
wizard-application.js Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
wizard-start.js Rename more es6 files to js 2020-03-24 16:32:56 -04:00
wizard-vendor.js FIX: ensure s2 is working with wizard (#8886) 2020-02-07 10:00:39 +01:00