From 74dc289a3db34d9e90a8e0b123434ec3a7887146 Mon Sep 17 00:00:00 2001 From: Trey t Date: Thu, 15 Jan 2026 23:03:09 -0600 Subject: [PATCH] Fix Live Activity streak messaging and mislabeled widget text Show "Start your streak!" instead of "Don't break your streak!" when streak count is zero, and fix small widget incorrectly labeling total entries as "day streak". Co-Authored-By: Claude Opus 4.5 --- FeelsWidget2/FeelsLiveActivity.swift | 4 ++-- FeelsWidget2/FeelsVoteWidget.swift | 2 +- Shared/Services/WidgetExporter.swift | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/FeelsWidget2/FeelsLiveActivity.swift b/FeelsWidget2/FeelsLiveActivity.swift index dc198a1..58aa9d2 100644 --- a/FeelsWidget2/FeelsLiveActivity.swift +++ b/FeelsWidget2/FeelsLiveActivity.swift @@ -42,7 +42,7 @@ struct MoodStreakLiveActivity: Widget { } DynamicIslandExpandedRegion(.center) { - Text(context.state.hasLoggedToday ? "Streak: \(context.state.currentStreak) days" : "Don't break your streak!") + Text(context.state.hasLoggedToday ? "Streak: \(context.state.currentStreak) days" : (context.state.currentStreak > 0 ? "Don't break your streak!" : "Start your streak!")) .font(.headline) } @@ -114,7 +114,7 @@ struct MoodStreakLockScreenView: View { } } else { VStack(alignment: .leading) { - Text("Don't break your streak!") + Text(context.state.currentStreak > 0 ? "Don't break your streak!" : "Start your streak!") .font(.headline) Text("Tap to log your mood") .font(.caption) diff --git a/FeelsWidget2/FeelsVoteWidget.swift b/FeelsWidget2/FeelsVoteWidget.swift index 93e5340..dbf1092 100644 --- a/FeelsWidget2/FeelsVoteWidget.swift +++ b/FeelsWidget2/FeelsVoteWidget.swift @@ -110,7 +110,7 @@ struct VotedStatsView: View { .foregroundStyle(.secondary) if let stats = entry.stats { - Text("\(stats.totalEntries) day streak") + Text("\(stats.totalEntries) entries") .font(.caption2) .foregroundStyle(.tertiary) } diff --git a/Shared/Services/WidgetExporter.swift b/Shared/Services/WidgetExporter.swift index c029306..c898533 100644 --- a/Shared/Services/WidgetExporter.swift +++ b/Shared/Services/WidgetExporter.swift @@ -340,7 +340,7 @@ private struct ExportVotedStatsView: View { .font(.caption.weight(.semibold)) .foregroundStyle(.secondary) - Text("\(totalEntries) day streak") + Text("\(totalEntries) entries") .font(.caption2) .foregroundStyle(.tertiary) } @@ -762,7 +762,7 @@ private struct ExportLiveActivityView: View { } } else { VStack(alignment: .leading) { - Text("Don't break your streak!") + Text(streak > 0 ? "Don't break your streak!" : "Start your streak!") .font(.headline) Text("Tap to log your mood") .font(.caption)