From 9723b2171bc88ee185e5f924665e5c8d1facf301 Mon Sep 17 00:00:00 2001 From: "kilo-code-bot[bot]" <240665456+kilo-code-bot[bot]@users.noreply.github.com> Date: Fri, 29 May 2026 11:36:37 +0000 Subject: [PATCH] feat(notifications): add kilo-pass-promo-may-29 notification for paying users --- apps/web/src/lib/notifications.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/apps/web/src/lib/notifications.ts b/apps/web/src/lib/notifications.ts index f889971f5..8eab2ca83 100644 --- a/apps/web/src/lib/notifications.ts +++ b/apps/web/src/lib/notifications.ts @@ -117,6 +117,7 @@ export async function generateUserNotifications(user: User): Promise { + if (!(await hasUserEverPaid(user.id))) { + return []; + } + + return [ + { + id: 'kilo-pass-promo-may-29', + title: 'Get more from every dollar with Kilo Pass', + message: 'A monthly AI token subscription with up to 50% bonus credits included.', + action: { + actionText: 'Explore Kilo Pass', + actionURL: 'https://kilo.ai/pricing/kilo-pass', + }, + showIn: ['cli', 'extension'], + expiresAt: '2026-06-30T08:00:00Z', + }, + ]; +} + async function generateKiloPassNotification( user: User, ctx: NotificationContext