discourse/plugins/chat/test/javascripts/components
Joffrey JAFFEUX 2d567cee26
FEATURE: thread pagination (#22624)
Prior to this commit we were loading a large number of thread messages without any pagination. This commit attempts to fix this and also improves the following points:

- code sharing between channels and threads:
Attempts to reuse/share the code use in channels for threads. To make it possible part of this code has been extracted in dedicated helpers or has been improved to reduce the duplication needed.

Examples of extracted helpers:
- `stackingContextFix`: the ios hack for rendering bug when momentum scrolling is interrupted
- `scrollListToMessage`, `scrollListToTop`, `scrollListToBottom`:  a series of helper to correctly scroll to a specific position in the list of messages

- better general performance of listing messages:
One of the main changes which has been made is to remove the computation of visible message during scroll, it will only happen when needed (update last read for example). This constant recomputation of `message.visible` on intersection observer event while scrolling was consuming a lot of CPU time.
2023-07-27 09:57:03 +02:00
..
chat-channel-card-test.js DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
chat-channel-leave-btn-test.js DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
chat-channel-metadata-test.js DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
chat-channel-preview-card-test.js DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
chat-channel-row-test.js DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
chat-channel-settings-saved-indicator-test.js FEATURE: channels can allow/disallow @all/@here mentions (#19317) 2022-12-05 17:03:51 +01:00
chat-channel-settings-view-test.js REFACTOR: channel retention reminder text (#20310) 2023-02-15 14:50:01 +01:00
chat-channel-status-test.js DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
chat-channel-test.js FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
chat-channel-title-test.js Revert "FIX: correctly respects full name settings in channel title (#22566)" (#22569) 2023-07-12 18:46:19 +02:00
chat-composer-dropdown-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
chat-composer-message-details-test.js DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
chat-composer-placeholder-test.js UX: improves composer and thread panel (#21210) 2023-04-25 10:23:03 +02:00
chat-composer-upload-test.js UX: improves composer and thread panel (#21210) 2023-04-25 10:23:03 +02:00
chat-composer-uploads-test.js DEV: Correct the app-events service injections (#21413) 2023-05-08 10:48:56 +02:00
chat-emoji-avatar-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
chat-emoji-picker-test.js FIX: relies on native focus behavior in chat emoji picker (#21092) 2023-04-13 20:35:13 +02:00
chat-message-avatar-test.js REFACTOR: <ChatMessage> component (#22172) 2023-06-19 09:50:54 +02:00
chat-message-collapser-test.js DEV: Remove lazy-yt and replace with lazy-videos (#20722) 2023-03-29 11:54:25 -04:00
chat-message-info-test.js REFACTOR: <ChatMessage> component (#22172) 2023-06-19 09:50:54 +02:00
chat-message-left-gutter-test.js REFACTOR: <ChatMessage> component (#22172) 2023-06-19 09:50:54 +02:00
chat-message-mention-warning-test.js REFACTOR: <ChatMessage> component (#22172) 2023-06-19 09:50:54 +02:00
chat-message-reaction-test.js DEV: Refactoring chat message actions for ChatMessage component usage in thread panel (#20756) 2023-04-06 15:19:52 +02:00
chat-message-separator-date-test.js FEATURE: Scroll to first message when clicking date in chat (#21926) 2023-06-20 15:58:38 +02:00
chat-message-separator-new-test.js DEV: rework the chat-live-pane (#20519) 2023-03-03 13:09:25 +01:00
chat-message-test.js REFACTOR: <ChatMessage> component (#22172) 2023-06-19 09:50:54 +02:00
chat-message-text-test.js DEV: Remove lazy-yt and replace with lazy-videos (#20722) 2023-03-29 11:54:25 -04:00
chat-modal-archive-channel-test.js DEV: makes chat modals use the new <DModal /> component (#22495) 2023-07-10 13:43:33 +02:00
chat-modal-delete-channel-test.js DEV: makes chat modals use the new <DModal /> component (#22495) 2023-07-10 13:43:33 +02:00
chat-modal-move-message-to-channel-test.js DEV: makes chat modals use the new <DModal /> component (#22495) 2023-07-10 13:43:33 +02:00
chat-notices-test.js DEV: Introduce Chat Notices with publishing method (#22369) 2023-07-06 08:26:25 -05:00
chat-replying-indicator-test.js DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
chat-retention-reminder-test.js DEV: rework the chat-live-pane (#20519) 2023-03-03 13:09:25 +01:00
chat-retention-reminder-text-test.js DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
chat-upload-test.js FEATURE: Inline audio player for chat uploads (#20175) 2023-02-06 16:00:03 +10:00
chat-user-avatar-test.js FIX: makes chat user avatar show presence by default (#22490) 2023-07-10 09:36:20 +02:00
chat-user-card-button-test.js DEV: makes user-card-chat-button uses glimmer (#22496) 2023-07-10 14:04:26 +02:00
chat-user-display-name-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
chat-user-info-test.js FIX: Chat member user card rendered out of view (#20332) 2023-02-17 10:14:00 -03:00
collapser-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
dc-filter-input-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00