Phase 7 part 5: add a section to an existing page

Sites → Sections and pages → Add a section, on any page built from
sections: choose one of the site's section types and where it goes; the
AI writes it from the page, its searches, the profile and the Inventory,
with the same rules as a new page. It's reviewed like a page (claims to
confirm, to-dos), and the pull request inserts it into the page's file as
text, so only that section is added; the build checks it. What to write
next suggests a FAQ for a section page found with questions, and a
comparison for one searched against something else.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-24 07:25:19 -07:00
co-authored by Claude Opus 5.5
parent 5705a9b58b
commit fdfbcd3d3d
15 changed files with 873 additions and 39 deletions
+5
View File
@@ -54,6 +54,9 @@ func menuWeight(kind string) int {
// KindLabel is a kind's name for people.
func KindLabel(id string) string {
if id == KindSection {
return "New section"
}
for _, k := range Kinds {
if k.ID == id {
return k.Label
@@ -79,6 +82,8 @@ type Source struct {
Brief int64 `json:"brief,omitempty"` // an SEO brief
VariantOf int64 `json:"variant_of,omitempty"` // the page this one is a variant of
Variant string `json:"variant,omitempty"` // "B", "C"…; the first page is "A"
At int `json:"at,omitempty"` // a new section: where it goes in the page's list
Type string `json:"type,omitempty"` // a new section: its type
}
// SitePage is a page built from the site's sections.