2
0
mirror of https://github.com/hibiken/asynqmon.git synced 2025-10-26 16:26:12 +08:00

Add breadcrumb to task view

This commit is contained in:
Ken Hibino
2021-01-24 13:37:45 -08:00
parent b2c8de61bb
commit 2b2d5f88a5
4 changed files with 126 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ import { connect, ConnectedProps } from "react-redux";
import { makeStyles } from "@material-ui/core/styles";
import Typography from "@material-ui/core/Typography";
import { AppState } from "../store";
import { percentage } from "../utils";
const useStyles = makeStyles((theme) => ({
banner: {
@@ -92,7 +93,9 @@ function QueueInfoBanner(props: Props & ReduxProps) {
<Typography variant="subtitle2" color="textPrimary" gutterBottom>
Error rate
</Typography>
<Typography color="textSecondary">0.3 %</Typography>
<Typography color="textSecondary">
{queue ? percentage(queue.failed, queue.processed) : "-"}
</Typography>
</div>
</div>
);