Phase 5 part 3: build pages from a site's own sections

Sites → New pages: the AI composes a landing, product, alternative,
comparison or blog page as the site's own sections, from the profile and
optionally a product, competitor, buying signal or SEO brief. Code checks
every section type, warns on unknown fields and missing pages, tags a
signal's links with its campaign and finds experience claims. Pages are
edited here, pushed to their own branch with a preview, and opened as pull
requests after the claims are confirmed. Schema 22.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 14:12:57 -07:00
co-authored by Claude Opus 5.5
parent 233c6ac630
commit 11b80b6461
15 changed files with 1737 additions and 1 deletions
+13
View File
@@ -62,6 +62,7 @@
{{if eq .ID "sites"}}
<div class="subnav">
<a href="/sites" {{if eq $nav "sites/site"}}aria-current="page"{{end}}>Sections and pages</a>
<a href="/sites/pages" {{if hasPrefix $nav "sites/pages"}}aria-current="page"{{end}}>New pages</a>
<a href="/sites/previews" {{if eq $nav "sites/previews"}}aria-current="page"{{end}}>Previews</a>
</div>
{{end}}
@@ -184,3 +185,15 @@
<nav class="tabs">{{range .Sites}}<a href="{{$d.Path}}?site={{.Index}}" {{if eq .Index $d.Current.Index}}aria-current="page"{{end}}>{{.URL}}</a>{{end}}</nav>
{{end}}
{{end}}
{{/* A Sites page's status, as a badge. */}}
{{define "page-status"}}
{{- if eq .Status "draft"}}<span class="badge draft">draft</span>
{{- else if eq .Status "working"}}<span class="badge scheduled">pushing…</span>
{{- else if eq .Status "pushed"}}<span class="badge scheduled">on its branch</span>
{{- else if eq .Status "pr"}}<span class="badge scheduled">pull request open</span>
{{- else if eq .Status "merged"}}<span class="badge published">merged</span>
{{- else if eq .Status "closed"}}<span class="badge">closed</span>
{{- else if eq .Status "failed"}}<span class="badge failed">failed</span>
{{- end}}{{if and .Error (ne .Status "failed")}} <span class="badge failed">to fix</span>{{end}}
{{end}}