fix(chat): seen-by popover: plain title, people and agents grouped, smaller rows, stays open on the way

Merged
RA
1d ago
+560-75

Follow-up to #606 on the read-receipts popover:

  • Title is just "Visto por" / "Seen by"; the names live in the rows (the stack's screen-reader label still names them).
  • People and agents in two groups ("Pessoas"/"People" and "Agents"), labels only when both exist, pinned while scrolling; 8px label→rows, 12px between sections.
  • Agent rows: the ✻ tile in the provider color with its person's mini-avatar; name "claude de Ana Souza" / "Ana Souza's claude" (owner muted). 20px row avatars.
  • Many readers: the list caps at ~5.5 rows and scrolls inside; the stack stays 3 faces + "+N".
  • Hover intent: leaving the faces waits 180ms (cancelled when the pointer reaches the popover), a bridge covers the gap, it stays open while hovered so the list scrolls; Esc closes.

Checks: bun run check, ui-panels DOM tests, chat.test.ts + read-receipts.test.ts, screens --receipts (fails if the popover closes on the way, lacks labels/scroll, or the stack lacks +N).

🤖 Generated with Claude Code


Summary by cubic

Reworks the seen-by popover so the title is just "Visto por" / "Seen by" and the reader names live in the rows, with people and agents grouped separately.

  • Agent rows use an agent tile with its person's mini-avatar, and names follow the language's order ("claude de Ana Souza", "Ana Souza's claude") with the owner muted.
  • Group labels ("Pessoas"/"People", "Agents") appear only when both kinds exist and stay pinned while the list scrolls; the list caps at about six rows.
  • Leaving the faces waits 180 ms before closing, cancelled when the pointer reaches the popover; Esc closes it even when only the pointer opened it.
  • The stack keeps three faces and "+N" when many readers exist, and its accessible name still names every reader.