From 4235c9c7ebc2345a80df812bb50bd14dfc5f53de Mon Sep 17 00:00:00 2001 From: Ashton Galloway Date: Wed, 23 Oct 2024 15:39:23 -0400 Subject: [PATCH] fix: update copy in experiment and trial headers --- .../src/pages/ExperimentDetails/ExperimentDetailsHeader.tsx | 2 +- webui/react/src/pages/TrialDetails/Header/TrialHeaderLeft.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/webui/react/src/pages/ExperimentDetails/ExperimentDetailsHeader.tsx b/webui/react/src/pages/ExperimentDetails/ExperimentDetailsHeader.tsx index 019dd115939..b6b52f8b1ed 100644 --- a/webui/react/src/pages/ExperimentDetails/ExperimentDetailsHeader.tsx +++ b/webui/react/src/pages/ExperimentDetails/ExperimentDetailsHeader.tsx @@ -732,7 +732,7 @@ const ExperimentDetailsHeader: React.FC = ({ )} - Experiment {experiment.id} + {capitalize(copyMap.experiment)} {experiment.id} {experiment.name} diff --git a/webui/react/src/pages/TrialDetails/Header/TrialHeaderLeft.tsx b/webui/react/src/pages/TrialDetails/Header/TrialHeaderLeft.tsx index d667d295f1b..5871c92a460 100644 --- a/webui/react/src/pages/TrialDetails/Header/TrialHeaderLeft.tsx +++ b/webui/react/src/pages/TrialDetails/Header/TrialHeaderLeft.tsx @@ -31,7 +31,9 @@ const TrialHeaderLeft: React.FC = ({ experiment, trial }: Props) => {
-
Trial {trial.id}
+
+ {f_flat_runs ? 'Run' : 'Trial'} {trial.id} +
{trial.logSignal && (trial.logSignal.length < labelMaxLength ? (