Skip to content

Commit 69fbe45

Browse files
authored
feat(webui): Enable guided mode for Presto Web UI. (#1490)
1 parent 80fdb78 commit 69fbe45

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

components/webui/client/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"build": "tsc -b && vite build",
88
"lint:check": "eslint . --max-warnings 0",
99
"lint:fix": "npm run lint:check -- --fix",
10-
"start": "vite",
11-
"guided": "VITE_GUIDED_DEV=true npm run start"
10+
"start": "vite"
1211
},
1312
"author": "YScope Inc. <[email protected]>",
1413
"license": "Apache-2.0",

components/webui/client/src/pages/SearchPage/SearchControls/Presto/FreeformControls.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ import SqlQueryInput from "./SqlQueryInput";
55
import SqlSearchButton from "./SqlSearchButton";
66

77

8-
// eslint-disable-next-line no-warning-comments
9-
// TODO: Remove flag and related logic when the new guide UI is fully implemented.
10-
const isGuidedEnabled = "true" === import.meta.env["VITE_GUIDED_DEV"];
11-
128
/**
139
* Renders controls and status for freeform sql.
1410
*
@@ -22,7 +18,7 @@ const FreeformControls = () => (
2218
<QueryStatus/>
2319
</div>
2420
<div className={styles["buttons"]}>
25-
{isGuidedEnabled && <SqlInterfaceButton/>}
21+
<SqlInterfaceButton/>
2622
<SqlSearchButton/>
2723
</div>
2824
</div>

components/webui/client/src/pages/SearchPage/SearchState/Presto/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const PRESTO_SEARCH_STATE_DEFAULT = Object.freeze({
1414
orderBy: "",
1515
queryDrawerOpen: false,
1616
select: "*",
17-
sqlInterface: PRESTO_SQL_INTERFACE.FREEFORM,
17+
sqlInterface: PRESTO_SQL_INTERFACE.GUIDED,
1818
timestampKey: null,
1919
where: "",
2020
});

0 commit comments

Comments
 (0)