Phase 3 part 2: the morning check and the Monday report

The morning check compares the last 7 days of final Search Console data
with the 7 before, by page and by search, and lists only moves past the
thresholds (editable). Each move is explained from the data: the search
whose clicks changed, and whether a position change is real or a change
in the mix of searches. Missing rows are "no data", not zero. The Monday
report has three numbers with where the change came from, the 3 pages
that moved most, and "Waiting for your yes"; it's written each Monday,
kept, and optionally emailed through the outreach mailbox. Schema 13.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 07:23:23 -07:00
co-authored by Claude Opus 5.5
parent 5ea620a091
commit 68ff18690b
17 changed files with 1058 additions and 32 deletions
+8
View File
@@ -138,3 +138,11 @@ func SendTest(ctx context.Context, s Settings, snd Sender, now time.Time) error
newMessageID(0, s.FromDomain()), now)
return snd.Send(ctx, e)
}
// SendToSelf emails the From address itself (a report, for instance),
// without the outreach signature.
func SendToSelf(ctx context.Context, s Settings, snd Sender, subject, body string, now time.Time) error {
s.Footer = ""
e := Compose(s, s.FromName, s.FromAddress, subject, body, newMessageID(0, s.FromDomain()), now)
return snd.Send(ctx, e)
}