This pull request introduces several new features and improvements to the resource management system in the support_sphere project. The main changes include adding new strings for resource management, implementing functionality to add new resources, and updating the user interface to support these new features.
New features and functionality:
Resource Management Strings:
Added new constants in ResourceStrings and created a new class AddResourceFormStrings for strings related to resource management. (src/support_sphere/lib/constants/string_catalog.dart)
Repository and Service Updates:
Added addNewResource method in ResourceRepository to handle adding new resources. (src/support_sphere/lib/data/repositories/resource.dart)
Implemented createResourceCV and createResource methods in ResourceService to interact with the database for resource creation. (src/support_sphere/lib/data/services/resource_service.dart)
User Interface Enhancements:
Manage Resource Cubit:
Added addNewResource method to ManageResourceCubit to handle the addition of new resources and refresh the resource list. (src/support_sphere/lib/logic/cubit/manage_resource_cubit.dart)
Introduced a computed property resourcesNames in ManageResourceState to get a list of resource names. (src/support_sphere/lib/logic/cubit/manage_resource_state.dart)
UI Components and Forms:
Created ResourceTypeFilter widget to filter resources by type. (src/support_sphere/lib/presentation/components/resource_type_filter.dart)
Developed AddResourceForm widget for adding new resources, including fields for resource details and validation. (src/support_sphere/lib/presentation/pages/main_app/manage_resources/add_resource_form.dart)
Manage Resources Page:
Refactored ManageResourcesBody to include a controller for toggling between resource management and add resource views. (src/support_sphere/lib/presentation/pages/main_app/manage_resources/manage_resources_body.dart) [1][2][3]
Dependency Update:
Added searchfield package to support search functionality in forms. (src/support_sphere/pubspec.yaml)
This pull request introduces several new features and improvements to the resource management system in the
support_sphere
project. The main changes include adding new strings for resource management, implementing functionality to add new resources, and updating the user interface to support these new features.New features and functionality:
Resource Management Strings:
ResourceStrings
and created a new classAddResourceFormStrings
for strings related to resource management. (src/support_sphere/lib/constants/string_catalog.dart
)Repository and Service Updates:
addNewResource
method inResourceRepository
to handle adding new resources. (src/support_sphere/lib/data/repositories/resource.dart
)createResourceCV
andcreateResource
methods inResourceService
to interact with the database for resource creation. (src/support_sphere/lib/data/services/resource_service.dart
)User Interface Enhancements:
Manage Resource Cubit:
addNewResource
method toManageResourceCubit
to handle the addition of new resources and refresh the resource list. (src/support_sphere/lib/logic/cubit/manage_resource_cubit.dart
)resourcesNames
inManageResourceState
to get a list of resource names. (src/support_sphere/lib/logic/cubit/manage_resource_state.dart
)UI Components and Forms:
ResourceTypeFilter
widget to filter resources by type. (src/support_sphere/lib/presentation/components/resource_type_filter.dart
)AddResourceForm
widget for adding new resources, including fields for resource details and validation. (src/support_sphere/lib/presentation/pages/main_app/manage_resources/add_resource_form.dart
)Manage Resources Page:
ManageResourcesBody
to include a controller for toggling between resource management and add resource views. (src/support_sphere/lib/presentation/pages/main_app/manage_resources/manage_resources_body.dart
) [1] [2] [3]Dependency Update:
searchfield
package to support search functionality in forms. (src/support_sphere/pubspec.yaml
)