discourse/plugins/chat/test/javascripts/components
Andrei Prigorshnev d4a5b79592
FEATURE: Add user status to inline mentions in chat (#20564)
This PR adds status to mentions in chat and makes those mentions receive live updates.

There are known unfinished part in this implementation: when posting a message, status on mentions on that message appears immediately, but only if a user used autocomplete when typing the message. If user copy and paste a message with mentions into chat composer, those mentions won't have user status on them.

PRs with fixes for both problems are following soon.

Preparations for this PR that were made previously include:
- DEV: correct a relationship – a chat message may have several mentions 0dcfd7ddec
- DEV: extract the logic for extracting and expanding mentions from ChatNotifier 75b81b6854
- DEV: Always create chat mention records fa543cda06
- DEV: better split create_notification! and send_notifications logic e292c45924
- DEV: more tests for mentions when updating chat messages e7292e1682
- DEV: extract updating status on mentions into a lib function e49d338c21
- DEV: Create and update chat message mentions earlier 35a414bb38
- DEV: Create a chat_mention record when self mentioning 2703f2311a
- DEV: When deleting a chat message, do not delete mention records f4fde4e49b
2023-05-24 16:55:20 +04:00
..
chat-channel-archive-modal-inner-test.js DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
chat-channel-card-test.js DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
chat-channel-delete-modal-inner-test.js DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
chat-channel-leave-btn-test.js DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
chat-channel-metadata-test.js DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
chat-channel-preview-card-test.js DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
chat-channel-row-test.js DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02: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-status-test.js DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
chat-channel-test.js FEATURE: Add user status to inline mentions in chat (#20564) 2023-05-24 16:55:20 +04:00
chat-channel-title-test.js DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
chat-composer-dropdown-test.js DEV: Modernize chat's component tests (#19577) 2022-12-22 14:35:18 +01:00
chat-composer-message-details-test.js DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02: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 DEV: Correct the app-events service injections (#21413) 2023-05-08 10:48:56 +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: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02: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: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
chat-message-move-to-channel-modal-inner-test.js DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02: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: various improvements to devex on chat (#21612) 2023-05-17 17:49: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: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02: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: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02: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: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02: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