Skip to content

Commit

Permalink
Sensitive data and report changes
Browse files Browse the repository at this point in the history
  • Loading branch information
notlazykid committed Feb 3, 2025
1 parent 101d0c8 commit 218ca2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ const convertToDataTypesData = (type, collectionsMap, countMap, subtypeToApiColl
avatarComp: <Thumbnail source={iconSource} size="small" />,
priorityVal: priorityText.length > 1 ? severityOrder[priorityText] : 0,
priorityText: priorityText,
priorityComp: priorityText.length > 1 ? <Badge status={transform.getColor(priorityText, true)}>{func.toSentenceCase(priorityText)}</Badge> : "-",
priorityComp: priorityText.length > 1 ?
<div key={type.name} className={`badge-wrapper-${priorityText}`}>
<Badge status={func.getHexColorForSeverity(priorityText)}>{func.toSentenceCase(priorityText)}</Badge>
</div> : "-",
categoriesArr: categoriesList,
categoryComp: categoriesList.length > 0 ? (
<ShowListInBadge
Expand Down Expand Up @@ -187,7 +190,7 @@ function AllSensitiveData() {
const convertToGraphData = (severityMap) => {
let dataArr = []
Object.keys(severityMap).forEach((x) => {
const color = transform.getColorForSensitiveData(x)
const color = func.getHexColorForSeverity(x)
let text = func.toSentenceCase(x)
const value = severityMap[x]
dataArr.push({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ const reportTransform = {
},
"High": {
"text": countMap.HIGH || 0,
"color": "#EF864C",
"color": func.getHexColorForSeverity("HIGH"),
"filterKey": "High"
},
"Medium": {
"text": countMap.MEDIUM || 0,
"color": "#F6C564",
"color": func.getHexColorForSeverity("MEDIUM"),
"filterKey": "Medium"
},
"Low": {
"text": countMap.LOW || 0,
"color": "#6FD1A6",
"color": func.getHexColorForSeverity("LOW"),
"filterKey": "Low"
}
}
Expand Down

0 comments on commit 218ca2a

Please sign in to comment.