10 Commits

Author SHA1 Message Date
a0f32b1a00 feat: Implement comprehensive progress callback system
- Created callback interfaces (ProgressCallback, ErrorCallback, CompletionCallback)
- Defined rich context objects (ProgressContext, ErrorContext, CompletionContext)
- Implemented CallbackManager for managing multiple callbacks
- Integrated callbacks into SerieScanner for scan progress reporting
- Enhanced SeriesApp with download progress tracking via callbacks
- Added error and completion notifications throughout core operations
- Maintained backward compatibility with legacy callback system
- Created 22 comprehensive unit tests with 100% pass rate
- Updated infrastructure.md with callback system documentation
- Removed completed tasks from instructions.md

The callback system provides:
- Real-time progress updates with percentage and phase tracking
- Comprehensive error reporting with recovery information
- Operation completion notifications with statistics
- Thread-safe callback execution with exception handling
- Support for multiple simultaneous callbacks per type
2025-10-17 20:05:57 +02:00
59edf6bd50 feat: Enhance SeriesApp with async callback support, progress reporting, and cancellation
- Add async_download() and async_rescan() methods for non-blocking operations
- Implement ProgressInfo dataclass for structured progress reporting
- Add OperationResult dataclass for operation outcomes
- Introduce OperationStatus enum for state tracking
- Add cancellation support with cancel_operation() method
- Implement comprehensive error handling with callbacks
- Add progress_callback and error_callback support in constructor
- Create 22 comprehensive unit tests for all functionality
- Update infrastructure.md with core logic documentation
- Remove completed task from instructions.md

This enhancement enables web integration with real-time progress updates,
graceful cancellation, and better error handling for long-running operations.
2025-10-17 19:45:36 +02:00
2867ebae09 health check 2025-10-12 23:06:29 +02:00
7a71715183 backup 2025-10-12 18:05:31 +02:00
3f98dd6ebb Implement application setup and flow middleware
- Add SetupService for detecting application setup completion
- Create ApplicationFlowMiddleware to enforce setup  auth  main flow
- Add setup processing endpoints (/api/auth/setup, /api/auth/setup/status)
- Add Pydantic models for setup requests and responses
- Integrate middleware into FastAPI application
- Fix logging paths to use ./logs consistently
- All existing templates (setup.html, login.html) already working
2025-10-06 12:48:18 +02:00
00a68deb7b Fix SeriesApp: Add missing class variable and clean up unused imports 2025-10-06 09:17:35 +02:00
969533f1de logfile 2025-10-05 22:29:22 +02:00
85f2d2c6f7 cleanup 2 2025-10-05 22:22:04 +02:00
fe2df1514c cleanup 2025-10-05 21:56:33 +02:00
e477780ed6 refactoring 2025-09-29 21:18:42 +02:00