Skip to content

codemirror: Show a loading indicator for search query suggestions

Administrator requested to merge fkling/cm-loading-indicator into main

Created by: fkling

Closes #33008 (closed)

This PR adds an extension to the default search query completion extension to also show a loading indicator in the upper right corner of the editor if fetching suggestions takes longer than 350ms.

https://user-images.githubusercontent.com/179026/176922185-b0c52c78-23ee-49c8-af5a-a234f97a1bf3.mp4

Test plan

Triggered completion logic in the main search input (single line) and the Notebook query block (multi line).

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading