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
63353af38b
Add SpaceDetails dialog and related widgets for creating and editing spaces, including SpaceDetailsDevicesBox and SpaceSubSpacesBox for managing devices and subspaces.
2025-07-02 15:03:23 +03:00
68b6c9b18c
Refactor SpaceDetailsBloc to move SpaceDetailsService declaration for improved clarity
2025-07-02 15:03:07 +03:00
fa6ee9a0af
Add factory method empty
to SpaceDetailsModel
for creating default instances
2025-07-02 15:03:00 +03:00
3601b02bc3
Add SpaceDetailsModelBloc and events for managing space details state
2025-07-02 15:02:55 +03:00
fdd0526c78
added copyWith to SpaceDetailsModel
and its property models.
2025-07-02 14:17:27 +03:00
bdeec7d325
Add SpaceIconPicker widget for selecting and displaying space icons with a dialog option.
2025-07-02 11:27:36 +03:00
50ff17a0c1
Add SpaceIconSelectionDialog widget for selecting space icons in a dialog.
2025-07-02 11:27:26 +03:00
87c2e3261d
Add SpaceDetailsActionButtons widget for improved action handling in space details.
2025-07-02 11:27:13 +03:00
62a6f9c993
Add ButtonContentWidget for customizable button UI in space details.
2025-07-02 11:27:03 +03:00
5a2299ea2f
navigates to initial create space dialog from the respective buttons.
2025-06-24 10:47:48 +03:00
95ae50d12d
navigates to selected space when changed on sidebar in space management canvas.
2025-06-24 10:16:03 +03:00
8bc7a3daa2
Implemented space management canvas.
2025-06-23 15:45:49 +03:00
4bdb487094
doesnt show a snackbar when creating a community fails, since we show the error message in the dialog itself.
2025-06-23 10:11:23 +03:00
f8e4c89cdb
uses correct error message that the api sends in RemoteCreateCommunityService
.
2025-06-23 10:11:03 +03:00
ff3d5cd996
Created a helper class to show create community dialog, since this dialog can be shown from two different widgets.
2025-06-23 10:02:02 +03:00
27349a6cc0
Implemented PR notes by extracting widgets into their own classes.
2025-06-23 09:24:53 +03:00