267 Commits

Author SHA1 Message Date
e19200c059 Update DocumentTemplateInfo to set label width for improved layout consistency 2025-12-07 02:42:55 +00:00
8508442d2e Implement modal for adding new order items in PurchaseOrderInfo component
- Integrated NewOrderItem component within a modal to facilitate the addition of new order items.
- Managed modal visibility state with useState hook.
- Updated ObjectTable to display order items associated with the purchase order.
2025-12-07 02:42:50 +00:00
8945bb9a17 Update PartStockInfo to set label width for improved layout consistency 2025-12-07 02:42:44 +00:00
cd902d8f13 Add Order Items and Shipments to Inventory Sidebar and Update Purchase Order Info
- Enhanced InventorySidebar by adding new entries for Order Items and Shipments with corresponding icons and paths.
- Updated PurchaseOrderInfo to include a modal for adding new order items, integrating the NewOrderItem component and managing its visibility state.
- Adjusted label width in PartStockInfo and DocumentTemplateInfo for improved layout consistency.
2025-12-07 02:42:37 +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
8b481a9617 Add routes for OrderItems and Shipments in InventoryRoutes
- Introduced new routes for OrderItems and OrderItemInfo components.
- Added routes for Shipments and ShipmentInfo components to enhance inventory management functionality.
2025-12-07 02:41:31 +00:00
f24bc27e2c Add OrderItem and Shipment models to database schema
- Introduced OrderItem and Shipment models with associated properties and actions.
- Updated ObjectModels to include new models for better integration.
- Refactored existing models to remove unnecessary ID references and improve hyperlink support for related objects.
- Enhanced various models by removing deprecated fields and ensuring consistency in object references.
2025-12-07 02:41:17 +00:00
2f323181f5 Refactor form components to accept defaultValues prop for enhanced flexibility
- Updated NewFilamentStock, NewPartStock, NewPurchaseOrder, NewStockAudit, NewCourierService, NewCourier, NewDocumentPrinter, NewDocumentSize, NewDocumentTemplate, NewPart, NewProduct, NewTaxRate, NewTaxRecord, NewVendor, NewGCodeFile, NewJob, and NewPrinter components to accept a defaultValues prop.
- Merged defaultValues with existing default values in each component to allow for more customizable form initialization.
2025-12-07 02:40:32 +00:00
dbb6be8654 Enhance App.css with additional styles for Ant Design components
- Added styles for .ant-card, .ant-progress, .ant-collapse, and .ant-radio-group.
- Updated .ant-select and related classes for improved layout and appearance.
- Introduced new styles for object display tags to enhance visual consistency.
2025-12-07 02:39:53 +00:00
3673a7a1ec Add Order Items and Shipments components with associated icons and forms
- Introduced OrderItems and Shipments components for managing order items and shipments.
- Added NewOrderItem and NewShipment forms for creating new entries.
- Implemented ObjectTable for displaying lists in different view modes.
- Created SVG icons for OrderItem and Shipment.
- Removed deprecated OrderItemsIcon component.
2025-12-07 02:39: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
9f05bfd929 Enhanced ObjectDisplay component with spotlight data fetching and hyperlink support. Added props for showHyperlink and showSpotlight, and improved rendering logic for object names with optional popover tooltips. 2025-12-07 02:37:28 +00:00
863f0ad90c Added address to Vendor 2025-12-03 23:47:24 +00:00
13bbcbe50e Added tax rates, tax records and minor style improvements. 2025-12-03 23:35:30 +00:00
d0911c1166 Implemented server updates to printer controls. 2025-12-03 15:46:52 +00:00
6f46587f5e Added ref spotlight lookup. 2025-12-03 13:11:39 +00:00
7cf39ff112 Merge branch 'main' of https://git.tombutcher.work/farmcontrol/farmcontrol-ui 2025-12-03 12:45:59 +00:00
f80ab801e8 Enable hyperlink display in ObjectInfo components for improved navigation. 2025-12-03 12:45:52 +00:00
79565c3c9a Updated lock file. 2025-12-03 03:49:28 +00:00
198c857afa Added affinity design files lock. 2025-12-03 03:48:48 +00:00
81ba90f218 Remove package lock 2025-12-03 03:42:50 +00:00
8ad9a777a4 Merge branch 'main' of https://git.tombutcher.work/tom/farmcontrol-ui 2025-12-03 03:42:15 +00:00
5da5f1ce80 Added new designs 2025-12-03 03:41:26 +00:00
17a4a5abd5 Added purchase orders and couriers. 2025-12-03 03:40:00 +00:00
735826bdb9 Use wizard view for "new" windows. 2025-12-03 00:15:34 +00:00
f2bdb973d1 Fixed masterFilter being present. 2025-12-03 00:09:01 +00:00
10a4b33620 Group subjobs by job. 2025-12-03 00:08:43 +00:00
2e8f627c83 Updated object select to use better child handling with API mods. 2025-12-03 00:06:43 +00:00
05d7864da8 A lot of UI fixes updated packages etc. 2025-12-02 18:29:09 +00:00
15a9764762 More small macOS fixes. 2025-11-30 00:17:29 +00:00
5ac11dc59e Small macOS fix. 2025-11-30 00:17:13 +00:00
59632c3060 Set FilamentStockInfo component's disabled prop to true 2025-11-30 00:15:44 +00:00
ba1bba1a24 Add 'unconsumed' state to StateTag component with corresponding success status 2025-11-30 00:15:34 +00:00
d5d0040871 Added scroll box for custom scroll bars. 2025-11-30 00:13:52 +00:00
97f0c816ad Minor tweaks 2025-11-29 01:25:43 +00:00
8198f6a607 Increased border radius 2025-11-29 01:25:33 +00:00
2190da21ba Fixed auth retry 2025-11-29 01:25:24 +00:00
87a6198173 Now uses ApiContext 2025-11-29 01:25:13 +00:00
df85d99aaf Implemented DocumentPrinters and DocumentJobs 2025-11-29 01:24:57 +00:00
0594cf82cd Added more columns 2025-11-29 01:23:59 +00:00
986e5fcff5 Fixed update bug 2025-11-29 01:21:54 +00:00
11f75cab04 Fixed badge spacing 2025-11-29 01:21:38 +00:00
2eed3a518c Add CustomSelect component for enhanced selection functionality with option change handling 2025-11-29 01:21:27 +00:00
b288ce327f Update objectData prop to use combined data for improved rendering. 2025-11-29 01:21:19 +00:00
1e7697f1d5 Updated electron version. 2025-11-26 00:35:42 +00:00