From 55a3332938403f18f80184ff1181c37d801c3d15 Mon Sep 17 00:00:00 2001 From: tsindt Date: Wed, 12 Aug 2026 19:01:54 +0200 Subject: [PATCH] ProductGroupTreeView --- .../src/components/ProductGroupTreeView.tsx | 23 +++++++++++++------ .../src/components/PropertyTypesTableView.tsx | 2 +- .../material-editor/src/pages/ProductPage.tsx | 4 ++-- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/buildtime/client/material-editor/src/components/ProductGroupTreeView.tsx b/buildtime/client/material-editor/src/components/ProductGroupTreeView.tsx index a2b1ea305..eb66302b4 100644 --- a/buildtime/client/material-editor/src/components/ProductGroupTreeView.tsx +++ b/buildtime/client/material-editor/src/components/ProductGroupTreeView.tsx @@ -1,6 +1,9 @@ +import Paper from '@mui/material/Paper'; import type { ProductGroup } from '../data/productGroup'; import { SimpleTreeView } from '@mui/x-tree-view/SimpleTreeView'; import { TreeItem } from '@mui/x-tree-view/TreeItem'; +import Typography from '@mui/material/Typography'; +import Divider from '@mui/material/Divider'; type ProductGroupTreeViewProps = { ProductGroups?: ProductGroup[]; @@ -16,12 +19,18 @@ export default function ProductGroupTreeView({ ProductGroups = [] }: ProductGrou ); - return ( - - {ProductGroups.map((productGroup) => renderTree(productGroup))} - + return ( + + + Product Groups: + + + + {ProductGroups.map((productGroup) => renderTree(productGroup))} + + ); } diff --git a/buildtime/client/material-editor/src/components/PropertyTypesTableView.tsx b/buildtime/client/material-editor/src/components/PropertyTypesTableView.tsx index 785fca697..18b4c0871 100644 --- a/buildtime/client/material-editor/src/components/PropertyTypesTableView.tsx +++ b/buildtime/client/material-editor/src/components/PropertyTypesTableView.tsx @@ -130,7 +130,7 @@ const PropertyTypesTableView = ({ selectedRow }: { selectedRow: number }) => {
{errorMessage !== '' && {errorMessage}} { return ( - Property Type Management + Product Management