feat(call2): short/long desc structure in seed (not brand voice)

Call 2 seed now requires benefit-first short + four-part long HTML, returned
as JSON. POST parses and persists both fields; Create-desc gate no longer
requires short (Call 2 writes it). Brand voice/geo stay Settings-injected.
This commit is contained in:
grokbot_ty
2026-09-26 10:35:53 -07:00
parent 076eb17db6
commit c25e3f4927
8 changed files with 242 additions and 41 deletions
+2 -4
View File
@@ -1,12 +1,12 @@
/**
* Create-desc gate (Call 2): disable Create desc unless these are present.
* Does NOT require description OR price (price stays publish-only).
* Does NOT require short_description, description, or price — Call 2 writes
* short + long; price stays publish-only.
*/
export type CreateDescInput = {
contentLlmEnabled: boolean;
title: string;
shortDescription: string;
speciesId: number | null | undefined;
woodCategoryIds: number[];
primaryCatId: number | '' | null | undefined;
@@ -20,7 +20,6 @@ export type CreateDescInput = {
export const CREATE_DESC_LABELS: Record<string, string> = {
content_llm: 'content LLM on',
title: 'title',
short_description: 'short description',
species: 'species',
wood_categories: '≥1 wood category',
primary: 'primary wood category',
@@ -41,7 +40,6 @@ export function missingCreateDesc(input: CreateDescInput): string[] {
const missing: string[] = [];
if (!input.contentLlmEnabled) missing.push('content_llm');
if (!String(input.title ?? '').trim()) missing.push('title');
if (!String(input.shortDescription ?? '').trim()) missing.push('short_description');
if (input.speciesId == null || !Number.isFinite(Number(input.speciesId))) missing.push('species');
if (!input.woodCategoryIds?.length) missing.push('wood_categories');
if (!presentId(input.primaryCatId)) missing.push('primary');