feat(notifications): implement real-time notification system with websocket and toast integration (#476) - #520
Merged
Conversation
…socket and toast integration (Epta-Node#476)
|
@xtep103 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
@xtep103 is attempting to deploy a commit to the Jaja's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
Resolve the conflicts |
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Implements a comprehensive real-time notification system with WebSocket event streaming, unread count badge, interactive dropdown panel, toast integration for task/payment events, and local storage offline persistence.
Related Issue
Closes #476
Changes
Notification Core & Context
frontend/src/types/notification.tstask_completed,task_failed,payment_received,agent_registeredevent types, message fields, and updatedNotificationContextValue.frontend/src/context/NotificationContext.tsxNotificationProviderwithlocalStoragepersistence, exponential-backoff WebSocket connection, event mapping, toast dispatch triggers,markAsRead,markAllAsRead, andclearAll.frontend/src/hooks/useNotifications.tsnotifications,unreadCount,markAsRead,markAllAsRead,clearAll, and connection status with safe fallbacks.Notification Components
frontend/src/components/notifications/NotificationBell.tsxfrontend/src/components/notifications/NotificationPanel.tsxfrontend/src/components/notifications/NotificationItem.tsxfrontend/src/components/notifications/NotificationCenter.tsxfrontend/src/components/notifications/NotificationCenter.cssfrontend/src/components/layout/TopNav.tsxNotificationBellin the header bar.Build & Test Cleanups
frontend/src/context/ToastContext.tsxToastContextValueanduseToast.frontend/src/App.tsxfrontend/src/components/notifications/NotificationBell.test.tsxNotificationBellrendering, badge counts, and toggle interactions.frontend/src/components/notifications/NotificationCenter.test.tsxVerification Results
NotificationBellshows unread count badge (e.g. "3")notification-badgemarkAllAsRead()sets all to read and clears badgeai_net_notificationskeytask_completedandpayment_receivedeventsapp-toastevents automatically