-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Infra UI] Asset Details Flyout: Add tooltip with documentation link in metadata summary #162132
[Infra UI] Asset Details Flyout: Add tooltip with documentation link in metadata summary #162132
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
…definition-in-overview-tab
Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI) |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
tooltipLinkLabel: 'host.ip', | ||
tooltipLink: 'https://www.elastic.co/guide/en/ecs/current/ecs-host.html#field-host-ip', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now, I think it's ok, but once we start integrating more asset types, we might have to rely on what findInventoryModel(nodeType)
returns. ip
info might sit in a different field name depending on the asset type. The same goes for the translations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, we should revisit this once we have more asset types 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT! 🚀
…in metadata summary (elastic#162132) ## Summary This PR adds a tooltip with a documentation link in the metadata summary inside the asset details overview section. It should appear only if we have defined documentation link so currently only for the `host.ip` field <img width="1918" alt="Screenshot 2023-07-18 at 13 13 25" src="https://github.com/elastic/kibana/assets/14139027/e5ef2067-3a3b-48fd-a395-b763a6832bd1"> ## Storybook <img width="1917" alt="image" src="https://github.com/elastic/kibana/assets/14139027/dfbd0118-b0ff-475b-a545-9e7278815098"> ## Testing - Go to host view and open the asset details flyout for any host - Go to the overview tab - A question mark icon should appear next to the host ip title inside the metadata section - Click on the icon and check the tooltip - the `host.ip` link should open the documentation page for the field in a new tab https://github.com/elastic/kibana/assets/14139027/c83dcefd-34b1-4f61-aa96-b9fd0e6ef07b
Summary
This PR adds a tooltip with a documentation link in the metadata summary inside the asset details overview section. It should appear only if we have defined documentation link so currently only for the
host.ip
fieldStorybook
Testing
host.ip
link should open the documentation page for the field in a new tabmetadata_tooltip.mov