Messages: Facebook-style Chats panel and docked chat windows

The topnav Messages icon opens a Chats panel (people search, recent
conversations, New message, link to the full page). Picking a person
opens a small chat window docked bottom-right; windows minimize to
avatar heads with unread counts and survive navigation within the tab.
Profile Send Message, the live message toast and message notifications
on /notifications open the same window. Phones and /messages keep the
full page.

Each window is dp-chat in mode="window", sharing one WebSocket through
chat/ChatSocketHub.js; chat/ConversationItem.js is the shared row
builder. No server changes.

The message input becomes [+] [text + emoji] [send] everywhere: + reveals
the attach and GIF buttons, which tuck away while typing.

Also fixes linked toasts never receiving clicks (pointer-events).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-07 13:21:29 +01:00
co-authored by Claude Opus 5.5
parent 920a679dcf
commit 17da9cb30c
28 changed files with 1527 additions and 202 deletions
+2
View File
@@ -217,6 +217,7 @@ def test_message_input_has_the_picker(alice, bob):
page.goto(f"{BASE_URL}/messages?search={bob_user['username']}", wait_until="domcontentloaded")
area = page.locator(".messages-input-area")
area.wait_for(state="visible")
area.locator(".composer-more-btn").click()
area.locator(".gif-toggle-btn").wait_for(state="visible")
record, _ = _stub_attach(page)
area.locator(".gif-toggle-btn").click()
@@ -252,6 +253,7 @@ def test_message_panel_fits_a_small_phone(alice, bob):
page.goto(f"{BASE_URL}/messages?search={bob_user['username']}", wait_until="domcontentloaded")
area = page.locator(".messages-input-area")
area.wait_for(state="visible")
area.locator(".composer-more-btn").click()
area.locator(".gif-toggle-btn").click()
panel = page.locator(PANEL).first
panel.wait_for(state="visible")