Commit Graph
62 Commits
Author SHA1 Message Date
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
Faris Armoush 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
Faris Armoush 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
Faris Armoush 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
Faris Armoush 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
Faris Armoush 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
Faris Armoush 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
Faris Armoush 71cf4b9feb Update LoadSpaceDetailsParam to require spaceUuid and refactor SpaceDetailsDialog to enhance clarity in parameter handling. 2025-07-02 16:30:23 +03:00
Faris Armoush c43cf9347f Remove unnecessary deactivate method from SpaceDetailsDialog to streamline state management and improve code clarity. 2025-07-02 16:29:02 +03:00
Faris Armoush 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
Faris Armoush 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
Faris Armoush 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
Faris Armoush 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
Faris Armoush 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
Faris Armoush 68b6c9b18c Refactor SpaceDetailsBloc to move SpaceDetailsService declaration for improved clarity 2025-07-02 15:03:07 +03:00
Faris Armoush fa6ee9a0af Add factory method empty to SpaceDetailsModel for creating default instances 2025-07-02 15:03:00 +03:00
Faris Armoush 3601b02bc3 Add SpaceDetailsModelBloc and events for managing space details state 2025-07-02 15:02:55 +03:00
Faris Armoush fdd0526c78 added copyWith to SpaceDetailsModel and its property models. 2025-07-02 14:17:27 +03:00
Faris Armoush bdeec7d325 Add SpaceIconPicker widget for selecting and displaying space icons with a dialog option. 2025-07-02 11:27:36 +03:00
Faris Armoush 50ff17a0c1 Add SpaceIconSelectionDialog widget for selecting space icons in a dialog. 2025-07-02 11:27:26 +03:00
Faris Armoush 87c2e3261d Add SpaceDetailsActionButtons widget for improved action handling in space details. 2025-07-02 11:27:13 +03:00
Faris Armoush 62a6f9c993 Add ButtonContentWidget for customizable button UI in space details. 2025-07-02 11:27:03 +03:00
Faris Armoush 5a2299ea2f navigates to initial create space dialog from the respective buttons. 2025-06-24 10:47:48 +03:00
Faris Armoush 90f8305aa1 shows tooltip on SpaceCell. 2025-06-24 10:45:13 +03:00
Faris Armoush 329b2ba472 selects the space from and to connection when selecting a space. 2025-06-24 10:36:13 +03:00
Faris Armoush 0fb9149613 Selects all children of a space when selecting a parent. 2025-06-24 10:30:56 +03:00
Faris Armoush 87b45fff1d removed expanded widget that caused a size exception. 2025-06-24 10:21:25 +03:00
Faris Armoush 95ae50d12d navigates to selected space when changed on sidebar in space management canvas. 2025-06-24 10:16:03 +03:00
Faris Armoush 8bc7a3daa2 Implemented space management canvas. 2025-06-23 15:45:49 +03:00
Faris Armoush ada7daf179 Switched from using Text to SelectableText in CreateCommunityDialog. 2025-06-23 10:13:30 +03:00
Faris Armoush 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
Faris Armoush f8e4c89cdb uses correct error message that the api sends in RemoteCreateCommunityService. 2025-06-23 10:11:03 +03:00
Faris Armoush 7d4cdba0ef Connected templates view into SpaceManagementBody, while applying the correct UI principals if what to show what when? 2025-06-23 10:06:59 +03:00
Faris Armoush a78b5993a9 Created SpaceManagementTemplatesView widget. 2025-06-23 10:05:53 +03:00
Faris Armoush 0e7109a19e Created CommunityTemplateCell widget. 2025-06-23 10:02:15 +03:00
Faris Armoush 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
Faris Armoush 27349a6cc0 Implemented PR notes by extracting widgets into their own classes. 2025-06-23 09:24:53 +03:00
Faris Armoush 41d4fbb555 Extracted pagination data into a generic DTO. 2025-06-22 16:00:20 +03:00
Faris Armoush 28ac911f3f Accomodated for null values in SpaceModel. 2025-06-22 15:30:47 +03:00
Faris Armoush f02788eaa5 implemented create community feature. 2025-06-22 14:58:38 +03:00
Faris Armoush b79ab06d95 shows a loading indicator when loading. 2025-06-22 12:58:45 +03:00
Faris Armoush 8494f0a8f1 matched community and space models with API. 2025-06-22 12:38:54 +03:00
Faris Armoush 65ed94eb08 debounce and refactored CommunitiesBloc. 2025-06-22 12:01:32 +03:00
Faris Armoush 51c088d998 made communities paginatable. 2025-06-22 11:11:25 +03:00
Faris Armoush 2f233db332 implemented space management side bar. 2025-06-22 11:04:39 +03:00
Faris Armoush 20d044f2e5 Merge branch 'dev' of https://github.com/SyncrowIOT/web into SP-1710-FE-Create-Sidebar 2025-06-18 09:44:35 +03:00
Faris Armoush 8caee32822 Initialized new SpaceManagementPage. 2025-06-18 09:39:49 +03:00
Faris Armoush 0132805713 Fix PR notes. 2025-06-17 11:26:48 +03:00
Faris Armoush 9600f4fb8b Made CommunitiesState final, to better document that it shouldn't be extended. 2025-06-16 16:49:31 +03:00