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/spec/lib
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
..
chat_channel_archive_service_spec.rb DEV: Use UploadReference instead of ChatUpload in chat (#19947) 2023-01-24 13:28:21 +10:00
chat_channel_fetcher_spec.rb DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
chat_channel_hashtag_data_source_spec.rb FEATURE: Sort hashtags starting with term higher priority (#19463) 2022-12-15 13:01:44 +10:00
chat_channel_membership_manager_spec.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat_message_bookmarkable_spec.rb DEV: Rename direct message related models 2022-11-03 14:39:23 +01:00
chat_message_processor_spec.rb FIX: Add missing user_id args for ChatMessage.cook (#19508) 2022-12-19 11:05:37 +10:00
chat_message_reactor_spec.rb DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
chat_notifier_spec.rb REFACTOR: Move post-send warnings into their own component. 2023-02-15 08:37:36 -03:00
chat_review_queue_spec.rb DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
chat_statistics_spec.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat_transcript_service_spec.rb DEV: Use UploadReference instead of ChatUpload in chat (#19947) 2023-01-24 13:28:21 +10:00
direct_message_channel_creator_spec.rb DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
duplicate_message_validator_spec.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
endpoint_spec.rb DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00
guardian_extensions_spec.rb DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
message_mover_spec.rb FEATURE: Automatically create chat threads in background (#20206) 2023-02-08 10:22:07 +10:00
post_notification_handler_spec.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
slack_compatibility_spec.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
steps_inspector_spec.rb DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00