diff --git a/optuna_dashboard/ts/components/TrialList.tsx b/optuna_dashboard/ts/components/TrialList.tsx index 5611000c..4aa31655 100644 --- a/optuna_dashboard/ts/components/TrialList.tsx +++ b/optuna_dashboard/ts/components/TrialList.tsx @@ -20,6 +20,8 @@ import ListSubheader from "@mui/material/ListSubheader" import FilterListIcon from "@mui/icons-material/FilterList" import CheckBoxOutlineBlankIcon from "@mui/icons-material/CheckBoxOutlineBlank" import CheckBoxIcon from "@mui/icons-material/CheckBox" +import UploadFileIcon from '@mui/icons-material/UploadFile'; +import EditIcon from '@mui/icons-material/Edit'; import { TrialNote } from "./Note" import { useHistory, useLocation } from "react-router-dom" @@ -125,10 +127,9 @@ const useIsBestTrial = ( } const TrialListDetail: FC<{ - studyId: number trial: Trial isBestTrial: (trialId: number) => boolean -}> = ({ studyId, trial, isBestTrial }) => { +}> = ({ trial, isBestTrial }) => { const theme = useTheme() const artifactEnabled = useRecoilValue(artifactIsAvailable) const startMs = trial.datetime_start?.getTime() @@ -251,12 +252,36 @@ const TrialListDetail: FC<{ > {info.map(([key, value]) => renderInfo(key, value))} - + + Note + + { trial.note.body === "" ? ( + + + + Write a Note + + + ) : ( + + )} {artifactEnabled && ( <> @@ -310,8 +335,16 @@ const TrialListDetail: FC<{ margin: theme.spacing(0, 1, 1, 0), border: `1px dashed ${"white"}` }}> - - Upload a new artifact + + + Upload a New Artifact @@ -507,12 +540,11 @@ export const TrialList: FC<{ studyDetail: StudyDetail | null }> = ({ }} > - {studyDetail === null || showDetailTrials.length === 0 + {showDetailTrials.length === 0 ? null : showDetailTrials.map((t) => (