[Lens][Embeddable] Make UI react faster to click actions like create or edit (#210810)

## Summary

This PR is based on the idea in #209361 and tries to improve perceived
performances for all the scenarios where the `editorFrame` is loaded.

On fast connections this is now perceived very fast:

![esql_fast](https://github.com/user-attachments/assets/efb26416-bf15-449e-912f-a689c689c593)

On Fast 4g is still fast

![esql_fast_4g](https://github.com/user-attachments/assets/acc199be-683d-4a4b-a53c-f37a9117c258)

On Slow 4g is acceptable


![esql_slow_4g](https://github.com/user-attachments/assets/6fed9ec4-dc3f-4557-976c-91d82bddc10f)

Even on 3G connection the feedback is much better now


![esql_3g](https://github.com/user-attachments/assets/27e96c01-9149-4dd1-8a6d-e005202149ff)

As a bonus extra tests have been added for the ES|QL creation flow.

cc @thomasneirynck @nreese 

### Checklist

- [x] [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

---------

Co-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>
This commit is contained in:
Marco Liberati 2025-02-20 18:19:46 +01:00 committed by GitHub
parent e2730f70db
commit 1e92ae8afb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 301 additions and 232 deletions

View file

@ -93,7 +93,7 @@ pageLoadAssetSize:
kibanaReact: 74422
kibanaUsageCollection: 16463
kibanaUtils: 79713
lens: 57135
lens: 76079
licenseManagement: 41817
licensing: 29004
links: 8000