Skip to content

PowerPulse v1.9.1

Choose a tag to compare

@blink-zero blink-zero released this 02 Mar 07:50
· 8 commits to main since this release

Added

  • Documented previously undocumented API endpoints:
    • Added User Settings API documentation
    • Added Debug API documentation with all available debug endpoints
    • Updated API.md table of contents to include new sections
    • Provided detailed request/response examples for all endpoints

Fixed

  • Fixed battery history time filter issues:
    • Changed time filter options from 7 days to 3 days for better data representation
    • Improved client-side filtering to ensure only data within the requested time range is displayed
    • Added data sampling for multi-day views to get a more representative sample across the full time range
    • Increased record limit for multi-day views to provide better data coverage
    • Enhanced logging for better troubleshooting of time filter issues
  • Fixed selected UPS card not updating in real-time:
    • Implemented reducer pattern in Dashboard component for better state management
    • Added forceUpdate counter to trigger re-renders when UPS data changes
    • Ensured both small UPS cards and detailed UPS view stay in sync
    • Used key prop with dynamic values to force component re-rendering
    • Improved data synchronization between UPS list and detailed view

Improved

  • Simplified battery history implementation:
    • Streamlined data fetching and processing in useBatteryHistory hook
    • Reduced complexity in batteryHistoryService by using a single reliable endpoint
    • Simplified chart configuration in Dashboard component
    • Removed excessive logging and error handling
    • Improved code readability and maintainability