gitdataai/libs/room/src
ZhenYi cf5c728286 fix(room): fix scrolling lag, N+1 queries, and multiple WS token requests
Frontend:
- P0: Replace constant estimateSize(40px) with content-based estimation
  using line count and reply presence for accurate virtual list scroll
- P1: Replace Shadow DOM custom elements with styled spans for @mentions,
  eliminating expensive attachShadow calls per mention instance
- P1: Remove per-message ResizeObserver (one per bubble), replace with
  static inline toolbar layout to avoid observer overhead
- P2: Fix WS token re-fetch on every room switch by preserving token
  across navigation and not clearing activeRoomIdRef on cleanup

Backend:
- P1: Fix reaction check+insert race condition by moving into transaction
  instead of separate query + on-conflict insert
- P2: Fix N+1 queries in get_mention_notifications with batch fetch
  for users and rooms using IN clauses
- P2: Update room_last_activity in broadcast_stream_chunk to prevent
  idle room cleanup during active AI streaming
- P3: Use enum comparison instead of to_string() in room_member_leave
2026-04-17 21:08:40 +08:00
..
ai.rs init 2026-04-15 09:08:09 +08:00
category.rs init 2026-04-15 09:08:09 +08:00
connection.rs fix(room): fix scrolling lag, N+1 queries, and multiple WS token requests 2026-04-17 21:08:40 +08:00
draft_and_history.rs fix(room): fix scrolling lag, N+1 queries, and multiple WS token requests 2026-04-17 21:08:40 +08:00
error.rs init 2026-04-15 09:08:09 +08:00
helpers.rs fix(room): resolve remaining defects from second review 2026-04-17 20:28:45 +08:00
lib.rs init 2026-04-15 09:08:09 +08:00
member.rs init 2026-04-15 09:08:09 +08:00
message.rs fix(room): resolve remaining defects from second review 2026-04-17 20:28:45 +08:00
metrics.rs refactor(room): remove NATS, use Redis pub/sub for message queue 2026-04-16 17:24:04 +08:00
notification.rs init 2026-04-15 09:08:09 +08:00
pin.rs init 2026-04-15 09:08:09 +08:00
reaction.rs fix(room): fix scrolling lag, N+1 queries, and multiple WS token requests 2026-04-17 21:08:40 +08:00
room_ai_queue.rs init 2026-04-15 09:08:09 +08:00
room.rs fix(room): resolve remaining defects from second review 2026-04-17 20:28:45 +08:00
search.rs fix(room): fix scrolling lag, N+1 queries, and multiple WS token requests 2026-04-17 21:08:40 +08:00
service.rs fix(room): resolve remaining defects from second review 2026-04-17 20:28:45 +08:00
thread.rs init 2026-04-15 09:08:09 +08:00
types.rs fix(room): accept room_public JSON key for HTTP fallback 2026-04-16 18:27:53 +08:00
ws_context.rs init 2026-04-15 09:08:09 +08:00