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:
@@ -567,6 +567,35 @@ CREATE TABLE spend_seen (
|
||||
spend_cents INTEGER NOT NULL,
|
||||
PRIMARY KEY (source, campaign)
|
||||
);
|
||||
`,
|
||||
// 22: pages built from a site's own sections (Sites → Pages).
|
||||
`
|
||||
CREATE TABLE site_pages (
|
||||
id INTEGER PRIMARY KEY,
|
||||
site TEXT NOT NULL, -- the website's URL, from the profile
|
||||
repo TEXT NOT NULL DEFAULT '', -- owner/name
|
||||
kind TEXT NOT NULL, -- landing, product, alternative, comparison, blog
|
||||
source TEXT NOT NULL DEFAULT '{}', -- JSON: what it was built from
|
||||
notes TEXT NOT NULL DEFAULT '', -- what the user asked for
|
||||
path TEXT NOT NULL DEFAULT '',
|
||||
title TEXT NOT NULL DEFAULT '',
|
||||
description TEXT NOT NULL DEFAULT '',
|
||||
sections TEXT NOT NULL DEFAULT '', -- YAML, as in the page's front matter
|
||||
needs TEXT NOT NULL DEFAULT '[]',
|
||||
warnings TEXT NOT NULL DEFAULT '[]',
|
||||
claims TEXT NOT NULL DEFAULT '[]',
|
||||
status TEXT NOT NULL DEFAULT 'draft',
|
||||
branch TEXT NOT NULL DEFAULT '',
|
||||
file TEXT NOT NULL DEFAULT '',
|
||||
pr_number INTEGER NOT NULL DEFAULT 0,
|
||||
pr_url TEXT NOT NULL DEFAULT '',
|
||||
note TEXT NOT NULL DEFAULT '', -- what the build check found
|
||||
error TEXT NOT NULL DEFAULT '',
|
||||
created_at TEXT NOT NULL,
|
||||
updated_at TEXT NOT NULL,
|
||||
merged_at TEXT
|
||||
);
|
||||
CREATE INDEX site_pages_by_site ON site_pages (site, created_at);
|
||||
`,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user