Skip to content

feat: add custom air quality alerts with browser notifications - #1099

Open
karan-chaos wants to merge 1 commit into
Aditya8369:mainfrom
karan-chaos:feature/data-export-dashboard
Open

feat: add custom air quality alerts with browser notifications#1099
karan-chaos wants to merge 1 commit into
Aditya8369:mainfrom
karan-chaos:feature/data-export-dashboard

Conversation

@karan-chaos

Copy link
Copy Markdown

Summary

#1098

This PR adds a configurable air quality alert system with full rule management,
threshold-based evaluation, quick-add presets, frequency throttling, and
browser notification support.

Changes

Alert Rule Management

Added full CRUD functionality for alert rules:

  • Create
  • Edit
  • Delete
  • Enable and disable
  • Form validation

Evaluation Engine

Added rule evaluation for AQI and pollutant values using:

  • ≥ greater than or equal to
  • ≤ less than or equal to
  • = equal to

Also added:

  • Time-window restrictions
  • Frequency throttling
  • Automatic trigger evaluation

Quick-Add Presets

Added four predefined alert presets:

  • High AQI
  • PM2.5 Warning
  • Morning Air Check
  • Good Air Window

Browser Notifications

Added browser notification support with:

  • Permission requests
  • Permission handling
  • Automatic notifications when rules trigger

Verification

  • Alert creation verified
  • Alert editing verified
  • Alert deletion verified
  • Enable/disable functionality verified
  • Form validation verified
  • AQI threshold evaluation verified
  • Pollutant threshold evaluation verified
  • Threshold operators verified
  • Time windows verified
  • Frequency throttling verified
  • Quick-add presets verified
  • Notification permission flow verified
  • Automatic alert notifications verified

@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

@karan-chaos is attempting to deploy a commit to the Aditya Mahajan's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the ECSoC26 Contributions considered under ECSoC'26 label Aug 28, 2026
@github-actions

Copy link
Copy Markdown

Thank You for Your Contribution! 🎉

Hi @karan-chaos,

Thank you for opening this Pull Request and contributing to our project. We truly appreciate your efforts.

Please make sure that:

  • Your code follows the project's guidelines.
  • You have linked the appropriate issue (if applicable).
  • Screenshots are added for UI/UX changes.
  • Your PR is ready for review.

The maintainer @Aditya8369 will review your PR shortly!

Happy Contributing! 🚀

Add a comprehensive data export module that lets users download AQI trend
data as CSV or JSON, preview and copy formatted text reports with health
guidance, generate shareable city links, and filter data by time range
with an interactive preview table and trend chart.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@karan-chaos
karan-chaos force-pushed the feature/data-export-dashboard branch from 3fdd344 to ecbe5fa Compare August 29, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ECSoC26 Contributions considered under ECSoC'26

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant