19 Commits

Author SHA1 Message Date
a1697fe0fd Refactor NewObjectForm for Improved Initialization and State Management
- Updated the form initialization logic to ensure it accurately reflects the latest default values and computed entries.
- Enhanced the handling of form state synchronization with object data, ensuring consistency during edits.
- Improved validation and reset logic to maintain form integrity when default values change.
- Streamlined the application of computed values to enhance clarity and maintainability of the component.
2026-09-06 18:18:53 +01:00
2feba8b3cc Enhance NewObjectButtons, NewObjectForm, and related components with improved loading and disabled state handling
- Updated NewObjectButtons to disable controls based on loading state and current step.
- Refactored NewObjectForm to integrate computed entries calculation and manage loading state more effectively.
- Enhanced ObjectProperty and WizardView components to respect the disabled state during form interactions.
- Introduced new utility functions for calculating model computed entries, improving data handling and clarity.
2026-09-01 17:11:07 +01:00
4b03caff5c Refactor Object Creation and Update Logic in NewObjectForm and ObjectForm
- Enhanced the object creation and update processes by integrating the stripNestedObjectProperties utility function, ensuring cleaner payloads are sent to the createObject and updateObject functions.
- Updated the import statements in both NewObjectForm and ObjectForm to include the new utility function, improving data management and consistency across forms.
2026-08-25 21:28:55 +01:00
e0a5ff3cf8 Refactor Product Stock Components and Update Property Names
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Renamed 'partStocks' to 'partStockList' in NewProductStock and ProductStockInfo components for consistency and clarity.
- Updated visible properties and object data handling to reflect the new naming convention.
- Refactored utility functions in NewObjectForm and ObjectForm to utilize a new mergeFormData function for improved data management.
- Enhanced ObjectInfo and ObjectProperty components by removing unnecessary state management and ensuring proper data flow.
- Adjusted layout properties in ObjectList and ObjectSelect components for better responsiveness and usability.
2026-08-24 22:40:11 +01:00
c99227816e Refactor Object Form and Child Table for Improved Data Handling and Computed Values Management
- Introduced applyComputedEntries function to streamline the merging of computed entries with existing object data, enhancing clarity and maintainability.
- Updated NewObjectForm and ObjectForm components to utilize applyComputedEntries for setting initial form data and computed values, improving data handling consistency.
- Refactored ObjectChildTable to ensure proper handling of value props and fallback mechanisms, enhancing user experience during editing.
- Removed unused DeleteObjectModal from ObjectForm, simplifying the component structure.
2026-08-22 21:01:50 +01:00
de1bd53f53 Add User Groups and Permission Settings Management Components
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Introduced UserGroups and PermissionSettings components for managing user groups and permission settings.
- Implemented new icons for user groups and permission settings, enhancing visual representation in the dashboard.
- Updated routing and sidebar configuration to include new management sections for user groups and permission settings.
- Enhanced existing components with loading states and improved styling for better user experience.
- Refactored related components to ensure consistency in naming and functionality across the application.
2026-08-20 15:04:50 +01:00
fb9454d8e0 Refactor Stock Transfers and Management Components
- Adjusted width of Stock Transfers modal for better UI consistency.
- Enhanced New Stock Transfer form with default transfer name generation and improved validation handling.
- Added Product Categories to Management Sidebar and updated routing for better navigation.
- Implemented delete functionality in Host Info component.
- Improved User Info layout for mobile responsiveness and added ObjectProperty component for better data display.
- Updated FileUpload and FileList components to support minimal display mode.
- Enhanced ObjectTable with subscription filtering and improved rendering logic.
- Added new properties and filters to Stock Transfer and Product models for better data management.
2026-06-14 23:51:45 +01:00
b38af41929 Add form validation to NewObjectForm component
- Implemented validation for form fields in the NewObjectForm component.
- Added logic to set form validity state based on validation results.
2025-12-28 01:08:35 +00:00
100bfb69dc Initialize objectData state with defaultValues and set _isEditing to true in NewObjectForm component 2025-12-27 13:48:55 +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
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
1f85145b67 Refactor NewObjectForm to use merge for setting object data, ensuring computed values are correctly integrated with previous state. 2025-11-17 18:47:09 +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
204a881dfa Refactor object data merging in NewObjectForm to use lodash's merge for improved state management 2025-09-05 23:15:42 +01:00
4c3d37a7d0 Migration to Vite. 2025-08-22 20:28:50 +01:00
9ba65075be New flag display, updated old components to use model system. Implemented some inventory features. 2025-07-12 20:14:40 +01:00
3c2d3ec858 Refactored management components to enhance data handling and UI consistency. Integrated ObjectTable for audit logs across various entities, including Parts, Products, and Users. Updated column visibility management and removed unused imports for cleaner code. Improved error handling in API interactions and streamlined component structures for better maintainability. 2025-07-07 00:30:38 +01:00