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