Чат: аватар собеседника в списке ЛС + переключатель комнат

- Аватар співрозмовника напроти особистого повідомлення (лівий список):
  chatBuildChannelRow отримав опцію avatar; id співрозмовника ЛС резолвиться
  в chatResolveDmLabel і підвантажує фото (chatApplyAvatar). Групові ЛС —
  без фото, з ініціалами.
- Верхній перемикач «кімнат» — команди Mattermost (Офіс / Аптеки / Склад):
  chatRenderTeamSwitcher/chatSelectTeam; chatRenderChannelList фільтрує канали
  за обраною командою; за замовчуванням — перша команда. ЛС показуються завжди.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-24 18:03:42 +03:00
parent 479fe3e0d7
commit 8a4577f165
2 changed files with 82 additions and 12 deletions
+3 -1
View File
@@ -8,7 +8,9 @@
{% if chat_state == 'ready' %}
{{ chat_config|json_script:"chat-config-data" }}
{{ chat_colleagues|json_script:"chat-colleagues-data" }}
<div id="chat-app" style="display:grid; grid-template-columns:260px 1fr; gap:1.25rem; height:calc(100vh - 12rem); max-height:640px;">
<!-- Перемикач «кімнат» (команди Mattermost: Офіс / Аптеки / Склад) -->
<div id="chat-team-switcher" style="margin-bottom:1rem;"></div>
<div id="chat-app" style="display:grid; grid-template-columns:260px 1fr; gap:1.25rem; height:calc(100vh - 15rem); max-height:640px;">
<div style="background:var(--color-card); border-radius:0.75rem; border:1px solid var(--color-border); box-shadow:0 1px 2px rgb(0 0 0/0.05); display:flex; flex-direction:column; overflow:hidden;">
<div style="padding:0.75rem; border-bottom:1px solid var(--color-border); display:flex; align-items:center; justify-content:space-between;">