Fix widget issues and add subscription bypass toggle
Widget fixes: - Fix App Group ID mismatch in iOS app entitlements (was group.com.tt.ifeel.ifeelDebug, now group.com.tt.ifeelDebug) - Fix date bug where missing entries all showed same date - Add sample data preview for widget picker (shows realistic mood data) - Add widgetDisplayName to Mood enum for widget localization - Update Mood Vote widget preview to show post-vote state - Attempt to fix interactive widget buttons (openAppWhenRun: false) Developer improvements: - Add IAPManager.bypassSubscription toggle for testing without subscription 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -44,6 +44,19 @@ enum Mood: Int {
|
||||
return String("placeholder")
|
||||
}
|
||||
}
|
||||
|
||||
/// Non-localized display name for use in widgets (which don't have access to app's localization)
|
||||
var widgetDisplayName: String {
|
||||
switch self {
|
||||
case .horrible: return "Horrible"
|
||||
case .bad: return "Bad"
|
||||
case .average: return "Average"
|
||||
case .good: return "Good"
|
||||
case .great: return "Great"
|
||||
case .missing: return "Missing"
|
||||
case .placeholder: return "Placeholder"
|
||||
}
|
||||
}
|
||||
|
||||
var color: Color {
|
||||
let moodTint: MoodTintable.Type = UserDefaultsStore.moodTintable()
|
||||
|
||||
Reference in New Issue
Block a user