feat: run by
This commit is contained in:
@@ -16,7 +16,7 @@ import { Accordion, AccordionSummary, AccordionDetails, Typography } from '@mui/
|
||||
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
||||
|
||||
interface Column {
|
||||
id: 'status' | 'name' | 'startedAt' | 'finishedAt' | 'runId' | 'delete';
|
||||
id: 'status' | 'name' | 'startedAt' | 'finishedAt' | 'runId' | 'delete' | 'runBy';
|
||||
label: string;
|
||||
minWidth?: number;
|
||||
align?: 'right';
|
||||
@@ -28,6 +28,7 @@ export const columns: readonly Column[] = [
|
||||
{ id: 'name', label: 'Robot Name', minWidth: 80 },
|
||||
{ id: 'startedAt', label: 'Started at', minWidth: 80 },
|
||||
{ id: 'finishedAt', label: 'Finished at', minWidth: 80 },
|
||||
{ id: 'runBy', label: 'Run By', minWidth: 80,},
|
||||
{ id: 'runId', label: 'Run ID', minWidth: 80 },
|
||||
// { id: 'task', label: 'Task', minWidth: 80 },
|
||||
{ id: 'delete', label: 'Delete', minWidth: 80 },
|
||||
@@ -39,6 +40,9 @@ export interface Data {
|
||||
name: string;
|
||||
startedAt: string;
|
||||
finishedAt: string;
|
||||
runByUserId?: string;
|
||||
runByScheduleId?: string;
|
||||
runByAPI?: boolean;
|
||||
// task: string;
|
||||
log: string;
|
||||
runId: string;
|
||||
@@ -60,6 +64,8 @@ export const RunsTable = (
|
||||
const [rowsPerPage, setRowsPerPage] = useState(10);
|
||||
const [rows, setRows] = useState<Data[]>([]);
|
||||
|
||||
console.log(`rows runs: ${JSON.stringify(rows)}`);
|
||||
|
||||
const { notify, rerenderRuns, setRerenderRuns } = useGlobalInfoStore();
|
||||
|
||||
const handleChangePage = (event: unknown, newPage: number) => {
|
||||
|
||||
Reference in New Issue
Block a user