Repository navigation
Alert emails: show only what's due, color the PDF, per-type schedules - #62
Open
dannysusername wants to merge 1 commit into
Open
dannysusername wants to merge 1 commit into
dannysusername wants to merge 1 commit into
Conversation
Email content and look (spec 013) - The alert email lists only overdue and due-soon items (owner's lead times), most urgent first, with "[new]" marks, then "The other N items are on track." No more 39 lines of "ok". - Sent as text + HTML (inline-styled template, dashboard pill colors, per-recipient stop link). Fleets: one section per aircraft with something due. - PDF Time Left is labeled OVERDUE (red) / DUE SOON (amber) using the owner's lead times, for alert, download and share PDFs. When alerts send (spec 014) - Three alert emails, each Off / Once / every N days: Due soon (default every 7 days), Overdue (every 3 days, was "re-nudge"; existing values carry over), Status report (Off). Rules live in AlertSchedule (pure). - The daily check runs at the owner's hour in their own time zone (from the browser), not the server's. - Fix: the email limit is one per calendar day in the owner's zone. The old rolling 24 hours dropped every other daily email. - Alerts read time from an injected Clock; simulation tests run the real scheduler over 10-60 simulated days. Tests: 366 unit, 103 browser, all passing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
What's in the email (spec 013)
[new]on items that got worse, then "The other N items are on track." The 39-line list ofokitems is gone.When alerts send (spec 014)
AlertSchedule(pure).[0, 2, 4, 6, 8]). Now one per calendar day in the owner's zone.Clock.Migration: additive columns on
alert_preferences(docs/migrations/2026-11-21_alert_schedules.sql); Hibernate adds them with defaults.Tests
./gradlew test: 366 passed. New:AlertScheduleTest(every rule),AlertSimulationTest(real scheduler over 10-60 simulated days, e.g. one item due day 25 → emails on days[0, 7, 14, 21, 26, 29, 32, 35, 38]),AlertTimeZoneTest,AlertPreferencesApiTest,AlertEmailRendererTest,NotificationServiceEmailTest,PdfExportColorsTest../gradlew browserTest: 103 passed. New:AlertSettingsTest.Not yet checked
🤖 Generated with Claude Code