Faris Armoush
d65f9ceea9
Enhance AddDeviceTypeWidget to support initial product counts and update selection logic. Modify AssignTagsDialog to pass initial products from space allocations, improving user experience and maintainability.
2025-07-15 14:53:04 +03:00
Faris Armoush
f539b0ac8d
Rename UniqueSubspacesDecorator to UniqueSpaceDetailsSpacesDecoratorService
2025-07-15 14:38:44 +03:00
Faris Armoush
5a3cf93748
Improved UniqueSubspacesDecorator implementation to improve handling of duplicate subspace names.
2025-07-15 14:37:16 +03:00
Faris Armoush
acefe7b355
Refactor RemoteDeleteSpaceService to use a private HTTPService instance and update URL construction with ApiEndpoints for improved maintainability. Update DeleteSpaceDialog to reflect changes in service initialization.
2025-07-15 11:09:04 +03:00
Faris Armoush
b223194950
Add loading and status widgets for delete space dialog; refactor dialog to utilize new components for improved user feedback during space deletion process.
2025-07-15 10:07:12 +03:00
Faris Armoush
3bee17c574
Merge branch 'dev' of https://github.com/SyncrowIOT/web into SP-1721-FE-Implement-Delete-Space-Feature
2025-07-14 14:44:55 +03:00
Faris Armoush
f4b5c6fb52
Implement delete space functionality in CommunityStructureHeader: Integrate DeleteSpaceDialog for space deletion confirmation and update routing for space management page.
2025-07-14 14:44:08 +03:00
Faris Armoush
086f3cedf8
Refactor RemoteDeleteSpaceService: Simplify success response handling and improve error message formatting
2025-07-14 14:30:17 +03:00
Faris Armoush
035c03c6b2
Fix error handling in DeleteSpaceBloc: update failure message to include exception details
2025-07-14 14:17:01 +03:00
Faris Armoush
5663e2084e
Created DeleteSpaceBloc.
2025-07-14 10:57:34 +03:00
Faris Armoush
3cd0125310
Refactor space deletion: Introduce DeleteSpaceParam and DeleteSpaceService for enhanced space management functionality
2025-07-14 10:54:13 +03:00
Faris Armoush
e0980b324c
Add DeleteSpaceParam and DeleteSpaceService for space deletion functionality
2025-07-14 10:54:07 +03:00
Faris Armoush
7331c8440b
Refactor SpaceManagementPage to use StatefulWidget and initialize CommunitiesBloc in initState. Update CommunityStructureHeader to handle community updates and improve state management in CommunitiesTreeSelectionBloc with new event for community state updates.
2025-07-14 10:27:22 +03:00
Faris Armoush
83202204b0
Remove BlocProvider for UpdateSpaceBloc in SpaceDetailsDialogHelper to streamline dependency management and improve code clarity.
2025-07-09 15:58:17 +03:00
Faris Armoush
d87739f1fd
Refactor JSON Serialization in UpdateSpaceParam: Adjusted the _toJson method for Subspace to ensure 'subspaceName' is always included and 'uuid' is only added when applicable, enhancing clarity and consistency in data representation.
2025-07-09 15:25:41 +03:00
Faris Armoush
5cd083a37b
Refactor Space and Tag Models: Removed unused JSON serialization methods from SpaceDetailsModel, ProductAllocation, and Subspace. Updated Tag model to eliminate unnecessary fields. Enhanced UpdateSpaceParam to streamline JSON conversion for subspaces and product allocations, improving data handling during updates.
2025-07-09 15:08:49 +03:00
Faris Armoush
7c2aed2d58
Refactor RemoteUpdateSpaceService: Improved error handling in updateSpace method by checking API response success before returning the updated space. This enhances robustness and ensures proper error propagation for failed updates.
2025-07-08 12:20:10 +03:00
Faris Armoush
bcf62027bc
Validate UUIDs in RemoteUpdateSpaceService: Added checks for empty space and community UUIDs before constructing the update URL, improving error handling and robustness in the update space process.
2025-07-08 11:12:12 +03:00
Faris Armoush
b001713ce4
Enhance Community Structure Widgets: Updated SpaceDetailsDialogHelper to accept community UUID for space creation and editing. Refactored CreateSpaceButton and CommunityStructureHeader to pass community UUID, improving data handling and consistency across the community structure features.
2025-07-08 11:10:22 +03:00
Faris Armoush
bab3226c73
Merge branch 'dev' of https://github.com/SyncrowIOT/web into SP-1717-FE-Draw-Create-Edit-Space-Dialog
2025-07-08 10:02:12 +03:00
Faris Armoush
fa1eaa570c
Refactor Space Update Logic: Introduced UpdateSpaceParam for better parameter handling in update operations. Enhanced SpaceDetailsDialogHelper to manage loading and error states during space updates. Updated RemoteUpdateSpaceService to construct dynamic URLs for space updates based on community UUID. Improved CommunitiesTreeFailureWidget UI with SelectableText and added spacing for better layout.
2025-07-08 10:01:43 +03:00
Faris Armoush
4c06479469
Replaced Column with ListView in SpaceDetailsForm to enhance scrolling behavior and accommodate dynamic content.
2025-07-07 14:54:25 +03:00
Faris Armoush
3101960201
Enhance Space Management Features with Tag Assignment Improvements:
...
- Introduced UUID for ProductAllocation to ensure unique identification.
- Refactored AssignTagsDialog to manage tag assignments and validation more effectively, including error handling for empty tags and duplicate tag usage.
- Updated AssignTagsTable to support dynamic product allocation management and improved UI interactions.
- Enhanced AddDeviceTypeWidget to maintain selected products and handle increment/decrement actions, improving user experience during device type selection.
- Added AssignTagsErrorMessages widget for better error visibility in tag assignment process.
2025-07-07 14:26:59 +03:00
Faris Armoush
ddfd4ee153
removed print statement.
2025-07-07 14:26:39 +03:00
Faris Armoush
7f0484eec6
Add UpdateSpaceDetails Event.
2025-07-07 14:26:18 +03:00
Faris Armoush
dc7064d142
Add Factory Method for Empty Tag Instance in Tag Model.
2025-07-07 14:25:37 +03:00
Faris Armoush
e523a83912
Refactor Tags Service and Bloc for Improved Data Handling:
...
- Updated RemoteTagsService to remove LoadTagsParam and fetch project UUID internally, enhancing encapsulation and reducing parameter dependency.
- Modified TagsService interface to reflect the new loading method signature.
- Adjusted TagsBloc to align with the updated service method, simplifying the loading process.
- Enhanced AssignTagsTable and AddDeviceTypeWidget to utilize the new data flow, improving maintainability and user experience.
2025-07-07 10:50:03 +03:00
Faris Armoush
e917225c3d
Refactor Widgets for Improved UI Consistency and Usability:
...
- Replaced Text with SelectableText in AddDeviceTypeWidget and AssignTagsTable for better text selection and accessibility.
- Simplified onCancel action in AssignTagsDialog for improved readability.
- Enhanced ProductsGrid layout by removing unnecessary Column widget, streamlining the widget structure for better performance and maintainability.
2025-07-07 10:36:42 +03:00
Faris Armoush
66ed30b50c
Merge branch 'dev' of https://github.com/SyncrowIOT/web into SP-1720-FE-Draw-AssignTagsToSpace-Dialog
2025-07-07 10:21:14 +03:00
Faris Armoush
47bd6ff89e
Refactor AddDeviceTypeWidget for Improved Error Handling and Loading States:
...
- Extracted loading and error handling logic into separate methods for better readability and maintainability.
- Updated UI to utilize centralized loading and failure widgets, enhancing user experience during data fetching.
2025-07-07 10:20:51 +03:00
Faris Armoush
df87e41d61
Refactor AddDeviceTypeWidget and ProductTypeCard Components:
...
- Replaced ProductTypeCard with ProductsGrid in AddDeviceTypeWidget for improved layout and maintainability.
- Converted ProductTypeCardCounter from StatefulWidget to StatelessWidget, simplifying its implementation.
- Updated ProductTypeCard to accept count and increment/decrement callbacks, enhancing its reusability and interaction.
- Introduced ProductsGrid to manage product display in a grid format, improving UI organization and responsiveness.
2025-07-07 10:15:33 +03:00
Faris Armoush
f0bfe085a4
Enhance Product Model with Icon Mapping:
...
- Added icon mapping functionality to the Product model, allowing dynamic icon retrieval based on product type.
- Updated ProductTypeCard to utilize the new icon property, improving UI representation and maintainability.
2025-07-07 09:34:11 +03:00
Faris Armoush
bb846f797f
Implement Tag Assignment and Device Addition Features:
...
- Introduced AssignTagsDialog for assigning tags to devices, enhancing user interaction and organization.
- Added AddDeviceTypeWidget for adding new device types, improving the flexibility of device management.
- Created ProductTypeCard and ProductTypeCardCounter for better representation and interaction with device types.
- Enhanced AssignTagsTable for displaying and managing product allocations, improving maintainability and user experience.
2025-07-06 16:54:15 +03:00
Faris Armoush
e234c9f3b2
Enhance SpaceDetailsActionButtons: Introduced customizable button labels for save and cancel actions, improving flexibility and user experience. Updated button implementations to utilize these new labels, enhancing maintainability and adherence to Clean Architecture principles.
2025-07-06 16:44:40 +03:00
Faris Armoush
bcd0ae4a2a
Refactor Products Module:
...
- Introduced ProductsBloc and updated ProductsService to remove LoadProductsParam, simplifying the product loading process.
- Updated RemoteProductsService to utilize a new API endpoint for fetching products.
- Adjusted ProductsEvent and ProductsState to reflect changes in the loading mechanism, enhancing maintainability and clarity in the products management flow.
2025-07-06 16:44:26 +03:00
Faris Armoush
cebce2ce7f
Update SpaceDetailsModel: Change default icon from villa to location for improved representation of space details.
2025-07-06 14:50:24 +03:00
Faris Armoush
97e3fb68bf
Enhance Product Model and SpaceDetailsDevicesBox:
...
- Added 'productType' field to Product model for improved data representation.
- Updated JSON parsing in Product model to handle 'prodType'.
- Refactored SpaceDetailsDevicesBox to utilize productType for dynamic device icon rendering, enhancing UI clarity and maintainability.
2025-07-06 14:49:10 +03:00
Faris Armoush
46a7add90d
made subspaces unique and removed duplication from BE side.
2025-07-06 13:23:50 +03:00
Faris Armoush
73de1e6ff9
Enhance EditCommunityDialog: Refactor to accept parent context and streamline community update handling. Introduced a new method _onUpdateCommunitySuccess for improved readability and maintainability. Updated SpaceManagementCommunityDialogHelper to pass the parent context for better state management in the community update flow.
2025-07-06 12:52:35 +03:00
Faris Armoush
826dea8054
Implement community update endpoint: Refactor RemoteUpdateCommunityService to dynamically construct the update URL using the project UUID. This change enhances the service's flexibility and error handling by ensuring the correct endpoint is used for community updates.
2025-07-06 12:39:54 +03:00
Faris Armoush
823d86fd80
Add loading and success snackbar helpers: Introduced showLoadingDialog and showSuccessSnackBar methods in SpaceManagementCommunityDialogHelper for consistent loading indicators and success messages across community dialogs. Updated CreateCommunityDialog and EditCommunityDialog to utilize these new helpers, enhancing user experience and maintainability.
2025-07-06 11:17:28 +03:00
Faris Armoush
dd735032ea
Update SpaceSubSpacesDialog: Replace Text with SelectableText for title and error message, and add spacing in the content column to enhance user experience and maintainability.
2025-07-06 11:01:29 +03:00
Faris Armoush
6dcc851d97
Made CommunityDialog reusable for edit and create features.
2025-07-06 10:46:20 +03:00
Faris Armoush
15b36fd052
Enhance SpaceDetailsDialog: Adjust loading indicator layout for improved responsiveness. The CircularProgressIndicator is now wrapped in a SizedBox to ensure proper sizing based on screen dimensions, enhancing user experience and maintainability.
2025-07-06 09:33:27 +03:00
Faris Armoush
95cded4bf5
Enhance SubSpacesInput: Introduce FocusNode for improved text field focus management. This change allows the input field to regain focus after adding a subspace, enhancing user experience and maintaining clean state management practices.
2025-07-06 09:04:13 +03:00
Faris Armoush
757a96ed9f
Refactor SpaceDetailsActionButtons and SpaceIconPicker: Adjust layout properties for improved responsiveness and user experience. Set mainAxisSize to min in SpaceDetailsActionButtons and simplify the layout in SpaceIconPicker for better alignment and interaction. This enhances maintainability and adheres to Clean Architecture principles.
2025-07-03 16:15:31 +03:00
Faris Armoush
b857736e10
Refactor SpaceNameTextField: Update text styling and border handling to utilize context-based theming. This improves consistency with the app's theme and enhances maintainability by centralizing border styling logic.
2025-07-03 15:37:06 +03:00
Faris Armoush
1fccd51440
Refactor SubspaceNameDisplayWidget: Update Chip border radius for improved aesthetics and add delete functionality to remove subspaces. This enhances user interaction and aligns with maintainability principles.
2025-07-03 15:33:34 +03:00
Faris Armoush
c07ddb0ccd
Refactor SpaceDetailsDevicesBox: Improve readability by extracting variables for product allocations and subspaces. This change enhances code clarity and maintainability in line with Clean Architecture principles.
2025-07-03 15:27:06 +03:00
Faris Armoush
58e99f95b2
removed comments.
2025-07-03 15:25:04 +03:00