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
Roman Rizzi 82ac6a7eff
REFACTOR: Move post-send warnings into their own component.
Unfortunately, I couldn't refactor as much as I would like here. My original idea was the component to handle message bus subscriptions and callbacks to isolate post-send warnings from the `chat-live-pane` and `chat-message`. However, I couldn't make it work because we can't set the message ID inmediately after sending a message, meaning we won't be able to subscribe to the channel in time and miss the update. For this reason, we can't break the current design where the pane acts as a message broker, which dispatches updates to specific messages.

The change accomplished two things. It simplifies the warning MB message homogenizing all the different warning types into a single array, and renders a component that know how to translate them without needing multiple functions like the old implementation.
2023-02-15 08:37:36 -03:00
..
adapters FIX: better chat-api error handling (#19550) 2022-12-21 16:11:35 +01:00
components REFACTOR: Move post-send warnings into their own component. 2023-02-15 08:37:36 -03:00
connectors DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
controllers DEV: routable chat part 2 (#20232) 2023-02-14 11:27:07 +01:00
helpers DEV: Remove chat_channel_id from chat-live-pane details (#20302) 2023-02-15 08:27:09 +01:00
initializers DEV: refactors routes to simplify using outlet (#20179) 2023-02-07 13:59:32 +01:00
lib DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00
models DEV: changes <ChatMessage> to use @glimmer (#20056) 2023-02-14 19:34:55 +01:00
modifiers/chat FEATURE: resizeable chat drawer (#20160) 2023-02-03 15:11:12 +01:00
pre-initializers DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00
routes DEV: routable chat part 2 (#20232) 2023-02-14 11:27:07 +01:00
services DEV: routable chat part 2 (#20232) 2023-02-14 11:27:07 +01:00
templates DEV: routable chat part 2 (#20232) 2023-02-14 11:27:07 +01:00
widgets DEV: Pass messageId as a dynamic segment instead of a query param (#20013) 2023-02-01 12:39:23 -03:00
admin-chat-route-map.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-route-map.js FEATURE: Chat side panel with threads initial skeleton (#20209) 2023-02-14 11:38:41 +10:00
preferences-chat-route-map.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00