{ branchSourceDetails }
{ commitSourceDetails }
@@ -111,18 +118,18 @@ class RunDetailsHeader extends Component {
}
}
-const { object, func, string } = PropTypes;
-
RunDetailsHeader.propTypes = {
- data: object.isRequired,
- pipeline: object,
- colors: object,
- onOrganizationClick: func,
- onNameClick: func,
- onAuthorsClick: func,
+ data: PropTypes.object.isRequired,
+ pipeline: PropTypes.object,
+ colors: PropTypes.object,
+ onOrganizationClick: PropTypes.func,
+ onNameClick: PropTypes.func,
+ onAuthorsClick: PropTypes.func,
onCloseClick: PropTypes.func,
- t: func,
- locale: string,
+ t: PropTypes.func,
+ locale: PropTypes.string,
+ topNavLinks: PropTypes.node,
+ runButton: PropTypes.node,
};
export { RunDetailsHeader };
diff --git a/blueocean-dashboard/src/main/js/components/stories/RunDetailsHeaderStories.js b/blueocean-dashboard/src/main/js/components/stories/RunDetailsHeaderStories.js
index f1886906c27..5d952ad0cea 100644
--- a/blueocean-dashboard/src/main/js/components/stories/RunDetailsHeaderStories.js
+++ b/blueocean-dashboard/src/main/js/components/stories/RunDetailsHeaderStories.js
@@ -40,6 +40,14 @@ storiesOf('Run Details Header', module)
;
function someChanges() {
+
+ const topNavLinks = [
+
Pipeline,
+
Changes,
+
Tests,
+
Artifacts,
+ ];
+
return (
+ onAuthorsClick={ action('button-click')}
+ topNavLinks={topNavLinks}/>
);
}
diff --git a/blueocean-dashboard/src/main/less/run-details-header.less b/blueocean-dashboard/src/main/less/run-details-header.less
index 937d2dd4343..e45ae3b513d 100644
--- a/blueocean-dashboard/src/main/less/run-details-header.less
+++ b/blueocean-dashboard/src/main/less/run-details-header.less
@@ -34,3 +34,7 @@
.RunDetailsHeader-authors {
flex-grow: 1;
}
+
+.RunDetails-content {
+ margin: 21px 42px;
+}
diff --git a/blueocean-personalization/npm-shrinkwrap.json b/blueocean-personalization/npm-shrinkwrap.json
index f1330a7bd66..422d52d101e 100644
--- a/blueocean-personalization/npm-shrinkwrap.json
+++ b/blueocean-personalization/npm-shrinkwrap.json
@@ -3,9 +3,9 @@
"version": "0.0.2-unpublished",
"dependencies": {
"@jenkins-cd/blueocean-core-js": {
- "version": "0.0.53-jm-a",
- "from": "@jenkins-cd/blueocean-core-js@0.0.53-jm-a",
- "resolved": "https://registry.npmjs.org/@jenkins-cd/blueocean-core-js/-/blueocean-core-js-0.0.53-jm-a.tgz",
+ "version": "0.0.53-jm-b",
+ "from": "@jenkins-cd/blueocean-core-js@0.0.53-jm-b",
+ "resolved": "https://registry.npmjs.org/@jenkins-cd/blueocean-core-js/-/blueocean-core-js-0.0.53-jm-b.tgz",
"dependencies": {
"react-router": {
"version": "3.0.0",
diff --git a/blueocean-personalization/package.json b/blueocean-personalization/package.json
index 9de5f6bb357..b21abb6ee9d 100644
--- a/blueocean-personalization/package.json
+++ b/blueocean-personalization/package.json
@@ -35,7 +35,7 @@
"react-addons-test-utils": "15.3.2"
},
"dependencies": {
- "@jenkins-cd/blueocean-core-js": "0.0.53-jm-a",
+ "@jenkins-cd/blueocean-core-js": "0.0.53-jm-b",
"@jenkins-cd/design-language": "0.0.102",
"@jenkins-cd/js-extensions": "0.0.32",
"@jenkins-cd/js-modules": "0.0.8",
diff --git a/blueocean-web/npm-shrinkwrap.json b/blueocean-web/npm-shrinkwrap.json
index f53220d87e3..887d2138d35 100644
--- a/blueocean-web/npm-shrinkwrap.json
+++ b/blueocean-web/npm-shrinkwrap.json
@@ -3,9 +3,9 @@
"version": "0.0.1",
"dependencies": {
"@jenkins-cd/blueocean-core-js": {
- "version": "0.0.53-jm-a",
- "from": "@jenkins-cd/blueocean-core-js@0.0.53-jm-a",
- "resolved": "https://registry.npmjs.org/@jenkins-cd/blueocean-core-js/-/blueocean-core-js-0.0.53-jm-a.tgz",
+ "version": "0.0.53-jm-b",
+ "from": "@jenkins-cd/blueocean-core-js@0.0.53-jm-b",
+ "resolved": "https://registry.npmjs.org/@jenkins-cd/blueocean-core-js/-/blueocean-core-js-0.0.53-jm-b.tgz",
"dependencies": {
"history": {
"version": "3.2.1",
diff --git a/blueocean-web/package.json b/blueocean-web/package.json
index de5e8019d85..09a957c149f 100644
--- a/blueocean-web/package.json
+++ b/blueocean-web/package.json
@@ -29,7 +29,7 @@
"zombie": "4.2.1"
},
"dependencies": {
- "@jenkins-cd/blueocean-core-js": "0.0.53-jm-a",
+ "@jenkins-cd/blueocean-core-js": "0.0.53-jm-b",
"@jenkins-cd/design-language": "0.0.102",
"@jenkins-cd/js-extensions": "0.0.32",
"@jenkins-cd/js-modules": "0.0.8",