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/plugins/chat/assets/javascripts/discourse/services
Martin Brennan 07ab20131a
FEATURE: Chat side panel with threads initial skeleton (#20209)
This commit introduces the skeleton of the chat thread UI. The
structure of the components looks like this. Its done this way
so the side panel can be used for other things as well if we wish,
not just for threads:

```
.main-chat-outlet
   <ChatLivePane />
   <ChatSidePanel>
     <-- rendered with {{outlet}} -->
     <ChatThread />
   </ChatSidePanel>
```

Later on the `ChatThreadList` will be rendered here as well.
Now, when you go to a channel you can open a thread by clicking
on either the Open Thread message action button or by clicking on
the reply indicator. This will take you to a route like `chat/c/:slug/:channelId/t/:threadId`.
This works on mobile as well.

This commit includes basic serializers and routes for threads,
as well as a new `ChatThreadsManager` service in JS that caches
threads for a channel the same way the channel threads manager does.

The chat messages inside the thread are intentionally left out
until a later PR.

**NOTE: These changes are gated behind the site setting enable_experimental_chat_threaded_discussions
and the threading_enabled boolean on a ChatChannel**
2023-02-14 11:38:41 +10:00
..
chat-api.js FEATURE: Chat side panel with threads initial skeleton (#20209) 2023-02-14 11:38:41 +10:00
chat-audio-manager.js FIX: uses CDN when available for chat mp3 sounds (#19341) 2022-12-06 16:27:59 +01:00
chat-channel-info-route-origin-manager.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-channels-manager.js UX: orders public channels by slug instead of title (#20188) 2023-02-07 10:36:28 +01:00
chat-composer-presence-manager.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-composer-warnings-tracker.js REFACTOR: Move mention warnings logic into a separate service. (#19465) 2023-02-03 15:38:30 -03:00
chat-drawer-size.js FEATURE: resizeable chat drawer (#20160) 2023-02-03 15:11:12 +01:00
chat-emoji-picker-manager.js FIX: Emoji autocomplete “more” button not working in chat (#20113) 2023-02-02 15:04:52 -03:00
chat-emoji-reaction-store.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-guardian.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-message-visibility-observer.js FIX: triggers update last read when message is not staged (#19565) 2022-12-21 22:55:34 +01:00
chat-notification-manager.js FIX: correctly listens to chat notifications (#20246) 2023-02-12 23:26:11 +01:00
chat-state-manager.js FEATURE: Chat side panel with threads initial skeleton (#20209) 2023-02-14 11:38:41 +10:00
chat-subscriptions-manager.js FEATURE: Allow editing channel slug (#19948) 2023-01-30 13:18:34 +10:00
chat-threads-manager.js FEATURE: Chat side panel with threads initial skeleton (#20209) 2023-02-14 11:38:41 +10:00
chat.js FEATURE: Chat side panel with threads initial skeleton (#20209) 2023-02-14 11:38:41 +10:00
emoji-picker-scroll-observer.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00