feat: inline SEO export buttons in chat messages
This commit is contained in:
@@ -1390,6 +1390,25 @@ export default function AIAssist({ vibeMode = false }: { vibeMode?: boolean } =
|
|||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
{/* Inline SEO Export - always visible in chat when SEO data exists */}
|
||||||
|
{msg.role === "assistant" && msg.agent === "seo" && seoAuditData && (
|
||||||
|
<div className="mt-3 flex gap-2 animate-in zoom-in-95 duration-300">
|
||||||
|
<Button
|
||||||
|
onClick={() => exportSeoReport("html")}
|
||||||
|
variant="outline"
|
||||||
|
className="flex-1 bg-emerald-500/10 hover:bg-emerald-500/20 border-emerald-500/30 text-emerald-300 font-black uppercase text-[9px] tracking-wider py-2.5 rounded-xl min-w-0"
|
||||||
|
>
|
||||||
|
<Download className="h-3 w-3 mr-1.5" /> <span className="truncate">Export HTML</span>
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => exportSeoReport("pdf")}
|
||||||
|
variant="outline"
|
||||||
|
className="flex-1 bg-amber-500/10 hover:bg-amber-500/20 border-amber-500/30 text-amber-300 font-black uppercase text-[9px] tracking-wider py-2.5 rounded-xl min-w-0"
|
||||||
|
>
|
||||||
|
<FileText className="h-3 w-3 mr-1.5" /> <span className="truncate">Export PDF</span>
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{msg.role === "assistant" && isProcessing && i === aiAssistHistory.length - 1 && status && (
|
{msg.role === "assistant" && isProcessing && i === aiAssistHistory.length - 1 && status && (
|
||||||
|
|||||||
Reference in New Issue
Block a user