Add a Before launch placeholder check to admin

Lists pages still showing built-in wording, notes holding placeholder
text, unpublished posts and live notes missing the field their page is
built around, each linked to its editor.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012aSbo2D1qP8cMFQCykf7kx
This commit is contained in:
Claude
2026-10-18 16:52:56 +00:00
parent 2a3a15d7ac
commit 02437358cf
7 changed files with 115 additions and 0 deletions
+8
View File
@@ -150,6 +150,14 @@ describe("admin page", () => {
expect(page.text).toContain("Suwayomi did not answer");
});
it("lists what is still a placeholder before launch", async () => {
await post("/edit/save", { type: "craft", title: "Leather", status: "Practicing", "has.publish": "1", publish: "1" });
const text = (await get("/launch")).text;
expect(text).toContain("Before launch");
expect(text).toContain("Blog (/blog) has no Page text note");
expect(text).toContain("Craft Leather has no blurb.");
});
it("edits a page's text and images from Site pages", async () => {
const site = await get("/site");
expect(site.text).toContain("Add page text");