File tree Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " chat-dbt " : minor
3
+ ---
4
+
5
+ dark/light mode
Original file line number Diff line number Diff line change 1
1
# Roadmap
2
2
3
+ - bug in the autocomplete component
3
4
- Complete the readme file
4
5
- Implement the options into the web interface
5
6
- confirm
13
14
- Vitests
14
15
- Use the npm package as a library
15
16
- Statistics e.g. time per request, tokens used, etc
16
- - Web interface in dark /light mode
17
+ - Dark /light mode toggle
17
18
- Add CI tests for both the CLI and the web interface
18
19
- Nice to have (but complicated): when the context is preserved, allow queries from previous data e.g. "translate the previous result into french"
19
20
- ` --hide-sql `
Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ import { AppProps } from 'next/app'
2
2
import Head from 'next/head'
3
3
import { MantineProvider } from '@mantine/core'
4
4
import { AppWrapper } from '../utils/state'
5
+ import { useColorScheme } from '@mantine/hooks'
5
6
6
7
export default function App ( props : AppProps ) {
7
8
const { Component, pageProps } = props
9
+ const colorScheme = useColorScheme ( )
8
10
9
11
return (
10
12
< >
@@ -19,10 +21,7 @@ export default function App(props: AppProps) {
19
21
< MantineProvider
20
22
withGlobalStyles
21
23
withNormalizeCSS
22
- theme = { {
23
- /** Put your mantine theme override here */
24
- colorScheme : 'light'
25
- } }
24
+ theme = { { colorScheme } }
26
25
>
27
26
< AppWrapper >
28
27
< Component { ...pageProps } />
Original file line number Diff line number Diff line change @@ -27,8 +27,10 @@ const Page: React.FC = () => {
27
27
theme . colors [ color ] [ theme . colorScheme === 'dark' ? 5 : 7 ]
28
28
29
29
const run = async ( ) => {
30
- targetRef . current . dispatchEvent (
31
- new KeyboardEvent ( 'keypress' , {
30
+ targetRef . current ?. dispatchEvent (
31
+ new KeyboardEvent ( 'keydown' , {
32
+ bubbles : true ,
33
+ cancelable : true ,
32
34
key : 'Escape' ,
33
35
keyCode : 27 ,
34
36
which : 27
You can’t perform that action at this time.
0 commit comments