Skip to content

Commit 582df0d

Browse files
committed
feat(events): Built event detail page with payload/headers viewer
- Implemented DLQ (Dead Letter Queue) with grouping and replay actions - Unified UI across events, detail, and DLQ pages - Added animations and improved UX for failure handling
1 parent ad5e354 commit 582df0d

12 files changed

Lines changed: 1225 additions & 290 deletions

File tree

services/api/webhooks.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,23 @@ async def receive_webhook(
154154
db.commit()
155155

156156
# -----------------------------
157-
# 🔥 BROADCAST FINAL STATE
157+
# FETCH REAL ATTEMPT COUNT
158+
# -----------------------------
159+
attempt_count = db.execute(
160+
text("SELECT attempt_count FROM webhook_events WHERE id = :id"),
161+
{"id": event_id}
162+
).scalar()
163+
164+
# -----------------------------
165+
# BROADCAST FINAL STATE
158166
# -----------------------------
159167
await manager.broadcast(json.dumps({
160168
"id": event_id,
161169
"provider": provider,
162170
"event_type": event_type,
163171
"status": status,
164-
"route": "stripe-webhook",
165-
"attempt_count": 0,
172+
"route": route_id,
173+
"attempt_count": attempt_count or 0,
166174
"created_at": datetime.utcnow().isoformat()
167175
}))
168176

0 commit comments

Comments
 (0)