-
Notifications
You must be signed in to change notification settings - Fork 40
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
New editor: Style for query preview #467
Conversation
Backend code coverage report for PR #467 |
Frontend code coverage report for PR #467
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
It does look like Prism added Kusto support, did you try the keyword kusto
?
@@ -99,8 +100,7 @@ export const VisualQueryEditor: React.FC<VisualQueryEditorProps> = (props) => { | |||
<FilterSection {...props} tableSchema={tableSchema} /> | |||
<AggregateSection {...props} tableSchema={tableSchema} /> | |||
<GroupBySection {...props} tableSchema={tableSchema} /> | |||
{/* TODO: Use proper preview component */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌
Yes! Prism looks great!!! 🏆 |
I saw that but then when I checked how other plugins used Prism, I saw that |
Ah, slick. Nice find! 🎨 |
Final component of #391
Move the preview to its own section and add the capability to show/hide it:
I tried to use a component with some syntax highlighting but:
CodeEditor
(monaco) is a bit heavy. Also it's not possible to set the height automatically which is not very friendly for the preview. Also, the same editor is available when switching to the KQL editor.- I also tried to use Prismjs, which is used in other editors but the language forkusto
is not included by default.