|
@@ -17,13 +17,13 @@ const scoreComponents = {
|
|
'similarity:*:message:character-5-shingle': t('Log Message'),
|
|
'similarity:*:message:character-5-shingle': t('Log Message'),
|
|
};
|
|
};
|
|
|
|
|
|
-type Score = number | null;
|
|
|
|
|
|
+type ScoreValue = number | null;
|
|
|
|
|
|
type Props = {
|
|
type Props = {
|
|
// we treat the score list keys as opaque as we wish to be able to extend the
|
|
// we treat the score list keys as opaque as we wish to be able to extend the
|
|
// backend without having to fix UI. Keys not in scoreComponents are grouped
|
|
// backend without having to fix UI. Keys not in scoreComponents are grouped
|
|
// into Other anyway
|
|
// into Other anyway
|
|
- scoreList?: [string, Score][];
|
|
|
|
|
|
+ scoreList?: [string, ScoreValue][];
|
|
};
|
|
};
|
|
|
|
|
|
const SimilarScoreCard = ({scoreList = []}: Props) => {
|
|
const SimilarScoreCard = ({scoreList = []}: Props) => {
|
|
@@ -72,7 +72,7 @@ const Wrapper = styled('div')`
|
|
margin: ${space(0.25)} 0;
|
|
margin: ${space(0.25)} 0;
|
|
`;
|
|
`;
|
|
|
|
|
|
-const Score = styled('div')<{score: Score}>`
|
|
|
|
|
|
+const Score = styled('div')<{score: ScoreValue}>`
|
|
height: 16px;
|
|
height: 16px;
|
|
width: 48px;
|
|
width: 48px;
|
|
border-radius: 2px;
|
|
border-radius: 2px;
|