From 4254f19cffe46684518e8a3ba6ad9f2bf28b4fa0 Mon Sep 17 00:00:00 2001 From: Pavlo Strunkin Date: Fri, 11 Aug 2023 16:57:09 +0300 Subject: [PATCH 1/2] fixes StatusFilterOperators fixed duplicates TestRunList fixed tags BuildList fixed style --- src/components/BuildList/index.tsx | 1 + src/components/TestRunList/StatusFilterOperators.tsx | 4 +++- src/components/TestRunList/index.tsx | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/BuildList/index.tsx b/src/components/BuildList/index.tsx index ff63a6d9..7e7acff0 100644 --- a/src/components/BuildList/index.tsx +++ b/src/components/BuildList/index.tsx @@ -44,6 +44,7 @@ const useStyles = makeStyles(() => visibility: "hidden", }, listItem: { + paddingRight: "48px", "&:hover $listItemSecondaryAction": { visibility: "inherit", }, diff --git a/src/components/TestRunList/StatusFilterOperators.tsx b/src/components/TestRunList/StatusFilterOperators.tsx index 120320a7..46af0a49 100644 --- a/src/components/TestRunList/StatusFilterOperators.tsx +++ b/src/components/TestRunList/StatusFilterOperators.tsx @@ -26,7 +26,9 @@ const StatusInputComponent = ({ item, applyValue }: GridFilterInputValueProps) = }); }; - const filterOptions: TestStatus[] = testRuns.map((item: TestRun) => item.status); + const filterOptions: Array = Array.from( + new Set(testRuns.map((item) => item.status)), + ); return ( diff --git a/src/components/TestRunList/index.tsx b/src/components/TestRunList/index.tsx index 844c9c87..3f3e8d58 100644 --- a/src/components/TestRunList/index.tsx +++ b/src/components/TestRunList/index.tsx @@ -57,7 +57,7 @@ const columnsDef: GridColDef[] = [ }, renderCell: (params: GridCellParams) => ( - {params.row["tags"] + {params.formattedValue ?.toString() .split(";") .map( From 29799eb89470c0b768236947ed92c6667f0a8281 Mon Sep 17 00:00:00 2001 From: Pavlo Strunkin Date: Fri, 11 Aug 2023 17:14:23 +0300 Subject: [PATCH 2/2] TestDetailsModal style fixed --- src/components/BuildList/index.tsx | 2 +- src/components/TestDetailsDialog/TestDetailsModal.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/BuildList/index.tsx b/src/components/BuildList/index.tsx index 7e7acff0..0a703606 100644 --- a/src/components/BuildList/index.tsx +++ b/src/components/BuildList/index.tsx @@ -44,7 +44,7 @@ const useStyles = makeStyles(() => visibility: "hidden", }, listItem: { - paddingRight: "48px", + paddingRight: 48, "&:hover $listItemSecondaryAction": { visibility: "inherit", }, diff --git a/src/components/TestDetailsDialog/TestDetailsModal.tsx b/src/components/TestDetailsDialog/TestDetailsModal.tsx index 037a75c6..bc3e1ac8 100644 --- a/src/components/TestDetailsDialog/TestDetailsModal.tsx +++ b/src/components/TestDetailsDialog/TestDetailsModal.tsx @@ -59,6 +59,7 @@ const useStyles = makeStyles(() => ({ textAlign: "left", background: "#efefef", paddingLeft: 8, + paddingBottom: 8, }, footer: { background: "#efefef", @@ -465,6 +466,7 @@ const TestDetailsModal: React.FunctionComponent = ({ const baselinePanel = () => (