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: add post processing to ai generated content #1291

Merged
merged 2 commits into from
Jun 30, 2023

Conversation

jczhong84
Copy link
Collaborator

  1. trim the quotes/trailing period from the query title
  2. trim the ``` from the sql
  3. fix the diff view's width issue: it will go beyond 100% of the container

querybook/webapp/__tests__/lib/stream.test.ts Show resolved Hide resolved
@@ -57,10 +59,11 @@ export const QueryComparison: React.FC<{
return [added, removed];
}, [fromQuery, toQuery, disableHighlight, hideEmptyQuery]);

const width = hasHiddenQuery ? '100%' : 'calc(50% - 4px)';
Copy link
Collaborator

Choose a reason for hiding this comment

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

use css with sibling selector? this is kind of hacky js+css solution

@czgu czgu merged commit 148d96b into pinterest:master Jun 30, 2023
@jczhong84 jczhong84 deleted the fix/aipost branch August 19, 2023 00:41
aidenprice pushed a commit to arrowtail-precision/querybook that referenced this pull request Jan 3, 2024
* fix: add post processing to ai generated content

* comments
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.

2 participants