feat: complete requirements gaps - backup/restore, uat signoff, pm attachments, templates, and filters

This commit is contained in:
Atharv1705
2026-11-13 18:15:32 +05:30
parent cd9eb27a98
commit d9ca4bbb02
38 changed files with 1403 additions and 69 deletions
+50
View File
@@ -237,6 +237,56 @@ SETTINGS_SCHEMA: list[dict[str, Any]] = [
"max": 24,
"options": None,
},
{
"key": "alert_repeat_days",
"type": "int",
"default": 3,
"label": "Overdue Alert Reminder Repeat Days",
"description": "Interval in days to repeat notifications for active overdue breakdown and maintenance alerts.",
"min": 1,
"max": 30,
"options": None,
},
{
"key": "smtp_enabled",
"type": "bool",
"default": False,
"label": "Enable Email Notifications (SMTP)",
"description": "Enable automated email delivery for high-severity alerts once mail server is configured.",
"min": None,
"max": None,
"options": None,
},
{
"key": "smtp_host",
"type": "str",
"default": "",
"label": "SMTP Host",
"description": "Hospital outbound mail server hostname (e.g. smtp.poonahospital.org).",
"min": None,
"max": None,
"options": None,
},
{
"key": "smtp_port",
"type": "int",
"default": 587,
"label": "SMTP Port",
"description": "SMTP port (usually 587 for STARTTLS or 465 for SSL).",
"min": 1,
"max": 65535,
"options": None,
},
{
"key": "smtp_from_email",
"type": "str",
"default": "ams-alerts@poonahospital.org",
"label": "SMTP From Email Address",
"description": "Sender email address displayed on alert notifications.",
"min": None,
"max": None,
"options": None,
},
]
SETTINGS_BY_KEY: dict[str, dict[str, Any]] = {item["key"]: item for item in SETTINGS_SCHEMA}