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:
@@ -401,6 +401,8 @@ object DataManager {
|
|||||||
_allTasks.value = response
|
_allTasks.value = response
|
||||||
tasksCacheTime = currentTimeMs()
|
tasksCacheTime = currentTimeMs()
|
||||||
updateLastSyncTime()
|
updateLastSyncTime()
|
||||||
|
// Refresh summary from kanban data (API no longer returns summary stats)
|
||||||
|
refreshSummaryFromKanban()
|
||||||
persistToDisk()
|
persistToDisk()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ package com.example.casera.network
|
|||||||
*/
|
*/
|
||||||
object ApiConfig {
|
object ApiConfig {
|
||||||
// ⚠️ CHANGE THIS TO TOGGLE ENVIRONMENT ⚠️
|
// ⚠️ CHANGE THIS TO TOGGLE ENVIRONMENT ⚠️
|
||||||
val CURRENT_ENV = Environment.LOCAL
|
val CURRENT_ENV = Environment.DEV
|
||||||
|
|
||||||
enum class Environment {
|
enum class Environment {
|
||||||
LOCAL,
|
LOCAL,
|
||||||
|
|||||||
Reference in New Issue
Block a user