Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Bump version to v0.0.8 #38

Merged
merged 2 commits into from
Jan 2, 2025
Merged

Bump version to v0.0.8 #38

merged 2 commits into from
Jan 2, 2025

Conversation

hieutbui
Copy link
Owner

@hieutbui hieutbui commented Jan 2, 2025

Summary

This pull request includes multiple changes to address an error when employees open the app on a new day, improve the handling of employee attendance data, and fix UI issues related to the check-in button.

Fixes and Improvements:

  • Error Handling:

    • Updated CHANGELOG.md to include the fix for the error when employees open the app on a new day.
  • Data Handling:

    • Modified getEmployeeAttendance method in lib/data/datasource/employee_datasource.dart, lib/data/datasource_impl/employee_datasource_impl.dart, and lib/data/repository/employee_repository_impl.dart to return a nullable Map<String, dynamic>.
    • Changed maybeSingle instead of single in lib/data/datasource_impl/employee_datasource_impl.dart to handle cases where no records are found.
    • Updated getEmployeeAttendance method in lib/domain/repository/employee_repository.dart to return a nullable Map<String, dynamic>.
    • Adjusted GetEmployeeAttendanceStatusInteractor to handle null results properly.
  • UI Fixes:

    • Added debug print statement to log statusState in lib/pages/live_overview/live_overview_view.dart.
    • Fixed the onPressed handler for the check-in button in various states to ensure the correct function is called.

Copy link

github-actions bot commented Jan 2, 2025

This PR has been deployed to https://hieutbui.github.io/ecoparking_management/38

@hieutbui hieutbui merged commit 866ccf7 into release-stable Jan 2, 2025
7 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant