Remove summary from list API responses
Summary statistics are now calculated client-side from kanban data. This removes the summary field from MyResidencesResponse and KanbanBoardResponse. Mutation endpoints still return summary via WithSummaryResponse<T> for immediate cache updates. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -116,9 +116,7 @@ func (s *TaskService) ListTasks(userID uint, now time.Time) (*responses.KanbanBo
|
||||
}
|
||||
|
||||
resp := responses.NewKanbanBoardResponseForAll(board)
|
||||
// Include summary for dashboard stats
|
||||
summary := s.getSummaryForUser(userID)
|
||||
resp.Summary = &summary
|
||||
// NOTE: Summary statistics are calculated client-side from kanban data
|
||||
return &resp, nil
|
||||
}
|
||||
|
||||
@@ -145,9 +143,7 @@ func (s *TaskService) GetTasksByResidence(residenceID, userID uint, daysThreshol
|
||||
}
|
||||
|
||||
resp := responses.NewKanbanBoardResponse(board, residenceID)
|
||||
// Include summary for dashboard stats
|
||||
summary := s.getSummaryForUser(userID)
|
||||
resp.Summary = &summary
|
||||
// NOTE: Summary statistics are calculated client-side from kanban data
|
||||
return &resp, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user