Skip to content

feat: implement Cross-Module Unified Notification & Alert Registry #1464

Merged
omroy07 merged 1 commit intoomroy07:mainfrom
SatyamPandey-07:feature/cunar-notification-registry
Feb 12, 2026
Merged

feat: implement Cross-Module Unified Notification & Alert Registry #1464
omroy07 merged 1 commit intoomroy07:mainfrom
SatyamPandey-07:feature/cunar-notification-registry

Conversation

@SatyamPandey-07
Copy link
Contributor

  1. 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.

  2. 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.

  3. 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.

  4. 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

@vercel
Copy link

vercel bot commented Feb 11, 2026

@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.

@github-actions
Copy link

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@SatyamPandey-07 SatyamPandey-07 force-pushed the feature/cunar-notification-registry branch from 998d918 to 1bafcea Compare February 11, 2026 15:56
@omroy07 omroy07 merged commit 1bafcea into omroy07:main Feb 12, 2026
2 of 4 checks passed
@github-actions
Copy link

🎉 Congrats @SatyamPandey-07 on getting your PR merged! 🙌
Thanks for the contribution — looking forward to more from you 🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cross-Module Unified Notification & Alert Registry (CUNAR)

2 participants