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. |
||
|---|---|---|
| .. | ||
| discourse_dev | ||
| email_controller_helper | ||
| extensions | ||
| onebox/templates | ||
| tasks | ||
| validators | ||
| chat_channel_archive_service.rb | ||
| chat_channel_fetcher.rb | ||
| chat_channel_hashtag_data_source.rb | ||
| chat_channel_membership_manager.rb | ||
| chat_mailer.rb | ||
| chat_message_bookmarkable.rb | ||
| chat_message_creator.rb | ||
| chat_message_processor.rb | ||
| chat_message_rate_limiter.rb | ||
| chat_message_reactor.rb | ||
| chat_message_updater.rb | ||
| chat_notifier.rb | ||
| chat_review_queue.rb | ||
| chat_seeder.rb | ||
| chat_statistics.rb | ||
| chat_transcript_service.rb | ||
| direct_message_channel_creator.rb | ||
| duplicate_message_validator.rb | ||
| endpoint.rb | ||
| guardian_extensions.rb | ||
| message_mover.rb | ||
| post_notification_handler.rb | ||
| secure_uploads_compatibility.rb | ||
| slack_compatibility.rb | ||
| steps_inspector.rb | ||