gitdataai/libs/room/src
ZhenYi 26682973e7 feat(room): redesign mention system with AST-based format
Backend:
- Add MENTION_TAG_RE matching new `<mention type="..." id="...">label</mention>` format
- Extend extract_mentions() and resolve_mentions() to parse new format (legacy backward-compatible)

Frontend:
- New src/lib/mention-ast.ts: AST types (TextNode, MentionNode, AiActionNode),
  parse() and serialize() functions for AST↔HTML conversion
- MentionPopover: load @repository: from project repos, @ai: from room_ai configs
  (not room members); output new HTML format with ID instead of label
- MessageMentions: use AST parse() for rendering (falls back to legacy parser)
- ChatInputArea: insertMention now produces `<mention type="user" id="...">label</mention>`
- RoomParticipantsPanel: onMention passes member UUID to insertMention
- RoomContext: add projectRepos and roomAiConfigs for mention data sources
2026-04-17 23:43:26 +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): align ReactionGroup types with frontend and guard reaction update handler 2026-04-17 23:00:52 +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 feat(room): redesign mention system with AST-based format 2026-04-17 23:43:26 +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