discourse/plugins/chat/test/javascripts
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
..
acceptance DEV: Sort imports 2023-10-10 21:46:54 +01:00
components DEV: Fix various typos (#24461) 2023-11-20 16:49:49 +01:00
helpers FEATURE: implements drafts for threads (#24483) 2023-11-22 11:54:23 +01:00
integration/components/user-menu DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
unit FEATURE: implements drafts for threads (#24483) 2023-11-22 11:54:23 +01:00
widgets DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-fixtures.js DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00