Fix home screen summary showing zeros

The setAllTasks() function was not calling refreshSummaryFromKanban()
after loading kanban data, so the summary statistics (totalTasks,
totalOverdue, etc.) were never calculated - they stayed at zero.

Also switch API environment back to DEV.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Trey t
2025-12-16 16:06:01 -06:00
parent 96ea1f4686
commit 6dfc4ee57c
2 changed files with 3 additions and 1 deletions

View File

@@ -401,6 +401,8 @@ object DataManager {
_allTasks.value = response
tasksCacheTime = currentTimeMs()
updateLastSyncTime()
// Refresh summary from kanban data (API no longer returns summary stats)
refreshSummaryFromKanban()
persistToDisk()
}

View File

@@ -9,7 +9,7 @@ package com.example.casera.network
*/
object ApiConfig {
// ⚠️ CHANGE THIS TO TOGGLE ENVIRONMENT ⚠️
val CURRENT_ENV = Environment.LOCAL
val CURRENT_ENV = Environment.DEV
enum class Environment {
LOCAL,