From 2cc9fa961e3873e9ca7625cdf10665681be2e8f9 Mon Sep 17 00:00:00 2001 From: Dave Date: Tue, 3 Feb 2026 14:34:42 -0500 Subject: [PATCH] feature/IO-3545-Production-Board-List-DND - Checkpoint --- ...n-list-columns.empassignment.component.jsx | 25 +++++----- .../production-list-table.component.jsx | 49 +++++++++++++------ ...uction-list-table.resizeable.component.jsx | 9 +--- 3 files changed, 48 insertions(+), 35 deletions(-) diff --git a/client/src/components/production-list-columns/production-list-columns.empassignment.component.jsx b/client/src/components/production-list-columns/production-list-columns.empassignment.component.jsx index d96d6f56d..c02f46fa6 100644 --- a/client/src/components/production-list-columns/production-list-columns.empassignment.component.jsx +++ b/client/src/components/production-list-columns/production-list-columns.empassignment.component.jsx @@ -94,29 +94,30 @@ export function ProductionListEmpAssignment({ insertAuditTrail, bodyshop, record const [visibility, setVisibility] = useState(false); const onChange = (e, option) => { - setAssignment({ ...assignment, employeeid: e, name: option.name }); + setAssignment({ ...assignment, employeeid: e, name: option.label }); }; + const employeeOptions = bodyshop.employees + .filter((emp) => emp.active) + .map((emp) => ({ + value: emp.id, + label: `${emp.first_name} ${emp.last_name}`, + name: `${emp.first_name} ${emp.last_name}` + })); + const popContent = ( + options={employeeOptions} + /> diff --git a/client/src/components/production-list-table/production-list-table.component.jsx b/client/src/components/production-list-table/production-list-table.component.jsx index 760ee0f0b..60a545534 100644 --- a/client/src/components/production-list-table/production-list-table.component.jsx +++ b/client/src/components/production-list-table/production-list-table.component.jsx @@ -43,7 +43,9 @@ function DraggableHeaderCell(props) { ...restProps.style, transform: CSS.Transform.toString(transform), transition, - opacity: isDragging ? 0.3 : 1 + opacity: isDragging ? 0.3 : 1, + userSelect: "none", + textAlign: "left" }; // If no columnKey, render as regular header @@ -237,35 +239,51 @@ export function ProductionListTable({ loading, data, refetch, bodyshop, technici }; const headerItem = (col) => { - const menu = { - onClick: removeColumn, - items: [ - { - key: col.key, - label: t("production.actions.removecolumn") - } - ] - }; + const menu = { onClick: removeColumn, items: [{ key: col.key, label: t("production.actions.removecolumn") }] }; return ( -
+
+ - {col.title} + + {col.title} +
); @@ -389,6 +407,7 @@ export function ProductionListTable({ loading, data, refetch, bodyshop, technici col.key)} strategy={horizontalListSortingStrategy}> { height={0} onResize={onResize} draggableOpts={{ enableUserSelectHack: false }} - handle={ - { - e.stopPropagation(); - }} - /> - } + handle={} >