Research international AI news for article posts

This commit is contained in:
Loma Bot Ops
2026-11-27 09:28:29 +07:00
parent abc359de31
commit 9d5bfe7d9d
6 changed files with 104 additions and 8 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ export const POST_JOB_STATUS = {
export const POST_JOB_STAGE: Record<string, string> = {
queued: "รอเริ่มสร้างโพสต์",
research: "กำลังค้นและอ่านข่าว AI จากต่างประเทศ",
content: "Codex กำลังเขียนเนื้อหาและพรอมต์ภาพ",
image: "ChatGPT กำลังสร้างภาพ",
saving: "กำลังบันทึกฉบับร่าง",
@@ -29,5 +30,5 @@ export interface PostJobView {
export function postJobProgress(job: Pick<PostJobView, "status" | "stage">): number {
if (job.status === "COMPLETED") return 100;
if (job.status === "QUEUED" || job.status === "CANCELLED") return 0;
return ({ content: 10, image: 50, saving: 90 } as Record<string, number>)[job.stage] ?? 0;
return ({ research: 10, content: 25, image: 55, saving: 90 } as Record<string, number>)[job.stage] ?? 0;
}