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:
Loma Bot Ops
2026-11-23 20:58:06 +07:00
parent dc6ee09a55
commit 4c93bf0a11
18 changed files with 166 additions and 49 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ export default async function ProfilePage() {
const profile = await prisma.pageProfile.findUnique({
where: { pageId: page.id },
select: { business: true, audience: true, tone: true, avoid: true, cta: true, updatedAt: true },
select: { business: true, audience: true, tone: true, visualStyle: true, avoid: true, cta: true, updatedAt: true },
});
return (
@@ -36,7 +36,7 @@ export default async function ProfilePage() {
pageId={page.id}
canEdit={roleAtLeast(page.role, "APPROVER")}
canDraft={page.status === "ACTIVE"}
initial={profile ? { business: profile.business, audience: profile.audience, tone: profile.tone, avoid: profile.avoid, cta: profile.cta } : null}
initial={profile ? { business: profile.business, audience: profile.audience, tone: profile.tone, visualStyle: profile.visualStyle, avoid: profile.avoid, cta: profile.cta } : null}
updatedAt={profile?.updatedAt.toISOString() ?? null}
/>
</>