chore: add current page to trial logs breadcrumb
@@ -137,6 +137,9 @@ const TrialLogs: React.FC = () => {
return <Message title={`Unable to find Trial ${trialId}`} type={MessageType.Warning} />;
}
+ const experimentDetailPath = `/experiments/${trial.data?.experimentId}`;
+ const trialDetailPath = `${experimentDetailPath}/trials/${trialId}`;
+
return (
<LogViewer
disableLevel
@@ -144,14 +147,18 @@ const TrialLogs: React.FC = () => {
isLoading={isLoading}
noWrap
pageProps={{
- backPath: `/trials/${trialId}`,
+ backPath: trialDetailPath,
breadcrumb: [
{ breadcrumbName: 'Experiments', path: '/experiments' },
{
breadcrumbName: `Experiment ${trial.data?.experimentId}`,
- path: `/experiments/${trial.data?.experimentId}`,
+ path: experimentDetailPath,
+ },
+ {
+ breadcrumbName: `Trial ${trialId}`,
+ path: trialDetailPath,
},
- { breadcrumbName: `Trial ${trialId}`, path: `/trials/${trialId}` },
+ { breadcrumbName: 'Logs', path: '#' },
],
title,
}}
