discourse/plugins/chat/spec
Joffrey JAFFEUX 906caa63d7
FEATURE: implements drafts for threads (#24483)
This commit implements drafts for threads by adding a new `thread_id` column to `chat_drafts` table. This column is used to create draft keys on the frontend which are a compound key of the channel and the thread. If the draft is only for the channel, the key will be `c-${channelId}`, if for a thread: `c-${channelId}:t-${threadId}`.

This commit also moves the draft holder from the service to the channel or thread model. The current draft can now always be accessed by doing: `channel.draft` or `thread.draft`.

Other notable changes of this commit:
- moves ChatChannel to gjs
- moves ChatThread to gjs
2023-11-22 11:54:23 +01:00
..
components/chat FEATURE: add grace period for chat edits (#23800) 2023-10-23 16:40:30 +08:00
fabricators DEV: uses alphanumeric to avoid flakey specs (#24344) 2023-11-13 14:54:26 +01:00
integration DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
jobs DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
lib FEATURE: introduces group channels (#24288) 2023-11-10 11:29:28 +01:00
mailers DEV: Migrate Chat::MessageCreator to a service (#22390) 2023-09-07 08:57:29 +02:00
models DEV: Modernise highlightjs loading (#24197) 2023-11-10 20:39:48 +00:00
policies/chat/channel DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
queries/chat DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
requests FEATURE: implements drafts for threads (#24483) 2023-11-22 11:54:23 +01:00
serializer DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
services FEATURE: implements drafts for threads (#24483) 2023-11-22 11:54:23 +01:00
support FEATURE: introduces group channels (#24288) 2023-11-10 11:29:28 +01:00
system FEATURE: implements drafts for threads (#24483) 2023-11-22 11:54:23 +01:00
validators DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
plugin_helper.rb FEATURE: implements drafts for threads (#24483) 2023-11-22 11:54:23 +01:00
plugin_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00