discourse/plugins/chat/spec
Mark VanLandingham 68eba53e09
FEATURE: Chat global mention warnings (pre-send & post-send) (#22764)
This is also fixes the issue of chat composer warnings persisting across channels. Currently if you try to mention more groups than is allowed for example, a mention warning pops up. When you change channels the mention warning will not disappear even if there is no text in the composer.

This adds a reset function to the chat-composer-warnings-tracker.js, which is called when the channel is changed and the message is empty. In the event that the message is not empty we call captureMentions to check the loaded drafts' mentions.

This PR would be nicer if the post-send notice used the new chat notices API to publish the mention warnings but we would have to change the existing ones and I thought that would be too much change for this PR. It'd be a good followup though.
2023-08-22 15:54:35 -05: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: moves logic from job to a service (#22691) 2023-07-27 10:25:41 +02:00
lib FEATURE: Chat global mention warnings (pre-send & post-send) (#22764) 2023-08-22 15:54:35 -05:00
mailers DEV: Refactor DM channel creation into new service pattern (#22144) 2023-07-03 10:18:37 +10:00
models FEATURE: implements user based sidebar mode (#23078) 2023-08-18 20:33:07 +02:00
queries/chat FEATURE: thread pagination (#22624) 2023-07-27 09:57:03 +02:00
requests FIX: TopicSummarization workaround for Postgres' discrete range types (#23105) 2023-08-15 14:16:06 -03:00
serializer FEATURE: implements user based sidebar mode (#23078) 2023-08-18 20:33:07 +02:00
services DEV: fixes flakey spec from auto-join-channel-batch (#23044) 2023-08-09 22:37:28 +02:00
support FEATURE: Show unread in sidebar for unread channel threads (#22342) 2023-07-17 13:00:49 +10:00
system FEATURE: Chat global mention warnings (pre-send & post-send) (#22764) 2023-08-22 15:54:35 -05: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