Skip to main content

Compliance Reminders

PMFriend's NotificationScanner runs daily at 21:00 UTC (07:00 AEST, 08:00 AEDT). It scans every compliance task in the agency and creates notifications for:

TriggerNotification kindSeverity
Compliance due within 14 daysCOMPLIANCE_DUENORMAL
Compliance already overdueCOMPLIANCE_OVERDUEURGENT
Contractor insurance expiring within 30 daysCONTRACTOR_INSURANCE_EXPIRINGNORMAL

Notifications land in the sidebar Notifications feed with an unread badge on the nav. Clicking one deep-links to the relevant property / contractor / task.

Deduplication

The scanner is idempotent. Re-running produces no new notifications for the same (kind, entityId, date-bucket) — we don't spam the feed on every scheduler tick. The daily scan is the only source of time-driven notifications; everything else is event-driven (Hibernate post-insert / post-update listeners).

Tuning the window

The 14-day-ahead and 30-day-insurance windows are currently hardcoded in NotificationScanner. Making them agency-configurable is on the roadmap.

What if I want a reminder 48 hours before?

Two options, neither user-facing yet:

  1. Add a finer-grained kindCOMPLIANCE_DUE_SOON at 48h and COMPLIANCE_DUE at 14d. Requires scanner edit + frontend chip update.
  2. Hook the daily scanner and filter client-side — stream every COMPLIANCE_DUE notification through a local filter. Easier but non-portable across team members.

If this matters to your agency, email hello@pmfriend.com with the specific windows and we'll wire it into the next scanner release.

See also