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}
styles={{ content: { paddingBottom: '24px' } }}
footer={null}
width={600}
width={700}
onCancel={() => {
setNewFilamentSkuOpen(false)
}}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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