Skip to content

feat: Implement Inbound Typing Indicators Subscription #15

Description

@RokayaOthman

The UI currently broadcasts outbound typing states via MessageInput.js, but it never listens for incoming typing alerts. No one can see when another teammate is typing.

  • Proposed Implementation Steps:
  1. In ChatPage.jsx, subscribe the initialized STOMP client to /topic/channel/{id}/typing whenever an activeChannel shifts.
  2. Maintain a local typingUsers state array containing user IDs currently active.
  3. Render a clean text notification (e.g., "Ahmed Aly is typing...") right above the MessageInput component using usersMap to resolve names.
  • Acceptance Criteria:
  • Subscribing to the typing broker functions seamlessly on channel change.
  • UI displays an indicator when another user types and clears it automatically after a fallback timeout or clear event.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions