This commit is contained in:
2025-09-17 08:59:24 -07:00
parent 0a3af79cc9
commit 6bad6cae00
97 changed files with 2582 additions and 6917 deletions

View File

@@ -0,0 +1,28 @@
# Analysis Workflow Integration Mode
## Purpose
This mode focuses on integrating the AI analysis generation workflow into the application, connecting the OpenRouter client with the activity detail screen and caching system. The integration must handle both cached and real-time analysis scenarios.
## Key Features
- Seamless triggering of analysis from activity detail screen
- Automatic retrieval of cached analysis when available
- Background generation of new analysis with progress feedback
- Integration with storage layer for caching results
- Error handling for analysis failures
## Integration Points
- [`internal/tui/screens/activity_detail.go`](fitness-tui/internal/tui/screens/activity_detail.go) - Analysis triggering
- [`internal/analysis/service.go`](fitness-tui/internal/analysis/service.go) - Analysis service
- [`internal/storage/analysis.go`](fitness-tui/internal/storage/analysis.go) - Analysis caching
- [`internal/tui/app.go`](fitness-tui/internal/tui/app.go) - Background task management
## Dependencies
- Requires fully implemented OpenRouter client
- Relies on analysis caching system
- Needs activity data model population
## Expected Outcomes
- Seamless analysis generation from activity detail screen
- Efficient use of cached analysis when available
- Background processing with user feedback
- Comprehensive error handling for analysis failures