22 Commits

Author SHA1 Message Date
ff61cd4f06 Refactor ObjectForm to enhance state management and activity handling
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Introduced a ref to track fetched objects, improving fetch logic clarity and preventing unnecessary updates.
- Updated event handlers for object updates and activity subscriptions to ensure they only trigger for the current object, enhancing performance and reducing potential errors.
- Consolidated state updates and notifications within useEffect hooks for better organization and efficiency.
2026-07-26 01:58:35 +01:00
78dba97107 Refactor ObjectForm to improve fetch logic and state management
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Removed the initialized state and replaced it with a ref to track fetched objects, enhancing clarity in the fetch condition.
- Updated the useEffect hook to streamline the fetch logic, ensuring it only triggers under the correct conditions.
- Reset form fields and activities upon fetching a new object, improving user experience during editing.
2026-07-26 01:53:39 +01:00
9956085e44 Refactor ObjectForm and ApiServerContext for improved activity handling
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Removed redundant calls to notifyActivityState in ObjectForm, consolidating activity state updates within useEffect hooks for better performance.
- Introduced resubscribeActivityListeners in ApiServerContext to manage activity subscriptions more effectively upon socket connection and page visibility changes.
- Enhanced activity event subscription management by utilizing a Set to track active subscriptions, improving clarity and reducing potential memory leaks.
2026-07-26 01:38:13 +01:00
0db2dff9fe Refactor ObjectForm condition check for clarity
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Updated the condition in ObjectForm to explicitly check for boolean true when verifying connection status, improving code readability and intent.
2026-07-26 01:01:49 +01:00
dcbf308988 Refactor dashboard components to replace LockIndicator with ActivityIndicator
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Updated various components to use ActivityIndicator instead of LockIndicator for better activity tracking.
- Adjusted layout spacing by changing Space component size from 'middle' to 'small' for improved UI consistency.
- Modified object form state to include activities instead of lock status, enhancing the user experience during editing.
2026-07-26 00:51:36 +01:00
b16cdd6e96 Enhance styling and functionality of dashboard components
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Added new CSS variables for padding in ScrollBox to improve layout.
- Updated ObjectForm to include console logs for debugging during editing cancellation.
- Refactored ObjectInfo to use mergeWith for better array handling in state updates.
- Enhanced ObjectProperty and ObjectTable components to support new props for better integration with tags.
- Improved TagsDisplay and TagsInput components for better tag management and display, including loading states and dynamic options fetching.
- Introduced getModelPropertyValues function in ApiServerContext for fetching model-specific property values, enhancing data handling capabilities.
2026-07-24 23:20:00 +01:00
7296ee73b8 Refactor ObjectForm component to adjust the order of merging form data, ensuring objectData takes precedence over value for improved data consistency during updates. 2026-07-04 22:03:08 +01:00
6d1946b91a Added missing SKUs. 2026-03-08 01:07:29 +00:00
aa6fe3c839 Enhance ObjectForm component with custom merge logic for array handling
- Introduced a custom mergeWith function to handle array replacements during state updates.
- Updated initial form data setting to include computed values while maintaining editing state.
- Refactored update event handler to utilize the new merge logic for improved data management.
2025-12-28 01:08:54 +00:00
7e1ec9f3ae Removed development logging. 2025-12-27 15:19:09 +00:00
ab56a3abd4 Add navigation after object deletion in ObjectForm component. 2025-12-27 13:49:13 +00:00
d7827ecb6d Implemented new message context. 2025-12-14 23:06:42 +00:00
bbadede777 Used computed on object save. 2025-12-13 21:05:47 +00:00
b955f42b88 Refactor ObjectForm component to improve computed value handling
- Introduced a working copy of currentData to facilitate sequential updates of computed values.
- Updated property processing logic to utilize workingData for accurate calculations.
- Removed unnecessary parameters in processProperty function for cleaner code.
- Enhanced dependency array in useEffect to include calculateComputedValues and model for better reactivity.
2025-12-07 02:41:55 +00:00
13bbcbe50e Added tax rates, tax records and minor style improvements. 2025-12-03 23:35:30 +00:00
17a4a5abd5 Added purchase orders and couriers. 2025-12-03 03:40:00 +00:00
05d7864da8 A lot of UI fixes updated packages etc. 2025-12-02 18:29:09 +00:00
986e5fcff5 Fixed update bug 2025-11-29 01:21:54 +00:00
e788eaba91 Refactor ObjectForm component to implement debounced validation and state updates, improving performance and reducing unnecessary re-renders. 2025-11-24 03:31:51 +00:00
48631c98c3 Refactor file handling and update API methods for improved file management. Renamed fetchObjectContent to fetchFileContent, updated related function calls, and enhanced file preview capabilities. Removed unused components and optimized imports. 2025-11-16 17:02:15 +00:00
f2e7959a00 Enhance ObjectForm component to include objectData in state changes; add useEffect for syncing objectData updates, improving form validation handling and state management. 2025-09-05 23:20:08 +01:00
eba1a87664 Refactor EditObjectForm to ObjectForm 2025-08-30 23:42:05 +01:00