Skip to content

Web: Add connection failure banner#176

Merged
SloMR merged 7 commits into
mainfrom
feat/web/NotifyUserForDisconnection
Apr 6, 2026
Merged

Web: Add connection failure banner#176
SloMR merged 7 commits into
mainfrom
feat/web/NotifyUserForDisconnection

Conversation

@SloMR
Copy link
Copy Markdown
Owner

@SloMR SloMR commented Apr 5, 2026

  • Shows a warning banner when peer-to-peer connections are lost for over 5 seconds.
  • Disables the send button and file attachment options when no peers are connected.
  • Adds English and Arabic translations for troubleshooting network issues.
  • Includes UI buttons to refresh the page or dismiss the warning banner.
  • Tracks peer connection states in real-time to provide immediate feedback.

@SloMR SloMR self-assigned this Apr 5, 2026
@SloMR SloMR added this to PastePoint Apr 5, 2026
@SloMR SloMR added enhancement New feature or request feature Creating a new feature typescript Pull requests that update TypeScript code translation Update for the translations client Changes made for the Client side UI UI changes labels Apr 5, 2026
Copilot AI review requested due to automatic review settings April 5, 2026 19:41
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds user-facing connection-loss feedback to the web chat UI by tracking peer connection state changes and surfacing a warning banner + disabling message/file actions when peers aren’t connected.

Changes:

  • Introduces a 5s disconnect threshold and UI banner for prolonged peer connection loss (with refresh/dismiss actions).
  • Disables send, attachments, emoji picker, and per-member file send actions when peers aren’t connected.
  • Adds EN/AR i18n strings for connection troubleshooting messaging.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
client/web/src/app/utils/constants.ts Adds a 5s connection warning threshold constant.
client/web/src/app/features/chat/chat.component.ts Tracks peer connect/disconnect events and drives warning + send-disabled state.
client/web/src/app/features/chat/chat.component.html Renders warning banner and disables relevant UI controls when disconnected.
client/web/src/app/core/services/communication/webrtc.service.ts Exposes peer connect/disconnect streams from signaling service.
client/web/src/app/core/services/communication/webrtc-signaling.service.ts Emits connect/disconnect events based on RTCPeerConnection state.
client/web/src/app/core/i18n/localizations/en.json Adds connection warning translations (EN).
client/web/src/app/core/i18n/localizations/ar.json Adds connection warning translations (AR).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread client/web/src/app/features/chat/chat.component.ts Outdated
Comment thread client/web/src/app/core/services/communication/webrtc.service.ts
Comment thread client/web/src/app/features/chat/chat.component.html Outdated
- Shows a warning banner when peer-to-peer connections are lost for over 5 seconds.
- Disables the send button and file attachment options when no peers are connected.
- Adds English and Arabic translations for troubleshooting network issues.
- Includes UI buttons to refresh the page or dismiss the warning banner.
- Tracks peer connection states in real-time to provide immediate feedback.
@SloMR SloMR force-pushed the feat/web/NotifyUserForDisconnection branch from 1b1ef60 to 290664b Compare April 5, 2026 21:56
SloMR added 2 commits April 6, 2026 01:11
- Ignore stale data channel events, preventing unnecessary actions.
- Add checks for connection and disconnection processes to avoid redundant peer reconnections.
@SloMR SloMR moved this to testing in PastePoint Apr 5, 2026
@SloMR SloMR changed the title Web: Add connection failure notifications Web: Add connection failure banner Apr 6, 2026
SloMR added 3 commits April 7, 2026 00:33
- Automatically hides connection warnings when all peers connect successfully.
- Refactor and simplify connection status timeout handling.
- Improve management of connection warning delays with more precise control.
- Improve user notification for connection status, aiming for better UX.
@SloMR SloMR merged commit 7a7e051 into main Apr 6, 2026
25 checks passed
@SloMR SloMR deleted the feat/web/NotifyUserForDisconnection branch April 6, 2026 22:06
@github-project-automation github-project-automation Bot moved this from testing to done in PastePoint Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

client Changes made for the Client side enhancement New feature or request feature Creating a new feature translation Update for the translations typescript Pull requests that update TypeScript code UI UI changes

Projects

Status: done

Development

Successfully merging this pull request may close these issues.

2 participants