Skip to content

Unread indicator dot for sessions with new messages #91

@sagarsrc

Description

@sagarsrc

Summary

Show an unread indicator dot on sessions in the sidebar when new messages arrive, similar to chat app notification badges.

Problem

When monitoring multiple sessions, there's no visual indication that a session has new activity. Users have to manually check each session to see if anything new happened.

Proposed Solution

Add a small colored dot indicator next to session names in the sidebar when new messages are detected.

Implementation

Frontend:

  • Track "last viewed" timestamp per session (localStorage or state)
  • Compare with session's latest message timestamp
  • Show dot indicator when session has messages newer than last viewed
  • Clear dot when user clicks/views the session
  • Dot styling: small colored circle (e.g., blue or accent color)

Backend:

  • Include latest_message_timestamp in session list response (may already exist)

UX:

  • Dot appears on sidebar session item
  • Optional: show count of unread messages instead of just dot
  • Dot clears immediately when session is selected
  • Persist "last viewed" across page refreshes

Visual Example

Sessions
├── quickcall-supertrace  ●  <- new messages
├── my-project
└── another-session       ●  <- new messages

Benefits

  • Quick visibility into which sessions have new activity
  • Better multi-session monitoring workflow
  • Familiar UX pattern from chat/messaging apps

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions