Typing indicator, auto-scroll and clickable links in chat threads #401

Openmtanaka wants to merge 3 commits into main from feat/chat-typing-autoscroll· opened yesterday
+58−7
mtanaka commented yesterdayAuthor

What

Three small chat improvements from the last design review:

  • "X is typing..." under the last message (polls GET /threads/:id/typing)
  • The thread sticks to the bottom when new messages arrive, with a "Jump to latest" pill when you scroll up
  • URLs in messages become clickable links

How

  • New useTypingIndicator hook
  • MessageList tracks whether the user is near the bottom
  • linkify helper, used by MessageRow
  • Consecutive messages from the same author hide the avatar

Testing

Two browser windows on the staging thread, typed in one and watched the other.

mtanaka added 3 commits yesterday
Add useTypingIndicator hooka6b510c
Auto-scroll message list and add jump-to-latesta7b5125
Linkify URLs in message bodiesa8b513e

Review required

Review the changes, then submit to get graded.

Some checks haven’t completed yet

1 check: dojo / review-grader

Keyboard shortcuts

Site-wide

Focus the search bar
/
Show this dialog
?

Pull request

Move to the next file
j
Move to the previous file
k
Filter changed files
t
Comment on the selected lines
c
Select a range of lines
Shiftclick