diff --git a/ui/src/components/ActiveTasksTable.tsx b/ui/src/components/ActiveTasksTable.tsx
index d671094..754b907 100644
--- a/ui/src/components/ActiveTasksTable.tsx
+++ b/ui/src/components/ActiveTasksTable.tsx
@@ -1,6 +1,6 @@
import React, { useState, useCallback } from "react";
import { connect, ConnectedProps } from "react-redux";
-import { makeStyles } from "@material-ui/core/styles";
+import { makeStyles, useTheme, Theme } from "@material-ui/core/styles";
import Table from "@material-ui/core/Table";
import TableBody from "@material-ui/core/TableBody";
import TableCell from "@material-ui/core/TableCell";
@@ -13,7 +13,7 @@ import TableFooter from "@material-ui/core/TableFooter";
import TablePagination from "@material-ui/core/TablePagination";
import Tooltip from "@material-ui/core/Tooltip";
import Paper from "@material-ui/core/Paper";
-import Box from "@material-ui/core/Box";
+import Grid from "@material-ui/core/Grid";
import Checkbox from "@material-ui/core/Checkbox";
import Collapse from "@material-ui/core/Collapse";
import IconButton from "@material-ui/core/IconButton";
@@ -47,6 +47,9 @@ const useStyles = makeStyles((theme) => ({
stickyHeaderCell: {
background: theme.palette.background.paper,
},
+ iconCell: {
+ width: "70px",
+ },
}));
function mapStateToProps(state: AppState) {
@@ -67,7 +70,6 @@ const mapDispatchToProps = {
};
const columns: TableColumn[] = [
- { key: "icon", label: "", align: "left" },
{ key: "id", label: "ID", align: "left" },
{ key: "type", label: "Type", align: "left" },
{ key: "status", label: "Status", align: "left" },
@@ -184,6 +186,12 @@ function ActiveTasksTable(props: Props & ReduxProps) {
}}
/>
+
{columns.map((col) => (
({
root: {
"& > *": {
borderBottom: "unset",
},
},
-});
+ taskDetails: {
+ paddingTop: theme.spacing(1),
+ paddingBottom: theme.spacing(1),
+ },
+ detailHeading: {
+ paddingLeft: theme.spacing(1),
+ },
+ payloadContainer: {
+ paddingRight: theme.spacing(2),
+ },
+ noBottomBorder: {
+ borderBottom: "none",
+ },
+}));
interface RowProps {
task: ActiveTaskExtended;
@@ -263,6 +284,7 @@ interface RowProps {
function Row(props: RowProps) {
const { task } = props;
const [open, setOpen] = React.useState(false);
+ const theme = useTheme();
const classes = useRowStyles();
return (
@@ -325,17 +347,62 @@ function Row(props: RowProps) {
-
-
- Payload
-
-
- {JSON.stringify(task.payload, null, 2)}
-
-
+
+
+
+ Payload
+
+
+ {JSON.stringify(task.payload, null, 2)}
+
+
+
+
+ Task Info
+
+
+
+
+ Retry
+ 2/25
+
+
+ Deadline
+ In 30s
+
+
+
+ Unique
+
+
+ 5m30s remaining
+
+
+
+
+
+