Add scheduled automatic content drafts with Codex and image automation

This commit is contained in:
chaloemphong
2026-11-25 21:11:38 +07:00
parent 55235718c3
commit dd42b81639
13 changed files with 444 additions and 1 deletions
+2
View File
@@ -6,6 +6,7 @@ import { withBase } from "@/lib/base-path";
import { POST_JOB_STAGE, POST_JOB_STATUS, postJobProgress, type PostJobView } from "@/lib/ai/post-queue-shared";
import { Icon } from "./Icon";
import { Notice } from "./ui";
import { ContentAutoForm } from "./ContentAutoForm";
function duration(job: PostJobView): string {
if (!job.finishedAt) return "";
@@ -81,6 +82,7 @@ export function PostGenerationQueue({ pageId, targets, plannedDay, initialTopic
return (
<section aria-label="คิวสร้างโพสต์ด้วย AI" className="border border-line rounded-xl p-4 flex flex-col gap-3 bg-board">
<ContentAutoForm key={pageId} pageId={pageId} />
<h3 className="font-semibold text-[15px]">สร้างทั้งโพสต์ด้วย AI</h3>
<p className="text-[13px] text-ink-2">ให้ Codex เขียนเนื้อหาและ ChatGPT สร้างภาพ แล้วบันทึกเป็นฉบับร่างรอคุณตรวจ ปิดหน้านี้แล้วกลับมาดูคิวได้</p>
<label className="field">