Commit Graph
90 Commits
Author SHA1 Message Date
Faris Armoush abf6555485 Merge branch 'dev' of https://github.com/SyncrowIOT/web into SP-1278-FE-Allow-Simple-Edit-Delete 2025-04-15 12:03:25 +03:00
Faris Armoush be0533645e Refactor dialog header text assignment in CeilingSensorDialog for clarity and readability. 2025-04-15 11:20:15 +03:00
Faris Armoush 254e03e3c7 Add mapping for 'sports_para' in slider range function 2025-04-15 11:19:58 +03:00
Faris Armoush 6bea4c2f4a Add mappings for moving_range and presence_range in slider helpers 2025-04-15 10:34:05 +03:00
Faris Armoush e2ec986bb9 Refactor mappable stepped functions to a static constant for improved readability and maintainability 2025-04-15 10:03:47 +03:00
Faris Armoush ceb1e1d23a Remove TODO comments. 2025-04-15 10:03:37 +03:00
Faris Armoush ee12980b47 Fix value parsing in CpsDialogSliderSelector to ensure two decimal precision 2025-04-15 10:03:21 +03:00
Faris Armoush ebcd89d2a5 Refactor ceiling sensor functions and update slider helper mappings for improved value handling 2025-04-14 16:24:50 +03:00
Faris Armoush 1493e35f6a removed unused method. 2025-04-14 14:35:24 +03:00
Faris Armoush f19cc616be moved CpsSliderHelpers to its own file. 2025-04-14 14:32:49 +03:00
Faris Armoush 06383018b9 refactored helpers into a helper class to release some complexity out of the widget. 2025-04-14 14:32:22 +03:00
Faris Armoush 9e3a78f6b7 Update dialog header to reflect sensor condition type dynamically 2025-04-14 12:10:42 +03:00
Faris Armoush a27b2e758c Merge branch 'dev' of https://github.com/SyncrowIOT/web into SP-1278-FE-Allow-Simple-Edit-Delete 2025-04-14 12:06:42 +03:00
Faris Armoush 1023170788 Sort communities in create new routine dropdown. 2025-04-14 11:25:36 +03:00
Faris Armoush 9a2687d4c5 added some comments for clarity about how we should send the data to BE. 2025-04-14 11:13:27 +03:00
Faris Armoush cbaeecc968 Merge pull request #139 from SyncrowIOT/SP-1189-FE-Add-Button-Not-clickable-Opening-Pop-up-in-Community-Screen
Sp 1189 fe add button not clickable opening pop up in community screen
2025-04-13 16:22:37 +03:00
Faris Armoush acad0e8c9c SP-1189-FE-Add-Button-Not-clickable-Opening-Pop-up-in-Community-Screen 2025-04-13 14:50:07 +03:00
Faris Armoush 79f5ef7871 simplify space selection logic. 2025-04-13 13:12:48 +03:00
Faris Armoush 6493f02bcc simplify if statements readabaility. 2025-04-13 13:08:23 +03:00
Faris Armoush c7c8898763 removed redundant code. 2025-04-13 12:52:38 +03:00
Faris Armoush 62ee9a72d6 moved SidebarHeader and SidebarAddCommunityButton to their own files. 2025-04-13 12:47:05 +03:00
Faris Armoush 55695ca5db refactor: improve readability and structure in SidebarWidget's space tile handling 2025-04-13 12:33:50 +03:00
Faris Armoush c2f5a8df10 refactor: streamline context usage and improve readability in SidebarWidget 2025-04-13 12:31:17 +03:00
Faris Armoush cd9821679e added trailing commas. 2025-04-13 12:29:38 +03:00
Faris Armoush bfd3d4542e refactor: simplify onSearchChanged callback to use expressions. 2025-04-13 12:28:50 +03:00
Faris Armoush 35a99ccda7 removed unnecessary comments from SidebarWidget. 2025-04-13 12:27:04 +03:00
Faris Armoush 978934399e fixed invalid use of a private type in a public API in SidebarWidget. 2025-04-13 12:25:28 +03:00
Faris Armoush bc32fe7941 removed unused method and its use. 2025-04-13 12:25:03 +03:00
Faris Armoush 11feaf7c87 passed correct operation name to onSliderChanged and onConditionChanged. in CpsDialogSliderSelector`. 2025-04-13 11:10:51 +03:00
Faris Armoush 36e88d033b Refactor SliderValueSelector layout for improved readability and maintainability 2025-04-13 10:56:19 +03:00
Faris Armoush c54fd780b7 Update sensitivity function to adjust max value and add image assets; modify dialog logic for sensitivity handling 2025-04-13 10:43:17 +03:00
Faris Armoush fa8f29ff71 Add sensitivity feature. 2025-04-13 10:41:23 +03:00
Faris Armoush dcbca64814 Fix spacing in ValueDisplay text output for improved readability 2025-04-13 10:16:20 +03:00
Faris Armoush c62e8b3f15 Update _displayText method to format values with two decimal places for improved precision 2025-04-13 10:14:35 +03:00
Faris Armoush 60a1a9ad6f Add dividendOfRange parameter to FunctionSlider and related components for improved range handling 2025-04-13 10:09:39 +03:00
Faris Armoush 828db5d5e4 Refactor CpsDialogSliderSelector to improve value parsing and formatting in _displayText method 2025-04-13 09:57:45 +03:00
Faris Armoush ebbecb9738 Update toggleCodes in CeilingSensorHelper to replace 'self_test_result' and 'movement' with 'checking_result' and 'body_movement' for improved clarity. 2025-04-13 09:18:09 +03:00
Faris Armoush 49439816d5 Update SliderValueSelector to improve text styling for unit and range labels 2025-04-10 16:43:33 +03:00
Faris Armoush a5d26d04eb Remove unused variables from CeilingSensorDialog to streamline state management 2025-04-10 16:35:19 +03:00
Faris Armoush 74046c5aed Refactor SliderValueSelector and ValueDisplay to include unit handling and improve UI consistency across sensor dialogs. 2025-04-10 16:22:02 +03:00
Faris Armoush fadb23d631 Refactor SliderValueSelector layout by removing unnecessary SizedBox and adjusting spacing for improved UI consistency. 2025-04-10 15:26:36 +03:00
Faris Armoush cf103d5a7c Add CpsDialogSliderSelector for enhanced slider functionality and integrate with CeilingSensorDialog 2025-04-10 15:25:29 +03:00
Faris Armoush 551779c33a moved widgets to their own files. 2025-04-10 14:41:58 +03:00
Faris Armoush 9d3b58deeb Refactor wall presence sensor components and add new widgets for improved functionality and clarity to ensure reusability in the future for other devices. 2025-04-10 14:32:09 +03:00
Faris Armoush 9ca6fb8640 Remove unnecessary extension methods for operational value codes in CPS functions 2025-04-10 14:03:44 +03:00
Faris Armoush 796409600e Update operation codes for CpsPresenceJudgementThresholdFunction and CpsMotionAmplitudeTriggerThresholdFunction. 2025-04-10 14:03:08 +03:00
Faris Armoush 75b2f96428 added spaces in operational value descriptions to match figma design. 2025-04-10 11:27:02 +03:00
Faris Armoush 7c68b90aef Refactor CPS functions to implement operational value generation with min, max, and step parameters. 2025-04-10 10:59:43 +03:00
Faris Armoush 729080ec4e Refactor CPS function codes to use helper methods for consistency and clarity 2025-04-10 10:11:12 +03:00
Faris Armoush 627ff4e929 Update operation codes and values for various CPS functions. 2025-04-09 17:00:21 +03:00
Faris Armoush 6d612398ed Update operation names in CpsFunctions and add toggle codes to CeilingSensorHelper 2025-04-09 16:41:03 +03:00
Faris Armoush 3f565788d5 Refactor CeilingSensorDialog to be a StatefulWidget. 2025-04-09 15:42:22 +03:00
Faris Armoush 120ed85d10 Add CPS case to device function switch for ceiling sensor integration 2025-04-09 15:41:28 +03:00
Faris Armoush c1d9846899 Enhance CeilingSensorHelper: Add deviceName and deviceId parameters to sensor functions 2025-04-09 15:41:21 +03:00
Faris Armoush cd9ed5861a Implemented some operations for the cps feature. 2025-04-09 15:40:44 +03:00
Faris Armoush c0662bb19e Added assets. 2025-04-09 15:23:56 +03:00
Faris Armoush 5b29228738 Merge branch 'dev' of https://github.com/SyncrowIOT/web into SP-1275-FE-Identify-Add-Ceiling-Sensor-Card-to-IF-THEN-Sections 2025-04-09 13:21:43 +03:00
Faris Armoush c23176706f Merge pull request #136 from SyncrowIOT/SP-1367-FE-Save-Flow-edit-or-delete-the-device-functions
Implementing the Ceiling Sensor in Routine WEB
2025-04-09 13:19:53 +03:00
Faris Armoush 4ea91b9333 SP-1276/ Show Configuration Pop-up on Drop. 2025-04-09 13:16:36 +03:00
Faris Armoush 6c691d4b3c displays ceiling sensor in routine 2025-04-09 12:46:43 +03:00
Faris Armoush 387ef99728 fix: handle nullable uuid in GatewayModel.fromJson 2025-04-09 12:33:20 +03:00
Faris Armoush 694a5a7dda Refactor GatewayModel.fromJson to use a loop for status parsing instead of firstWhere. 2025-04-09 12:32:44 +03:00
Faris Armoush c90b9a1912 bugfix/ range index errorof automations in routines. 2025-04-09 12:24:59 +03:00
Faris Armoush 7860292276 Merge branch 'dev' of https://github.com/SyncrowIOT/web into SP-1367-FE-Save-Flow-edit-or-delete-the-device-functions 2025-04-09 12:19:53 +03:00
Faris Armoush 3d5825adca Merge branch 'SP-1366-FE-Add-Gateway-Device-Card-to-Devices-Section' of https://github.com/SyncrowIOT/web into SP-1367-FE-Save-Flow-edit-or-delete-the-device-functions 2025-04-09 11:21:20 +03:00
Faris Armoush 9c97e2879a Refactor constructor syntax for Gateway functions to use initializer list 2025-04-09 10:57:22 +03:00
Faris Armoush fda96025e9 uncommented code. 2025-04-09 10:41:38 +03:00
Faris Armoush 92aa574944 update GatewayMasterState.getOperationalValues to match what the api expects. 2025-04-09 10:21:49 +03:00
Faris Armoush 774f21a55b Refactor RoutineDevices to consolidate device data preparation in a single map to remove code duplication. 2025-04-09 09:59:15 +03:00
Faris Armoush 9b69ec31e9 Refactor RoutineDevices to use a class-level constant for allowed product types. 2025-04-09 09:57:18 +03:00
Faris Armoush a242377ea6 Fully refactored CreateRoutine/Gateway feature. 2025-04-09 09:46:45 +03:00
Faris Armoush 3a0c8edf86 SP-1365/ Gateway Functions Popup (for “Then” section). 2025-04-08 16:42:31 +03:00
Faris Armoush 970f7ed16f SP-1365 2025-04-08 16:42:12 +03:00
Faris Armoush 006bd4c8ae SP-1364/ Gateway Conditions Popup (for “If” section) 2025-04-08 16:20:22 +03:00
Faris Armoush b6752683fd Add Gateway dialog and functions integration 2025-04-08 15:08:53 +03:00
Faris Armoush b0846b2fef Add Gateway operational value classes and implementations 2025-04-08 15:08:33 +03:00
Faris Armoush 8a244dcd23 Created GatewayModel. 2025-04-08 15:08:15 +03:00
Faris Armoush 9d4395e204 Added gateway product type to IfContainer. 2025-04-08 15:08:01 +03:00
Faris Armoush 46f318734a Add SVG icons for active bell and gear 2025-04-08 15:06:17 +03:00
Faris Armoush 7accf1d4c8 SP-1366- Add Gateway Device Card to Devices Section. 2025-04-08 13:07:53 +03:00
Faris Armoush 973ae82bec Merge pull request #125 from SyncrowIOT/SP-1271-rework
SP-1271-rework
2025-04-06 11:59:46 +03:00
fkarmoush 22935f7007 SP-1271-rework 2025-03-27 14:52:26 +03:00
Faris Armoush 5bf5120883 Merge pull request #124 from SyncrowIOT/SP-1271-Fix-Deployment
SP-1271-Fix-Deployment
2025-03-27 13:45:59 +03:00
fkarmoush f307aaff9d Removed the usage of spacing property because the GitHub action doesnt support the version that has it, so instead opted for using Padding. 2025-03-27 11:08:57 +03:00
Faris Armoush aea18fb293 Merge pull request #123 from SyncrowIOT/SP-1271-FE-Remove-Community-Field-from-Device-Management-Screen
Sp 1271 fe remove community field from device management screen
2025-03-26 12:57:16 +03:00
fkarmoush 835dfe8785 Rename controller variables in DeviceSearchFilters to be private to control access control. 2025-03-26 12:40:25 +03:00
fkarmoush f670ae78aa Refactor device search filters layout for improved code organization and to remove any code duplication. 2025-03-26 12:39:51 +03:00
fkarmoush d3128a9c9c Refactor search button callback for improved readability 2025-03-26 12:37:03 +03:00
fkarmoush b65f172f9d Removed memory leak bug from DeviceSearchFilters widget. 2025-03-26 12:36:26 +03:00
fkarmoush dad18b77de Removed community filter field from DeviceSearchFilters. 2025-03-26 12:35:04 +03:00