Maintenance Alerts
Overview
Maintenance alerts are reminders attached to specific cars. Members can log upcoming maintenance tasks (oil change, tyre rotation, etc.) with a due date, and mark them complete when done.
Workflow
Alert Types
| Type | Example |
|---|---|
| OIL_CHANGE | Engine oil + filter |
| TYRE_ROTATION | Swap front/rear tyres |
| INSPECTION | Annual roadworthiness check |
| BRAKE_SERVICE | Brake pads / fluid |
| CUSTOM | Any other reminder |
Step-by-Step: Add a Maintenance Alert
- In your garage, click a car to open its detail view.
- Navigate to the Maintenance tab.
- Click "Add Alert".
- Fill in: type, description, due date.
- Click "Save".
- The alert appears in the PENDING list with days-until-due countdown.
Step-by-Step: Complete an Alert
- Find the alert in the PENDING list.
- Click "Mark Complete".
- The alert moves to the COMPLETED section with a timestamp.
Security Notes
- Only the car owner can view or modify their car's maintenance alerts (same
@garageSecurityService.isOwnercheck).
QA Checklist
- Add maintenance alert → appears in PENDING list
- Mark alert complete → moves to COMPLETED with timestamp
- View alerts for another user's car → 403 Forbidden
- Delete car → associated alerts also removed