Komunikator: sortowanie wg nieprzeczytanych/nazwy i grupowanie wg roli z zakładkami w topmenu (role w API rozmów)

This commit is contained in:
tisachi
2026-09-11 17:39:12 +02:00
parent 0ac6224a82
commit d211b092f2
10 changed files with 363 additions and 81 deletions

View File

@@ -400,6 +400,8 @@ export interface CircumferenceSeries {
// ---------- komunikator (messages) ----------
export interface Conversation {
coachingId: string;
/** Moja rola w relacji (odwrotna dla rozmówcy: podopieczny/trener). */
role: 'trainer' | 'trainee';
other: { id: string; firstName: string | null; lastName: string | null; nickname: string | null };
lastMessage: { body: string; createdAt: string; senderId: string } | null;
unreadCount: number;