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/components
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
..
select-kit FIX: deleted is a computed property of Topic 2020-07-20 14:43:37 -04:00
ace-editor-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
admin-report-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
badge-title-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
cook-text-test.js FIX: Don't load images that don't exist in test 2020-07-17 14:33:38 -04:00
d-button-test.js DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
d-editor-test.js REFACTOR: rewrite the emoji-picker (#10464) 2020-08-24 14:20:51 +02:00
d-icon-test.js FIX: Raw jQuery usage in tests 2020-07-20 15:13:49 -04:00
date-input-test.js UX: rework date time input range (#9524) 2020-04-22 22:17:53 +02:00
date-time-input-range-test.js UX: rework date time input range (#9524) 2020-04-22 22:17:53 +02:00
date-time-input-test.js UX: rework date time input range (#9524) 2020-04-22 22:17:53 +02:00
group-membership-button-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
highlighted-code-test.js REFACTOR: Remove Discourse.HighlightJSPath from globals 2020-08-17 15:45:44 -04:00
html-safe-helper-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
iframed-html-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
image-uploader-test.js FIX: More 404 image requests in test 2020-07-17 14:58:32 -04:00
keyboard-shortcuts-test.js DEV: Refactor and test plugin addKeyboardShortcut (#9381) 2020-04-09 10:30:26 +10:00
load-more-test.js REFACTOR: We can hardcode #ember-testing here to avoid a global 2020-08-17 15:56:17 -04:00
secret-value-list-test.js DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
share-button-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
share-button.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
simple-list-test.js UX: Add simple-list setting type (#9970) 2020-06-04 10:44:54 -04:00
text-field-test.js DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
time-input-test.js UX: rework date time input range (#9524) 2020-04-22 22:17:53 +02:00
user-selector-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
value-list-test.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00