discourse/plugins/chat/assets/javascripts/discourse
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
..
adapters FIX: better chat-api error handling (#19550) 2022-12-21 16:11:35 +01:00
components PERF: defer loading channels (#26155) 2024-03-18 08:35:07 +01:00
connectors FEATURE: add chat direct message button to user profile (#26135) 2024-03-18 11:17:37 +08:00
controllers DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
helpers FIX: improves linking of thread messages (#26095) 2024-03-08 09:09:42 +01:00
initializers PERF: defer loading channels (#26155) 2024-03-18 08:35:07 +01:00
lib DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
models DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
modifiers/chat DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
pre-initializers DEV: allows a context when creating a message (#25647) 2024-02-13 11:37:15 +01:00
routes PERF: defer loading channels (#26155) 2024-03-18 08:35:07 +01:00
services PERF: defer loading channels (#26155) 2024-03-18 08:35:07 +01:00
templates DEV: Use fn+mut instead of action+mut (#26057) 2024-03-06 18:05:03 +01:00
admin-chat-route-map.js
chat-route-map.js FEATURE: Create a link to start a new chat (#25722) 2024-02-20 18:08:57 +08:00
preferences-chat-route-map.js