phase-4: preventive maintenance and calibration modules

This commit is contained in:
Atharv1705
2026-11-12 14:16:38 +05:30
parent 905f6735a7
commit d3f22ba444
26 changed files with 5066 additions and 27 deletions
+40
View File
@@ -187,6 +187,46 @@ SETTINGS_SCHEMA: list[dict[str, Any]] = [
"max": None,
"options": ["attended_at", "restored_at", "closed_at"],
},
{
"key": "pm_inhouse_lead_days",
"type": "int",
"default": 15,
"label": "In-House PM Lead Days",
"description": "Days before planned in-house PM date when status transitions from upcoming to due.",
"min": 1,
"max": 90,
"options": None,
},
{
"key": "pm_outsourced_lead_days",
"type": "int",
"default": 15,
"label": "Outsourced PM Lead Days",
"description": "Days before planned outsourced PM date when status transitions from upcoming to due.",
"min": 1,
"max": 90,
"options": None,
},
{
"key": "calibration_lead_days",
"type": "int",
"default": 15,
"label": "Calibration Lead Days",
"description": "Days before calibration due date when status transitions from upcoming to due.",
"min": 1,
"max": 90,
"options": None,
},
{
"key": "red_threshold_days",
"type": "int",
"default": 7,
"label": "Critical Alert Threshold Days",
"description": "Days remaining at or below which a due schedule alert escalates to critical (red).",
"min": 1,
"max": 60,
"options": None,
},
]
SETTINGS_BY_KEY: dict[str, dict[str, Any]] = {item["key"]: item for item in SETTINGS_SCHEMA}