Planned and executed phase001

This commit is contained in:
2026-09-13 21:46:57 -06:00
parent ff0a306668
commit 9793cd08bc
22 changed files with 695 additions and 20 deletions
+24
View File
@@ -0,0 +1,24 @@
# Phase 006: Maintenance Schedules And Overdue Alerts
## Goal
Use maintenance schedules and event history to show overdue maintenance status.
## Work
- Add CRUD for vehicle maintenance schedules.
- On `vehicles#show`, compare each schedule against maintenance history.
- Mark a schedule overdue when either mileage interval or time interval is exceeded.
- Use the matching maintenance entry description/type as the history key.
- Log overdue notifications to Rails logger for now.
- Keep external notification service integration stubbed and isolated.
## Deliverables
- Maintenance schedule management.
- Overdue calculation logic.
- Vehicle show alerts.
- Specs for mileage-based, time-based, and not-overdue cases.
## Acceptance Criteria
- Vehicle show page displays overdue alerts.
- Mileage and time intervals are treated as an OR condition.
- Notification behavior is logged, not sent externally.
- Overdue logic is covered by tests.