Skip to content

Add heartbeat timeout warning#1164

Merged
1Blademaster merged 2 commits intomainfrom
1161-feature-add-warning-about-loss-of-data
Apr 13, 2026
Merged

Add heartbeat timeout warning#1164
1Blademaster merged 2 commits intomainfrom
1161-feature-add-warning-about-loss-of-data

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 13, 2026 19:32
@1Blademaster 1Blademaster linked an issue Apr 13, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GCS-side heartbeat “stale” warning so operators are notified when heartbeats stop arriving, and introduces supporting Redux state/middleware to track last heartbeat receipt time.

Changes:

  • Track heartbeatMonitor.lastReceivedAt in droneInfoSlice and update/reset it via a new Redux middleware.
  • Add a non-dismissible “Heartbeat” alert in the dashboard status bar when heartbeats are stale past a configurable timeout.
  • Add a new default setting Dashboard.heartbeatTimeoutSeconds and make alert dismissal respect dismissable: false.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
radio/app/drone.py Invokes droneDisconnectCb() during close() cleanup
gcs/src/redux/store.js Registers new heartbeatMonitorMiddleware
gcs/src/redux/slices/droneInfoSlice.js Adds heartbeat monitor state, reducers, selector
gcs/src/redux/middleware/heartbeatMonitorMiddleware.js Updates/resets lastReceivedAt based on connection/heartbeat actions
gcs/src/components/dashboard/statusBar.jsx Implements periodic heartbeat timeout check + alert
gcs/src/components/dashboard/alerts/alertProvider.jsx Prevents dismissing non-dismissible alerts and guards missing alerts
gcs/src/components/dashboard/alerts/alertConstants.js Adds AlertCategory.Heartbeat
gcs/src/components/dashboard/alerts/alert.jsx Hides close button and disables onClose for non-dismissible alerts
gcs/data/default_settings.json Adds configurable heartbeat timeout setting

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread radio/app/drone.py
Comment thread gcs/src/components/dashboard/statusBar.jsx
@1Blademaster 1Blademaster merged commit a7fcece into main Apr 13, 2026
8 checks passed
@1Blademaster 1Blademaster deleted the 1161-feature-add-warning-about-loss-of-data branch April 13, 2026 20:23
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.

[FEATURE] Add warning about loss of data

2 participants