From 8b4109a8fdd3b9cf47399b5a7264a9c4191f16fa Mon Sep 17 00:00:00 2001 From: nmemmert Date: Fri, 16 Jan 2026 08:54:09 -0500 Subject: [PATCH] feat: show count of prayers already prayed for today in greeting --- src/components/HomePage.tsx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/components/HomePage.tsx b/src/components/HomePage.tsx index aa35a63..c0c91ed 100644 --- a/src/components/HomePage.tsx +++ b/src/components/HomePage.tsx @@ -53,6 +53,9 @@ export default function HomePage({ prayers, todayCount, onStartPraying, onSelect // Count active prayer requests (not answered) const activePrayerCount = prayers.filter(p => !p.answered).length; + // Count how many active prayers were prayed for today + const prayedTodayCount = prayers.filter(p => !p.answered && p.lastPrayedFor === today).length; + // Calculate actual streak - consecutive days with prayers const calculateStreak = () => { if (prayers.length === 0) return 0; @@ -131,9 +134,16 @@ export default function HomePage({ prayers, todayCount, onStartPraying, onSelect {getGreeting()}, {getFirstName()}! {activePrayerCount > 0 ? ( -

- You have {activePrayerCount} {activePrayerCount === 1 ? 'thing' : 'things'} that need prayer today. -

+
+

+ You have {activePrayerCount} {activePrayerCount === 1 ? 'thing' : 'things'} that need prayer today. +

+ {prayedTodayCount > 0 && ( +

+ You've prayed for {prayedTodayCount} of them! 🙏 +

+ )} +
) : (

All caught up! Start a new prayer to keep your journey going.