feat: implement Cross-Module Unified Notification & Alert Registry #1464
Merged
omroy07 merged 1 commit intoomroy07:mainfrom Feb 12, 2026
Merged
Conversation
|
@SatyamPandey-07 is attempting to deploy a commit to the Om Roy's projects Team on Vercel. A member of the Team first needs to authorize it. |
Thanks for creating a PR for your Issue!
|
998d918 to
1bafcea
Compare
|
🎉 Congrats @SatyamPandey-07 on getting your PR merged! 🙌 |
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.
Core Registry & Models
backend/models/alert.py
: Created a high-gravity
Alert
model with support for priority levels (CRITICAL, HIGH, MEDIUM, LOW), categories, and multi-channel delivery tracking (WebSockets, Email, SMS).
backend/services/alert_registry.py
: A centralized dispatcher that evaluates user preferences, aggregates similar alerts to prevent "notification fatigue," and handles priority-based queuing.
Real-Time Infrastructure
backend/sockets/alert_socket.py
: Dedicated WebSocket handlers for private and global alert broadcasting.
js/alert_manager.js
: A robust frontend manager that handles incoming socket payloads, plays alert sounds for critical events, and manages the local unread state.
Redesigned UI/UX
navbar.html
: Integrated a modern "Alert Hub" dropdown with live badges and CSS-driven toast notifications for real-time visibility.
notifications.html
: A new, dedicated management center where users can filter alerts by category/priority and configure their cross-channel delivery preferences.
Service Integration & Maintenance
backend/services/weather_service.py
: Automatically triggers "Extreme Heat" and "Heavy Rainfall" CRITICAL alerts.
backend/services/market_service.py
: Refactored to send HIGH priority "Profit Opportunity" alerts when watchlist targets are reached.
backend/tasks/alert_cleanup.py
: Celery tasks for automated archival of read alerts and purging of expired registry entries.
closes #1461