299 Commits

Author SHA1 Message Date
Rankin Zheng
64ba8612c6 Improve chat panel keyboard navigation
- Focus input field when plus button is clicked
- Close menu when 'Escape' key is pressed
- Refactor menu navigation for better readability
2023-05-19 07:51:28 +08:00
Rankin Zheng
039a6d0b22 Improve chat panel tip message layout
- Add overflow hidden to the container
- Add text truncation and width limit to the tip message
2023-05-19 07:41:44 +08:00
boob.yang
db8fb8b35e
Merge pull request #92 from covespace/update_instruction
update instruction file
2023-05-19 07:41:26 +08:00
bobo.yang
6a24056604 update instruction file 2023-05-19 07:38:15 +08:00
Rankin Zheng
056ab3ca24
Merge pull request #91 from covespace/improve-display
refactor: Add border radius to Accordion and Menu components
2023-05-19 07:05:46 +08:00
Rankin Zheng
466e664ba3 refactor: Add border radius to Accordion and Menu components
Add border radius to Accordion and Menu components to improve the UI. Also, add specific styles to the active and expanded states of the components. The changes were made in src/views/ChatPanel/index.tsx.
2023-05-19 07:04:06 +08:00
Rankin Zheng
8d3e96178f
Merge pull request #90 from covespace/improve-display
Refactor ChatPanel Flex margin
2023-05-19 00:33:24 +08:00
Rankin Zheng
9d98b05ef5 Refactor ChatPanel Flex margin
Changed the margin of the Flex component in ChatPanel to use shorthand CSS properties.
2023-05-19 00:30:33 +08:00
Rankin Zheng
349ea8623a
Merge pull request #89 from covespace/improve-display
refactor(chatpanel): improve message display
2023-05-19 00:22:45 +08:00
Rankin Zheng
d269eb91b8 refactor(chatpanel): improve message display
- Change Flex to Stack for better message layout
- Add avatar and name to each message
- Increase padding and change background color for better readability
2023-05-19 00:21:53 +08:00
boob.yang
63a9da8614
Merge pull request #88 from covespace/fix_bugs
update menu text
2023-05-18 23:41:09 +08:00
bobo.yang
1aa8f5e64f update menu text 2023-05-18 23:40:03 +08:00
Rankin Zheng
b9bad30ac1
Merge pull request #87 from covespace/refactor-ui
feat: Add new avatar image and adjust chat panel layout
2023-05-18 23:08:06 +08:00
Rankin Zheng
21f3e375b8 feat: Add new avatar image and adjust chat panel layout
Added a new avatar image and adjusted the layout of the chat panel to accommodate the new image. The new avatar image is now displayed for user messages. The layout of the chat panel has been adjusted to ensure that the new image is displayed correctly. The width of the chat panel has been set to the width of the container. The padding and margin of the chat panel have been adjusted to ensure that the new image is displayed correctly.
2023-05-18 23:07:36 +08:00
boob.yang
d45869492e
Merge pull request #86 from covespace/fix_bug
fix pip install bug
2023-05-18 23:05:45 +08:00
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