chore: updatae documentation for api trigger

This commit is contained in:
Abhishek Kumar 2026-05-04 12:46:11 +05:30
parent 5ad5bbd985
commit 0d7b225f76
12 changed files with 120 additions and 39 deletions

View file

@ -2,6 +2,7 @@
import {
ArrowLeft,
Copy,
ExternalLink,
Pencil,
Plus,
@ -212,6 +213,20 @@ export default function TelephonyConfigurationDetailPage() {
<CardDescription>
Updated {new Date(config.updated_at).toLocaleString()}
</CardDescription>
<button
type="button"
onClick={() => {
navigator.clipboard
.writeText(String(config.id))
.then(() => toast.success("Configuration ID copied"))
.catch(() => toast.error("Failed to copy ID"));
}}
title="Click to copy"
className="inline-flex items-center gap-1 self-start rounded font-mono text-xs text-muted-foreground hover:text-foreground"
>
<span className="truncate">Configuration ID: {config.id}</span>
<Copy className="h-3 w-3 shrink-0" />
</button>
</div>
<div className="flex items-center gap-2 shrink-0">
{!config.is_default_outbound && (

View file

@ -2,6 +2,7 @@
import {
ChevronRight,
Copy,
ExternalLink,
Pencil,
Plus,
@ -198,6 +199,22 @@ export default function TelephonyConfigurationsPage() {
{item.phone_number_count} phone{" "}
{item.phone_number_count === 1 ? "number" : "numbers"}
</span>
<button
type="button"
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
navigator.clipboard
.writeText(String(item.id))
.then(() => toast.success("Configuration ID copied"))
.catch(() => toast.error("Failed to copy ID"));
}}
title="Click to copy"
className="inline-flex items-center gap-1 self-start rounded font-mono text-xs text-muted-foreground hover:text-foreground"
>
<span className="truncate">Configuration ID: {item.id}</span>
<Copy className="h-3 w-3 shrink-0" />
</button>
</div>
</Link>
<div className="flex items-center gap-1">