diff --git a/plugins/circleci/src/pages/BuildsPage/lib/Builds/Builds.tsx b/plugins/circleci/src/pages/BuildsPage/lib/Builds/Builds.tsx
index 3195d8b587..2044fe531b 100644
--- a/plugins/circleci/src/pages/BuildsPage/lib/Builds/Builds.tsx
+++ b/plugins/circleci/src/pages/BuildsPage/lib/Builds/Builds.tsx
@@ -16,9 +16,6 @@
import React, { FC } from 'react';
-// import Alert from '@material-ui/lab/Alert';
-// import { Progress } from '@backstage/core';
-
import { BuildSummary } from 'circleci-api';
import { CITable, CITableBuildInfo } from '../CITable';
@@ -26,8 +23,6 @@ import { useSelector, useDispatch } from 'react-redux';
import { iRootState, Dispatch } from 'state/store';
import { useApi } from '@backstage/core';
import { circleCIApiRef } from 'api';
-// "lifecycle" : "finished", // :queued, :scheduled, :not_run, :not_running, :running or :finished
-// "outcome" : "failed", // :canceled, :infrastructure_fail, :timedout, :failed, :no_tests or :success
const makeReadableStatus = (status: string | undefined) => {
if (typeof status === 'undefined') return '';
@@ -71,13 +66,6 @@ const transform = (
},
status: makeReadableStatus(buildData.status),
buildUrl: buildData.build_url,
- // tests: {
- // failed: 0,
- // passed: 10,
- // skipped: 3,
- // testUrl: 'nourlnow',
- // total: 13,
- // },
};
return tableBuildInfo;
});
diff --git a/plugins/circleci/src/pages/BuildsPage/lib/CITable/CITable.tsx b/plugins/circleci/src/pages/BuildsPage/lib/CITable/CITable.tsx
index 7185b591cc..8fa710e54f 100644
--- a/plugins/circleci/src/pages/BuildsPage/lib/CITable/CITable.tsx
+++ b/plugins/circleci/src/pages/BuildsPage/lib/CITable/CITable.tsx
@@ -1,6 +1,4 @@
-// Idea for this component to be somehow reusable representation of CI table view
import React, { FC } from 'react';
-// import { makeStyles } from '@material-ui/core/styles';
import {
Link,
CircularProgress,
@@ -18,16 +16,6 @@ import {
Table,
} from '@backstage/core';
import type { TableColumn } from '@backstage/core/src/components/Table';
-// const useStyles = makeStyles({
-// table: {
-// minWidth: 650,
-// },
-// avatar: {
-// height: 32,
-// width: 32,
-// borderRadius: '50%',
-// },
-// });
export type CITableBuildInfo = {
id: string;
@@ -51,7 +39,7 @@ export type CITableBuildInfo = {
onRetryClick: () => void;
};
-// :retried, :canceled, :infrastructure_fail, :timedout, :not_run, :running, :failed, :queued, :scheduled, :not_running, :no_tests, :fixed, :success
+// retried, canceled, infrastructure_fail, timedout, not_run, running, failed, queued, scheduled, not_running, no_tests, fixed, success
const getStatusComponent = (status: string | undefined = '') => {
switch (status.toLowerCase()) {
case 'queued':
@@ -69,48 +57,6 @@ const getStatusComponent = (status: string | undefined = '') => {
}
};
-// export const CITableBuildRow: FC<{ build: CITableBuildInfo }> = ({ build }) => (
-//
-// {build.source.commit.hash}
-//