Surface content research at top of post editor

This commit is contained in:
Loma Bot Ops
2026-11-23 22:08:00 +07:00
parent 6ef01cb4b6
commit 4429e6541b
+2 -2
View File
@@ -263,6 +263,8 @@ export function PostEditor({
</select> </select>
</label> </label>
{canEdit && pageId && <ContentResearchAssistant pageId={pageId} targets={targets} onApply={(nextTitle, nextCaption) => { setTitle(nextTitle); setCaption(nextCaption); setAiAssisted(true); }} />}
<label className="field"> <label className="field">
<span>ชื่อโพสต์ (ใช้ภายใน ไม่แสดงบนเพจ)</span> <span>ชื่อโพสต์ (ใช้ภายใน ไม่แสดงบนเพจ)</span>
<input className="input" value={title} disabled={!canEdit} onChange={(e) => setTitle(e.target.value)} placeholder="เช่น โปรโมชั่นปลายเดือน" /> <input className="input" value={title} disabled={!canEdit} onChange={(e) => setTitle(e.target.value)} placeholder="เช่น โปรโมชั่นปลายเดือน" />
@@ -276,8 +278,6 @@ export function PostEditor({
{!post && canEdit && pageId && <PostGenerationQueue key={pageId} pageId={pageId} targets={targets} plannedDay={plannedDay} initialTopic={initialDraft?.topic || title} />} {!post && canEdit && pageId && <PostGenerationQueue key={pageId} pageId={pageId} targets={targets} plannedDay={plannedDay} initialTopic={initialDraft?.topic || title} />}
{canEdit && pageId && <ContentResearchAssistant pageId={pageId} targets={targets} onApply={(nextTitle, nextCaption) => { setTitle(nextTitle); setCaption(nextCaption); setAiAssisted(true); }} />}
{canEdit && pageId && ( {canEdit && pageId && (
<CaptionAssistant <CaptionAssistant
pageId={pageId} pageId={pageId}