feat: add payment failed notifications to in-app notification center for owners and admins

This commit is contained in:
Usman Baig
2026-02-13 14:23:19 +01:00
parent 43d40e5735
commit c37613e823
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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 <AlertTriangleIcon className="w-4 h-4 shrink-0 text-amber-500" />
}
return <CheckCircleIcon className="w-4 h-4 shrink-0 text-emerald-500" />