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
83202204b0
Remove BlocProvider for UpdateSpaceBloc in SpaceDetailsDialogHelper to streamline dependency management and improve code clarity.
2025-07-09 15:58:17 +03:00
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
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
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
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
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
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
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
4c06479469
Replaced Column with ListView in SpaceDetailsForm to enhance scrolling behavior and accommodate dynamic content.
2025-07-07 14:54:25 +03:00
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
ddfd4ee153
removed print statement.
2025-07-07 14:26:39 +03:00
7f0484eec6
Add UpdateSpaceDetails Event.
2025-07-07 14:26:18 +03:00
dc7064d142
Add Factory Method for Empty Tag Instance in Tag Model.
2025-07-07 14:25:37 +03:00
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
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
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
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
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
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
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
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
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
cebce2ce7f
Update SpaceDetailsModel: Change default icon from villa to location for improved representation of space details.
2025-07-06 14:50:24 +03:00
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
46a7add90d
made subspaces unique and removed duplication from BE side.
2025-07-06 13:23:50 +03:00
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
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
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
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
6dcc851d97
Made CommunityDialog
reusable for edit and create features.
2025-07-06 10:46:20 +03:00
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
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
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
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
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
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
58e99f95b2
removed comments.
2025-07-03 15:25:04 +03:00
227df6fe3d
Refactor SpaceDetailsWidgets: Simplify layout and improve responsiveness in SpaceDetailsDevicesBox and SpaceSubSpacesBox. Update SpaceDetailsForm to enhance dialog width for better user experience. This refactor enhances maintainability and aligns with Clean Architecture principles.
2025-07-03 15:23:00 +03:00
9451ec0cc4
Update SpaceDetailsDialog to utilize SelectableText for error messages and ensure proper Bloc context usage. This enhances user experience by allowing text selection for easier copying of error information.
2025-07-03 13:19:42 +03:00
fc797c2646
Refactor SpaceDetailsModel and ProductAllocation: Update JSON parsing for clarity and remove unused location field. Change subspace name mapping for consistency with API response.
2025-07-03 13:19:34 +03:00
318e1d9af7
Implement Space Management Header and Action Buttons; integrate SpaceDetailsBloc for improved space management functionality. Add CommunityStructureHeader, CommunityStructureHeaderActionButtons, and CommunityStructureHeaderButton widgets to enhance UI and user interactions. Update SpaceManagementCommunityStructure to include the new header and refactor space details service for better endpoint handling.
2025-07-03 13:09:43 +03:00
d47dc349bc
Enhance SubspaceNameDisplayWidget to handle duplicate names during editing. Introduced logic to check for existing subspace names and provide user feedback. Refactored state management for editing and submission processes, improving overall user experience and code clarity.
2025-07-03 12:04:03 +03:00
c221c8499f
Add factory method empty
to SpaceModel
for default instance creation. Refactor SpaceDetailsDialog and related widgets to utilize SpaceModel, enhancing parameter handling and state management in space creation and editing flows.
2025-07-02 17:05:56 +03:00
71cf4b9feb
Update LoadSpaceDetailsParam to require spaceUuid and refactor SpaceDetailsDialog to enhance clarity in parameter handling.
2025-07-02 16:30:23 +03:00
c43cf9347f
Remove unnecessary deactivate method from SpaceDetailsDialog to streamline state management and improve code clarity.
2025-07-02 16:29:02 +03:00
009b7c0316
Refactor SpaceDetails feature to replace LoadSpacesParam with LoadSpaceDetailsParam, enhancing clarity in parameter handling. Introduce ClearSpaceDetails event in SpaceDetailsBloc for better state management. Update SpaceDetailsDialog and SpaceDetailsForm to utilize new parameter and improve dialog functionality.
2025-07-02 15:53:54 +03:00
779c0fe916
Refactor SpaceDetailsDialog to improve code readability and structure by simplifying widget hierarchy and enhancing the use of Bloc for state management.
2025-07-02 15:42:19 +03:00
e448eabda6
Refactor SpaceSubSpacesDialog to use SubSpacesInput for managing subspaces, enhancing state management and UI structure. Update SpaceDetailsActionButtons to handle optional save callback.
2025-07-02 15:41:13 +03:00
9dfb3ed369
Refactor SpaceDetailsDialog and SpaceIconPicker to integrate Bloc for state management, enhancing icon selection and dialog functionality.
2025-07-02 15:20:52 +03:00