Commit graph

6,039 commits

Author SHA1 Message Date
Cristhian Zanforlin Lousa
46601245e1 🐛 fix(EditNodeModal/index.tsx): import convertObjToArray function from reactflowUtils to fix undefined reference error
🐛 fix(EditNodeModal/index.tsx): fix incorrect usage of convertObjToArray function to correctly convert object to array
2023-09-17 11:09:15 -03:00
Cristhian Zanforlin Lousa
0838baa50a merge dev 2023-09-17 10:32:45 -03:00
Cristhian Zanforlin Lousa
ddda46f6d6 🐛 fix(parameterComponent): convert object to array in data.node!.template[name].value to fix rendering issue 2023-09-17 10:31:42 -03:00
Gabriel Luiz Freitas Almeida
254d9e946d 🐛 fix(ci.yml): remove unnecessary -d flag from docker compose up command to prevent services from running in detached mode 2023-09-16 11:21:27 -03:00
Gabriel Luiz Freitas Almeida
ce3127d6f7 📦 chore(ci.yml): rename CI/CD Pipeline workflow to "Async API tests" for better clarity and specificity 2023-09-16 11:17:59 -03:00
Gabriel Luiz Freitas Almeida
7ef80c8e78 🔀 chore(ci.yml): update branch configuration for CI/CD pipeline to include 'dev' branch 2023-09-16 11:16:35 -03:00
Gabriel Luiz Freitas Almeida
c367328727 📦 chore(base.Dockerfile): add tests directory to Docker image to include tests in the build process 2023-09-16 11:15:23 -03:00
Gabriel Luiz Freitas Almeida
43fc6add04 🐛 fix(conftest.py): fix typo in file name BasicChatWithPromptAndHistory.json to improve consistency and readability 2023-09-16 11:15:07 -03:00
Gabriel Luiz Freitas Almeida
05a6f4d067 🔧 fix(process.py): remove unused import and add missing import for BaseModel from pydantic
🔧 fix(manager.py): change return type annotation of launch_task method to handle both Coroutine and Any types
🔧 fix(worker.py): add missing import for Result class from process module and update return statement to return Result object as dictionary
2023-09-16 11:13:53 -03:00
Gabriel Luiz Freitas Almeida
b8d8eccbff 🐛 fix(anyio.py): add error handling when launching a task to prevent crashes and log the error
🐛 fix(celery.py): add type hinting to the launch_task method and return the AsyncResult object for better task tracking
2023-09-16 11:13:08 -03:00
Gabriel Luiz Freitas Almeida
abc4e8a3e0 🔧 chore(ci.yml): remove unnecessary comments and reorganize steps for clarity and readability 2023-09-16 00:11:00 -03:00
Gabriel Luiz Freitas Almeida
cc8cd8bef0 🔧 chore(ci.yml): update Docker commands to use 'docker compose' instead of 'docker-compose' for consistency and future compatibility 2023-09-16 00:09:32 -03:00
Gabriel Luiz Freitas Almeida
986b4696cd 🔧 chore(ci.yml): add CI/CD pipeline configuration file to automate build and test process
🔧 chore(pyproject.toml): add 'async_test' marker for pytest to identify asynchronous tests
2023-09-16 00:05:39 -03:00
Gabriel Luiz Freitas Almeida
e9fd9b097f 🐳 chore(docker-compose.yml): refactor backend service to use YAML anchors and aliases for code reuse
🚀 feat(docker-compose.yml): add tests service to run pytest with coverage and generate reports
2023-09-16 00:05:26 -03:00
Gabriel Luiz Freitas Almeida
f5f89eb8b8 🐛 fix(util.py): rename callback_service to callback_manager for consistency and clarity in codebase 2023-09-16 00:05:19 -03:00
Gabriel Luiz Freitas Almeida
8987c6d969 🐛 fix(test_agents_template.py): fix incorrect variable name in test_zero_shot_agent function
🐛 fix(test_endpoints.py): add missing pytest.mark.async_test decorator to test_async_task_processing function
2023-09-16 00:05:03 -03:00
Gabriel Luiz Freitas Almeida
507d6a756d 🐛 fix(manager.py): handle None key in __contains__ method to prevent Redis client error when checking if key exists in cache 2023-09-15 23:24:26 -03:00
Gabriel Luiz Freitas Almeida
fa1ebea378 🐛 fix(process.py): remove unnecessary session_id parameter in build_sorted_vertices function calls
🐛 fix(endpoints.py): remove unused import and type hinting to improve code readability and maintainability
🐛 fix(endpoints.py): fix incorrect import statement for TaskService
🐛 fix(endpoints.py): fix incorrect return value for get_task_status function
 feat(endpoints.py): add test case for async task processing to validate task completion and result
2023-09-15 18:16:25 -03:00
Gabriel Luiz Freitas Almeida
8d1bff38fe 🔥 chore(ChatOutput.py): remove unused ChatOutput component
The ChatOutput component was removed as it was no longer being used in the project. This commit removes the file and its associated code.
2023-09-15 17:42:14 -03:00
Gabriel Luiz Freitas Almeida
651595932c Change all Services names from Manager to Service 2023-09-15 17:41:39 -03:00
Cristhian Zanforlin Lousa
4a03e81314 🐛 fix(parameterComponent): remove redundant conditional statement and set dictionary array and node template value directly
The conditional statement checking for duplicate keys and setting the dictionary array was redundant. Instead, the dictionary array is now always set to the new value. Additionally, the node template value is now always updated with the new value.
2023-09-15 16:07:08 -03:00
Cristhian Zanforlin Lousa
55001b98c8 🔥 refactor(parameterComponent): remove console.log statement for newValue in ParameterComponent 2023-09-15 15:49:47 -03:00
Cristhian Zanforlin Lousa
ef5a3fb355 🔧 fix(parameterComponent): remove unused imports and variables to improve code cleanliness and readability
🔧 fix(parameterComponent): update useState initial value for dictArr to be an array of objects instead of an empty array
🔧 fix(parameterComponent): update value prop in ParameterInputListComponent to handle cases where data.node!.template[name].value is null or an empty array
🔧 fix(parameterComponent): update onChange prop in ParameterInputListComponent to handle any type of newValue instead of just string[]
🔧 fix(keypairListComponent): update className condition to check if value is null or undefined before checking its length
🔧 fix(editNodeModal): remove unused imports and variables to improve code cleanliness and readability
🔧 fix(editNodeModal): update useState initial value for dictArr to be an array of objects instead of an empty array
🔧 fix(editNodeModal): update value prop in KeypairListComponent to handle cases where myData.node.template[templateParam].value is null or an empty array
🔧 fix(editNodeModal): update onChange prop in KeypairListComponent to handle any type of newValue instead of just string[]
🔧 fix(types): update onChange type in KeyPairListComponentType to accept an array of objects instead of an array of strings
🔧 fix(reactflowUtils): remove unused convertArrayToObj function
2023-09-15 15:49:37 -03:00
Cristhian Zanforlin Lousa
c6122980ad 🐛 fix(reactflowUtils.ts): remove unnecessary space in key assignment to maintain consistent object key order 2023-09-15 14:50:27 -03:00
Cristhian Zanforlin Lousa
321024fd4c 🔥 refactor(keypairListComponent): remove commented out code and unused imports for cleaner code
🐛 fix(reactflowUtils.ts): add space before key in flattenedObject to prevent ordering when adding new keys to the object
2023-09-15 14:02:21 -03:00
Cristhian Zanforlin Lousa
55513a34a3 🐛 fix(parameterComponent): fix logic for setting default value in ParameterComponent
🐛 fix(dictComponent): fix class name for disabled input in DictComponent
🐛 fix(keypairListComponent): remove unnecessary disabled prop from Input component in KeypairListComponent
2023-09-15 09:27:48 -03:00
Cristhian Zanforlin Lousa
a6751d4a17 🐛 fix(parameterComponent): fix nullish coalescing operator usage to prevent potential error when accessing nested object properties 2023-09-15 08:48:23 -03:00
Cristhian Zanforlin Lousa
dd556c518d 🐛 fix(parameterComponent): remove unnecessary useEffect hook that sets dictArr state
🐛 fix(parameterComponent): update value prop of KeypairListComponent to use convertObjToArray(dict) instead of dict
2023-09-15 08:47:51 -03:00
anovazzi1
44b6171800 remove console.log 2023-09-14 22:31:59 -03:00
anovazzi1
be1ee757a4 fix(parameterComponent): add readonly prop to CodeAreaComponent and PromptAreaComponent based on dynamic property in template
fix(GenericNode): remove console.log statement
fix(codeAreaComponent): add readonly prop to CodeAreaModal
fix(codeTabsComponent): add readonly prop to CodeAreaComponent and PromptAreaComponent
fix(promptComponent): add readonly prop to GenericModal
fix(EditNodeModal): add readonly prop to CodeAreaComponent
fix(codeAreaModal): add readonly prop to AceEditor in CodeAreaModal
fix(genericModal): add readonly prop to Textarea in GenericModal
fix(reactflowUtils): remove unnecessary code in updateGroupNodeTemplate function
2023-09-14 22:31:21 -03:00
anovazzi1
a273aab2cc fix(types): add 'readonly' property to TemplateVariableType to indicate if a variable is read-only
fix(types): add 'selected' property to NodeType to indicate if a node is selected
fix(reactflowUtils): change 'dynamic' property to 'readonly' when updating group node template
fix(reactflowUtils): update group node template fields with correct values and set 'selected' property to false
2023-09-14 21:51:55 -03:00
Gabriel Luiz Freitas Almeida
44466dc2d1 🐛 fix(RecursiveCharacterTextSplitter.py): uncomment line to assign repr_value to separators variable
 feat(util.py): add build_loader_repr_from_documents function to generate a representation string from a list of documents
2023-09-14 21:38:10 -03:00
Gabriel Luiz Freitas Almeida
329d779b6e
Fixed Lint error and no module error (#918) 2023-09-15 00:35:36 +00:00
anovazzi1
9647fe0b69 fix bug on infinity icon 2023-09-14 21:17:23 -03:00
anovazzi1
b65b3ce89a fix(EditNodeModal): update the display of the node type in the modal header to use the display name instead of the type property for better clarity and accuracy 2023-09-14 20:58:31 -03:00
Guangya Liu
03a71b1fe8 use optional for user 2023-09-14 19:48:48 -04:00
anovazzi1
c0befa83ac fix(reactflowUtils.ts): only add updated edges to the array if they are connected to the group node 2023-09-14 20:47:36 -03:00
anovazzi1
c5d9a390eb fix(reactflowUtils.ts): add missing assignment of newSourceHandle to newEdge.data.sourceHandle to ensure data consistency
fix(reactflowUtils.ts): add missing assignment of newTargetHandle to newEdge.data.targetHandle to ensure data consistency
2023-09-14 20:34:19 -03:00
anovazzi1
4cdd66d1d3 fix(reactflowUtils.ts): add missing assignment of newSourceHandle to newEdge.data.sourceHandle to ensure data consistency
fix(reactflowUtils.ts): add missing assignment of newTargetHandle to newEdge.data.targetHandle to ensure data consistency
2023-09-14 20:22:29 -03:00
anovazzi1
1868540a10 fix(menuBar): remove unnecessary parameter in addFlow function call to improve code readability
fix(tabsContext): change parameter order in addFlow function signature to match the implementation
fix(tabsContext): change parameter order in addFlow function call to match the implementation
fix(communityPage): change parameter order in addFlow function call to match the implementation
fix(mainPage): remove unnecessary parameter in addFlow function call to improve code readability
fix(tabs): change parameter order in addFlow function signature to match the implementation
2023-09-14 20:14:37 -03:00
Cristhian Zanforlin Lousa
bd9c53bf14 🐛 fix(EditNodeModal): fix state mutation issue by using useRef instead of useState for myData variable
 feat(EditNodeModal): add onChangeOpenModal prop to BaseModal component to reset myData to original data when modal is closed

🔧 chore: fix indentation in setTabsState function call for better code readability

🔧 fix(baseModal): import useEffect from react to fix missing dependency warning
🔧 fix(baseModal): add missing onChangeOpenModal prop to BaseModal component
🔧 fix(baseModal): call onChangeOpenModal prop in useEffect to notify parent component of modal open state change
🔧 fix(genericModal): add empty onChangeOpenModal prop to BaseModal component to fix prop type error
2023-09-14 20:11:48 -03:00
anovazzi1
4ddc65d5a9 removed dead code 2023-09-14 20:05:52 -03:00
Gabriel Luiz Freitas Almeida
5ac3208c8a Merge remote-tracking branch 'origin/main' into dev 2023-09-14 20:02:52 -03:00
Gabriel Luiz Freitas Almeida
fa94ae3350
🔧 chore(render.yaml): add disk configuration for langflow-data to pro… (#919) 2023-09-14 23:02:26 +00:00
Gabriel Luiz Freitas Almeida
ff18b32aeb 🔀 chore(README.md): update Railway deployment button link to use a different template 2023-09-14 20:01:51 -03:00
Cristhian Zanforlin Lousa
83e48f0728 🐛 fix(parameterComponent): fix issue with undefined values in DictComponent and KeypairListComponent 2023-09-14 19:57:33 -03:00
Cristhian Zanforlin Lousa
1c1d6d2c02 🔧 fix(parameterComponent): remove unused longString variable to improve code readability and reduce unnecessary code
🔧 fix(parameterComponent): move DictComponent and KeypairListComponent rendering logic to the correct position to fix rendering issues
🔧 fix(keypairListComponent): remove unused imports and fix formatting to improve code readability
🔧 fix(keypairListComponent): fix handleChangeKey function name to improve code clarity
🔧 fix(keypairListComponent): fix className prop in Input component to improve code readability
🔧 fix(keypairListComponent): remove unused GenericModal component and fix formatting to improve code readability
🔧 fix(reactflowUtils.ts): fix formatting and remove unnecessary whitespace to improve code readability
🔧 fix(reactflowUtils.ts): fix function names and formatting to improve code readability
🔧 fix(reactflowUtils.ts): fix formatting and remove unnecessary whitespace to improve code readability
🔧 fix(reactflowUtils.ts): fix formatting and remove unnecessary whitespace to improve code readability
2023-09-14 19:53:39 -03:00
anovazzi1
5013df0f3f feat(reactflowUtils.ts): add logic to deselect group node when expanding it
The changes in this commit add logic to deselect a group node when it is expanded in the ReactFlowUtils file. This is done by setting the 'selected' property of the group node to false. The purpose of this change is to ensure that when a group node is expanded, it is not selected by default.
2023-09-14 19:19:22 -03:00
anovazzi1
21827a29ef fix(codeTabsComponent): add condition to check if data is truthy before executing code block
fix(codeAreaModal): remove unused isTweakPage variable from useContext
fix(reactflowUtils): remove unnecessary null assertion in unselectAllNodes function
2023-09-14 19:16:51 -03:00
anovazzi1
f84df04f8a fix(GenericNode): import missing InputComponent and Textarea components
feat(GenericNode): add support for editing node name and description
fix(InputComponent): add autoFocus and onBlur props
fix(tabsContext): update sourceHandle object in edge data
fix(PageComponent): generate random name for new group node
fix(reactflowUtils): update handleKeyDown function to accept HTMLTextAreaElement
2023-09-14 19:01:09 -03:00