Commit Graph

107 Commits

Author SHA1 Message Date
c46cfb48a8 refactor: extract IF and THEN sections into separate methods for better readability 2025-04-17 14:38:04 +03:00
a0dd128557 matched design of Function and action in SaveRoutineHelper.showSaveRoutineDialog 2025-04-17 14:30:30 +03:00
e0be44a507 Merged with dev 2025-04-16 04:00:07 +03:00
d4a7dd5854 Fixed design issues, added tag and location to the save dialog 2025-04-16 03:46:10 +03:00
50eb890d18 Merge pull request #142 from SyncrowIOT/SP-1278-FE-Allow-Simple-Edit-Delete
Added Ceiling Presence Sensor Device To Routine
2025-04-15 16:56:05 +03:00
4989a0e95c removed the use of Flexible that was causing an exception. 2025-04-15 16:24:46 +03:00
7dcaa20da1 Enhanced the code and look of DialogFooter buttons. 2025-04-15 13:06:30 +03:00
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
be0533645e Refactor dialog header text assignment in CeilingSensorDialog for clarity and readability. 2025-04-15 11:20:15 +03:00
254e03e3c7 Add mapping for 'sports_para' in slider range function 2025-04-15 11:19:58 +03:00
db1f29e2b2 Merged with dev 2025-04-15 11:18:43 +03:00
dba89027e3 Updated the if statement for the tag and the location 2025-04-15 11:09:48 +03:00
6bea4c2f4a Add mappings for moving_range and presence_range in slider helpers 2025-04-15 10:34:05 +03:00
e2ec986bb9 Refactor mappable stepped functions to a static constant for improved readability and maintainability 2025-04-15 10:03:47 +03:00
ceb1e1d23a Remove TODO comments. 2025-04-15 10:03:37 +03:00
ee12980b47 Fix value parsing in CpsDialogSliderSelector to ensure two decimal precision 2025-04-15 10:03:21 +03:00
4849bb41ba Added function to single card, included tag and location to cards 2025-04-15 02:13:00 +03:00
ebcd89d2a5 Refactor ceiling sensor functions and update slider helper mappings for improved value handling 2025-04-14 16:24:50 +03:00
1493e35f6a removed unused method. 2025-04-14 14:35:24 +03:00
f19cc616be moved CpsSliderHelpers to its own file. 2025-04-14 14:32:49 +03:00
06383018b9 refactored helpers into a helper class to release some complexity out of the widget. 2025-04-14 14:32:22 +03:00
9e3a78f6b7 Update dialog header to reflect sensor condition type dynamically 2025-04-14 12:10:42 +03:00
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
1023170788 Sort communities in create new routine dropdown. 2025-04-14 11:25:36 +03:00
9a2687d4c5 added some comments for clarity about how we should send the data to BE. 2025-04-14 11:13:27 +03:00
9bf37243a6 remove unused code and make a limitation for the nobody time picker 2025-04-13 14:55:55 +03:00
11feaf7c87 passed correct operation name to onSliderChanged and onConditionChanged. in CpsDialogSliderSelector`. 2025-04-13 11:10:51 +03:00
36e88d033b Refactor SliderValueSelector layout for improved readability and maintainability 2025-04-13 10:56:19 +03:00
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
dcbca64814 Fix spacing in ValueDisplay text output for improved readability 2025-04-13 10:16:20 +03:00
c62e8b3f15 Update _displayText method to format values with two decimal places for improved precision 2025-04-13 10:14:35 +03:00
60a1a9ad6f Add dividendOfRange parameter to FunctionSlider and related components for improved range handling 2025-04-13 10:09:39 +03:00
828db5d5e4 Refactor CpsDialogSliderSelector to improve value parsing and formatting in _displayText method 2025-04-13 09:57:45 +03:00
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
49439816d5 Update SliderValueSelector to improve text styling for unit and range labels 2025-04-10 16:43:33 +03:00
a5d26d04eb Remove unused variables from CeilingSensorDialog to streamline state management 2025-04-10 16:35:19 +03:00
74046c5aed Refactor SliderValueSelector and ValueDisplay to include unit handling and improve UI consistency across sensor dialogs. 2025-04-10 16:22:02 +03:00
fadb23d631 Refactor SliderValueSelector layout by removing unnecessary SizedBox and adjusting spacing for improved UI consistency. 2025-04-10 15:26:36 +03:00
cf103d5a7c Add CpsDialogSliderSelector for enhanced slider functionality and integrate with CeilingSensorDialog 2025-04-10 15:25:29 +03:00
551779c33a moved widgets to their own files. 2025-04-10 14:41:58 +03:00
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
9ca6fb8640 Remove unnecessary extension methods for operational value codes in CPS functions 2025-04-10 14:03:44 +03:00
796409600e Update operation codes for CpsPresenceJudgementThresholdFunction and CpsMotionAmplitudeTriggerThresholdFunction. 2025-04-10 14:03:08 +03:00
75b2f96428 added spaces in operational value descriptions to match figma design. 2025-04-10 11:27:02 +03:00
7c68b90aef Refactor CPS functions to implement operational value generation with min, max, and step parameters. 2025-04-10 10:59:43 +03:00
729080ec4e Refactor CPS function codes to use helper methods for consistency and clarity 2025-04-10 10:11:12 +03:00
627ff4e929 Update operation codes and values for various CPS functions. 2025-04-09 17:00:21 +03:00
6d612398ed Update operation names in CpsFunctions and add toggle codes to CeilingSensorHelper 2025-04-09 16:41:03 +03:00
3f565788d5 Refactor CeilingSensorDialog to be a StatefulWidget. 2025-04-09 15:42:22 +03:00
c1d9846899 Enhance CeilingSensorHelper: Add deviceName and deviceId parameters to sensor functions 2025-04-09 15:41:21 +03:00