Add batch actions for multi-task completion (Phase 7)

Implement batch task completion feature allowing users to select and
complete multiple care tasks at once. Adds edit mode to Today View with
selection checkmarks, floating BatchActionBar, and confirmation dialog
for completing more than 3 tasks.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-01-23 15:19:21 -06:00
parent efd935568a
commit f41c77876a
11 changed files with 403 additions and 7 deletions

View File

@@ -157,7 +157,7 @@ final class CreateCareScheduleUseCaseTests: XCTestCase {
// Then
let wateringTasks = result.tasks.filter { $0.type == .watering }
XCTAssertTrue(wateringTasks.allSatisfy { $0.notes?.contains("thorough") ?? false })
XCTAssertTrue(wateringTasks.allSatisfy { $0.notes.contains("thorough") })
}
func testExecute_WateringTasks_HaveCorrectPlantID() async throws {
@@ -242,7 +242,7 @@ final class CreateCareScheduleUseCaseTests: XCTestCase {
// Then
let fertilizerTasks = result.tasks.filter { $0.type == .fertilizing }
XCTAssertTrue(fertilizerTasks.allSatisfy { $0.notes?.contains("highNitrogen") ?? false })
XCTAssertTrue(fertilizerTasks.allSatisfy { $0.notes.contains("highNitrogen") })
}
// MARK: - User Preferences Tests