Commit graph

10,155 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
0dc5cff33e Add id search from search string 2024-05-01 11:41:51 -03:00
Lucas Oliveira
a551308297 Added playground button on Store card 2024-05-01 05:12:26 +02:00
Lucas Oliveira
fe8fc5bd32 Fixed bug of clicking on IO Modal 2024-05-01 02:04:54 +02:00
anovazzi1
c63b949a44 update playground icon 2024-04-30 20:19:01 -03:00
anovazzi1
38d1e37023 Refactor component styles and icons 2024-04-30 19:14:49 -03:00
anovazzi1
2295754942 Refactor component styles and icons 2024-04-30 19:10:19 -03:00
Lucas Oliveira
89517181c2 Fixed playground button at store 2024-04-30 15:25:06 +02:00
Lucas Oliveira
b21b45fd67 Fixed merge problems 2024-04-30 15:09:46 +02:00
Lucas Oliveira
f403d8e8b4 Fixed merge bug 2024-04-30 15:07:52 +02:00
Lucas Oliveira
74d0e2ed10 Fixed name of Run button 2024-04-30 15:07:20 +02:00
Lucas Oliveira
6b72b41b86 Fixed playground name and collection card 2024-04-30 15:07:20 +02:00
Cristhian Zanforlin Lousa
9c0ae350bf
Fix modal opening bug when not supposed to (#1795)
* fix opening modal error

* Fix cleanOnClose behavior in IOModal component

* Refactor useEffect dependency in CollectionCardComponent

* remove console

* add console.log for debugging

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-04-30 09:39:50 -03:00
anovazzi1
dfc62752f3 Add uniqueId function from lodash to cloneFLowWithParent in storeUtils.ts 2024-04-27 20:53:29 -03:00
anovazzi1
32bfca24d0 Fix useEffect dependency in PlaygroundPage component 2024-04-26 17:59:05 -03:00
anovazzi1
171ebb2321 fix api call 2024-04-26 17:57:29 -03:00
anovazzi1
48ec18b6e5 Refactor API index.ts to pass data object as a parameter in getVerticesOrder function 2024-04-26 17:43:43 -03:00
anovazzi1
84dc98db4b Fix useEffect dependency in PlaygroundPage component 2024-04-26 17:35:19 -03:00
anovazzi1
c5b9419e52 Fix useEffect dependency in PlaygroundPage component 2024-04-26 17:33:56 -03:00
anovazzi1
4a6b13a7c7 first attempt playground page 2024-04-26 17:23:40 -03:00
Gabriel Luiz Freitas Almeida
c77d458b25 Refactor retrieve_vertices_order function in chat.py to use Annotated type hinting for data parameter 2024-04-26 16:41:22 -03:00
anovazzi1
2474cd348e Refactor CollectionCardComponent to improve code readability and fix loadingPlayground state handling 2024-04-26 13:40:54 -03:00
anovazzi1
b8a62a3c7b running flows from store, still need fixes 2024-04-25 18:37:23 -03:00
anovazzi1
089446b1b7 initial implementation of playground on store, not working yet 2024-04-25 16:28:03 -03:00
Gabriel Luiz Freitas Almeida
4317ab35b7 Refactor build_and_cache_graph_from_data function in chat.py to use model_dump() method for graph data 2024-04-25 16:06:14 -03:00
anovazzi1
dc71ad261b Fix cleanFlowPool function not being called in CollectionCardComponent 2024-04-25 15:33:34 -03:00
Gabriel Luiz Freitas Almeida
e22a3300cb Refactor get_vertices function to retrieve_vertices_order in chat.py 2024-04-25 13:03:53 -03:00
anovazzi1
66c0de5283 Merge branch 'playground' of personal:logspace-ai/langflow into playground 2024-04-25 00:10:24 -03:00
anovazzi1
257e18cf5e almost perfect not sending edges and node because of http web method 2024-04-25 00:10:21 -03:00
igorrCarvalho
6d6d1d73db Feat: add File input component 2024-04-24 22:37:20 -03:00
anovazzi1
bafda23b6c fix sorting glitch 2024-04-24 18:01:20 -03:00
anovazzi1
ed10322af2 Update setNodes and setEdges functions in flowStore.ts to skip saving changes when skipSave parameter is true 2024-04-24 17:50:02 -03:00
anovazzi1
55e56e19f5 merge from origin/dev 2024-04-24 11:12:54 -03:00
anovazzi1
0054077251 Merge remote-tracking branch 'origin/dev' into playground 2024-04-24 11:11:17 -03:00
Gabriel Luiz Freitas Almeida
a388e6dd42 Update version in pyproject.toml to 1.0.0a26 2024-04-24 09:18:31 -03:00
Gabriel Luiz Freitas Almeida
5ee638f984 🔧 (.github/workflows/pre-release-langflow.yml): add actions/checkout step to checkout the code before running the job 2024-04-24 09:11:52 -03:00
Gabriel Luiz Freitas Almeida
fe67f84d56 Update package versions in pyproject.toml files 2024-04-23 23:19:26 -03:00
Gabriel Luiz Freitas Almeida
82926cda65 Update kwargs parameter name in MemoryComponent.py to 'limit' instead of 'n_messages' 2024-04-23 23:13:19 -03:00
Gabriel Luiz Freitas Almeida
19e46de04c
Refactor MemoryComponent class and add ZepMessageReaderComponent (#1771)
* Add BaseMemoryComponent class to langflow.base.memory.memory.py (#1750)

* Add BaseMemoryComponent class to langflow.base.memory.memory.py

* Update MemoryComponent class in langflow.components.helpers.MemoryComponent.py to inherit from BaseMemoryComponent

*  (ZepMessageReader.py): Add ZepMessageReaderComponent to retrieve chat messages from Zep
📝 (ZepMessageWriter.py): Add ZepMessageWriterComponent to add messages to ZepChatMessageHistory

📝 (Langflow Memory Conversation.json): Refactor MemoryComponent class to inherit from BaseMemoryComponent for better code organization and reusability. Move get_messages method to the class level and validate kwargs for correct keys before processing.

* Update WeaviateSearch.py to include index_name parameter in build method

Update ZepMessageWriter.py to include metadata parameter in __init__ method

Update ZepMessageReader.py to include cast function for memory parameter

Update schema.py to include cast function for metadata parameter

Update process.py to include tweaks_dict variable and use it in apply_tweaks method

Update Weaviate.py to include index_name parameter in build method and raise ValueError if index_name is not provided

* Update process.py to include tweaks_dict variable and use it in apply_tweaks method

*  (ZepMessageReader.py): Update ZepMessageReaderComponent build method to handle optional url and api_key parameters and improve error handling for zep-python package import
📝 (ZepMessageWriter.py): Refactor ZepMessageWriterComponent to use 'text' instead of 'message' for consistency and update add_message method to reflect this change. Add 'input_value' configuration option for specifying the record to write to Zep. Update build_config method to reflect changes in input parameters. Update add_message method to use 'text' parameter instead of 'message'. Update build method to handle optional url and api_key parameters and improve error handling for zep-python package import.

* Update zep-python package to version 2.0.0rc5

* 📝 (memory.py): update parameter name from 'message' to 'text' for better clarity and consistency
2024-04-23 23:06:54 -03:00
cristhianzl
9055eb0bc9 Merge branch 'dev' into playground 2024-04-23 21:55:54 -03:00
Cristhian Zanforlin Lousa
ce322f1ba1
Merge pdfView Branch Features (#1772)
* starting commit from pdfView branch

* 📝 (csvOutputComponent/index.tsx): update useEffect dependency array to include 'separator' variable to re-render component when separator changes

* 🐛 (csvOutputComponent/index.tsx): handle error when parsing JSON string in file variable assignment to prevent app crash
 (csvOutputComponent/index.tsx): add error message and UI when file variable is null to inform user about the error

* 📝 (KeyPairInput.py): Add KeyPairInput component to handle dictionary input and return the input value as is
📝 (CSVOutput.py): Add CSVOutput component to handle CSV output with configurable separator
📝 (ImageOutput.py): Add ImageOutput component to handle image output
📝 (PDFOutput.py): Add PDFOutput component to handle PDF output
📝 (constants.ts): Add KeyPairInput to the list of supported input types
📝 (IOModal/index.tsx): Remove console.log statement

* 🔧 (KeyPairInput.py): Remove unused KeyPairInput component
🔧 (CSVOutput.py): Remove unused CSVOutput component
🔧 (ImageOutput.py): Remove unused ImageOutput component
🔧 (PDFOutput.py): Remove unused PDFOutput component

These components were deleted as they were no longer being used in the project and were causing unnecessary clutter in the codebase. Removing them improves code maintainability and reduces potential confusion for developers working on the project.

* 🔧 (IOModal/index.tsx): remove console.log statement for selectedViewField variable to clean up code and improve performance
2024-04-23 21:54:01 -03:00
Gabriel Luiz Freitas Almeida
b07b937b20 Update build_and_cache_graph function to handle graph data from database and from input data (#1750)
* Update build_and_cache_graph function to handle graph data from database and from input data

* Update get_vertices endpoint to handle graph data from input

* Update build_vertex function to handle graph data from database

* Update build_vertex function to handle graph data from input

* Update FlowDataRequest schema to include optional viewport field
2024-04-23 20:38:04 -03:00
anovazzi1
34ac7f359a removed console.log 2024-04-23 16:53:38 -03:00
anovazzi1
bb6ad3939b first implementation, working but not stable 2024-04-23 16:48:00 -03:00
Cristhian Zanforlin Lousa
7311bd3224
Add new tests on global variables and fix old ones (#1756)
🔧 (Makefile): remove unnecessary kill command for frontend server in
run_frontend target
📝 (frontend/.gitignore): add test-results/ directory to .gitignore
⬆️ (frontend/package.json): upgrade @playwright/test dependency to
version 1.43.1
💡 (frontend/tests/end-to-end/filterEdge.spec.ts): update expected
tooltip test ID from "tooltip-Models" to "tooltip-Model Specs"
💡 (frontend/tests/end-to-end/filterEdge.spec.ts): update expected test
ID from "disclosure-models" to "disclosure-model specs"
💡 (frontend/tests/end-to-end/globalVariables.spec.ts): add hover and
delete functionality to test for global variables
💡 (frontend/tests/end-to-end/saveComponents.spec.ts): add additional
wait times to ensure modal is loaded before interacting with it
2024-04-23 16:11:24 -03:00
Kayce Elgin
3f74accbbb
Update deploy_langflow_gcp.sh (#1752)
Sytnax error on line 38 ':tcp:3389', removed leading colon -> 'tcp:3389'
2024-04-23 15:04:41 -03:00
anovazzi1
ec0af06573 Add playground button to flow cards in MainPage (#1752)
* Add playground button to flow cards in MainPage

* Add IOModal component for playground functionality

* Update playground button styling

not working yet
2024-04-23 09:26:15 -03:00
Gabriel Luiz Freitas Almeida
09fd88a0d0
Update Uvicorn command in Dockerfiles and shell script to use langflow.main:create_app instead of src.backend.langflow.main:create_app (#1751)
* Update Uvicorn command in Dockerfiles and shell script to use langflow.main:create_app instead of src.backend.langflow.main:create_app

* Update Uvicorn command in Dockerfiles and shell script to use asyncio event loop
2024-04-19 18:22:27 -03:00
cristhianzl
00b7bbae3c (codeAreaModalComponent.spec.ts): comment out unused code and remove unused import to improve code readability and maintainability
 (store.spec.ts): add a delay before selecting the "Alphabetical" option to ensure the dropdown is fully loaded before interacting with it
2024-04-19 15:51:19 -03:00
cristhianzl
3727c98937 📝 (codeAreaModalComponent.spec.ts): remove unnecessary code that checks for invalid syntax in the test case
♻️ (codeAreaModalComponent.spec.ts): refactor test case to remove redundant code and improve readability
2024-04-19 14:58:57 -03:00
cristhianzl
d87456f29c (textInputOutput.spec.ts): remove redundant expectations for contentOutput variable to improve test readability 2024-04-19 14:15:48 -03:00