-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): add errors filter for analyzer results and ux/ui impr…
…ovements
- Loading branch information
Showing
15 changed files
with
180 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import * as S from './AnalyzerScore.styled'; | ||
|
||
interface IProps { | ||
score: number; | ||
height?: string; | ||
width?: string; | ||
} | ||
|
||
const AnalyzerScore = ({score, height, width}: IProps) => ( | ||
<S.ScoreWrapper> | ||
<S.ScoreTexContainer> | ||
<S.Score level={1}>{score}</S.Score> | ||
</S.ScoreTexContainer> | ||
<S.ScoreProgress | ||
$height={height} | ||
$width={width} | ||
format={() => ''} | ||
percent={score || 100} | ||
$score={score} | ||
type="circle" | ||
/> | ||
</S.ScoreWrapper> | ||
); | ||
|
||
export default AnalyzerScore; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import * as S from './AnalyzerScore.styled'; | ||
|
||
interface IProps { | ||
score: number; | ||
height?: string; | ||
width?: string; | ||
} | ||
|
||
const Percentage = ({score, height, width}: IProps) => ( | ||
<S.PercentageScoreWrapper> | ||
<S.Score level={1} $isLarge> | ||
{score}% | ||
</S.Score> | ||
<S.ScoreProgress | ||
$height={height} | ||
$width={width} | ||
$score={score} | ||
format={() => ''} | ||
percent={score || 100} | ||
type="circle" | ||
/> | ||
</S.PercentageScoreWrapper> | ||
); | ||
|
||
export default Percentage; |
2 changes: 1 addition & 1 deletion
2
web/src/components/LintScore/index.ts → web/src/components/AnalyzerScore/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// eslint-disable-next-line no-restricted-exports | ||
export {default} from './LintScore'; | ||
export {default} from './AnalyzerScore'; |
Oops, something went wrong.