You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7c2c5e1
Browse filesBrowse the repository at this point in the historyBrowse files
feat(reports): weekly/monthly performance email digest (on by default)
Adds a per-user setting for receiving a combined audit + Autoblog
performance digest by email. Three cadences (off / weekly / monthly),
defaulting to weekly. Sent on Monday 09:00 (weekly) or 1st-of-month
09:00 (monthly) in the user's chosen IANA timezone.
Schema: profiles.perf_report_cadence + .timezone + .perf_report_last_sent_at.
Existing users are grandfathered onto weekly by the column default.
Cron: hourly tick at /api/cron/perf-reports walks profiles where
cadence <> 'off' and checks isReportDue(cadence, tz, now, last_sent)
— only users whose local 09:00 matches the current top-of-hour are
eligible, which naturally spreads load across the day. Capped at 50
sends per tick.
Aggregation: per-project latest score + score delta vs window-start,
audits-in-window count; plus Autoblog summary (published, failed,
queued, next publish) when the user has a site enrolled.
Manual trigger: crawlproof sweep --target=perf-reports.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments