feat(webhooks): stats cards dashboard на subscription detail
This commit is contained in:
@@ -36,6 +36,7 @@ import {
|
||||
} from '@/api/mutations'
|
||||
import type { WebhookTestPingResult } from '@/api/client'
|
||||
import { SCOPE_DOT } from '@/lib/scope-style'
|
||||
import { WebhookStatsCards } from '@/components/webhooks/WebhookStatsCards'
|
||||
|
||||
export const Route = createFileRoute('/webhooks/$id')({
|
||||
component: WebhookDetailPage,
|
||||
@@ -205,6 +206,11 @@ function WebhookDetailPage() {
|
||||
</div>
|
||||
</Panel>
|
||||
|
||||
{/* Stats cards — счётчики per status + success rate. Aggregate
|
||||
из 4 параллельных queries с size=1 (cheap). Visual time-series
|
||||
chart — deferred follow-up (требует /stats endpoint). */}
|
||||
<WebhookStatsCards subscriptionId={id} />
|
||||
|
||||
<div>
|
||||
<div className="flex items-center justify-between mb-3">
|
||||
<h2 className="font-sans text-title-md text-accent">
|
||||
|
||||
Reference in New Issue
Block a user