From c37613e823dbf5056a5a215177f76083e568ad56 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Fri, 13 Feb 2026 14:23:19 +0100 Subject: [PATCH] feat: add payment failed notifications to in-app notification center for owners and admins --- CHANGELOG.md | 1 + components/notifications/NotificationCenter.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc17457..122d6a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ### Added - **In-app notification center.** Bell icon in the header with dropdown of recent notifications. Uptime monitor status changes (down, degraded, recovered) create in-app notifications with links to the uptime page. +- **Payment failed notifications.** When Stripe sends `invoice.payment_failed`, owners and admins receive an in-app notification with a link to update payment method. Members do not see billing notifications. ## [0.5.1-alpha] - 2026-02-12 diff --git a/components/notifications/NotificationCenter.tsx b/components/notifications/NotificationCenter.tsx index 5837543..c79b58a 100644 --- a/components/notifications/NotificationCenter.tsx +++ b/components/notifications/NotificationCenter.tsx @@ -46,7 +46,7 @@ function formatTimeAgo(dateStr: string): string { } function getTypeIcon(type: string) { - if (type.includes('down') || type.includes('degraded')) { + if (type.includes('down') || type.includes('degraded') || type.startsWith('billing_')) { return } return