Commit graph

9,292 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
b2c6f67a48 Add Error status to nodes that fail validateNodes 2024-03-21 17:06:05 -03:00
Gabriel Luiz Freitas Almeida
43894dee01 Add ERROR status to BuildStatus enum 2024-03-21 17:04:46 -03:00
Gabriel Luiz Freitas Almeida
0a1ee6994e Refactor inputComponent onChange event handler 2024-03-21 16:56:39 -03:00
Gabriel Luiz Freitas Almeida
60a83d1f6a Refactor validateNode function in reactflowUtils.ts 2024-03-21 16:39:37 -03:00
igorrCarvalho
461a0fabfa Refactor: Make group/ungroup happen on the same key (ctrl g) 2024-03-21 14:11:45 -03:00
igorrCarvalho
ef9fdce774 Merge branch 'zustand/io/migration' of github.com:logspace-ai/langflow into zustand/io/migration 2024-03-21 13:58:24 -03:00
igorrCarvalho
2c6d9ee520 Refactor: Group with shortcut and click should call The same function, it shouldnt use it directly 2024-03-21 13:58:13 -03:00
Gabriel Luiz Freitas Almeida
c53a9d0714 Refactor MongoDBAtlasVectorSearch imports 2024-03-21 13:23:06 -03:00
Gabriel Luiz Freitas Almeida
43e3bc4ef5 Refactor authentication code and update settings 2024-03-21 13:22:51 -03:00
Gabriel Luiz Freitas Almeida
4cfb011dfc Fix handling of password input when copied from another input 2024-03-21 13:16:55 -03:00
Gabriel Luiz Freitas Almeida
3f3cd7b9b2 Add check for unsupported .doc files 2024-03-21 12:50:25 -03:00
Gabriel Luiz Freitas Almeida
14688457cd Merge remote-tracking branch 'origin/dev' into zustand/io/migration 2024-03-21 12:26:25 -03:00
Gabriel Luiz Freitas Almeida
50d8313cd7 Refactor file loading and add support for .docx files 2024-03-21 11:59:44 -03:00
Gabriel Luiz Freitas Almeida
6bb6a9f5b9 Add python-docx package version 1.1.0 2024-03-21 11:59:20 -03:00
Gabriel Luiz Freitas Almeida
1bfa6d2a32 Add debounce to autoSaveCurrentFlow function 2024-03-21 10:19:03 -03:00
Gabriel Luiz Freitas Almeida
bd1bf4b16e Remove unused code and update save debounce time 2024-03-21 10:18:54 -03:00
Gabriel Luiz Freitas Almeida
0b4b4c0c87 Update version number in pyproject.toml 2024-03-21 09:49:29 -03:00
Gabriel Luiz Freitas Almeida
7b11435655 Refactor Graph class to improve readability and add docstrings 2024-03-21 09:48:34 -03:00
Gabriel Luiz Freitas Almeida
f4e204ce50 Refactor AnthropicModel imports and update description 2024-03-21 09:48:21 -03:00
Gabriel Luiz Freitas Almeida
6262849463 Add defusedxml and langchain-anthropic packages 2024-03-21 09:46:09 -03:00
Gabriel Luiz Freitas Almeida
a00bab4b56 Update anthropic and add crewai 2024-03-20 20:57:42 -03:00
Gabriel Luiz Freitas Almeida
fe7fc3927e Refactor code for better readability and maintainability 2024-03-20 20:48:47 -03:00
Gabriel Luiz Freitas Almeida
3a2808003c Add error handling for password input in InputComponent 2024-03-20 20:48:17 -03:00
anovazzi1
797934b944 Merge branch 'zustand/io/migration' of personal:logspace-ai/langflow into zustand/io/migration 2024-03-20 20:33:12 -03:00
anovazzi1
483802f680 Add updateGroupRecursion function to flowStore.ts and reactflowUtils.ts 2024-03-20 20:33:09 -03:00
Gabriel Luiz Freitas Almeida
949cc83283 Refactor useFlowStore to update build status on build start 2024-03-20 20:23:22 -03:00
Gabriel Luiz Freitas Almeida
a6625bbad5
Update node and edge IDs, refactor node ID generation, and fix async bug in build_vertex_stream function (#1546)
* Update node and edge IDs in PageComponent and reactflowUtils

* Merge remote-tracking branch 'origin/zustand/io/migration' into fixGroup

* Refactor node ID generation and update node IDs in selection

* Update flowStore.ts and reactflowUtils.ts

* Fix async bug in build_vertex_stream function

* Add check for missing id in vertex data

* Fix exception message for missing vertex id

* Update code: Added VertexLayerElementType type and modified updateIds function
2024-03-20 20:06:25 -03:00
Gabriel Luiz Freitas Almeida
c175395cd7 Add top_level_vertices to getInactiveVertexData function 2024-03-20 17:56:52 -03:00
Gabriel Luiz Freitas Almeida
8c0a2b62a3 Refactor custom fields handling in validate.py 2024-03-20 17:55:49 -03:00
Gabriel Luiz Freitas Almeida
7ae3aefa76 Add test for build ordering in complex graph 2024-03-20 16:16:30 -03:00
Gabriel Luiz Freitas Almeida
cb98118ce8 Refactor vertex build process and add new response field 2024-03-20 16:13:57 -03:00
Gabriel Luiz Freitas Almeida
c4b2ad763f Add functions for retrieving next runnable vertices and top-level vertices in the graph 2024-03-20 16:13:53 -03:00
Gabriel Luiz Freitas Almeida
8376cd1a5b Remove unused import and fix formatting in IOOutputView, MenuBar, RenameLabel, and PageComponent 2024-03-20 16:13:51 -03:00
Gabriel Luiz Freitas Almeida
0d15491d36 Update useFlowStore to use top_level_vertices instead of next_vertices_ids 2024-03-20 16:13:49 -03:00
Gabriel Luiz Freitas Almeida
efc66b014b Refactor reconnectEdges function to fix bug 2024-03-20 16:13:48 -03:00
Gabriel Luiz Freitas Almeida
5b0b101f37 Add display name to error message in validateNode function 2024-03-20 16:13:46 -03:00
Lucas Oliveira
725566d527 Make big view appear when chat not available 2024-03-20 14:05:30 +01:00
anovazzi1
acd56ce656
add duplicate flow functionality (#1541) 2024-03-19 18:10:42 -03:00
anovazzi1
a02b2e1776 Fix flow duplication and navigation bug in MenuBar component 2024-03-19 18:08:21 -03:00
anovazzi1
43023e55bf
Prevent esc to close Code Modal (#1544)
 (codeAreaModal/index.tsx): add event listener to prevent the Escape
key from closing the modal
📝 (codeAreaModal/index.tsx): improve code readability by adding line
breaks and indentation for better code organization
2024-03-19 17:58:21 -03:00
anovazzi1
97e609176c
Feat: Add shortcut to group node (ctrl G) (#1545) 2024-03-19 17:54:02 -03:00
igorrCarvalho
19f60ba17a Feat: Add shortcut to group node (ctrl G) 2024-03-19 16:45:57 -03:00
cristhianzl
35198a3abb (codeAreaModal/index.tsx): add event listener to prevent the Escape key from closing the modal
📝 (codeAreaModal/index.tsx): improve code readability by adding line breaks and indentation for better code organization
2024-03-19 15:00:46 -03:00
anovazzi1
633881c652 Add setSuccessData function to handleAddFlow and add duplicate flow functionality 2024-03-18 16:39:24 -03:00
Remco Goyvaerts
f0b93a9bd7
Use MongoDB Altas without required Documents (#1538)
* Working on mongodb

* Working on retriever tool

* Add vectorstore retriever

* Fix format

---------

Co-authored-by: Remco Goyvaerts <remco.goyvaerts@acagroup.be>
2024-03-18 13:24:55 -03:00
Gabriel Luiz Freitas Almeida
50c90f0879 Update .env.example file 2024-03-18 12:47:17 -03:00
anovazzi1
ced448c7ae
Add tests to shortcuts (#1510)
🔧 fix(NewFlowCard2): add missing data-testid attribute to the
NewFlowCardComponent to improve testability

🔧 fix(nodeToolbarComponent): add missing data-testid attribute to the
save button to improve testability
🔧 fix(nodeToolbarComponent): add missing data-testid attribute to the
edit button to improve testability
🔧 fix(nodeToolbarComponent): add missing data-testid attribute to the
duplicate button to improve testability
🔧 fix(codeAreaModalComponent.spec): add click on the blank-flow element
before performing other actions to ensure proper test setup
🔧 fix(dropdownComponent.spec): add click on the blank-flow element
before performing other actions to ensure proper test setup
🔧 fix(floatComponent.spec): add click on the blank-flow element before
performing other actions to ensure proper test setup
🔧 fix(flowPage.spec): add click on the blank-flow element before
performing other actions to ensure proper test setup
🔧 fix(group.spec): add click on the blank-flow element before performing
other actions to ensure proper test setup
🔧 fix(inputComponent.spec): add click on the blank-flow element before
performing other actions to ensure proper test setup
🔧 fix(intComponent.spec): add click on the blank-flow element before
performing other actions to ensure proper test setup

🐛 fix(keyPairListComponent.spec.ts): update key pair IDs and values to
match test expectations
 feat(keyPairListComponent.spec.ts): add support for dynamic key pair
creation and deletion
🔀 merge(langflowShortcuts.spec.ts): add end-to-end tests for langflow
shortcuts
🔀 merge(nestedComponent.spec.ts): add end-to-end tests for nested
components
🔀 merge(promptModalComponent.spec.ts): add end-to-end tests for prompt
modal component
🔀 merge(saveComponents.spec.ts): add end-to-end tests for save
components

 test(toggleComponent.spec.ts): add test case to simulate clicking on
"blank-flow" element and waiting for 2 seconds
🐛 fix(toggleComponent.spec.ts): fix typo in test case, change "locator"
to "waitForSelector" for better readability
2024-03-15 18:09:46 -03:00
cristhianzl
a51dd38561 merge fix 2024-03-15 15:58:47 -03:00
cristhianzl
70c083451e 📝 (index.tsx): add data-testid attributes to the toolbar select items to improve testability
♻️ (toolbarSelectItem/index.tsx): remove unused import and refactor code to include data-testid attribute in the rendered element
📝 (index.ts): add dataTestId property to the toolbarSelectItemProps type to reflect the addition of data-testid attribute in the component
📝 (auto_login.spec.ts): increase timeout for page.waitForTimeout to 16 seconds and test.setTimeout to 140 seconds to accommodate slower test execution
📝 (keyPairListComponent.spec.ts): increase timeout for page.waitForTimeout to 20 seconds to accommodate slower test execution
2024-03-15 15:56:13 -03:00
anovazzi1
97f1e82cb0
Fix toolbar UI - Icons views (#1525)
♻️ (index.tsx): remove unused import of useEffect to improve code
cleanliness and readability
📝 (index.tsx): refactor toolbarSelectItem component to improve code
formatting and readability
2024-03-15 15:45:19 -03:00