This repository has been archived by the owner on Jan 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ticket
Summary
This pull request includes significant updates to the
ecoparking_management
project, primarily focusing on the addition of new data models, data sources, and route handling improvements. The most important changes are outlined below:Route Handling Enhancements:
lib/config/app_routes.dart
: Added a redirect function to ensure proper authentication and user profile validation before accessing certain routes.Data Source Additions:
lib/data/datasource/account_datasource.dart
: Introduced new methods for updating profiles, retrieving employee and owner information, and managing currency locales.lib/data/datasource/analysis_datasource.dart
: Added a comprehensive set of methods for retrieving various analysis data and exporting it.lib/data/datasource/employee_datasource.dart
: Implemented methods for managing employee data, including creating, updating, deleting, and searching employees.Implementation of Data Source Interfaces:
lib/data/datasource_impl/account_datasource_impl.dart
: Implemented theAccountDataSource
interface with methods for profile updates, employee and owner information retrieval, and currency locale updates.lib/data/datasource_impl/analysis_datasource_impl.dart
: Provided concrete implementations for theAnalysisDataSource
methods, including data export functionality.lib/data/datasource_impl/employee_datasource_impl.dart
: Implemented theEmployeeDataSource
interface with methods for employee management and data export.Model Additions:
lib/data/models/analysis_data.dart
: Added theAnalysisData
model to represent analysis data with JSON serialization and deserialization capabilities.