-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
82 additions
and
74 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
39 changes: 39 additions & 0 deletions
39
lib/static/new-ui/components/Card/EmptyReportCard.module.css
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,39 @@ | ||
.container { | ||
padding: 10px; | ||
height: 100%; | ||
} | ||
|
||
.hint-card { | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.empty-report-icon { | ||
width: 40px; | ||
} | ||
|
||
.card-title { | ||
color: #000; | ||
margin-top: 16px; | ||
} | ||
|
||
.hints-container { | ||
max-width: 450px; | ||
margin-top: 8px; | ||
} | ||
|
||
.hint { | ||
margin-top: 12px; | ||
display: flex; | ||
} | ||
|
||
.hint-item-icon { | ||
flex-shrink: 0; | ||
margin-right: 8px; | ||
color: var(--g-color-base-brand); | ||
} | ||
|
||
.hint-item-text { | ||
line-height: 1.4; | ||
} |
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,27 @@ | ||
import {TextHintCard} from '@/static/new-ui/components/Card/TextHintCard'; | ||
import EmptyReport from '@/static/icons/empty-report.svg'; | ||
import classNames from 'classnames'; | ||
import {Icon} from '@gravity-ui/uikit'; | ||
import {Check} from '@gravity-ui/icons'; | ||
import React, {ReactNode} from 'react'; | ||
|
||
import styles from './EmptyReportCard.module.css'; | ||
|
||
export function EmptyReportCard(): ReactNode { | ||
return <div className={styles.container}> | ||
<TextHintCard className={styles.hintCard}> | ||
<img src={EmptyReport} alt='icon' className={styles.emptyReportIcon}/> | ||
<span className={classNames('text-header-1', styles.cardTitle)}>This report is empty</span> | ||
<div className={styles.hintsContainer}> | ||
{[ | ||
'Check if your project contains any tests', | ||
'Check if the tool you are using is configured correctly and is able to find your tests', | ||
'Check logs to see if some critical error has occurred and prevented report from collecting any results' | ||
].map((hintText, index) => <div key={index} className={styles.hint}> | ||
<Icon data={Check} className={styles.hintItemIcon}/> | ||
<div className={styles.hintItemText}>{hintText}</div> | ||
</div>)} | ||
</div> | ||
</TextHintCard> | ||
</div>; | ||
} |
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