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

[8.x] [ES|QL] Enhances the inline documentation experience (#192156) #193444

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

## Summary

Closes elastic#166907

This PR:

1. Changes the inline docs implementation to a flyout for Discover

<img width="1256" alt="image"
src="https://github.com/user-attachments/assets/3665c73a-82d5-49b9-88c3-e129eda63885">

2. Adds the flyout to open from the help menu and removes it from the
editor footer

3. For the inline editing changes the docs to be rendered as a component
inside the editor (exactly as the history component)

Note: The documentation in the inline editing has limited space (same
problem has the history component). I need to sync with Ryan to see what
we can do, I am exploring some ideas in follow up PRs

<img width="647" alt="image"
src="https://github.com/user-attachments/assets/2fa9fcc3-2a07-4bea-b675-5ae6578696d3">

4. Moves the esql docs to the language package and the script associated
to this

### Follow up
- The language package should be renamed as the `popover` makes sense
only for the formula implementation now. I will do it after this PR gets
merged
- See how we can give more space to the docs / history container when in
inline mode

### Note
The async bundle got increased as we want the ES|QL docs in unified
search too. It wont be a problem as is loaded asynchronously.

### Checklist

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

---------

Co-authored-by: kibanamachine <[email protected]>
Co-authored-by: Ryan Keairns <[email protected]>
Co-authored-by: Drew Tate <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit dfbd7de)
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #46 / dashboard app - group 4 dashboard empty state adds a new data view when no data views

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
esql 83 90 +7
lens 1453 1460 +7
stackAlerts 154 161 +7
unifiedSearch 272 291 +19
total +40

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/language-documentation-popover 5 7 +2

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
dataVisualizer 725.1KB 725.2KB +32.0B
esql 184.1KB 174.9KB -9.2KB
lens 1.5MB 1.5MB +105.0B
stackAlerts 75.7KB 75.7KB +18.0B
unifiedSearch 218.5KB 343.5KB +125.0KB
total +115.9KB
Unknown metric groups

API count

id before after diff
@kbn/language-documentation-popover 7 11 +4
@kbn/text-based-editor 28 29 +1
esql 24 25 +1
total +6

async chunk count

id before after diff
unifiedSearch 20 21 +1

ESLint disabled line counts

id before after diff
@kbn/language-documentation-popover 0 1 +1

Total ESLint disabled count

id before after diff
@kbn/language-documentation-popover 0 1 +1

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

cc @stratoula

@kibanamachine kibanamachine merged commit c5ff79a into elastic:8.x Sep 19, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants