mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 04:31:56 +08:00
bf886662df
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 |
||
---|---|---|
.. | ||
chat_message | ||
list_channels | ||
page_objects | ||
shortcuts | ||
user_menu_notifications | ||
user_status | ||
anonymous_spec.rb | ||
archive_channel_spec.rb | ||
bookmark_message_spec.rb | ||
browse_page_spec.rb | ||
channel_about_page_spec.rb | ||
channel_info_pages_spec.rb | ||
channel_members_page_spec.rb | ||
channel_message_selection_spec.rb | ||
channel_message_upload_spec.rb | ||
channel_selector_modal_spec.rb | ||
channel_settings_page_spec.rb | ||
channel_thread_message_echoing_spec.rb | ||
chat_channel_spec.rb | ||
chat_composer_spec.rb | ||
chat_message_onebox_spec.rb | ||
closed_channel_spec.rb | ||
create_channel_spec.rb | ||
deleted_channel_spec.rb | ||
deleted_message_spec.rb | ||
draft_message_spec.rb | ||
drawer_spec.rb | ||
edited_message_spec.rb | ||
flag_message_spec.rb | ||
hashtag_autocomplete_spec.rb | ||
jit_messages_spec.rb | ||
kick_user_from_channel_spec.rb | ||
mention_warnings_spec.rb | ||
message_errors_spec.rb | ||
message_notifications_mobile_spec.rb | ||
message_notifications_with_sidebar_spec.rb | ||
message_thread_indicator_spec.rb | ||
message_user_info.rb | ||
move_message_to_channel_spec.rb | ||
navigating_to_message_spec.rb | ||
navigation_spec.rb | ||
network_reconciliation_spec.rb | ||
react_to_message_spec.rb | ||
read_only_spec.rb | ||
sidebar_navigation_menu_spec.rb | ||
sidebars_spec.rb | ||
silenced_user_spec.rb | ||
single_thread_spec.rb | ||
sticky_date_spec.rb | ||
transcript_spec.rb | ||
unfollow_dm_channel_spec.rb | ||
update_last_read.rb | ||
uploads_spec.rb | ||
user_card_spec.rb | ||
user_chat_preferences_spec.rb | ||
user_presence.rb | ||
visit_channel_spec.rb |