- Optimization and Edgecases

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-07-03 01:10:11 -04:00
parent 162d8bfffe
commit 6f2c8dba5a
6 changed files with 159 additions and 242 deletions

View File

@@ -63,7 +63,7 @@ export function ProductionBoardKanbanComponent({
}, [associationSettings]);
useEffect(() => {
const newBoardData = createBoardData(
const newBoardData = createFakeBoardData(
[...bodyshop.md_ro_statuses.production_statuses, ...(bodyshop.md_ro_statuses.additional_board_statuses || [])],
data,
filter
@@ -205,7 +205,7 @@ export function ProductionBoardKanbanComponent({
const Header = useCallback(
({ title }) => (
<div className="react-trello-column-header" style={{ backgroundColor: "#e3e3e3" }}>
<UnorderedListOutlined style={{ marginRight: "5px" }} /> {title}
<UnorderedListOutlined style={{ marginRight: "5px" }} /> {title.substring(0, 10)}
</div>
),
[]

View File

@@ -1,5 +1,5 @@
import { groupBy } from "lodash";
import fakeData from "./testData/board600.json";
import fakeData from "./testData/board1200.json";
const sortByParentId = (arr) => {
// return arr.reduce((accumulator, currentValue) => {