feature/IO-3255-simplified-parts-management - Simplified Parts print center stacks on top of each other, not beside each other

This commit is contained in:
Dave
2025-08-25 11:33:12 -04:00
parent b6dc7a4d92
commit e2f1758378

View File

@@ -37,7 +37,7 @@ export function PrintCenterJobsPartsComponent({ printCenterModal, bodyshop, tech
.filter( .filter(
(temp) => (temp) =>
(!temp.regions || (!temp.regions ||
(temp.regions && temp.regions[bodyshop.region_config]) || temp.regions?.[bodyshop.region_config] ||
(temp.regions && bodyshop.region_config.includes(Object.keys(temp.regions)) === true)) && (temp.regions && bodyshop.region_config.includes(Object.keys(temp.regions)) === true)) &&
(!temp.dms || temp.dms === false) (!temp.dms || temp.dms === false)
) )
@@ -46,7 +46,7 @@ export function PrintCenterJobsPartsComponent({ printCenterModal, bodyshop, tech
.filter( .filter(
(temp) => (temp) =>
!temp.regions || !temp.regions ||
(temp.regions && temp.regions[bodyshop.region_config]) || temp.regions?.[bodyshop.region_config] ||
(temp.regions && bodyshop.region_config.includes(Object.keys(temp.regions)) === true) (temp.regions && bodyshop.region_config.includes(Object.keys(temp.regions)) === true)
); );
@@ -82,7 +82,7 @@ export function PrintCenterJobsPartsComponent({ printCenterModal, bodyshop, tech
variables: { id: jobId } variables: { id: jobId }
}, },
{ {
to: job && job.ownr_ea, to: job?.ownr_ea,
subject: cards.find((c) => c.key === key)?.subject subject: cards.find((c) => c.key === key)?.subject
}, },
"e", "e",
@@ -129,7 +129,7 @@ export function PrintCenterJobsPartsComponent({ printCenterModal, bodyshop, tech
const columns = `repeat(${actions.length}, 1fr)`; const columns = `repeat(${actions.length}, 1fr)`;
return ( return (
<Col key={item.key} xs={24} sm={12}> <Col key={item.key} xs={24} sm={24} md={24} lg={24} xl={24}>
<Card hoverable style={{ minHeight: 100 }}> <Card hoverable style={{ minHeight: 100 }}>
<div style={{ display: "flex", alignItems: "center", gap: 12 }}> <div style={{ display: "flex", alignItems: "center", gap: 12 }}>
<div style={{ flex: "1 1 70%", minWidth: 0 }}> <div style={{ flex: "1 1 70%", minWidth: 0 }}>