Skip to content

Release v5.0.0

Choose a tag to compare

@RGomes98 RGomes98 released this 09 Sep 07:14
· 25 commits to main since this release
8b63033

πŸŽ‰ Release v5.0.0 – Weekly Averages, Arduino Payloads & Frontend Enhancements

This release introduces improved backend air quality handling with real Arduino payloads, weekly averages calculations, and refined API responses. On the frontend, it adds login/logout functionality, dark mode, fully responsive layouts, enhanced empty state coverage, weekly averages comparisons, and additional gauge charts.

πŸš€ Added

Backend

  • New mock dataset with real Arduino payload structure for more realistic testing and development.

Frontend

  • Login page with full authentication flow.
  • .env.example file with updated environment variables.
  • Custom HttpError class with from method for consistent error handling.
  • Logout button for session management.
  • Display of latest data information in the header.
  • Dark mode support for the entire application.
  • Fully responsive design across all screen sizes.
  • Full coverage for empty states across all components (handles scenarios with no data).
  • Updated section cards to include weekly averages comparisons.
  • Introduced extra gauge charts to display newly available air quality data.
  • New schemas and services related to weekly averages.

πŸ› οΈ Changed

Backend

  • Air Quality module:

    • Updated AirQualityMeasurement database model to reflect real fields from Arduino payload.
    • Renamed endpoints, services, controllers, and validators for clarity and consistency.
    • Added endpoint, service, controller, and validator for weekly air quality averages.
  • Authentication:

    • Improved error message handling for login-related responses, providing clearer feedback to frontend clients.
  • Configuration:

    • Reorganized .env schema structure for better readability and maintainability.
    • Updated how the API version is retrieved for consistent access across the project.

Frontend

  • Refactored Components folder structure for better organization.
  • General layout improvements and UI refinements.
  • Improved calculateAqi logic for more accurate air quality calculations.

πŸ› Fixed

Backend

  • Corrected validation of GET /air-quality/latest response in case of null database values.
  • Ensured proper chronological ordering of entries for GET /air-quality/latest.

Frontend

  • Corrected SessionProvider placement to ensure proper usability.
  • Fixed errors related to tspan in the GaugeChart component.