1784 Commits

Author SHA1 Message Date
bobo.yang
31a15216a5 fix pip install bug 2023-05-18 23:02:19 +08:00
boob.yang
c43892ffbd
Merge pull request #85 from covespace/update-welcome-messages
Update welcome messages
2023-05-18 22:55:05 +08:00
Jinglei Ren
954393c647
Update welcome.html 2023-05-18 22:52:44 +08:00
Jinglei Ren
bc9bf7ff5b
Update historyMessages.ts 2023-05-18 22:35:07 +08:00
boob.yang
b8d9029a72
Merge pull request #84 from covespace/pip_upgrade
Update package version and improve installation process
2023-05-18 22:29:27 +08:00
Jinglei Ren
188690ca38
Update historyMessages.ts 2023-05-18 22:28:38 +08:00
bobo.yang
e3c9f69822 Update package version and improve installation process
- Bump package version from 0.0.34 to 0.0.38.
- Change pip3 install command to include --upgrade flag.
- Add check for DevChatPath configuration before setting status to ready.
2023-05-18 22:25:29 +08:00
boob.yang
9aba48d09e
Merge pull request #83 from covespace/fix_diff_instructions
Fix diff instructions
2023-05-18 21:49:55 +08:00
bobo.yang
f8fe40890b Refactor applyCodeChanges and add findMatchingIndex
- Added findMatchingIndex function to find matching index in two lists.
- Refactored applyCodeChanges to use findMatchingIndex.
- Replaced reduce with findMatchingIndex for better readability.
2023-05-18 21:43:05 +08:00
bobo.yang
ed96ab8fc4 compare list 2023-05-18 21:43:05 +08:00
bobo.yang
5437c4e371 fix apply diff 2023-05-18 21:43:05 +08:00
Rankin Zheng
831f7b8d0b
Merge pull request #82 from covespace/context-icons
Context icons
2023-05-18 19:58:55 +08:00
Rankin Zheng
4fd3a80cb6 feat: Add spacing and height to chat panel controls
Add spacing of 5 between the chat panel controls and set the height of the controls to 30. Also, reduce the size of the action icon from lg to sm. Finally, change the shadow of the command menu from xs to sm.
2023-05-18 19:58:29 +08:00
Rankin Zheng
d692a24bc5 fix(chatpanel): Fix context menu icons for git diff commands
Change the context menu icons for the git diff commands to match the correct command names. Replaced IconGitBranch with IconGitBranchChecked for 'git diff --cached' and replaced IconGitBranchChecked with IconGitBranch for 'git diff HEAD'.
2023-05-18 19:40:14 +08:00
boob.yang
ec8b3181f2
Merge pull request #81 from covespace/fix_context_string
rename git diff context
2023-05-18 19:39:21 +08:00
bobo.yang
26f24960c4 rename git diff context 2023-05-18 19:35:55 +08:00
boob.yang
1fa577fa3e
Merge pull request #80 from covespace/log_devchat_error
Add error logging to DevChat child process
2023-05-18 17:49:20 +08:00
bobo.yang
2c94bd2f1f Add error logging to DevChat child process
- Check for stderr in the 'close' event
- Log the error to the logger channel
- Show the logger channel if an error occurs
2023-05-18 17:37:44 +08:00
Rankin Zheng
4cc02b65c0
Merge pull request #79 from covespace/refactor-ui
Refactor UI
2023-05-18 16:56:25 +08:00
Rankin Zheng
79cb2fd8d2 feat: Add commandMenuIcon function to ChatPanel
This commit adds the `commandMenuIcon` function to the `ChatPanel` component in `index.tsx`. This function returns an icon based on the given pattern. The function is used to display different icons for different patterns in the command menu.
2023-05-18 16:55:41 +08:00
Rankin Zheng
b79e69e5af feat: Add context menu icons
Add icons to the context menu items based on their names. The function contextMenuIcon() was added to the code to handle this. The function returns an icon based on the name of the context menu item.

The following icons were added: IconMouseRightClick, IconBook, IconGitBranch, IconGitBranchChecked, and IconShellCommand.

The code was also refactored to use the contextMenuIcon() function instead of the IconMessagePlus component.
2023-05-18 16:53:09 +08:00
boob.yang
2be76d9e3f
Merge pull request #78 from covespace/git_commit_all
add command to commit all changes
2023-05-18 16:52:37 +08:00
Daniel Hu
f64a852bc7 Add some badges to README
Signed-off-by: Daniel Hu <tao.hu@merico.dev>
2023-05-18 16:47:57 +08:00
bobo.yang
c890db19b3 add command to commit all changes 2023-05-18 16:44:08 +08:00
boob.yang
61c0ab048d
Merge pull request #77 from covespace/support_diff_apply
Support diff apply
2023-05-18 15:55:39 +08:00
bobo.yang
72b0822e9f Add devchat_apply.svg and escape special characters in commandManager
- Add new devchat_apply.svg file to assets
- Update commandManager.ts to escape special characters in command patterns
2023-05-18 15:51:52 +08:00
bobo.yang
5d74f87528 Update pattern values in workflow settings
- Change pattern value in _setting_.json for code workflow
- Update pattern value in _setting_.json for code_actions workflow
- Modify pattern value in _setting_.json for commit_message workflow
2023-05-18 15:38:59 +08:00
bobo.yang
219a69015e apply diff actions to source file 2023-05-18 15:25:46 +08:00
Rankin Zheng
49e84dea42
Merge pull request #76 from covespace/refactor-ui
Refactor UI
2023-05-18 14:04:52 +08:00
Rankin Zheng
dc5c5f091e Refactor SVG imports in ChatPanel
The commit refactors the SVG imports in ChatPanel to remove the unnecessary `assets` folder from the import path.
2023-05-18 14:01:19 +08:00
Rankin Zheng
a780474c2b feat: Update ChatPanel UI
- Update the avatar images to use SVG format
- Use file-loader instead of url-loader to load image assets

The commit updates the ChatPanel UI by replacing the avatar images with SVG format and using file-loader instead of url-loader to load image assets.
2023-05-18 13:58:17 +08:00
Rankin Zheng
795b0a2f4a refactor(chatpanel): update avatar size and margin
- Update avatar size to 'sm' and margin to {marginTop: 10, marginLeft: 3}
- Replace IconRobot and IconUser with avatarDevChat and avatarUser respectively
- Update gap between messages to 'xs'
- Update Divider margin to {my: 3}
2023-05-18 13:09:19 +08:00
Rankin Zheng
89eab11479
Merge pull request #75 from covespace/58-suggesting-commands-while-typing
58 suggesting commands while typing
2023-05-18 11:34:34 +08:00
Rankin Zheng
05b9379df1 feat: Add command menu filtering and keyboard navigation
This commit adds the ability to filter command menus based on user input and navigate through them using the up and down arrow keys. When a command is selected, it is inserted into the input field. The commit also removes the command menu rendering from the initial render and moves it to a useEffect hook.
2023-05-18 11:34:00 +08:00
Rankin Zheng
1aaf8a6ec9 feat: Add popover to ChatPanel
This commit adds a popover to ChatPanel that contains a dropdown menu for commands and contexts. The dropdown menu can be opened by clicking on the ChatPanel's textarea. The dropdown menu contains a list of commands and contexts that can be clicked to insert them into the textarea. The popover also contains a tooltip that provides instructions on how to select code or file and right-click to access the context menu.
2023-05-18 10:31:22 +08:00
bobo.yang
0a8873333c Add diff view and apply code changes functionality
- Implement getDocumentText function to retrieve text from the editor
- Update diffView function to handle temp files and diff view
- Add getNewCode function to handle code changes
- Implement applyCodeChanges and isValidActionString functions
2023-05-18 08:57:13 +08:00
Rankin Zheng
8e84acab08
Merge pull request #73 from covespace/57-dont-drag-me-to-the-end-of-the-response-being-generated
57 dont drag me to the end of the response being generated
2023-05-18 08:27:46 +08:00
Rankin Zheng
c205c5f2a2 feat: Add scroll position tracking and stop scrolling when user scrolls up
This commit adds the ability to track the scroll position of the chat panel and stop scrolling when the user scrolls up. It also includes a timer to automatically scroll to the bottom of the chat panel after a certain amount of time.
2023-05-18 08:27:04 +08:00
Rankin Zheng
572513126e refactor: Move ChatPanel.tsx to ChatPanel/index.tsx
The ChatPanel.tsx file was moved to ChatPanel/index.tsx to better organize the project structure. The import statement for MessageUtil was also updated to reflect the new file path.
2023-05-17 20:41:31 +08:00
boob.yang
ff0de40013
Merge pull request #72 from covespace/set_api_key_in_chat
Set api key in chat
2023-05-17 17:12:13 +08:00
bobo.yang
ec700c710d Improve handling of missing or invalid OPENAI_API_KEY
This commit enhances the handling of missing or invalid OPENAI_API_KEY
by adding validation checks and providing clear error messages to the
user. It also stores the valid API key in the secret storage and
displays a welcome message when the key is set correctly.
2023-05-17 16:52:52 +08:00
bobo.yang
87e044e396 save 2023-05-17 16:18:04 +08:00
boob.yang
a285c957d5
Merge pull request #71 from covespace/multi_topics
Open DevChat view in sidebar view
2023-05-16 22:13:04 +08:00
bobo.yang
0742e54f98 Add welcome.html for displaying when no Git repo is open
This commit adds a new welcome.html file to display a message to the
user when no Git repository is open. The message informs the user that
DevChat is designed for answering questions about Git repositories and
asks them to open a Git repository folder to start using DevChat.
2023-05-16 22:06:43 +08:00
Rankin Zheng
50c3a4a08c
Merge pull request #70 from covespace/ui-enhancement
UI enhancement
2023-05-16 21:36:31 +08:00
Rankin Zheng
335db745cc Update styles to match VSCode theme
- Use VSCode theme variables for colors and fonts in App.tsx and ChatPanel.tsx
- Update background, foreground, and border colors for various components
- Update hover and disabled states for buttons and icons
2023-05-16 21:25:37 +08:00
bobo.yang
0b6d783fb1 Update DevChat commands and webview options
- Change DevChat.OPENAI_API_KEY title and add category
- Replace devchat.openChatPanel command with devchat-view.focus
- Update statusBarItem.command to devcaht.onStatusBarClick
- Set webviewOptions with retainContextWhenHidden: true for DevChatViewProvider
2023-05-16 17:49:13 +08:00
Rankin Zheng
8e4b010197 Update chat message sending shortcut and placeholder text
- Change the keyboard shortcut for sending a message from Ctrl+Enter to Enter without Shift
- Update the placeholder text to remove the reference to the old shortcut
2023-05-16 16:57:20 +08:00
Rankin Zheng
07bf5d2fe0 feat: adjust font size in App component
- Set font size to small in App component to improve readability
- Add `fontSize` property to `styles` object in `App.tsx`
2023-05-16 16:55:14 +08:00
bobo.yang
6695bf1ae7 save work 2023-05-16 14:35:37 +08:00