discourse/plugins/chat/test/javascripts/components
Joffrey JAFFEUX bf886662df
UX: improves composer and thread panel (#21210)
This pull request is a full overhaul of the chat-composer and contains various improvements to the thread panel. They have been grouped in the same PR as lots of improvements/fixes to the thread panel needed an improved composer. This is meant as a first step.

### New features included in this PR

- A resizable side panel
- A clear dropzone area for uploads
- A simplified design for image uploads, this is only a first step towards more redesign of this area in the future

### Notable fixes in this PR

- Correct placeholder in thread panel
- Allows to edit the last message of a thread with arrow up
- Correctly focus composer when replying to a message
- The reply indicator is added instantly in the channel when starting a thread
- Prevents a large variety of bug where the composer could bug and prevent sending message or would clear your input while it has content

### Technical notes

To achieve this PR, three important changes have been made:

- `<ChatComposer>` has been fully rewritten and is now a glimmer component
- The chat composer now takes a `ChatMessage` as input which can directly be used in other operations, it simplifies a lot of logic as we are always working a with a `ChatMessage`
- `TextareaInteractor` has been created to wrap the existing `TextareaTextManipulation` mixin, it will make future migrations easier and allow us to have a less polluted `<ChatComposer>`

Note ".chat-live-pane" has been renamed ".chat-channel"

Design for upload dropzone is from @chapoi
2023-04-25 10:23:03 +02:00
..
chat-channel-archive-modal-inner-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
chat-channel-card-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
chat-channel-delete-modal-inner-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
chat-channel-leave-btn-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
chat-channel-metadata-test.js DEV: rework the chat-live-pane (#20519) 2023-03-03 13:09:25 +01:00
chat-channel-preview-card-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
chat-channel-row-test.js DEV: rework the chat-live-pane (#20519) 2023-03-03 13:09:25 +01:00
chat-channel-settings-saved-indicator-test.js FEATURE: channels can allow/disallow @all/@here mentions (#19317) 2022-12-05 17:03:51 +01:00
chat-channel-settings-view-test.js REFACTOR: channel retention reminder text (#20310) 2023-02-15 14:50:01 +01:00
chat-channel-title-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
chat-composer-dropdown-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
chat-composer-inline-buttons-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
chat-composer-placeholder-test.js UX: improves composer and thread panel (#21210) 2023-04-25 10:23:03 +02:00
chat-composer-upload-test.js UX: improves composer and thread panel (#21210) 2023-04-25 10:23:03 +02:00
chat-composer-uploads-test.js UX: improves composer and thread panel (#21210) 2023-04-25 10:23:03 +02:00
chat-emoji-avatar-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
chat-emoji-picker-test.js FIX: relies on native focus behavior in chat emoji picker (#21092) 2023-04-13 20:35:13 +02:00
chat-message-avatar-test.js DEV: rework the chat-live-pane (#20519) 2023-03-03 13:09:25 +01:00
chat-message-collapser-test.js DEV: Remove lazy-yt and replace with lazy-videos (#20722) 2023-03-29 11:54:25 -04:00
chat-message-info-test.js DEV: rework the chat-live-pane (#20519) 2023-03-03 13:09:25 +01:00
chat-message-move-to-channel-modal-inner-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
chat-message-reaction-test.js DEV: Refactoring chat message actions for ChatMessage component usage in thread panel (#20756) 2023-04-06 15:19:52 +02:00
chat-message-separator-date-test.js DEV: rework the chat-live-pane (#20519) 2023-03-03 13:09:25 +01:00
chat-message-separator-new-test.js DEV: rework the chat-live-pane (#20519) 2023-03-03 13:09:25 +01:00
chat-message-test.js DEV: Refactoring chat message actions for ChatMessage component usage in thread panel (#20756) 2023-04-06 15:19:52 +02:00
chat-message-text-test.js DEV: Remove lazy-yt and replace with lazy-videos (#20722) 2023-03-29 11:54:25 -04:00
chat-replying-indicator-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
chat-retention-reminder-test.js DEV: rework the chat-live-pane (#20519) 2023-03-03 13:09:25 +01:00
chat-retention-reminder-text-test.js DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
chat-upload-test.js FEATURE: Inline audio player for chat uploads (#20175) 2023-02-06 16:00:03 +10:00
chat-user-avatar-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
chat-user-display-name-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
chat-user-info-test.js FIX: Chat member user card rendered out of view (#20332) 2023-02-17 10:14:00 -03:00
collapser-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
dc-filter-input-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
direct-message-creator-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
on-visibility-action-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
user-card-chat-button-test.js UX: hide chat button on user card when suspended (#20292) 2023-02-14 21:12:50 +01:00