blazickjp / GPT-CodeApp

This project is everything Chat-GPT should be for developers! An advanced AI-driven coding companion tailored for developers. Seamlessly bridging the gap between traditional coding and AI capabilities, we offer real-time chat interactions, on-demand agent functions, and intuitive code management. Feedback welcome!
MIT License
33 stars 12 forks source link

Refactor of backend code and UI updates #20

Closed blazickjp closed 10 months ago

blazickjp commented 11 months ago

Type

Enhancement, Bug fix


Description

This PR includes a major refactor of the backend code, specifically in the backend/agent/agent_functions/file_ops.py file. It also includes several UI updates and bug fixes. The main changes include:


PR changes walkthrough

Relevant files                                                                                                                                 
Refactoring
1 files
file_ops.py                                                                                                 
    backend/agent/agent_functions/file_ops.py

    The file has been significantly refactored, with the
    different operation classes (AddFunction, DeleteFunction,
    ModifyFunction, etc.) moved to separate files
    (`method_ops.py`, `import_ops.py`, `function_ops.py`,
    `class_ops.py`). This makes the code more modular and easier
    to maintain.
+30/-385
Error handling
1 files
main.py                                                                                                         
    backend/main.py

    The file has been updated to include error handling and to
    use the refactored operation classes. There are also changes
    to the `execute_ops` function to handle errors during
    operation execution.
+33/-41
Tests
1 files
test_file_ops.py                                                                                       
    backend/tests/test_file_ops.py

    The test cases in this file have been updated to reflect the
    changes in the `backend/agent/agent_functions/file_ops.py`
    file.
+1/-25
Configuration changes
1 files
app_setup.py                                                                                               
    backend/app_setup.py

    The `FILE_EXTENSIONS` list has been updated to include more
    file extensions.
+2/-3
Bug fix
1 files
memory_manager.py                                                                                     
    backend/memory/memory_manager.py

    A minor change has been made to the SQL query in the
    `add_message` function.
+2/-3
Enhancement
10 files
ChatBox.js                                                                                                   
    frontend/components/ChatBox.js

    This file has been updated as part of the UI updates, but
    the specific changes are not visible in the provided diff.
+21/-5
OperationCard.js                                                                                       
    frontend/components/OperationCard.js

    This file has been updated as part of the UI updates, but
    the specific changes are not visible in the provided diff.
+118/-1
RightSidebar.js                                                                                         
    frontend/components/RightSidebar.js

    This file has been updated as part of the UI updates, but
    the specific changes are not visible in the provided diff.
+36/-22
LeftSidebar.js                                                                                           
    frontend/components/LeftSidebar.js

    This file has been updated as part of the UI updates, but
    the specific changes are not visible in the provided diff.
+52/-40
ModalBar.js                                                                                                 
    frontend/components/ModalBar.js

    This file has been updated as part of the UI updates, but
    the specific changes are not visible in the provided diff.
+12/-0
SystemPromptModal.js                                                                               
    frontend/components/modal_bar_modals/SystemPromptModal.js

    This file has been updated as part of the UI updates, but
    the specific changes are not visible in the provided diff.
+6/-1
FunctionsModal.js                                                                                     
    frontend/components/modal_bar_modals/FunctionsModal.js

    This file has been updated as part of the UI updates, but
    the specific changes are not visible in the provided diff.
+2/-2
SearchBar.js                                                                                               
    frontend/components/SearchBar.js

    This file has been updated as part of the UI updates, but
    the specific changes are not visible in the provided diff.
+2/-0
ChatInput.js                                                                                               
    frontend/components/ChatInput.js

    This file has been updated as part of the UI updates, but
    the specific changes are not visible in the provided diff.
+2/-0
sidebarSlice.js                                                                                         
    frontend/store/sidebar/sidebarSlice.js

    This file has been updated as part of the UI updates, but
    the specific changes are not visible in the provided diff.
+15/-2
blazickjp commented 10 months ago

/describe

github-actions[bot] commented 10 months ago

PR Description updated to latest commit (https://github.com/blazickjp/GPT-CodeApp/commit/da3545706875f1d5267c0ef65e7b18eac95ba421)