When an alert or report fails, capture a screenshot of the current state
and include it in the error notification email sent to owners. This helps
admins/owners quickly identify issues without needing to navigate to the
dashboard or chart.
Key changes:
- Modified send_error() to attempt screenshot capture before sending error notifications
- Updated email notification templates to include inline screenshot images
- Added comprehensive tests for error emails with and without screenshots
- Implemented best-effort approach: screenshots are captured if possible, but failures don't prevent error notifications from being sent
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>