Skip to content

Commit

Permalink
Update columns.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
sadarunnisa-sf authored Dec 25, 2024
1 parent 6d449aa commit 1de6bdb
Showing 1 changed file with 30 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,35 +162,37 @@ export const columnFactories = Object.freeze({
},
};
},

// @SonarIgnoreStart
// createTestColumn(): TableColumn<Project> {
// return {
// title: 'Tests',
// sorting: false,
// render: (row: Partial<Project>) => {
// // @SonarIgnoreStart
// return (
// <>
// <Typography paragraph>
// {row.lastBuild?.tests && (
// <Link to={row.lastBuild?.tests.testUrl ?? ''}>
// {row.lastBuild?.tests.passed} / {row.lastBuild?.tests.total}{' '}
// passed
// <FailSkippedWidget
// skipped={row.lastBuild?.tests.skipped}
// failed={row.lastBuild?.tests.failed}
// />
// </Link>
// )}

createTestColumn(): TableColumn<Project> {
return {
title: 'Tests',
sorting: false,
render: (row: Partial<Project>) => {
// @SonarIgnoreStart
return (
<>
<Typography paragraph>
{row.lastBuild?.tests && (
<Link to={row.lastBuild?.tests.testUrl ?? ''}>
{row.lastBuild?.tests.passed} / {row.lastBuild?.tests.total}{' '}
passed
<FailSkippedWidget
skipped={row.lastBuild?.tests.skipped}
failed={row.lastBuild?.tests.failed}
/>
</Link>
)}

{!row.lastBuild?.tests && 'n/a'}
</Typography>
</>
);
// @SonarIgnoreEnd
},
};
},
// {!row.lastBuild?.tests && 'n/a'}
// </Typography>
// </>
// );
// // @SonarIgnoreEnd
// },
// };
// },
// @SonarIgnoreEnd

createLastRunDuration(): TableColumn<Project> {
return {
Expand Down

0 comments on commit 1de6bdb

Please sign in to comment.