Add brand visual style to page profile and logo palette to image prompts
Adds PageProfile.visualStyle (with migration), feeds it into every AI prompt route, and samples a logo palette for image generation. Also hardens Chrome focus handling and image copy in the ChatGPT driver. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -48,7 +48,7 @@ export async function POST(req: Request) {
|
||||
|
||||
const page = await prisma.page.findUnique({
|
||||
where: { id: pageId },
|
||||
select: { profile: { select: { business: true, audience: true, tone: true, avoid: true, cta: true } } },
|
||||
select: { profile: { select: { business: true, audience: true, tone: true, visualStyle: true, avoid: true, cta: true } } },
|
||||
});
|
||||
if (!page) return NextResponse.json({ error: "ไม่พบเพจ" }, { status: 404 });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user