Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…193444) # Backport This will backport the following commits from `main` to `8.x`: - [[ES|QL] Enhances the inline documentation experience (#192156)](#192156) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Stratoula Kalafateli","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-19T15:10:39Z","message":"[ES|QL] Enhances the inline documentation experience (#192156)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/166907\r\n\r\nThis PR:\r\n\r\n1. Changes the inline docs implementation to a flyout for Discover\r\n\r\n<img width=\"1256\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/3665c73a-82d5-49b9-88c3-e129eda63885\">\r\n\r\n2. Adds the flyout to open from the help menu and removes it from the\r\neditor footer\r\n\r\n3. For the inline editing changes the docs to be rendered as a component\r\ninside the editor (exactly as the history component)\r\n\r\nNote: The documentation in the inline editing has limited space (same\r\nproblem has the history component). I need to sync with Ryan to see what\r\nwe can do, I am exploring some ideas in follow up PRs\r\n\r\n<img width=\"647\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/2fa9fcc3-2a07-4bea-b675-5ae6578696d3\">\r\n\r\n4. Moves the esql docs to the language package and the script associated\r\nto this\r\n\r\n### Follow up\r\n- The language package should be renamed as the `popover` makes sense\r\nonly for the formula implementation now. I will do it after this PR gets\r\nmerged\r\n- See how we can give more space to the docs / history container when in\r\ninline mode\r\n\r\n### Note\r\nThe async bundle got increased as we want the ES|QL docs in unified\r\nsearch too. It wont be a problem as is loaded asynchronously.\r\n\r\n### Checklist\r\n\r\n- [ ] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n- [ ]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas added for features that require explanation or tutorials\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [ ] Any UI touched in this PR is usable by keyboard only (learn more\r\nabout [keyboard accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI touched in this PR does not create any new axe failures\r\n(run axe in browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n- [ ] This renders correctly on smaller devices using a responsive\r\nlayout. (You can test this [in your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n- [ ] This was checked for [cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Ryan Keairns <[email protected]>\r\nCo-authored-by: Drew Tate <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"dfbd7de3f53cae4b81d8643283f106cbf16e3415","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","v9.0.0","backport:prev-minor","Feature:ES|QL","Team:ESQL","v8.16.0"],"title":"[ES|QL] Enhances the inline documentation experience","number":192156,"url":"https://github.com/elastic/kibana/pull/192156","mergeCommit":{"message":"[ES|QL] Enhances the inline documentation experience (#192156)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/166907\r\n\r\nThis PR:\r\n\r\n1. Changes the inline docs implementation to a flyout for Discover\r\n\r\n<img width=\"1256\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/3665c73a-82d5-49b9-88c3-e129eda63885\">\r\n\r\n2. Adds the flyout to open from the help menu and removes it from the\r\neditor footer\r\n\r\n3. For the inline editing changes the docs to be rendered as a component\r\ninside the editor (exactly as the history component)\r\n\r\nNote: The documentation in the inline editing has limited space (same\r\nproblem has the history component). I need to sync with Ryan to see what\r\nwe can do, I am exploring some ideas in follow up PRs\r\n\r\n<img width=\"647\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/2fa9fcc3-2a07-4bea-b675-5ae6578696d3\">\r\n\r\n4. Moves the esql docs to the language package and the script associated\r\nto this\r\n\r\n### Follow up\r\n- The language package should be renamed as the `popover` makes sense\r\nonly for the formula implementation now. I will do it after this PR gets\r\nmerged\r\n- See how we can give more space to the docs / history container when in\r\ninline mode\r\n\r\n### Note\r\nThe async bundle got increased as we want the ES|QL docs in unified\r\nsearch too. It wont be a problem as is loaded asynchronously.\r\n\r\n### Checklist\r\n\r\n- [ ] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n- [ ]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas added for features that require explanation or tutorials\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [ ] Any UI touched in this PR is usable by keyboard only (learn more\r\nabout [keyboard accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI touched in this PR does not create any new axe failures\r\n(run axe in browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n- [ ] This renders correctly on smaller devices using a responsive\r\nlayout. (You can test this [in your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n- [ ] This was checked for [cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Ryan Keairns <[email protected]>\r\nCo-authored-by: Drew Tate <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"dfbd7de3f53cae4b81d8643283f106cbf16e3415"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192156","number":192156,"mergeCommit":{"message":"[ES|QL] Enhances the inline documentation experience (#192156)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/166907\r\n\r\nThis PR:\r\n\r\n1. Changes the inline docs implementation to a flyout for Discover\r\n\r\n<img width=\"1256\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/3665c73a-82d5-49b9-88c3-e129eda63885\">\r\n\r\n2. Adds the flyout to open from the help menu and removes it from the\r\neditor footer\r\n\r\n3. For the inline editing changes the docs to be rendered as a component\r\ninside the editor (exactly as the history component)\r\n\r\nNote: The documentation in the inline editing has limited space (same\r\nproblem has the history component). I need to sync with Ryan to see what\r\nwe can do, I am exploring some ideas in follow up PRs\r\n\r\n<img width=\"647\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/2fa9fcc3-2a07-4bea-b675-5ae6578696d3\">\r\n\r\n4. Moves the esql docs to the language package and the script associated\r\nto this\r\n\r\n### Follow up\r\n- The language package should be renamed as the `popover` makes sense\r\nonly for the formula implementation now. I will do it after this PR gets\r\nmerged\r\n- See how we can give more space to the docs / history container when in\r\ninline mode\r\n\r\n### Note\r\nThe async bundle got increased as we want the ES|QL docs in unified\r\nsearch too. It wont be a problem as is loaded asynchronously.\r\n\r\n### Checklist\r\n\r\n- [ ] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n- [ ]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas added for features that require explanation or tutorials\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [ ] Any UI touched in this PR is usable by keyboard only (learn more\r\nabout [keyboard accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI touched in this PR does not create any new axe failures\r\n(run axe in browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n- [ ] This renders correctly on smaller devices using a responsive\r\nlayout. (You can test this [in your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n- [ ] This was checked for [cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Ryan Keairns <[email protected]>\r\nCo-authored-by: Drew Tate <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"dfbd7de3f53cae4b81d8643283f106cbf16e3415"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Stratoula Kalafateli <[email protected]>
- Loading branch information