948 Commits

Author SHA1 Message Date
Rankin Zheng
960b0294bc Add collapsible section for each step
- Add Accordion component from Mantine to wrap each step content
- Extract first line starting with '#' as section title
- Show chevron icon when section is collapsed
- Show check icon when code block is expanded
- Style Accordion to match VSCode theme
- Remove original toggle button and collapse component
2023-10-11 23:51:57 +08:00
Rankin Zheng
3afd42c9d6 Add collapsible code step component
- Create Step component to wrap code snippets in collapsible box
- Render Step instead of default code block for 'step' language
- Pass code snippet as children prop to Step
- Step renders language tag and toggle button
2023-10-11 23:51:57 +08:00
Rankin Zheng
950a1328a0 Add language tag component
- Create LanguageCorner component to display language tag
- Update MessageMarkdown to render LanguageCorner
- Pass language prop from Message to LanguageCorner
2023-10-11 23:51:57 +08:00
bobo.yang
a9500ba30f handle code block without language flag 2023-10-11 12:43:12 +08:00
bobo.yang
b4e3f24fdb support code llama model 2023-10-09 08:42:55 +08:00
bobo.yang
d26a446547 support code llama model and starcoder model 2023-10-09 08:42:55 +08:00
bobo.yang
5a25cefbe1 Fix key not found issue 2023-10-09 08:12:51 +08:00
bobo.yang
676f3aef1c fix bug 2023-10-01 17:03:56 +08:00
bobo.yang
ec7de83529 update devchat, remove anthropic provider 2023-10-01 16:58:08 +08:00
bobo.yang
63a2d2f7dd update devchat version 2023-09-26 22:23:32 +08:00
bobo.yang
86f21ef03e support more llm models 2023-09-26 14:46:14 +08:00
bobo.yang
331b72f09f show devchat view before set api key 2023-09-23 09:12:03 +08:00
bobo.yang
4e0df6d6b8 update tip text 2023-09-23 08:57:44 +08:00
bobo.yang
f6cd8e7697 don't need open git repo 2023-09-23 08:53:58 +08:00
bobo.yang
b2422b1694 don't clear api key when escape 2023-09-23 08:16:45 +08:00
Jinglei Ren
7a4382a9d1 Update key setting instruction 2023-09-23 08:13:00 +08:00
Jinglei Ren
826b98d1b2
Update text in commands.ts 2023-09-23 07:39:19 +08:00
Jinglei Ren
58a35685c0
Update text in historyMessagesBase.ts 2023-09-23 07:33:04 +08:00
Jinglei Ren
4b424f3ac5
Remove "(default)" from text in ChatStore.ts 2023-09-23 07:31:10 +08:00
Jinglei Ren
e991f0afcd
Update text in statusBarView.ts 2023-09-23 07:29:26 +08:00
bobo.yang
547796a54b update key setting flow 2023-09-23 07:22:17 +08:00
bobo.yang
21b07f44db update api key setting 2023-09-22 23:08:19 +08:00
bobo.yang
bd4381c5c4 update show text 2023-09-20 16:26:00 +08:00
bobo.yang
82dfba8456 remove useless key setting 2023-09-20 14:39:24 +08:00
bobo.yang
3d1229784f set claude-2 as default model 2023-09-15 13:28:17 +08:00
bobo.yang
4c90f34aa5 update devchat version 2023-09-14 20:29:58 +08:00
bobo.yang
452e8c3757 load api key from command secret and env 2023-09-14 20:17:55 +08:00
Rankin Zheng
98126079b0 Improve context menu responsiveness
- Import observer and store hook
- Observe chat panel width from store
- Set control text width based on chat width
- Allows context text to wrap responsively
2023-09-14 17:35:02 +08:00
Rankin Zheng
619f7c2962 Adjust chat panel width responsive styling
- Add check for min width when setting chat panel width
- Set width to 100% for small viewports
- Allows chat panel to resize responsively
2023-09-14 17:26:06 +08:00
Rankin Zheng
5a9ae73ec7 Disable empty context and model menus
- Add disabled prop to context menu when empty
- Add disabled prop to model menu when empty
2023-09-14 17:14:59 +08:00
Rankin Zheng
cdb3fc2036 Improve balance tip styling
- Set text color of balance tip modal to match VS Code theme
2023-09-14 17:01:35 +08:00
bobo.yang
0b4e2c25ed fix getUserAccessKey error 2023-09-14 16:44:41 +08:00
bobo.yang
a2699cfa64 set default model for first install devchat 2023-09-14 16:44:41 +08:00
Rankin Zheng
b19837dbb6 Improve message display in narrow panels
- Set message body width based on chat panel width
- Adjust error message box width and text wrap
- Allow error text to wrap words cleanly
2023-09-14 16:18:23 +08:00
Rankin Zheng
2738a5b602 Update components to use chat panel width from store
- Extract chat panel width state into Chat store
- Remove width prop drilling from parent components
- Use chat panel width via hook instead of props
- Pass className prop to MessageMarkdown for width styling
- Extend MessageMarkdown props to allow className
- Update MessageBody to get width styles
2023-09-14 15:03:37 +08:00
Rankin Zheng
66e31f6451 Add logo name styles to Header component
- Import createStyles from "@mantine/core" to define custom styles.
- Add logoName class to Text component to change the color of the logo name.
2023-09-13 20:47:22 +08:00
Rankin Zheng
2e543eeeca Add hover styles to InputMessage component
- Add hover styles to change color, border color, and background color on hover.
2023-09-13 20:47:22 +08:00
Rankin Zheng
bc5b222ae7 Update InputMessage component
- Adjust the styling of the rightSection in the InputMessage component
- Remove duplicate Indicator and ActionIcon for the context menus
- Add marginLeft to the send button for proper spacing
- Update the styling of the context menu dropdown
- Remove duplicate padding style for menu items
- Add menuStyles object to define the styles for the context menu
- Add buttonStyles object to define the styles for the model selection button
- Apply buttonStyles to the model selection button in the InputMessage component
2023-09-13 20:47:22 +08:00
Rankin Zheng
cf56658ab6 Change button colors 2023-09-13 20:47:22 +08:00
Rankin Zheng
e540c63ad8 Update InputMessage component
- Add buttonStyles object to define the styles for the model selection button
- Apply buttonStyles to the model selection button in the InputMessage component
2023-09-13 20:47:22 +08:00
Rankin Zheng
251e40fd4b Refactor InputMessage component
- Update the styling of the context menu dropdown
- Remove duplicate padding style for menu items
- Add menuStyles object to define the styles for the context menu
2023-09-13 20:47:22 +08:00
Rankin Zheng
778ba44124 Refactor InputMessage component
- Adjust the styling of the rightSection in the InputMessage component
- Remove duplicate Indicator and ActionIcon for the context menus
- Add marginLeft to the send button for proper spacing
2023-09-13 20:47:22 +08:00
Rankin Zheng
b5a0cb60f9 Update InputMessage component and ChatStore
- Update InputMessage component to include modelMenus in the input object
- Add fetchModelMenus action to InputStore to fetch model menus
- Update ChatStore to set the default chatModel to 'GPT-3.5'
2023-09-13 20:47:22 +08:00
Rankin Zheng
4004f83fbe Update Header component styling
- Remove commented out borderBottom and boxShadow styles.
- Update borderBottom style to use a solid line with color #ced4da.
- Adjust padding of the Flex component for better alignment.
2023-09-13 20:47:22 +08:00
Rankin Zheng
c640a4b4f1 Refactor CurrentMessage component
- Import Box component from "@mantine/core".
- Remove unused imports and dependencies.
- Update the returned JSX structure and layout.
- Adjust styling and spacing of components.
- Remove unused code and dependencies.
2023-09-13 20:47:22 +08:00
Rankin Zheng
b5ab675d80 Refactor ChatPanel component
- Import necessary components from @mantine/core and @tabler/icons-react.
- Remove unused imports and dependencies.
- Update the returned JSX structure and layout.
- Adjust styling and spacing of components.
- Remove unused code and dependencies.
2023-09-13 20:47:22 +08:00
Rankin Zheng
2e122c772b Update MessageList component
- Import CurrentMessage component from "@/views/components/CurrentMessage".
- Remove unused chatPanelWidth prop.
- Wrap the returned JSX in a Stack component for spacing and margin.
- Add CurrentMessage component at the end of the Stack.
- Adjust styling and layout of components.
- Remove unused code and dependencies.
2023-09-13 20:47:22 +08:00
Rankin Zheng
daaef43d73 Add missing Mantine components and remove unused code
- Import Chip, Group, Button, UnstyledButton, and Menu components from Mantine/core.
- Import IconDatabase, IconTextPlus, and IconRobot from @tabler/icons-react.
- Remove handlePlusClick function and its usage.
- Remove contextMenusNode and its usage.
- Remove unused onClose and onOpen props from Popover component.
- Update placeholder text in Textarea component.
- Adjust styling and layout of components.
- Add changeModel function to handle chat model selection.
- Update return statement to use Stack and Group components for layout.
- Update ActionIcon and Button components with new props and styling.
- Remove unused code and dependencies.
2023-09-13 20:47:22 +08:00
bobo.yang
ae2f977df7 update devchat version 2023-09-13 16:59:20 +08:00
bobo.yang
78804f3386 add sample config to guide how to config devchat 2023-09-13 10:08:16 +08:00