Skip to content

Commit 2b95026

Browse files
committed
Added rejected filter
1 parent bea1b20 commit 2b95026

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/components/repos/Matching.jsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,6 +1263,29 @@ const Matching = () => {
12631263
control={<Switch disabled={!showMatchSummary || selectedRowStatus === 'unmapped'} size="small" checked={selectedMatchBucket === 'very_high'} onChange={() => onMatchTypeChange('very_high')} />}
12641264
label={`Auto Match (${(matchTypes.very_high || 0).toLocaleString()})`}
12651265
/>
1266+
{
1267+
selectedRowStatus === 'unmapped' &&
1268+
<Chip
1269+
label={`Rejected (${keys(pickBy(decisions, value => value === 'rejected')).length})`}
1270+
color='error'
1271+
size='small'
1272+
variant={decisionFilters.includes('rejected') ? 'contained' : 'outlined'}
1273+
icon={
1274+
decisionFilters.includes('rejected') ?
1275+
<CloseIcon fontSize='inherit' /> :
1276+
<DoneIcon fontSize='inherit' />
1277+
}
1278+
onClick={
1279+
() => setDecisionFilters(
1280+
decisionFilters.includes('rejected') ?
1281+
without(decisionFilters, 'rejected') :
1282+
[...decisionFilters, 'rejected']
1283+
)
1284+
}
1285+
sx={{marginLeft: '10px'}}
1286+
/>
1287+
1288+
}
12661289
{
12671290
['reviewed', 'readyForReview'].includes(selectedRowStatus) &&
12681291
<React.Fragment>

0 commit comments

Comments
 (0)