feat: add page URL to Confluence page creation and update responses instead of showing page id

This commit is contained in:
Anish Sarkar 2026-03-22 02:55:33 +05:30
parent a9683bb1dc
commit 2c17c355d5
4 changed files with 44 additions and 9 deletions

View file

@ -46,6 +46,7 @@ interface InterruptResult {
interface SuccessResult {
status: "success";
page_id: string;
page_url?: string;
message?: string;
}
@ -472,10 +473,21 @@ function SuccessCard({ result }: { result: SuccessResult }) {
</div>
<div className="mx-5 h-px bg-border/50" />
<div className="px-5 py-4 space-y-2 text-xs">
<div>
<span className="font-medium text-muted-foreground">Page ID: </span>
<span>{result.page_id}</span>
</div>
{result.page_url ? (
<a
href={result.page_url}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-1 font-medium text-primary hover:underline"
>
Open in Confluence
</a>
) : (
<div>
<span className="font-medium text-muted-foreground">Page ID: </span>
<span>{result.page_id}</span>
</div>
)}
</div>
</div>
);