Skip to content

Commit f3f66b6

Browse files
committed
Switch to Material UI; replaced custom CSS/HTML with MUI components (no functional changes)
1 parent 26ccf10 commit f3f66b6

38 files changed

+2344
-2860
lines changed

README.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ or remote Trino cluster.
99
> production workloads. Treat the current release as an early-stage demo;
1010
> production-ready builds and documentation are planned.
1111
12-
![Trino Query UI Demo](demos.gif "Trino Query UI Demo")
12+
![Trino Query UI](screenshot.png "Trino Query UI")
1313

1414
Implementation details:
1515
* React TypeScript project with Vite
@@ -29,7 +29,7 @@ import { QueryEditor } from 'trino-query-ui'
2929
import 'trino-query-ui/dist/index.css'
3030

3131
function MyTrinoApp() {
32-
return <QueryEditor />
32+
return <QueryEditor theme="dark" height={800} />
3333
}
3434

3535
export default MyTrinoApp
@@ -51,8 +51,10 @@ npm run build
5151

5252
### Copying into Trino
5353

54+
```
5455
mkdir -p $TRINO_HOME/core/trino-main/src/main/resources/query_ui_webapp/
5556
cp -r dist/* $TRINO_HOME/core/trino-main/src/main/resources/query_ui_webapp/
57+
```
5658

5759
### Modifying Trino to respond to /query/
5860

@@ -126,7 +128,7 @@ npm run dev
126128

127129
The local URL is displayed, and you can open it in your browser.
128130

129-
### Set Up proxying to a local Trino instance
131+
### Set up proxying to a local Trino instance
130132

131133
Update `vite.config.ts` with the following so that queries can be
132134
proxied to Trino's query endpoint running on `http://localhost:8080` (or any
@@ -182,19 +184,19 @@ cases are:
182184

183185
The approach:
184186
1. Direct integration into the Trino UI
185-
- No need for an additional authentication hop (although it could be added
186-
in the future)
187-
- Authenticates as the user executing the query when using OAuth2
188-
- Trino does the heavy lifting
187+
- No need for an additional authentication hop (although it could be added
188+
in the future)
189+
- Authenticates as the user executing the query when using OAuth2
190+
- Trino does the heavy lifting
189191
2. Remove friction so you can simply write a query
190-
- Autocomplete understands the Trino language, tables, and columns
191-
- Provides syntax highlighting and validation
192-
- Offers a comprehensive catalog explorer
192+
- Autocomplete understands the Trino language, tables, and columns
193+
- Provides syntax highlighting and validation
194+
- Offers a comprehensive catalog explorer
193195
3. Avoid black-box query execution
194-
- Show progress and execution details. People ask "why is my query slow?"
195-
mostly because they only see a spinner for minutes.
196-
- Link to the Trino Query UI to drill into query performance
197-
- Show stages and split counts like the Trino console client
196+
- Show progress and execution details. People ask "why is my query slow?"
197+
mostly because they only see a spinner for minutes.
198+
- Link to the Trino Query UI to drill into query performance
199+
- Show stages and split counts like the Trino console client
198200
4. Keep the experience easy to navigate
199201

200202
### Gaps and future direction

0 commit comments

Comments
 (0)