- add user last_seen_at with alembic migration and persist on realtime disconnect
- extend chat serialization with private online/last_seen, group members/online, channel subscribers
- add Redis batch presence lookup helper
- update web chat list/header to display status counters and last-seen labels
- improve delivery receipt handling using last_delivered/last_read boundaries
- include chat info panel and related API/type updates
- make prependMessage return insertion status for dedup-safe unread increments
- increment unread only on newly inserted incoming messages
- trigger chat list refresh on websocket reconnect to resync unread counters
- add message selection mode from context menu
- support batch delete for me and conditional batch delete for everyone
- add undo snackbar for delete-for-me with delayed backend commit
- add restoreMessages helper in chat store for undo rollback
backend:
- add unread_count to ChatRead serialization
- compute unread_count per chat using message_receipts and hidden messages
web:
- add unread badges in chat list
- track unread boundary per chat in store
- show 'New messages' divider in message list
- update realtime flow to increment/clear unread on incoming events
backend:
- add message_hidden table for per-user message hiding
- support DELETE /messages/{id}?for_all=true|false
- implement delete-for-me vs delete-for-all logic by chat type/permissions
- add POST /chats/{chat_id}/clear and route saved chat deletion to clear
web:
- saved messages action changed from delete to clear
- message context menu now supports delete modal: for me / for everyone
- add local store helpers removeMessage/clearChatMessages
- include realtime stability improvements and app error boundary
- render chat/message context menus via portal to document.body
- clamp menu coordinates to viewport while keeping near-cursor placement
- remove visible chat id fallbacks from chat/discover UI
- hide 'delete for everyone' checkbox for channels; show channel-specific hint
- replace forward-by-chat-id prompt with searchable chat picker modal
backend:
- add required user name and optional bio fields
- extend auth/register and user schemas/services with name/bio
- add alembic migration 0006 with safe backfill name=username
- compute per-user chat display_title for private chats
- keep Saved Messages delete-for-all protections
web:
- registration now includes name
- add profile edit modal (name/username/bio/avatar url)
- show private chat names via display_title
- fix context menus to open near cursor with viewport clamping
- stabilize +/close floating button to remove visual jump
- add Saved Messages system chat with dedicated API
- add public group/channel metadata and discover/join endpoints
- add chat delete flow with for_all option and channel-wide delete
- switch message actions to context menu and improve reply/forward visuals
- improve microphone permission handling for voice recording
- add reply_to/forwarded_from message fields and chat pinned_message field
- add forward and pin APIs plus reply support in message create
- wire web actions: Reply, Fwd, Pin and reply composer state
- fix spam policy bug: allow repeated identical messages, keep rate limiting
- implement chat query filtering and message search endpoints
- add db indexes for search fields
- activate chats search input in web
- replace inline create panel with floating TG-style action menu
- optimistic sending state with pending clock icon
- transition statuses sent -> delivered -> read via realtime events
- render checkmarks next to outgoing message timestamps
- make minio bucket downloadable for direct media links
- switch object keys to random uuid-based names
- add client-side image compression before upload
- add media preview and upload confirmation for image/video
- add upload progress tracking for presigned uploads
- keep voice recording/upload flow with better UI states
- include related realtime/chat updates currently in working tree
Backend user search:
- Added users search endpoint for @username lookup.
- Implemented repository/service/router support with bounded result limits.
Web chat creation:
- Added API client for /users/search.
- Added NewChatPanel for creating private chats via @username search.
- Added group/channel creation flow from sidebar.
UX refinement:
- Hide message composer when no chat is selected.
- Show explicit placeholder: 'Выберите чат, чтобы начать переписку'.
- Added tsbuildinfo ignore rule.