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 error handling for trace section (#2282)
- Loading branch information
Showing
22 changed files
with
262 additions
and
236 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
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,24 @@ | ||
import {Typography} from 'antd'; | ||
import TestConnectionNotification from 'components/TestConnectionNotification/TestConnectionNotification'; | ||
import {IPropsEvent} from './RunEvent'; | ||
import * as S from './RunEvents.styled'; | ||
|
||
const RunEventDataStore = ({event}: IPropsEvent) => ( | ||
<S.EventContainer> | ||
<S.Dot $logLevel={event.logLevel} /> | ||
<Typography.Title level={3}>{event.title}</Typography.Title> | ||
<Typography.Text>{event.description}</Typography.Text> | ||
{!!event.dataStoreConnection && ( | ||
<S.Content> | ||
<Typography.Title level={3}> | ||
{event.dataStoreConnection?.allPassed | ||
? 'Data store configuration is valid.' | ||
: 'Data store configuration is not valid.'} | ||
</Typography.Title> | ||
<TestConnectionNotification result={event.dataStoreConnection} /> | ||
</S.Content> | ||
)} | ||
</S.EventContainer> | ||
); | ||
|
||
export default RunEventDataStore; |
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,38 @@ | ||
import {Typography} from 'antd'; | ||
import {IPropsEvent} from './RunEvent'; | ||
import * as S from './RunEvents.styled'; | ||
|
||
const RunEventPolling = ({event}: IPropsEvent) => ( | ||
<S.EventContainer> | ||
<S.Dot $logLevel={event.logLevel} /> | ||
<Typography.Title level={3}>{event.title}</Typography.Title> | ||
<Typography.Text>{event.description}</Typography.Text> | ||
{!!event.polling && ( | ||
<S.Content> | ||
<S.Column> | ||
<S.InfoIcon /> | ||
<div> | ||
<Typography.Title level={3}>Number of spans collected:</Typography.Title> | ||
<Typography.Text>{event.polling.periodic.numberSpans}</Typography.Text> | ||
</div> | ||
</S.Column> | ||
<S.Column> | ||
<S.InfoIcon /> | ||
<div> | ||
<Typography.Title level={3}>Iteration number:</Typography.Title> | ||
<Typography.Text>{event.polling.periodic.numberIterations}</Typography.Text> | ||
</div> | ||
</S.Column> | ||
<S.Column> | ||
<S.InfoIcon /> | ||
<div> | ||
<Typography.Title level={3}>Reason why the next iteration will be executed:</Typography.Title> | ||
<Typography.Text>{event.polling.reasonNextIteration}</Typography.Text> | ||
</div> | ||
</S.Column> | ||
</S.Content> | ||
)} | ||
</S.EventContainer> | ||
); | ||
|
||
export default RunEventPolling; |
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
Oops, something went wrong.