[kbnDevToolsApp] allow extending the top nav#8355
Conversation
There was a problem hiding this comment.
What's this about? You didn't end up using chrome anywhere.
There was a problem hiding this comment.
Good catch, I was originally exposing it on scope, but since I wasn't able to create a childscope for this directive, and I didn't want to leak it out, I ended up exposing the one necessary method via the KbnTopNavController
33f4bae to
4231b45
Compare
There was a problem hiding this comment.
ಠ_ಠ
I guess we can let this multiple-assignment-on-one-line slide since it's just copied and pasted from a few lines above...
|
LGTM |
|
@spalger This fails the selenium tests: https://kibana-ci.elastic.co/view/All/job/elastic+kibana+pull-request+multijob-selenium/279/ |
The kbn-dev-tools-app directive renders a navbar above each devtool, giving it breadcrumbs and links to the other devtools. This collides with the toolbars used in devtools like console and causes two mostly-empty toolbars to be stacked. To fix this, we are merging the navbar from kbn-dev-tools-app and the toolbar provided by the devtools into a single kbn-top-nav toolbar. Console already used the kbn-top-nav directive for it's navbar, so kbn-dev-tools-app just needed to be extended to consume and render the kbn-top-nav configuration (a controller in this instance).
4231b45 to
5bff9da
Compare
|
The tests actually passed, but it looks like the runner may have thrown a fit... I forced a change to cause the test to rerun |
|
LGTM |
[kbnDevToolsApp] allow extending the top nav The kbn-dev-tools-app directive renders a navbar above each devtool, giving it breadcrumbs and links to the other devtools. This collides with the toolbars used in devtools like console and causes two mostly-empty toolbars to be stacked. To fix this, we are merging the navbar from kbn-dev-tools-app and the toolbar provided by the devtools into a single kbn-top-nav toolbar. Console already used the kbn-top-nav directive for it's navbar, so kbn-dev-tools-app just needed to be extended to consume and render the kbn-top-nav configuration (a controller in this instance). (cherry picked from commit 5bff9da)
[kbnDevToolsApp] allow extending the top nav The kbn-dev-tools-app directive renders a navbar above each devtool, giving it breadcrumbs and links to the other devtools. This collides with the toolbars used in devtools like console and causes two mostly-empty toolbars to be stacked. To fix this, we are merging the navbar from kbn-dev-tools-app and the toolbar provided by the devtools into a single kbn-top-nav toolbar. Console already used the kbn-top-nav directive for it's navbar, so kbn-dev-tools-app just needed to be extended to consume and render the kbn-top-nav configuration (a controller in this instance). (cherry picked from commit 5bff9da)
[kbnDevToolsApp] allow extending the top nav The kbn-dev-tools-app directive renders a navbar above each devtool, giving it breadcrumbs and links to the other devtools. This collides with the toolbars used in devtools like console and causes two mostly-empty toolbars to be stacked. To fix this, we are merging the navbar from kbn-dev-tools-app and the toolbar provided by the devtools into a single kbn-top-nav toolbar. Console already used the kbn-top-nav directive for it's navbar, so kbn-dev-tools-app just needed to be extended to consume and render the kbn-top-nav configuration (a controller in this instance). (cherry picked from commit b0b9026f06da214e23df8fc4b636fa9532f2fbcc [formerly 5bff9da]) Former-commit-id: 410f61f
Fixes #8238
Closes #8234
The kbn-dev-tools-app directive renders a navbar above each devtool, giving it breadcrumbs and links to the other devtools. This collides with the toolbars used in devtools like console and causes two mostly-empty toolbars to be stacked.
To fix this, we are merging the navbar from kbn-dev-tools-app and the toolbar provided by the devtools into a single kbn-top-nav toolbar. Console already used the kbn-top-nav directive for it's navbar, so kbn-dev-tools-app just needed to be extended to consume and render the kbn-top-nav configuration (a controller in this instance).