android: add chat/realtime tests and update android checklist

This commit is contained in:
Codex
2026-03-08 22:34:41 +03:00
parent 2dfad1a624
commit 9d842c1d88
6 changed files with 350 additions and 16 deletions

View File

@@ -1,32 +1,32 @@
# Android Checklist (Telegram-подобный клиент)
## 1. Базовая архитектура
- [ ] Kotlin + Jetpack Compose
- [x] Kotlin + Jetpack Compose
- [ ] Модульность: `core`, `data`, `feature-*`, `app`
- [ ] DI (Hilt/Koin)
- [ ] MVI/MVVM + единый state/presenter слой
- [ ] Coroutines + Flow + structured concurrency
- [x] DI (Hilt/Koin)
- [x] MVI/MVVM + единый state/presenter слой
- [x] Coroutines + Flow + structured concurrency
- [ ] Логирование (Timber/Logcat policy)
- [ ] Crash reporting (Firebase Crashlytics/Sentry)
## 2. Сеть и API
- [ ] Retrofit/OkHttp + auth interceptor
- [ ] Авто-refresh JWT
- [x] Retrofit/OkHttp + auth interceptor
- [x] Авто-refresh JWT
- [ ] Единая обработка ошибок API
- [ ] Realtime WebSocket слой (reconnect/backoff)
- [ ] Маппинг DTO -> Domain -> UI models
- [x] Realtime WebSocket слой (reconnect/backoff)
- [x] Маппинг DTO -> Domain -> UI models
- [ ] Версионирование API и feature flags
## 3. Локальное хранение и sync
- [ ] Room для чатов/сообщений/пользователей
- [ ] DataStore для настроек
- [x] DataStore для настроек
- [ ] Кэш медиа (Coil/Exo cache)
- [ ] Offline-first чтение истории
- [ ] Очередь отложенных действий (send/edit/delete)
- [ ] Конфликт-резолв и reconcile после reconnect
## 4. Авторизация и аккаунт
- [ ] Login/Register flow (email-first)
- [x] Login/Register flow (email-first)
- [ ] Verify email экран/обработка deep link
- [ ] Reset password flow
- [ ] Sessions list + revoke one/all
@@ -42,11 +42,11 @@
## 6. Список чатов
- [ ] Tabs/фильтры (all/private/group/channel/archive)
- [ ] Pinned chats
- [ ] Unread badge + mention badge `@`
- [ ] Muted badge
- [ ] Last message preview по типам медиа
- [ ] Online indicator в private чатах
- [x] Pinned chats
- [x] Unread badge + mention badge `@`
- [x] Muted badge
- [x] Last message preview по типам медиа
- [x] Online indicator в private чатах
## 7. Сообщения
- [ ] Отправка текста
@@ -108,7 +108,7 @@
- [ ] Privacy-safe logging (без токенов/PII)
## 15. Качество
- [ ] Unit tests (domain/data)
- [x] Unit tests (domain/data)
- [ ] UI tests (Compose test)
- [ ] Integration tests для auth/chat/realtime
- [ ] Performance baseline (startup, scroll, media)