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/test/javascripts
Joffrey JAFFEUX 226be994da
REFACTOR: rewrite the emoji-picker (#10464)
The emoji-picker is a specific piece of code as it has very strong performance requirements which are almost not found anywhere else in the app, as a result it was using various hacks to make it work decently even on old browsers.

Following our drop of Internet Explorer, and various new features in Ember and recent browsers we can now take advantage of this to reduce the amount of code needed, this rewrite most importantly does the following:
- use loading="lazy" preventing the full list of emojis to be loaded on opening
- uses InterserctionObserver to find the active section
- limits the use of native event listentes only for hover/click emojis (for performance reason we track click on the whole emoji area and delegate events), everything else is using ember events
- uses popper to position the emoji picker
- no jquery code
2020-08-24 14:20:51 +02:00
..
acceptance REFACTOR: rewrite the emoji-picker (#10464) 2020-08-24 14:20:51 +02:00
admin DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
components REFACTOR: rewrite the emoji-picker (#10464) 2020-08-24 14:20:51 +02:00
controllers REFACTOR: Migrate screenTrack to a service 2020-08-14 13:14:17 -04:00
ember Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
fixtures Make prettier happy 2020-08-20 16:27:32 +02:00
helpers Remove Discourse constant usage (#10470) 2020-08-19 08:51:48 -04:00
initializers DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
lib FIX: Make sure user preference to open external links in new tab works for bookmark list excerpts (#10409) 2020-08-13 14:56:13 +10:00
mixins Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
models FEATURE - Moderators can create and manage groups (#10432) 2020-08-19 10:41:40 -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: do not override logo markup when loading page in dark mode 2020-08-18 20:33:42 -04: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 Remove Discourse constant usage (#10470) 2020-08-19 08:51:48 -04:00