-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Console] Implement documentation action button #181057
Conversation
Pinging @elastic/kibana-management (Team:Kibana Management) |
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
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.
Great work @yuliacech! Tested locally and it works as expected. Code changes also LGTM.
Summary
Closes #180209
This PR implements the "view documentation" button in the new Monaco editor in Console. The code re-use the existing autocomplete functionality and gets the documentation link for the current request from autocomplete definitions. The current request is the 1st request of the user selection in the editor. The link is opened in the new tab and if no link is available or the request is unknown, then nothing happens (existing functionality, we might want to hide the button in that case in a follow up work)
Screen recording
Screen.Recording.2024-04-17.at.17.04.42.mov
How to test
console.dev.enableMonaco: true
to theconfig/kibana.dev.yml
file