feat(webhooks): stats cards dashboard на subscription detail

This commit is contained in:
Александр Зимин
2026-05-12 12:25:15 +00:00
parent 59a5c65606
commit d864a8561a
3 changed files with 174 additions and 0 deletions
@@ -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">