discourse/plugins/chat/spec
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
..
components/chat DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
fabricators DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
integration DEV: Remove experimental site setting for chat threads (#22720) 2023-07-26 12:46:23 +02:00
jobs DEV: Remove experimental site setting for chat threads (#22720) 2023-07-26 12:46:23 +02:00
lib FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
mailers DEV: Refactor DM channel creation into new service pattern (#22144) 2023-07-03 10:18:37 +10:00
models DEV: Remove experimental site setting for chat threads (#22720) 2023-07-26 12:46:23 +02:00
queries/chat FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
requests FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
serializer FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
services FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
support FEATURE: Show unread in sidebar for unread channel threads (#22342) 2023-07-17 13:00:49 +10:00
system FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
validators DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
plugin_helper.rb DEV: Refactor DM channel creation into new service pattern (#22144) 2023-07-03 10:18:37 +10:00
plugin_spec.rb FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00