VictorKwong / DataSense-PRJ666-team-5

https://prj666deploy-9xd1.vercel.app
MIT License
0 stars 0 forks source link

Use Case 26: Alert Management and History Tracking #26

Closed ktageja closed 1 week ago

ktageja commented 3 weeks ago

Alert Management and History Tracking

User Story

As a user, I want to view a history of triggered alerts so that I can review past critical conditions and track patterns over time.

Description

This use case involves developing a history page where users can view past alerts triggered based on sensor data. This page will show details of each alert, including the time, sensor type, and value that exceeded the threshold.

Acceptance Criteria

A history page is available that shows a list of past alerts with timestamp, sensor type, and exceeded value. Alerts are logged and stored in the database for future reference. Users can filter alerts by date and sensor type.

Testing

Normal Flow of Events

An alert is triggered and stored in the history log. The user navigates to the alert history page. The user views the list of alerts and filters results by date range or sensor type.

S-1: No alerts in history

The system displays a message: “No alerts found” if there are no past alerts to display.

ohodovaniuk1 commented 1 week ago

Implemented and tested the alert history tracking feature. Verified that users can view a history of past alerts with timestamp, sensor type, and exceeded values, and can filter alerts by date range or sensor type. Confirmed the display of a 'No alerts found' message when no alerts are present. Closing issue.