feat: implement virtualized heatmap grid component with a Zustand store for managing grid data, filters, and draft product gamme changes.

This commit is contained in:
Michael committed 2026-03-06 15:15:11 +01:00
1 parent 38955ab02a
commit 1ba507da94
2 files changed
+13 -2

No files matched your search

@@ -179,7 +179,7 @@ export function HeatmapGrid({ onSelectionChange }: HeatmapGridProps) {
const { rows, filters, displayDensity } = useGridStore();
const [sorting, setSorting] = useState<SortingState>([]);
const [rowSelection, setRowSelection] = useState<RowSelectionState>({});
const [columnVisibility, setColumnVisibility] = useState({});
const { columnVisibility, setColumnVisibility } = useGridStore();
const [isMounted, setIsMounted] = useState(false);
const [portalContainer, setPortalContainer] = useState<HTMLElement | null>(null);
const tableContainerRef = useRef<HTMLDivElement>(null);