187 Commits

Author SHA1 Message Date
545cc0c526 Refactor ObjectDisplay component to enhance ID validation and handling. Introduced utility functions for ID extraction and validation, ensuring proper object hydration and subscription management. Updated related logic to improve robustness against invalid IDs. 2026-03-06 23:43:15 +00:00
e4255443a0 New number calculator functionality.
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
2026-03-06 23:38:30 +00:00
8150372fda Improved export button ui.
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
2026-03-06 21:13:42 +00:00
1558e93b63 Improved UI for export options.
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
2026-03-03 01:20:22 +00:00
4a03b7bfd4 Added excel support.
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
2026-03-03 01:01:31 +00:00
1e2adb2b28 Implemented multiple app passwords.
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
2026-03-02 01:58:34 +00:00
7ea5eaf1f5 Add export functionality with OData, Excel, and CSV options; introduce new icons and components for export buttons. 2026-03-02 00:53:43 +00:00
9470adbb8a Improved notifications.
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
2026-03-01 19:21:10 +00:00
96f7713f4d Implemented emai notifications. 2026-03-01 16:55:09 +00:00
2622fae555 Implemented notifications.
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
2026-03-01 01:42:27 +00:00
a80b266fc7 Increased border radius for modals. 2026-02-28 18:50:56 +00:00
67b567f710 Fixed is skeleton bug
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
2026-01-04 20:27:57 +00:00
2fd4870d21 Enhance ObjectProperty component to support size prop for improved layout control
- Added `size` prop to ObjectProperty component for better customization of input elements.
- Updated relevant instances in the component to utilize the new `size` prop, ensuring consistent styling across different usages.
2025-12-28 02:09:43 +00:00
0bf16d844e Refactor TimeDisplay component to improve time difference calculation
- Updated the time difference logic to handle both past and future dates more accurately.
- Simplified the calculation process by introducing base and compare dates.
- Enhanced the output format to include "in" for future dates and improved readability of time strings.
2025-12-28 01:09:11 +00:00
cefe77bc0e Enhance ObjectProperty component to support conditional input rendering
- Added `useFormItem` prop to control input rendering behavior.
- Refactored input rendering logic to streamline component structure and improve maintainability.
- Updated various input types to utilize the new `inputProps` for consistent handling of properties.
2025-12-28 01:09:02 +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
4bd9acdc11 Refactor ObjectChildTable component to enhance editing functionality
- Removed unused formListName prop and related logic for cleaner code.
- Introduced resolveChangeValue function to streamline value handling during edits.
- Updated cell rendering to include a new handleCellChange function for better state management.
- Simplified the component structure by eliminating unnecessary Form.List integration.
2025-12-28 01:08:46 +00: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
9fb884638f Add ActionsIcon component and corresponding SVG icon
- Introduced a new ActionsIcon component that utilizes an SVG for rendering.
- Updated ObjectTable to display the ActionsIcon in the actions column when applicable.
- Added the SVG file for the ActionsIcon to the assets/icons directory.
2025-12-27 21:22:44 +00:00
0dfb22b5cf Update StateTag component to include 'confirmed' status with purple color coding 2025-12-27 20:51:53 +00:00
ca7ab55d1e Add sales module with client and sales order management features
- Introduced new SVG icons for client and sales order.
- Implemented SalesRoutes for navigation.
- Created components for managing clients and sales orders, including overview, client info, and order details.
- Added functionality for creating, editing, and canceling sales orders.
- Integrated sales statistics and actions within the dashboard layout.
2025-12-27 20:46:45 +00:00
24502dddfc Fixed charts lazy loading. 2025-12-27 17:25:04 +00:00
f462717bb3 Replaced moment with dayjs 2025-12-27 16:16:11 +00:00
7e1ec9f3ae Removed development logging. 2025-12-27 15:19:09 +00:00
f6986a45cd Fixed all warnings. 2025-12-27 15:06:02 +00:00
57e90e2b6f Add additional states to StateTag component
- Introduced new states: 'sent', 'acknowledged', 'ordered', 'received', 'invoiced', 'planned', 'partiallyShipped', 'shipped', 'delivered', and 'paid' with corresponding badge statuses and texts.
- Updated badge properties to handle custom colors for non-standard statuses.
2025-12-27 13:51:10 +00:00
50bc816e97 Added edit mode to tables. 2025-12-27 13:50:30 +00:00
38cafdb4a4 Bug fix: re-render tree when type, masterFiter etc changes. 2025-12-27 13:50:17 +00:00
556b16a5dc Add fixedNumber prop to ObjectProperty component for number formatting. 2025-12-27 13:49:26 +00:00
ab56a3abd4 Add navigation after object deletion in ObjectForm component. 2025-12-27 13:49:13 +00:00
100bfb69dc Initialize objectData state with defaultValues and set _isEditing to true in NewObjectForm component 2025-12-27 13:48:55 +00:00
a7cd374375 Refactor StatsDisplay component to use Tag and Badge for visual indicators
- Replaced Alert with Tag for displaying stat colors.
- Updated color mapping function to return Tag colors instead of Alert types.
- Enhanced layout and styling for better visual representation of stats.
- Introduced Badge component for status indication alongside stat labels.
2025-12-27 13:47:19 +00:00
b3c5357064 Enhance color theme in HistoryDisplay and ThemeContext
- Updated color mapping in HistoryDisplay to include new colors: cyan, pink, purple, magenta, and volcano.
- Added corresponding color definitions in ThemeContext for improved theme customization.
2025-12-27 13:46:58 +00:00
0a780b6d85 Add MessageDialogView component for displaying messages. 2025-12-27 13:46:26 +00:00
cabc68c932 Add finance dashboard components and routes
- Introduced FinanceOverview, FinanceSidebar, and Invoices components for the finance dashboard.
- Added InvoiceInfo and NewInvoice components for managing invoices.
- Created SVG icons for finance and invoice.
- Updated routing to include finance-related paths.
- Enhanced DashboardBreadcrumb and DashboardNavigation to support finance navigation.
- Defined Invoice model with actions and properties for invoice management.
2025-12-27 13:45:26 +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
c3b695b76c Updated NetGrossDisplay component to parse net and gross values as floats for accurate numerical representation. 2025-12-13 21:05:20 +00:00
b7e81e2caa Enhanced ObjectSelect component to handle array inputs by normalizing values to a string of IDs, improving identity detection for in-place updates. 2025-12-09 02:10:09 +00:00
3d17a08a71 Enhanced HistoryDisplay component with custom date range selection and improved loading states. 2025-12-09 02:09:48 +00:00
d3a3aafb04 Change to now go to overview page by default. 2025-12-08 23:02:50 +00:00
98ca73791f Overhauled printer overview page (now working, with charts and realtime updates to current state) 2025-12-08 23:00:58 +00:00
aaeeb4013e Fixed infinite loop 2025-12-08 22:59:35 +00:00
aad5326c7e Update ObjectTypeSelect component to adjust label positioning for improved display
- Modified the label rendering in ObjectTypeSelect to include a style adjustment, positioning the ObjectTypeDisplay component slightly higher for better visual alignment.
2025-12-07 02:42:26 +00:00
f7532338b6 Refactor ObjectTable component to utilize refs for table filter and sorter management
- Replaced state management for tableFilter and tableSorter with refs for improved performance and reduced re-renders.
- Introduced tableData state to manage flattened data for display.
- Updated data fetching logic to reference current filter and sorter values from refs.
- Enhanced useEffect to flatten pages array for table display.
2025-12-07 02:42:18 +00:00
2879b8648d Enhance ObjectSelect component with value identity tracking and loading optimizations
- Introduced valueRef and prevValueIdentityRef to track changes in selected object values.
- Added getValueIdentity function to normalize object values for comparison.
- Updated treeSelectValue handling to prevent unnecessary fetches and improve performance.
- Enhanced useEffect dependencies for accurate value change detection and logging.
2025-12-07 02:42:10 +00:00
c10daf008e Enhance ObjectProperty component with readOnly handling and reference case support
- Added functionality to process readOnly as a function for dynamic object data handling.
- Updated rendering logic to include a new 'reference' case, allowing for the display of ID references with appropriate components.
- Improved ObjectDisplay rendering by passing showHyperlink prop for enhanced interactivity.
2025-12-07 02:42:02 +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
6da485bc8f Enhance IdDisplay component with reference and plainCode props
- Added reference prop to allow custom display of IDs.
- Introduced plainCode prop to toggle between code and text display styles.
- Updated rendering logic to accommodate new props for improved flexibility in ID presentation.
2025-12-07 02:41:45 +00:00
4995d37aa2 Removed console.log statements from various components to clean up the code and improve performance. 2025-12-07 02:38:39 +00:00