fix: API field mapping, HealthKit entitlement, profile tab, forgot password

This commit is contained in:
Cosmo
2026-03-25 12:07:08 +00:00
parent bfb9a07d2d
commit 74805bc9d1
12 changed files with 266 additions and 46 deletions

View File

@@ -19,7 +19,8 @@ struct Habit: Codable, Identifiable {
var color: String?
var frequency: HabitFrequency
var reminderTime: String?
var targetDays: Int?
var targetDays: [Int]?
var targetCount: Int?
var currentStreak: Int?
var longestStreak: Int?
var completedToday: Bool?
@@ -29,6 +30,7 @@ struct Habit: Codable, Identifiable {
case id, name, description, icon, color, frequency
case reminderTime = "reminder_time"
case targetDays = "target_days"
case targetCount = "target_count"
case currentStreak = "current_streak"
case longestStreak = "longest_streak"
case completedToday = "completed_today"