Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Serverless nav] Update footer + project settings cloud links #161971

Merged
merged 29 commits into from
Jul 18, 2023

Conversation

sebelga
Copy link
Contributor

@sebelga sebelga commented Jul 14, 2023

In this PR I've added support for a new "cloudLinkId" property on the navigation node definition. If the kibana.yml config has been set for the cloud link it will render in the left nav. If not it won't render.

Screenshot 2023-07-17 at 08 34 20

I've also added support for a new type of navigation node: a top level "group" that renders as a "link" and not as an accordion header. As per the design, this allows us to render the Developer tools menu item.

Screenshot 2023-07-17 at 09 33 49

I've updated the "search" and "observability" navigation tree to include the cloud links and the developer tools link. For the "search" I've removed the developer tools that was in the body.

How to test

  • Add the following config in the serverless.yml file
xpack.cloud.performance_url: "/performance/"
xpack.cloud.users_and_roles_url: "/users-and-roles/"
  • Start a serverless project (e.g. yarn serverless oblt)

Partially fixes #160942 (blocked by #162127)

@sebelga sebelga self-assigned this Jul 14, 2023
@sebelga sebelga added Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) Project:Serverless Work as part of the Serverless project for its initial release Project:Serverless MVP labels Jul 14, 2023
config/serverless.yml Outdated Show resolved Hide resolved
@sebelga sebelga marked this pull request as ready for review July 17, 2023 08:10
@elasticmachine
Copy link
Contributor

Pinging @elastic/appex-sharedux (Team:SharedUX)

@sebelga sebelga requested a review from Dosant July 17, 2023 08:11
@sebelga sebelga added the release_note:skip Skip the PR/issue when compiling release notes label Jul 17, 2023
Copy link
Member

@azasypkin azasypkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes in core_plugins/rendering.ts LGTM, left a question regarding trailing slashes.

config/serverless.yml Outdated Show resolved Hide resolved
@@ -52,9 +46,19 @@ const navigationTree: NavigationTreeDefinition = {
},
{
link: 'dashboards',
getIsActive: ({ pathNameSerialized, prepend }) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this to maintain the navigation active state when going from the list -> detailed view

},
{
link: 'visualize',
getIsActive: ({ pathNameSerialized, prepend }) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this to maintain the navigation active state when going from the list to the different visualizations detailed view

Copy link
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm 👍
And nice other smaller fixes 👏

@sebelga sebelga requested a review from TattdCodeMonkey July 18, 2023 08:03
Copy link
Contributor

@kpatticha kpatticha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oblt changes LGTM. Thanks for the additional fixes and improvements 🥳

We'll inject them from cloud. Issue elastic#162127
@sebelga sebelga enabled auto-merge (squash) July 18, 2023 11:04
@sebelga
Copy link
Contributor Author

sebelga commented Jul 18, 2023

Thanks for the review @kpatticha !

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
serverlessObservability 41 43 +2
serverlessSearch 90 92 +2
total +4

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/core-chrome-browser 67 66 -1
@kbn/shared-ux-chrome-navigation 36 37 +1
cloud 13 15 +2
total +2

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
@kbn/core-chrome-browser 0 1 +1

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
cloud 5.2KB 5.4KB +158.0B
core 360.6KB 360.8KB +170.0B
serverlessObservability 22.7KB 26.0KB +3.3KB
serverlessSearch 26.0KB 29.4KB +3.4KB
total +7.0KB
Unknown metric groups

API count

id before after diff
@kbn/shared-ux-chrome-navigation 45 46 +1
cloud 61 65 +4
total +5

ESLint disabled line counts

id before after diff
@kbn/shared-ux-chrome-navigation 4 5 +1

Total ESLint disabled count

id before after diff
@kbn/shared-ux-chrome-navigation 4 5 +1

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @sebelga

@sebelga
Copy link
Contributor Author

sebelga commented Jul 18, 2023

@TattdCodeMonkey I reverted the change. Can you have another look? Cheers!

@sebelga sebelga merged commit 209d353 into elastic:main Jul 18, 2023
@kibanamachine kibanamachine added v8.10.0 backport:skip This commit does not require backporting labels Jul 18, 2023
@sebelga sebelga deleted the project-settings-cloud-links branch July 18, 2023 13:49
ThomThomson pushed a commit to ThomThomson/kibana that referenced this pull request Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Project:Serverless MVP Project:Serverless Work as part of the Serverless project for its initial release release_note:skip Skip the PR/issue when compiling release notes Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) v8.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Serverless] Update Project Management section of Left Nav
10 participants