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

[ES|QL] Open the suggestion menu when the editor is focused and empty #191142

Merged
merged 4 commits into from
Aug 27, 2024

Conversation

drewdaemon
Copy link
Contributor

@drewdaemon drewdaemon commented Aug 22, 2024

Summary

Opens the suggestions menu whenever the editor is focused and empty.

Screen.Recording.2024-08-22.at.3.17.52.PM.mov

@drewdaemon
Copy link
Contributor Author

@ryankeairns is this the kind of thing you're thinking?

@ryankeairns
Copy link
Contributor

@ryankeairns is this the kind of thing you're thinking?

Indeed. FROM seems the most likely starting point for many, many queries.

@drewdaemon
Copy link
Contributor Author

/ci

@drewdaemon
Copy link
Contributor Author

@elasticmachine merge upstream

@drewdaemon
Copy link
Contributor Author

/ci

@drewdaemon drewdaemon added Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana release_note:skip Skip the PR/issue when compiling release notes labels Aug 23, 2024
@drewdaemon drewdaemon marked this pull request as ready for review August 23, 2024 19:53
@drewdaemon drewdaemon requested a review from a team as a code owner August 23, 2024 19:53
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-esql (Team:ESQL)

@stratoula
Copy link
Contributor

/ci

@stratoula
Copy link
Contributor

@drewdaemon can you check why we are adding 130KB in the esql async chunk?? We can't merge it like that.

It must be this import

import { TRIGGER_SUGGESTION_COMMAND } from '@kbn/esql-validation-autocomplete/src/autocomplete/factories';

Maybe we need to move some constants in the esql-utils. Let's discuss when you are available!

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
esql 82 84 +2
stackAlerts 153 155 +2
total +4

Async chunks

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

id before after diff
esql 176.5KB 180.8KB +4.3KB

History

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

@drewdaemon
Copy link
Contributor Author

@stratoula good catch I removed that import.

@ryankeairns
Copy link
Contributor

Thanks for this. I can now write an entire query using autocomplete with a down arrow and the return key.
But seriously, that first hurdle - first command - is an important one in getting the ball rolling.

Copy link
Member

@qn895 qn895 left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@drewdaemon drewdaemon merged commit 9d967e0 into elastic:main Aug 27, 2024
19 checks passed
@kibanamachine kibanamachine added v8.16.0 backport:skip This commit does not require backporting labels Aug 27, 2024
@stratoula
Copy link
Contributor

Thanx Drew

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 Feature:ES|QL ES|QL related features in Kibana release_note:skip Skip the PR/issue when compiling release notes Team:ESQL ES|QL related features in Kibana v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants