discourse/plugins/chat/assets/stylesheets/common
Martin Brennan ea548292bc
DEV: Refactoring chat message actions for ChatMessage component usage in thread panel (#20756)
This commit is a major overhaul of how chat message actions work, to make it so they are reusable between the main chat channel and the chat thread panel, as well as many improvements and fixes for the thread panel.

There are now several new classes and concepts:

* ChatMessageInteractor -  This is initialized from the ChatMessage, ChatMessageActionsDesktop, and ChatMessageActionsMobile components. This handles permissions about what actions can be done for each
message based on the context (thread or channel), handles the actions themselves (e.g. copyLink, delete, edit),
and interacts with the pane of the current context to modify the UI
* ChatChannelThreadPane and ChatChannelPane services - This represents the UI context which contains the
messages, and are mostly used for state management for things like message selection.
* ChatChannelThreadComposer and ChatChannelComposer - This handles interaction between the pane, the
message actions, and the composer, dealing with reply and edit message state.
* Scrolling logic for the messages has now been moved to a helper so it can be shared between the main channel pane and the thread pane
* Various improvements with the emoji picker on both mobile and desktop. The DOM node of each component is now located outside of the message which prevents a large range of issues.

The thread panel now also works in the chat drawer, and the thread messages have less
actions than the main panel, since some do not make sense there (e.g. moving messages to
a different channel). The thread panel title, excerpt, and message sender have also been removed
for now to save space.

This gives us a solid base to keep expanding on and fixing up threads. Subsequent PRs will
make the thread MessageBus subscriptions work and disable echo mode
for the initial release of threads.

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2023-04-06 15:19:52 +02:00
..
base-common.scss DEV: Refactoring chat message actions for ChatMessage component usage in thread panel (#20756) 2023-04-06 15:19:52 +02:00
chat-browse.scss UX: multiple minor improvements (#20917) 2023-04-03 10:46:38 +02:00
chat-channel-card.scss
chat-channel-info.scss UX: multiple minor improvements (#20917) 2023-04-03 10:46:38 +02:00
chat-channel-preview-card.scss DEV: rework the chat-live-pane (#20519) 2023-03-03 13:09:25 +01:00
chat-channel-selector-modal.scss
chat-channel-settings-saved-indicator.scss FEATURE: channels can allow/disallow @all/@here mentions (#19317) 2022-12-05 17:03:51 +01:00
chat-channel-title.scss UX: Chat channel title overflow ellipsis fixes (#20956) 2023-04-04 12:44:36 +02:00
chat-composer-dropdown.scss DEV: Refactoring chat message actions for ChatMessage component usage in thread panel (#20756) 2023-04-06 15:19:52 +02:00
chat-composer-inline-button.scss
chat-composer-upload.scss
chat-composer-uploads.scss FIX: reverts part of thread css (#20286) 2023-02-14 15:38:26 +01:00
chat-composer.scss DEV: Refactoring chat message actions for ChatMessage component usage in thread panel (#20756) 2023-04-06 15:19:52 +02:00
chat-draft-channel.scss UX: update chat draft icon colour (#20326) 2023-02-16 09:16:07 +01:00
chat-drawer.scss UX: Chat channel title overflow ellipsis fixes (#20956) 2023-04-04 12:44:36 +02:00
chat-emoji-picker.scss DEV: Refactoring chat message actions for ChatMessage component usage in thread panel (#20756) 2023-04-06 15:19:52 +02:00
chat-form.scss UX: redesign of chat settings + add chat retention info (#19017) 2022-11-16 11:10:42 +01:00
chat-index.scss UX: multiple minor improvements (#20917) 2023-04-03 10:46:38 +02:00
chat-mention-warnings.scss FEATURE: Enforce mention limits for chat messages (#19034) 2022-12-06 14:54:04 -03:00
chat-message-actions.scss DEV: Refactoring chat message actions for ChatMessage component usage in thread panel (#20756) 2023-04-06 15:19:52 +02:00
chat-message-collapser.scss
chat-message-images.scss DEV: Remove lazy-yt and replace with lazy-videos (#20722) 2023-03-29 11:54:25 -04:00
chat-message-info.scss
chat-message-left-gutter.scss DEV: Refactoring chat message actions for ChatMessage component usage in thread panel (#20756) 2023-04-06 15:19:52 +02:00
chat-message-separator.scss UX: Fix chat separator alignment (#20669) 2023-03-18 18:03:54 +01:00
chat-message.scss DEV: Refactoring chat message actions for ChatMessage component usage in thread panel (#20756) 2023-04-06 15:19:52 +02:00
chat-onebox.scss FIX: preserves avatar size inside onebox (#20066) 2023-01-30 13:59:25 +01:00
chat-reply.scss UX: Fix chat-reply overflow (#20592) 2023-03-08 21:12:49 +01:00
chat-replying-indicator.scss
chat-retention-reminder.scss
chat-selection-manager.scss REFACTOR: naming and state refactor (#19187) 2022-11-25 14:15:38 +01:00
chat-side-panel.scss DEV: Refactoring chat message actions for ChatMessage component usage in thread panel (#20756) 2023-04-06 15:19:52 +02:00
chat-skeleton.scss DEV: rework the chat-live-pane (#20519) 2023-03-03 13:09:25 +01:00
chat-tabs.scss
chat-thread.scss DEV: Refactoring chat message actions for ChatMessage component usage in thread panel (#20756) 2023-04-06 15:19:52 +02:00
chat-transcript.scss
core-extensions.scss UX: adds chat section in settings and hide it in plugins (#18984) 2022-11-11 12:43:20 +01:00
create-channel-modal.scss FEATURE: Allow editing channel slug (#19948) 2023-01-30 13:18:34 +10:00
d-progress-bar.scss
dc-filter-input.scss
direct-message-creator.scss UX: userstatus limit handling in UI (#20343) 2023-02-17 06:54:56 +01:00
full-page-chat-header.scss
incoming-chat-webhooks.scss
index.scss DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
reviewable-chat-message.scss
sidebar-extensions.scss DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00