• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CBIIT / crdc-datahub-ui / 18789341118

24 Oct 2025 06:57PM UTC coverage: 78.178% (+15.5%) from 62.703%
18789341118

push

github

web-flow
Merge pull request #888 from CBIIT/3.4.0

3.4.0 Release

4977 of 5488 branches covered (90.69%)

Branch coverage included in aggregate %.

8210 of 9264 new or added lines in 257 files covered. (88.62%)

6307 existing lines in 120 files now uncovered.

30203 of 39512 relevant lines covered (76.44%)

213.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

14.0
/src/components/Questionnaire/ReviewFileTypeTable.tsx
1
import {
1✔
2
  Table,
3
  TableBody,
4
  TableCell,
5
  TableContainer,
6
  TableHead,
7
  TableRow,
8
  styled,
9
} from "@mui/material";
10
import React from "react";
11

12
import { addSpace } from "../../utils";
1✔
13

14
const StyledTableContainer = styled(TableContainer)(() => ({
1✔
UNCOV
15
  borderRadius: "8px !important",
×
UNCOV
16
  border: "1px solid #6B7294",
×
UNCOV
17
  overflow: "hidden",
×
18
}));
1✔
19

20
const StyledTableHeaderRow = styled(TableRow)(() => ({
1✔
UNCOV
21
  "&.MuiTableRow-root": {
×
UNCOV
22
    height: "40px",
×
UNCOV
23
    padding: 0,
×
UNCOV
24
    justifyContent: "space-between",
×
UNCOV
25
    alignItems: "center",
×
UNCOV
26
    background: "#FFF",
×
UNCOV
27
    borderBottom: "1px solid #6B7294",
×
UNCOV
28
  },
×
29
}));
1✔
30

31
const StyledTableRow = styled(TableRow)(() => ({
1✔
UNCOV
32
  "&.MuiTableRow-root": {
×
UNCOV
33
    height: "55px",
×
UNCOV
34
    padding: 0,
×
UNCOV
35
    justifyContent: "space-between",
×
UNCOV
36
    alignItems: "center",
×
UNCOV
37
    background: "#FFF",
×
UNCOV
38
    borderBottom: "1px solid #6B7294",
×
UNCOV
39
    "&:last-child": {
×
UNCOV
40
      borderBottom: "none",
×
UNCOV
41
    },
×
UNCOV
42
  },
×
43
}));
1✔
44

45
const StyledTableHeaderCell = styled(TableCell)(() => ({
1✔
UNCOV
46
  "&.MuiTableCell-root": {
×
UNCOV
47
    height: "100%",
×
UNCOV
48
    color: "#083A50",
×
UNCOV
49
    fontFamily: "'Nunito', 'Rubik', sans-serif",
×
UNCOV
50
    fontSize: "16px",
×
UNCOV
51
    fontStyle: "normal",
×
UNCOV
52
    fontWeight: 700,
×
UNCOV
53
    lineHeight: "19.6px",
×
UNCOV
54
    padding: "10px 20px",
×
UNCOV
55
    borderBottom: "0 !important",
×
UNCOV
56
    borderRight: "1px solid #6B7294",
×
UNCOV
57
    "&:last-child": {
×
UNCOV
58
      borderRight: "none",
×
UNCOV
59
    },
×
UNCOV
60
  },
×
61
}));
1✔
62

63
const StyledTableCell = styled(TableCell)(() => ({
1✔
UNCOV
64
  "&.MuiTableCell-root": {
×
UNCOV
65
    height: "100%",
×
UNCOV
66
    color: "#083A50",
×
UNCOV
67
    fontFamily: "'Nunito', 'Rubik', sans-serif",
×
UNCOV
68
    fontSize: "16px",
×
UNCOV
69
    fontStyle: "normal",
×
UNCOV
70
    fontWeight: 400,
×
UNCOV
71
    lineHeight: "19.6px",
×
UNCOV
72
    padding: "10px 20px",
×
UNCOV
73
    borderBottom: "0 !important",
×
UNCOV
74
    borderRight: "1px solid #6B7294",
×
UNCOV
75
    "&:last-child": {
×
UNCOV
76
      borderRight: "none",
×
UNCOV
77
    },
×
UNCOV
78
  },
×
79
}));
1✔
80

81
type ReviewFileTypeTableProps = {
82
  files: FileInfo[];
83
};
84

85
const ReviewFileTypeTable: React.FC<ReviewFileTypeTableProps> = ({ files }) => (
1✔
86
  <StyledTableContainer>
×
UNCOV
87
    <Table>
×
UNCOV
88
      <TableHead>
×
UNCOV
89
        <StyledTableHeaderRow>
×
UNCOV
90
          <StyledTableHeaderCell id="review-file-type-table-file-type" width="auto">
×
91
            File Type
UNCOV
92
          </StyledTableHeaderCell>
×
UNCOV
93
          <StyledTableHeaderCell id="review-file-type-table-file-extension" width="25%">
×
94
            File Extension
UNCOV
95
          </StyledTableHeaderCell>
×
UNCOV
96
          <StyledTableHeaderCell id="review-file-type-table-number-of-files" width="17%">
×
97
            Number of files
UNCOV
98
          </StyledTableHeaderCell>
×
UNCOV
99
          <StyledTableHeaderCell id="review-file-type-table-estimated-data-size" width="25%">
×
100
            Estimated data size
UNCOV
101
          </StyledTableHeaderCell>
×
UNCOV
102
        </StyledTableHeaderRow>
×
UNCOV
103
      </TableHead>
×
UNCOV
104
      <TableBody>
×
UNCOV
105
        {files.map((file: FileInfo, idx: number) => (
×
106
          <StyledTableRow key={`${file.type}-${file.count}-${file.amount}`}>
×
UNCOV
107
            <StyledTableCell id={`review-file-type-table-file-${idx}-file-type`} width="auto">
×
UNCOV
108
              {file.type}
×
UNCOV
109
            </StyledTableCell>
×
UNCOV
110
            <StyledTableCell id={`review-file-type-table-file-${idx}-file-extension`} width="25%">
×
UNCOV
111
              {file.extension}
×
UNCOV
112
            </StyledTableCell>
×
UNCOV
113
            <StyledTableCell id={`review-file-type-table-file-${idx}-file-count`} width="17%">
×
UNCOV
114
              {file.count}
×
UNCOV
115
            </StyledTableCell>
×
UNCOV
116
            <StyledTableCell id={`review-file-type-table-file-${idx}-file-amount`} width="25%">
×
UNCOV
117
              {addSpace(file.amount)}
×
UNCOV
118
            </StyledTableCell>
×
UNCOV
119
          </StyledTableRow>
×
UNCOV
120
        ))}
×
UNCOV
121
      </TableBody>
×
UNCOV
122
    </Table>
×
UNCOV
123
  </StyledTableContainer>
×
124
);
125

126
export default ReviewFileTypeTable;
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc