From 65bf81b349393ec97d3617753f2789e63ba16e99 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Mon, 18 Apr 2022 14:48:56 -0700 Subject: [PATCH] IO-1829 Add additional columns to visual board. --- bodyshop_translations.babel | 21 +++++++++++++++++++ .../production-board-kanban.component.jsx | 13 +++++------- .../shop-info.rostatus.component.jsx | 19 +++++++++++++++++ client/src/translations/en_us/common.json | 1 + client/src/translations/es/common.json | 1 + client/src/translations/fr/common.json | 1 + 6 files changed, 48 insertions(+), 8 deletions(-) diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index 986564e97..e0e71ac6e 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -7650,6 +7650,27 @@ + + additional_board_statuses + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + color false diff --git a/client/src/components/production-board-kanban/production-board-kanban.component.jsx b/client/src/components/production-board-kanban/production-board-kanban.component.jsx index bfa91ec80..1abfbecbb 100644 --- a/client/src/components/production-board-kanban/production-board-kanban.component.jsx +++ b/client/src/components/production-board-kanban/production-board-kanban.component.jsx @@ -51,7 +51,10 @@ export function ProductionBoardKanbanComponent({ const { t } = useTranslation(); useEffect(() => { const boardData = createBoardData( - bodyshop.md_ro_statuses.production_statuses, + [ + ...bodyshop.md_ro_statuses.production_statuses, + ...(bodyshop.md_ro_statuses.additional_board_statuses || []), + ], data, filter ); @@ -61,13 +64,7 @@ export function ProductionBoardKanbanComponent({ }); setBoardLanes(boardData); setIsMoving(false); - }, [ - data, - setBoardLanes, - setIsMoving, - bodyshop.md_ro_statuses.production_statuses, - filter, - ]); + }, [data, setBoardLanes, setIsMoving, bodyshop.md_ro_statuses, filter]); const client = useApolloClient(); diff --git a/client/src/components/shop-info/shop-info.rostatus.component.jsx b/client/src/components/shop-info/shop-info.rostatus.component.jsx index ae0ff9016..10dd0c926 100644 --- a/client/src/components/shop-info/shop-info.rostatus.component.jsx +++ b/client/src/components/shop-info/shop-info.rostatus.component.jsx @@ -153,6 +153,25 @@ export function ShopInfoROStatusComponent({ bodyshop, form }) { ))} + + +