Repository navigation
Chat: "is typing…", "Seen by" and search (#97) - #106
Merged
Merged
Conversation
Typing kept in the backend's memory for 5 s; "Seen by N" on your own messages counting only chat people, live; search a chat's text and file names with From and Files only. Open chats poll one updates endpoint. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #97 (spec #91).
What's new
chat.TypingBoard, like theLoginGuard) and forgets it 5 s after the last keystroke, or as soon as the message is sent. Staff who only read along never show as typing; you never see yourself.%and_are searched as they are), From (the chat people and the authors of the shown messages) and Files only. Results are newest first (max 50), deleted messages are never found, and clicking a result scrolls to the message.GET .../chat/updates?since=every 2 s, which returns the changed messages, who is typing and the others' read marks. ADR 0008 updated;CONTEXT.md: Seen by; changelog row.API
GET /api/projects/{id}/chat/updates?since=→{messages, typing, reads [{name, last_read_id}]};POST /api/projects/{id}/chat/typing;GET /api/projects/{id}/chat/search?q=&from=&files_only=(422 "Type something to search for." without any filter). Messages getseen_by(names, only on your own; null otherwise).Tests
test_chat_typing_seen_search.py(typing for 5 s with a fake clock, never yourself, sending ends it, staff reading along never type, Seen by counts only chat people, search in text and file names, literal%/_, Files only, From, needs a filter, access).test_chat_typing_seen_search.py(typing line wording, a Student sees the Teacher typing, Seen by goes from "Not seen yet" to "Seen by 1" with the name, search finds a message and jumps to it, Files only). Thebodies()test helper now orders by message id, because a message is redrawn when its "Seen by" changes.🤖 Generated with Claude Code