Phase 5 part 5: check the live site after a merge

Merged Sites pages are checked on the live site until they answer with
their own words and title; removed ones until they're gone. The SEO loop,
the page, the signal's page and Sites → Publishing check (or Check now);
two hours without the page points at the deploy hook. Pages going live or
away go to IndexNow. Sites → Publishing lists what's waiting, open pull
requests and recent merges. Schema 24.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 14:28:42 -07:00
co-authored by Claude Opus 5.5
parent 062fcf2e59
commit e2a72d5ef9
18 changed files with 746 additions and 63 deletions
+9 -1
View File
@@ -3,11 +3,19 @@
<p class="lede">{{.Kind}} for {{$p.Site}}{{with .From}}, from {{join . "; "}}{{end}}.
{{template "page-status" $p}}</p>
{{if or $p.PRURL .Preview}}
{{if or $p.PRURL .Preview $p.LiveNote}}
<section class="card">
{{with .Preview}}<p><a class="button" href="{{.}}" target="_blank" rel="noopener">Open the preview ↗</a> <span class="small muted">built {{ago $d.PreviewAt}} from the branch {{$p.Branch}}</span></p>{{end}}
{{with $p.PRURL}}<p>The pull request: <a href="{{.}}" target="_blank" rel="noopener noreferrer">{{.}} ↗</a>{{if eq $p.Status "merged"}}, merged {{ago $p.MergedAt}}{{end}}</p>{{end}}
{{with $p.Note}}<p class="small">{{.}}</p>{{end}}
{{if or (eq $p.Status "merged") (eq $p.Status "removing") (eq $p.Status "removed")}}
<div class="status-line">
{{if not $p.LiveAt.IsZero}}{{if ne $p.Status "removed"}}<p class="ok">On the live site since {{ago $p.LiveAt}}: <a href="{{$p.Address}}" target="_blank" rel="noopener noreferrer">{{$p.Address}} ↗</a></p>{{end}}{{end}}
{{if eq $p.Status "removed"}}{{if not $p.GoneAt.IsZero}}<p class="ok">Off the live site since {{ago $p.GoneAt}}.</p>{{end}}{{end}}
{{with $p.LiveNote}}<p class="small">{{if $d.Late}}<span class="warn-text">{{.}} It's been over two hours since the merge: check that the site's deploy (the Gitea hook) ran.</span>{{else}}{{.}}{{end}} {{if not $p.CheckedAt.IsZero}}<span class="muted">Checked {{ago $p.CheckedAt}}.</span>{{end}}</p>{{end}}
{{if $p.Waiting}}<form method="post" action="/sites/pages/{{$p.ID}}/check"><button type="submit" class="secondary small" data-busy="Checking…">Check the live site now</button></form>{{end}}
</div>
{{end}}
</section>
{{end}}