forked from mlflow/mlflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small tracking UI improvements (mlflow#263)
This PR makes a few small fixes: 1) Got rid of NaNs shown on the Compare Runs page for run IDs that didn't have a specific metric. 2) Changed the collapse/expand button for opening the Experiments sidebar to have `cursor: pointer` so it looks like a clickable object. 3) Added a breadcrumb link back to each experiment on the Run, Compare Runs and Metrics pages (the "Default > ..." in the headings below): ![screen shot 2018-08-07 at 3 52 05 pm](https://user-images.githubusercontent.com/228859/43806814-63bbf14c-9a5a-11e8-960e-4a24eee1aefc.png) ![screen shot 2018-08-07 at 3 51 47 pm](https://user-images.githubusercontent.com/228859/43806820-66ddad70-9a5a-11e8-997a-4d39ffdb4503.png) ![screen shot 2018-08-07 at 6 52 16 pm](https://user-images.githubusercontent.com/228859/43811765-173593b4-9a73-11e8-9398-32a19dfee5ba.png)
- Loading branch information
Showing
19 changed files
with
258 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import React, { Component } from "react"; | ||
import PropTypes from "prop-types"; | ||
import { Experiment } from "../sdk/MlflowMessages"; | ||
import { Link } from 'react-router-dom'; | ||
import Routes from "../Routes"; | ||
|
||
/** | ||
* A title component that creates a <h1> with breadcrumbs pointing to an experiment and optionally | ||
* a run or a run comparison page. | ||
*/ | ||
export default class BreadcrumbTitle extends Component { | ||
static propTypes = { | ||
experiment: PropTypes.instanceOf(Experiment).isRequired, | ||
runUuids: PropTypes.arrayOf(String), // Optional because not all pages are nested under runs | ||
title: PropTypes.any.isRequired, | ||
}; | ||
|
||
render() { | ||
const {experiment, runUuids, title} = this.props; | ||
const experimentId = experiment.getExperimentId(); | ||
const experimentLink = ( | ||
<Link to={Routes.getExperimentPageRoute(experimentId)}> | ||
{experiment.getName()} | ||
</Link> | ||
); | ||
let runsLink = null; | ||
if (runUuids) { | ||
runsLink = (runUuids.length === 1 ? | ||
<Link to={Routes.getRunPageRoute(experimentId, runUuids[0])} key="link"> | ||
Run {runUuids[0]} | ||
</Link> | ||
: | ||
<Link to={Routes.getCompareRunPageRoute(runUuids, experimentId)} key="link"> | ||
Comparing {runUuids.length} Runs | ||
</Link> | ||
); | ||
} | ||
let chevron = <i className="fas fa-chevron-right breadcrumb-chevron" key="chevron"/>; | ||
return ( | ||
<h1> | ||
{experimentLink} | ||
{chevron} | ||
{ runsLink ? [runsLink, chevron] : [] } | ||
{title} | ||
</h1> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,4 +45,5 @@ | |
height: 24px; | ||
text-align: center; | ||
margin-left: 68px; | ||
cursor: pointer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.