UI improvements.
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good

This commit is contained in:
Tom Butcher 2026-03-08 02:27:42 +00:00
parent 7611d11655
commit bfce33c3d2
8 changed files with 13 additions and 14 deletions

View File

@ -83,7 +83,7 @@ const FilamentSkus = () => {
open={newFilamentSkuOpen} open={newFilamentSkuOpen}
styles={{ content: { paddingBottom: '24px' } }} styles={{ content: { paddingBottom: '24px' } }}
footer={null} footer={null}
width={600} width={700}
onCancel={() => { onCancel={() => {
setNewFilamentSkuOpen(false) setNewFilamentSkuOpen(false)
}} }}

View File

@ -63,7 +63,7 @@ const FilamentInfo = () => {
}, },
newFilamentSku: () => { newFilamentSku: () => {
setNewFilamentSkuOpen(true) setNewFilamentSkuOpen(true)
return false return true
}, },
edit: () => { edit: () => {
objectFormRef?.current?.startEditing?.() objectFormRef?.current?.startEditing?.()
@ -232,7 +232,7 @@ const FilamentInfo = () => {
open={newFilamentSkuOpen} open={newFilamentSkuOpen}
styles={{ content: { paddingBottom: '24px' } }} styles={{ content: { paddingBottom: '24px' } }}
footer={null} footer={null}
width={600} width={700}
onCancel={() => setNewFilamentSkuOpen(false)} onCancel={() => setNewFilamentSkuOpen(false)}
destroyOnClose destroyOnClose
> >

View File

@ -20,8 +20,7 @@ const PartSkus = () => {
const [viewMode, setViewMode] = useViewMode('partSkus') const [viewMode, setViewMode] = useViewMode('partSkus')
const [columnVisibility, setColumnVisibility] = const [columnVisibility, setColumnVisibility] = useColumnVisibility('partSku')
useColumnVisibility('partSku')
const actionItems = { const actionItems = {
items: [ items: [
@ -83,7 +82,7 @@ const PartSkus = () => {
open={newPartSkuOpen} open={newPartSkuOpen}
styles={{ content: { paddingBottom: '24px' } }} styles={{ content: { paddingBottom: '24px' } }}
footer={null} footer={null}
width={600} width={700}
onCancel={() => { onCancel={() => {
setNewPartSkuOpen(false) setNewPartSkuOpen(false)
}} }}

View File

@ -51,7 +51,7 @@ const PartInfo = () => {
}, },
newPartSku: () => { newPartSku: () => {
setNewPartSkuOpen(true) setNewPartSkuOpen(true)
return false return true
}, },
edit: () => { edit: () => {
objectFormRef?.current?.startEditing?.() objectFormRef?.current?.startEditing?.()
@ -147,7 +147,9 @@ const PartInfo = () => {
title='Part Information' title='Part Information'
icon={<InfoCircleIcon />} icon={<InfoCircleIcon />}
active={collapseState.info} active={collapseState.info}
onToggle={(expanded) => updateCollapseState('info', expanded)} onToggle={(expanded) =>
updateCollapseState('info', expanded)
}
collapseKey='info' collapseKey='info'
> >
<ObjectInfo <ObjectInfo
@ -184,7 +186,7 @@ const PartInfo = () => {
open={newPartSkuOpen} open={newPartSkuOpen}
styles={{ content: { paddingBottom: '24px' } }} styles={{ content: { paddingBottom: '24px' } }}
footer={null} footer={null}
width={600} width={700}
onCancel={() => setNewPartSkuOpen(false)} onCancel={() => setNewPartSkuOpen(false)}
destroyOnClose destroyOnClose
> >

View File

@ -83,7 +83,7 @@ const ProductSkus = () => {
open={newProductSkuOpen} open={newProductSkuOpen}
styles={{ content: { paddingBottom: '24px' } }} styles={{ content: { paddingBottom: '24px' } }}
footer={null} footer={null}
width={600} width={700}
onCancel={() => { onCancel={() => {
setNewProductSkuOpen(false) setNewProductSkuOpen(false)
}} }}

View File

@ -52,7 +52,7 @@ const ProductInfo = () => {
}, },
newProductSku: () => { newProductSku: () => {
setNewProductSkuOpen(true) setNewProductSkuOpen(true)
return false return true
}, },
edit: () => { edit: () => {
objectFormRef?.current?.startEditing?.() objectFormRef?.current?.startEditing?.()
@ -190,7 +190,7 @@ const ProductInfo = () => {
open={newProductSkuOpen} open={newProductSkuOpen}
styles={{ content: { paddingBottom: '24px' } }} styles={{ content: { paddingBottom: '24px' } }}
footer={null} footer={null}
width={600} width={700}
onCancel={() => setNewProductSkuOpen(false)} onCancel={() => setNewProductSkuOpen(false)}
destroyOnClose destroyOnClose
> >

View File

@ -74,7 +74,6 @@ export const FilamentSku = {
'_reference', '_reference',
'name', 'name',
'filament', 'filament',
'barcode', 'barcode',
'color', 'color',
'overrideCost', 'overrideCost',

View File

@ -73,7 +73,6 @@ export const PartSku = {
'_reference', '_reference',
'name', 'name',
'part', 'part',
'barcode', 'barcode',
'overrideCost', 'overrideCost',
'cost', 'cost',