Skip to content

Commit

Permalink
Use occurrences instead of incidents for insights (#127)
Browse files Browse the repository at this point in the history
Signed-off-by: Emily McMullan <[email protected]>
  • Loading branch information
eemcmullan authored Jul 24, 2024
1 parent 5a54b75 commit 26b1824
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions src/shared/components/violations-table/violations-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -565,17 +565,30 @@ export const ViolationsTable: React.FC<IViolationsTableProps> = ({
Effort
</Th></>)
}
<Th
width={10}
sort={{
columnIndex: 6,
sortBy: { ...currentSortBy },
onSort: onChangeSortBy,
}}
>
Total incidents
</Th>

{
insightsMode ? (
<Th
width={10}
sort={{
columnIndex: 6,
sortBy: { ...currentSortBy },
onSort: onChangeSortBy,
}}
>
Total occurrences
</Th>) : (
<Th
width={10}
sort={{
columnIndex: 6,
sortBy: { ...currentSortBy },
onSort: onChangeSortBy,
}}
>
Total incidents
</Th>
)
}
{
insightsMode ? (<></>) : (
<Th
Expand Down

0 comments on commit 26b1824

Please sign in to comment.