Persistenza dati e logging avanzato con UI e Unraid
- Aggiunto TradeHistoryService per persistenza trade/posizioni attive su disco (JSON, auto-save/restore) - Logging centralizzato (LoggingService) con livelli, categorie, simbolo e buffer circolare (500 log) - Nuova pagina Logs: monitoraggio real-time, filtri avanzati, cancellazione log, colorazione livelli - Sezione "Dati Persistenti" in Settings: conteggio trade, dimensione dati, reset con conferma modale - Background service per salvataggio sicuro su shutdown/stop container - Aggiornata sidebar, stili modali/bottoni danger, .gitignore e documentazione (README, CHANGELOG, UNRAID_INSTALL, checklist) - Versione 1.3.0
This commit is contained in:
@@ -6,6 +6,60 @@ Formato basato su [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), segu
|
||||
|
||||
---
|
||||
|
||||
## [1.3.0] - 2024-12-21
|
||||
|
||||
### Added
|
||||
- **Logs Page**: Comprehensive logging system with real-time monitoring
|
||||
- Real-time log updates with auto-scroll
|
||||
- Advanced filtering (Level, Category, Symbol)
|
||||
- Color-coded log levels (Debug, Info, Warning, Error, Trade)
|
||||
- Trade-specific logs with detailed information
|
||||
- 500 log entries buffer with automatic rotation
|
||||
- Clear logs functionality
|
||||
- **LoggingService**: Centralized logging management
|
||||
- Structured log entries with timestamps
|
||||
- Category and symbol-based filtering
|
||||
- Event-driven updates for real-time UI
|
||||
- **Enhanced TradingBotService**: Integrated logging
|
||||
- Bot lifecycle events (start/stop)
|
||||
- Trade execution logs (buy/sell)
|
||||
- Detailed trade information in logs
|
||||
|
||||
### Changed
|
||||
- MainLayout updated with Logs navigation item
|
||||
- TradingBotService now logs all major operations
|
||||
|
||||
---
|
||||
|
||||
## [1.2.0] - 2024-12-21
|
||||
|
||||
### Added
|
||||
- **Trade Persistence**: Complete persistence system for trade history and active positions
|
||||
- TradeHistoryService for JSON-based data storage
|
||||
- Automatic save every 30 seconds
|
||||
- Immediate save after each trade execution
|
||||
- Automatic data restore on application startup
|
||||
- **Data Management UI**: Settings page section for persistent data management
|
||||
- View trade count and data size
|
||||
- View active positions count
|
||||
- Clear all data functionality with confirmation modal
|
||||
- **Graceful Shutdown**: TradingBotBackgroundService for data persistence on application exit
|
||||
- Automatic save on container stop/restart
|
||||
- No data loss on unexpected shutdowns
|
||||
|
||||
### Changed
|
||||
- TradingBotService now integrates with TradeHistoryService
|
||||
- Buy/Sell methods are now async to support immediate persistence
|
||||
- Settings page enhanced with data management section
|
||||
|
||||
### Technical
|
||||
- Data stored in `/app/data` directory
|
||||
- JSON format for human-readable persistence
|
||||
- Compatible with Docker volume mapping
|
||||
- Background service registered as IHostedService
|
||||
|
||||
---
|
||||
|
||||
## [1.1.0] - 2024-12-17
|
||||
|
||||
### Added
|
||||
@@ -51,8 +105,11 @@ Formato basato su [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), segu
|
||||
- **Removed**: Features rimosse
|
||||
- **Fixed**: Bug fixes
|
||||
- **Security**: Security fixes
|
||||
- **Technical**: Miglioramenti tecnici e infrastrutturali
|
||||
|
||||
---
|
||||
|
||||
[1.3.0]: https://gitea.encke-hake.ts.net/Alby96/Encelado/compare/v1.2.0...v1.3.0
|
||||
[1.2.0]: https://gitea.encke-hake.ts.net/Alby96/Encelado/compare/v1.1.0...v1.2.0
|
||||
[1.1.0]: https://gitea.encke-hake.ts.net/Alby96/Encelado/compare/v1.0.0...v1.1.0
|
||||
[1.0.0]: https://gitea.encke-hake.ts.net/Alby96/Encelado/releases/tag/v1.0.0
|
||||
|
||||
Reference in New Issue
Block a user