discourse/plugins/chat/test/javascripts/components
Joffrey JAFFEUX 6740a340ca
DEV: unifies emoji picker (#28277)
The chat emoji picker is renamed emoji-picker, and the old emoji-picker is removed.

This commit doesn't attempt to fully rework a new emoji-picker but instead tries to migrate everything to one picker (the chat one) and add small changes.

Other notable changes:
- all the favorite emojis code has been mixed into one service which is able to store one state per context, favorites emojis will be stored for all topics, and for each chat channel. Meaning that if you always use a specific emoji in a channel, it will only show as favorite emoji in this channel.
- a lot of static code has been removed which should improve initial load perf of discourse. Initially this code was around to improve the performance of the emoji picker rendering.
- the emojis are now stored, once the full list has been loaded, if you close and reopen the picker it won't have to load them again.

List of components:

- `<EmojiPicker />` will render a button which will open a dropdown
- `<EmojiPickerContent />` represents the content of the dropdown alone, it's useful when you want to render a picker from an action which is not the default picker button
- `<EmojiPickerDetached />` just a simple wrapper over `<EmojiPickerContent />` to make it easier to use it with `this.menu.show(...)`

---------

Co-authored-by: Renato Atilio <renatoat@gmail.com>
2025-01-08 11:41:36 +01:00
..
channel-icon-test.gjs DEV: Extensively use qunit-dom's hasText (#30012) 2024-11-30 16:44:51 +01:00
channel-name-test.gjs DEV: Extensively use qunit-dom's hasText (#30012) 2024-11-30 16:44:51 +01:00
channel-title-test.gjs DEV: Clean up imports (#28060) 2024-07-25 15:09:06 +02:00
chat-channel-card-test.js DEV: Finish qunit-dom hasText migration (#30017) 2024-12-01 14:00:48 +01:00
chat-channel-leave-btn-test.js DEV: Run prettier correctly for bundled-plugin test directories (#30338) 2024-12-18 12:02:28 +00:00
chat-channel-metadata-test.js UX: chat drawer increase unread channel visibility (#28731) 2024-09-05 13:36:50 +04:00
chat-channel-preview-card-test.js DEV: Extensively use qunit-dom's hasText (#30012) 2024-11-30 16:44:51 +01:00
chat-channel-row-test.js DEV: Fix random typos (#28103) 2024-07-26 23:13:12 +02:00
chat-channel-status-test.js DEV: Run prettier correctly for bundled-plugin test directories (#30338) 2024-12-18 12:02:28 +00:00
chat-channel-test.js DEV: Convert more equal assertions (#29554) 2024-11-03 21:04:38 +01:00
chat-composer-dropdown-test.js DEV: Convert assert.true(exists()) to qunit-dom (#29638) 2024-11-08 20:27:32 +01:00
chat-composer-message-details-test.js DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
chat-composer-placeholder-test.js DEV: unifies emoji picker (#28277) 2025-01-08 11:41:36 +01:00
chat-composer-upload-test.js DEV: Run prettier correctly for bundled-plugin test directories (#30338) 2024-12-18 12:02:28 +00:00
chat-composer-uploads-test.js DEV: Replace count with qunit-dom (#29674) 2024-11-10 02:06:03 +01:00
chat-emoji-avatar-test.js DEV: Convert assert.true(exists()) to qunit-dom (#29638) 2024-11-08 20:27:32 +01:00
chat-header-icon-test.js DEV: Remove empty beforeEach hooks (#30326) 2024-12-17 11:57:49 -06:00
chat-message-avatar-test.js DEV: Convert assert.true(exists()) to qunit-dom (#29638) 2024-11-08 20:27:32 +01:00
chat-message-collapser-test.js DEV: Extensively use qunit-dom's hasText (#30012) 2024-11-30 16:44:51 +01:00
chat-message-info-test.js DEV: Finish qunit-dom hasText migration (#30017) 2024-12-01 14:00:48 +01:00
chat-message-left-gutter-test.js DEV: Run prettier correctly for bundled-plugin test directories (#30338) 2024-12-18 12:02:28 +00:00
chat-message-reaction-test.js DEV: Convert all uses of exists to qunit-dom (#29667) 2024-11-10 01:30:33 +01:00
chat-message-test.js DEV: Use the new hasHtml/includesHtml from qunit-dom (#29680) 2024-11-11 13:06:12 +01:00
chat-message-text-test.js DEV: Convert all uses of exists to qunit-dom (#29667) 2024-11-10 01:30:33 +01:00
chat-modal-archive-channel-test.js DEV: Use the new hasHtml/includesHtml from qunit-dom (#29680) 2024-11-11 13:06:12 +01:00
chat-modal-delete-channel-test.js DEV: Use the new hasHtml/includesHtml from qunit-dom (#29680) 2024-11-11 13:06:12 +01:00
chat-modal-move-message-to-channel-test.js DEV: Use the new hasHtml/includesHtml from qunit-dom (#29680) 2024-11-11 13:06:12 +01:00
chat-notices-test.js DEV: Extensively use qunit-dom's hasText (#30012) 2024-11-30 16:44:51 +01:00
chat-replying-indicator-test.js DEV: Extensively use qunit-dom's hasText (#30012) 2024-11-30 16:44:51 +01:00
chat-retention-reminder-test.js DEV: Run prettier correctly for bundled-plugin test directories (#30338) 2024-12-18 12:02:28 +00:00
chat-retention-reminder-text-test.js DEV: Run prettier correctly for bundled-plugin test directories (#30338) 2024-12-18 12:02:28 +00:00
chat-thread-header-test.js DEV: Use the new hasHtml/includesHtml from qunit-dom (#29680) 2024-11-11 13:06:12 +01:00
chat-thread-heading-test.gjs UI: simplify chat thread title (#29998) 2024-11-29 22:39:18 +01:00
chat-thread-list-item-test.js DEV: Use the new hasHtml/includesHtml from qunit-dom (#29680) 2024-11-11 13:06:12 +01:00
chat-thread-participants-test.js DEV: Clean up imports (#28060) 2024-07-25 15:09:06 +02:00
chat-upload-test.js DEV: Use qunit-dom instead of raw href/title comparisons (#29678) 2024-11-11 11:44:54 +01:00
chat-user-avatar-test.js DEV: Clean up imports (#28060) 2024-07-25 15:09:06 +02:00
chat-user-card-button-test.js FIX: hide chat button in user card (#29887) 2024-11-22 09:05:58 +01:00
chat-user-display-name-test.js DEV: Extensively use qunit-dom's hasText (#30012) 2024-11-30 16:44:51 +01:00
chat-user-info-test.js FIX: channel member status live updates (#25925) 2024-02-29 17:49:18 +08:00
collapser-test.js DEV: Update visible/invisible uses to qunit-dom (#29672) 2024-11-10 01:41:50 +01:00
thread-settings-test.gjs DEV: Clean up imports (#28060) 2024-07-25 15:09:06 +02:00