-
Notifications
You must be signed in to change notification settings - Fork 83
feat(webui): Move run button under SQL query input; Modify SQL editor theming to look like AntD input. #1248
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
Changes from all commits
3188d90
d9f2b74
c5f23d5
a810e09
9dca18f
8cf4126
b09c0ca
4e3e12b
a1f3f44
b7d6f9e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| .runButtonContainer { | ||
| width: 130px; | ||
| width: 100px; | ||
| } | ||
davemarco marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,21 @@ | ||
| .searchControlsContainer { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 5px; | ||
| } | ||
davemarco marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| .inputsAndButtonRow { | ||
| display: flex; | ||
| gap: 10px; | ||
| } | ||
davemarco marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| .buttonAndStatusRow { | ||
| display: flex; | ||
| align-items: flex-start; | ||
| justify-content: space-between; | ||
| gap: 10px; | ||
davemarco marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| .status { | ||
| margin-left: 2px; | ||
| } | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,6 +1,6 @@ | ||||||||||
| .searchPageContainer { | ||||||||||
| display: flex; | ||||||||||
| flex-direction: column; | ||||||||||
| gap: 16px; | ||||||||||
| padding: 24px 16px 16px; | ||||||||||
| gap: 16px; | ||||||||||
| padding: 16px 16px 16px; | ||||||||||
|
Comment on lines
+4
to
+5
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Use padding shorthand for clarity Equivalent and shorter. - gap: 16px;
- padding: 16px 16px 16px;
+ gap: 16px;
+ padding: 16px;📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
| } | ||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,7 +5,6 @@ import { | |||||||||||||||||||||||||||||||||||||||||||||
| import styles from "./index.module.css"; | ||||||||||||||||||||||||||||||||||||||||||||||
| import {ProgressBar} from "./Presto/ProgressBar"; | ||||||||||||||||||||||||||||||||||||||||||||||
| import SearchControls from "./SearchControls"; | ||||||||||||||||||||||||||||||||||||||||||||||
| import SearchQueryStatus from "./SearchQueryStatus"; | ||||||||||||||||||||||||||||||||||||||||||||||
| import SearchResultsTable from "./SearchResults/SearchResultsTable"; | ||||||||||||||||||||||||||||||||||||||||||||||
| import SearchResultsTimeline from "./SearchResults/SearchResultsTimeline"; | ||||||||||||||||||||||||||||||||||||||||||||||
| import {useUpdateStateWithMetadata} from "./SearchState/useUpdateStateWithMetadata"; | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -23,10 +22,7 @@ const SearchPage = () => { | |||||||||||||||||||||||||||||||||||||||||||||
| <> | ||||||||||||||||||||||||||||||||||||||||||||||
| {SETTINGS_QUERY_ENGINE === CLP_QUERY_ENGINES.PRESTO && <ProgressBar/>} | ||||||||||||||||||||||||||||||||||||||||||||||
| <div className={styles["searchPageContainer"]}> | ||||||||||||||||||||||||||||||||||||||||||||||
| <div> | ||||||||||||||||||||||||||||||||||||||||||||||
| <SearchControls/> | ||||||||||||||||||||||||||||||||||||||||||||||
| <SearchQueryStatus/> | ||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||
| <SearchControls/> | ||||||||||||||||||||||||||||||||||||||||||||||
| {SETTINGS_QUERY_ENGINE !== CLP_QUERY_ENGINES.PRESTO && <SearchResultsTimeline/>} | ||||||||||||||||||||||||||||||||||||||||||||||
| <SearchResultsTable/> | ||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
23
to
27
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Minor readability: factor out the engine check to avoid repetition. Extracting a local useUpdateStateWithMetadata();
- return (
+ const isPresto = SETTINGS_QUERY_ENGINE === CLP_QUERY_ENGINES.PRESTO;
+ return (
<>
- {SETTINGS_QUERY_ENGINE === CLP_QUERY_ENGINES.PRESTO && <ProgressBar/>}
+ {isPresto && <ProgressBar/>}
<div className={styles["searchPageContainer"]}>
<SearchControls/>
- {SETTINGS_QUERY_ENGINE !== CLP_QUERY_ENGINES.PRESTO && <SearchResultsTimeline/>}
+ {false == isPresto && <SearchResultsTimeline/>}
<SearchResultsTable/>
</div>
</>
);📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.