156 Commits

Author SHA1 Message Date
4efdbc1df9 chore: enlarge QueryDrawer 2023-06-16 19:41:23 +08:00
1b6afeffa3 refactor: rename method 2023-06-09 09:01:30 +08:00
bbb90c949a feat: add a manual refresh schema button 2023-06-09 08:58:45 +08:00
4c3e4f52d5 feat: enable prompt drawer in prod 2023-06-08 01:24:45 +08:00
88f80aaefe feat: select as many tables up to the maximum token by default 2023-06-08 01:23:34 +08:00
e774078613 refactor: rename selectedTablesName to selectedTableNameList 2023-06-08 01:06:22 +08:00
7edf20a82a chore: change tidbserverless engine type to TiDB
engine type should not be specific to product line
2023-06-08 01:04:11 +08:00
5664a9bb3f chore: pass engine to prompt 2023-06-08 00:59:06 +08:00
a62b5d803a chore: display token in the prompt drawer 2023-06-07 23:56:19 +08:00
3b276ce9a6 fix: display default prompt in the schema drawer if general bot is selected 2023-06-07 23:44:42 +08:00
8434d83133 feat: improve prompt drawer 2023-06-07 23:29:01 +08:00
a7a72de5bb feat: make view prompt button more explicit 2023-06-07 23:21:05 +08:00
930279b2bd fix: unwanted rerender when connect a new database (#127)
* deleted unused code

* fix: error when connect a new database

* Update pnpm-lock.yaml

* Update pnpm-lock.yaml
2023-06-06 17:38:56 +08:00
13606ab9df chore: delete unnecessary console.log (#126)
* deleted unused code

* Update index.tsx
2023-06-06 17:09:37 +08:00
f3943183ab fix: no select first schema when create a new conversation (#123) 2023-06-04 16:04:32 +08:00
f7eabe9c9a feat: show read-only prompt (#121)
* stash

* feat: show prompt and move setting pos

* feat:wrap long line

* refactor generate prompt

* fix typo

* eslint
2023-06-04 15:47:37 +08:00
ed4f919d8f chore: add selected border for conversation Tab for dark mode (#120) 2023-06-01 19:40:59 +08:00
59e7fea9e7 fix: can't open setting when no database be selected (#119)
* fix: can't open setting when SQL be selected

* eslint
2023-06-01 19:13:21 +08:00
6a8e06ad24 fix: always jump to bottom when scroll (#118)
* fix: error jump when scroll

* fix: Cycle deps

* deleted unused code
2023-06-01 16:21:23 +08:00
07b37b65b1 chore: use border color for selected tab 2023-06-01 16:10:39 +08:00
927e627db4 chore: use zinc instead of accent color for selected tab 2023-05-31 19:43:55 +08:00
11efb7a111 chore: sidebar table / token tweak 2023-05-31 19:41:01 +08:00
142ac3efa5 chore: enable conversation tab and tweak tab UX 2023-05-31 19:04:30 +08:00
0f2699c152 chore: further adjust token sidebar text 2023-05-31 18:58:42 +08:00
eb8dad700c chore: optimize token UX (#117)
* chore: replace supabase with neon as the sample database

consolidate

* chore: optimize token UX
2023-05-31 18:51:42 +08:00
088f0904c0 feat: set different token limit per model 2023-05-31 16:47:13 +08:00
933fb6f280 feat: to select table directly in the sidebar (#106) 2023-05-31 15:47:32 +08:00
00022e6bb7 feat: support schema select (#112) 2023-05-31 14:04:10 +08:00
1a7c9b70d0 chore: feature gate on collecting usage data 2023-05-26 22:08:09 +08:00
b6f3d0cb4c fix: error token calc (#107) 2023-05-24 11:12:00 +08:00
d9835b3a46 chore: update created at string position 2023-05-23 08:17:05 +08:00
16a7839b2f chore: fix header style 2023-05-22 21:35:42 +08:00
2b469c1997 feat: implement conversation tabs in header (#105) 2023-05-22 18:07:08 +08:00
eb02a10373 chore: hide snowflake/hive and use cursor pointer for whole radio 2023-05-21 23:52:49 +08:00
e3aac03e28 feat: add 1 month, 3 month purchase 2023-05-21 23:49:03 +08:00
d2ad07f973 chore: update database type radio click handler 2023-05-21 21:52:04 +08:00
8fab7044f3 feat: use rasterized db logo 2023-05-21 21:20:44 +08:00
ed07ad61f0 chore: minor refinemen
Follow https://github.com/sqlchat/sqlchat/pull/103
2023-05-21 20:43:13 +08:00
0285f86687 feat: update SQL in message when SQL of QueryDrawer changes (#103)
* create conversation when no conversation

* implment sql update

* fix conflict

* delete some unused code

* replace when close query drawer

* change save statement logic

* delete unnessnary code

* update comment
2023-05-21 20:39:41 +08:00
9287da7407 feat: separate subscription from payment (#104)
* feat: use connection pooling

* chore: minor subscription change

* feat: separate subscription from payment
2023-05-21 20:34:33 +08:00
86c6abe24c chore: change setting view to setting general view 2023-05-21 18:08:36 +08:00
f2aefa8e95 fix: use sslmode=preferred for pg and mysql
all hosted vendors require SSL and the existing ssl=none won’t work.
2023-05-21 17:28:13 +08:00
ad31e18ea2 fix: make port field editable 2023-05-21 15:22:28 +08:00
a994013fcd chore: adjust clickable area for engine type radio 2023-05-21 15:22:02 +08:00
120ada39c1 chore: missing locale string 2023-05-21 13:13:24 +08:00
f9f909b82c chore: use radio instead for dropdown for database type
Present type upfront
2023-05-21 13:12:24 +08:00
bfb2664b54 chore: add ToS 2023-05-21 12:34:44 +08:00
504d938488 chore: misc dark mode fix 2023-05-21 01:50:49 +08:00
353f5bdd8b chore: add privacy policy 2023-05-21 01:35:39 +08:00
8b2b10b13d feat: allow user to use gpt-4 2023-05-20 23:26:44 +08:00