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

fix: only handle the query generation keydown event when not streaming #1287

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

jczhong84
Copy link
Collaborator

@jczhong84 jczhong84 commented Jun 26, 2023

add support of streaming cancellation
Capture-2023-06-26-165438
Capture-2023-06-26-172035

also only handle the query generation keydown event when not streaming

/>
</div>
) : (
fixedQuery && (
Copy link
Collaborator

Choose a reason for hiding this comment

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

replace with streamStatus === StreamStatus.DONE && ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it doesn't always have the fixedQuery when the streaming is done. for those cases, we dont want to show the apply/cancel buttons

if (matchKeyPress(event, 'Enter')) {
if (
streamStatus !== StreamStatus.STREAMING &&
matchKeyPress(event, 'Enter')
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you also make the textbox not editable while streaming?

@czgu czgu merged commit 9eb197f into pinterest:master Jun 27, 2023
4 checks passed
aidenprice pushed a commit to arrowtail-precision/querybook that referenced this pull request Jan 3, 2024
pinterest#1287)

* fix: only handle the query generation keydown event when not streaming

* add cancel stream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants