Skip to content

Add alerts support#29

Merged
PardhavMaradani merged 2 commits into
MDAnalysis:mainfrom
PardhavMaradani:add-alerts-support
Jul 10, 2026
Merged

Add alerts support#29
PardhavMaradani merged 2 commits into
MDAnalysis:mainfrom
PardhavMaradani:add-alerts-support

Conversation

@PardhavMaradani

Copy link
Copy Markdown
Collaborator

Changes made in this Pull Request:

  • Backend support for creating and managing alerts
  • Frontend support for displaying alerts
  • Command line option to clear alerts during startup
  • Backend and Frontend tests for all new functionality

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

Hi @orbeckst, @jeremyleung521, @amruthesht, @HeydenLabASU,

This PR adds support for alerts. Widget classes can now create alerts based on any runtime conditions and they will now show up on the dashboard GUI. Currently, only the 'COMDistance' widget uses this feature. It has the following config:

mdadash-com-distance-alert-config

In addition to creating an alert, widgets can also invoke a method from the base class to pause the simulation if needed (added as part of PR #27 ).

Here is the main dashboard page that updates the alerts badge in realtime when they are triggered:

mdadash-alerts-badge

Here is the alerts page that shows all the alerts and allows users to delete individual alerts, all alerts, search / filter, paginate etc:

mdadash-alerts-page

With alerts support, we now have all the core functionality in place.

Thanks

- Backend support for creating and managing alerts
- Frontend support for displaying alerts
- Command line option to clear alerts during startup
- Backend and Frontend tests for all new functionality
@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b244b73) to head (e7a3d6a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
Components Coverage Δ
frontend 100.00% <100.00%> (ø)
backend 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@PardhavMaradani PardhavMaradani merged commit e1d7ffb into MDAnalysis:main Jul 10, 2026
19 checks passed
@PardhavMaradani PardhavMaradani deleted the add-alerts-support branch July 10, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant