discourse/plugins/chat/test/javascripts/components
Joffrey JAFFEUX bbb8595107
PERF: defer loading channels (#26155)
Prior to this change we would pre-load all the user channels which making initial page load slower. This change will make them be loaded right after initial load. In the past this was not possible as the channels would have to be loaded on each page transition. However since about a year, we made the channels to be cached on the frontend and no other request will be needed.

I have decided for now to not show a loading state in the sidebar as I think it would be noise, but we can reconsider this later.

Note given we don't have the channels loaded at first certain things where harder to accomplish. The biggest UX change of this commit is that we removed all the complex logic of computing the best channel to display when you load /chat. We will now store the id of the last channel you visited and will use this id to decide which channel to show.
2024-03-18 08:35:07 +01:00
..
channel-icon-test.gjs FEATURE: display last message on mobile (#25384) 2024-01-25 15:30:21 +01:00
channel-name-test.gjs FEATURE: display last message on mobile (#25384) 2024-01-25 15:30:21 +01:00
channel-title-test.gjs FEATURE: display last message on mobile (#25384) 2024-01-25 15:30:21 +01:00
chat-channel-card-test.js UX: Chat browse redesign (#25698) 2024-02-15 18:00:22 +01:00
chat-channel-leave-btn-test.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-channel-metadata-test.js FEATURE: display last message on mobile (#25384) 2024-01-25 15:30:21 +01:00
chat-channel-preview-card-test.js FEATURE: display last message on mobile (#25384) 2024-01-25 15:30:21 +01:00
chat-channel-row-test.js FEATURE: display last message on mobile (#25384) 2024-01-25 15:30:21 +01:00
chat-channel-status-test.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-channel-test.js PERF: defer loading channels (#26155) 2024-03-18 08:35:07 +01:00
chat-composer-dropdown-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-composer-message-details-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-composer-placeholder-test.js FEATURE: introduces group channels (#24288) 2023-11-10 11:29:28 +01:00
chat-composer-upload-test.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-composer-uploads-test.js DEV: Remove unnecessary await settled() (#24584) 2023-11-28 10:45:20 +01:00
chat-emoji-avatar-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-emoji-picker-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-header-icon-test.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-message-avatar-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-message-collapser-test.js FEATURE: my threads page (#24771) 2023-12-11 07:38:07 +01:00
chat-message-info-test.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-message-left-gutter-test.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-message-reaction-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-message-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-message-text-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-modal-archive-channel-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-modal-delete-channel-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-modal-move-message-to-channel-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-notices-test.js DEV: Consistently use kebab-case in service lookups (#24552) 2023-11-25 18:10:10 +01:00
chat-replying-indicator-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-retention-reminder-test.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-retention-reminder-text-test.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
chat-thread-header-test.js DEV: implements <Chat::Navbar /> (#24917) 2023-12-18 17:49:58 +01:00
chat-thread-list-item-test.js FIX: correctly display escaped thread titles (#24159) 2023-10-30 21:06:31 +01:00
chat-thread-participants-test.js DEV: Fix various typos (#24461) 2023-11-20 16:49:49 +01:00
chat-upload-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-user-avatar-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
chat-user-card-button-test.js FEATURE: add chat direct message button to user profile (#26135) 2024-03-18 11:17:37 +08:00
chat-user-display-name-test.js FEATURE: Add user status to chat members list (#25831) 2024-02-27 12:17:15 +08:00
chat-user-info-test.js FIX: channel member status live updates (#25925) 2024-02-29 17:49:18 +08:00
collapser-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
dc-filter-input-test.js DEV: Use class attribute instead of @class arg (#24804) 2023-12-12 13:09:05 +01:00