Conversation
sunchanglong
commented
Mar 6, 2026
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on refining the user interface and experience of the query editor within the dashboard. It includes adjustments to component spacing, improved layout for the CodeMirror editor instances, and minor styling updates to ensure a more polished and consistent visual presentation across the query interface. Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request refactors the query UI, moving some styling from CSS classes and objects to inline styles, and cleaning up some related code. While the refactoring seems to improve the layout, there are a few areas that could be improved for better maintainability and user experience. Specifically, I've pointed out the use of inline styles and !important, which are generally discouraged, and the removal of a helpful user tooltip.
| a-card.editor-card(style="padding-bottom: 10px" :bordered="false") | ||
| a-space.space-between(style="padding: 10px 0") |
There was a problem hiding this comment.
| a-popover(position="bl" content-class="code-tooltip" :content="currentStatement") | ||
| a-space(:size="4") | ||
| icon-loading(v-if="secondaryCodeRunning" spin) | ||
| icon-play-arrow(v-else) | ||
| div {{ $t('dashboard.runQuery') + (queryType === 'sql' && currentQueryNumber ? ' #' + currentQueryNumber : '') }} | ||
| icon-close-circle-fill.icon-16(v-if="secondaryCodeRunning") |
There was a problem hiding this comment.
The tooltip displaying the Ctrl + Enter shortcut for running a query was removed. This shortcut is a great usability feature, and the tooltip was important for its discoverability. Please consider re-adding it to improve user experience.
a-tooltip(position="left" content="Ctrl + Enter")
a-popover(position="bl" content-class="code-tooltip" :content="currentStatement")
a-space(:size="4")
icon-loading(v-if="secondaryCodeRunning" spin)
icon-play-arrow(v-else)
div {{ $t('dashboard.runQuery') + (queryType === 'sql' && currentQueryNumber ? ' #' + currentQueryNumber : '') }}
icon-close-circle-fill.icon-16(v-if="secondaryCodeRunning")
| span.ml-2 {{ $t('dashboard.examples') }} | ||
| a-typography-text(v-for="item of durationExamples" :key="item" code) {{ item }} | ||
| a-resize-box(:directions="['bottom']") | ||
| a-resize-box.editor-resize-box(:directions="['bottom']" :style="{ height: '254px' }") |
There was a problem hiding this comment.
A hardcoded height is being set with an inline style. It's better to define this in a CSS class for consistency and maintainability. You've already added the editor-resize-box class, so you could add the height property to its definition in the <style> block and remove the inline style.
a-resize-box.editor-resize-box(:directions="['bottom']")
| } | ||
|
|
||
| .editor-resize-box { | ||
| padding-bottom: 12px !important; |
There was a problem hiding this comment.