Commit graph

7,638 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
3dbd459f2c Refactor error handling in initialize_services function 2024-03-28 09:56:51 -03:00
Gabriel Luiz Freitas Almeida
d413bf167f Refactor imports in state factory module 2024-03-28 09:56:46 -03:00
Gabriel Luiz Freitas Almeida
6737c845eb Refactor code and fix formatting issues 2024-03-27 23:46:11 -03:00
Gabriel Luiz Freitas Almeida
291d655919 Add StateService and StateServiceFactory 2024-03-27 22:10:04 -03:00
Gabriel Luiz Freitas Almeida
beb8f9a393 Add get_schema method to Service class 2024-03-27 22:08:30 -03:00
Gabriel Luiz Freitas Almeida
0c025977ab Refactor variable names and update variable service 2024-03-27 22:06:36 -03:00
Gabriel Luiz Freitas Almeida
89a466f22e Refactor RunnableExecutor.py to improve input handling 2024-03-27 22:05:05 -03:00
Lucas Oliveira
b93476af87
Fix dropdown on nodes (#1569)
* Fixed dropdown overflow issue by changing it to ShadCN

* Changed name of API modal

* Fixed border on API Modal
2024-03-27 18:52:36 -03:00
Gabriel Luiz Freitas Almeida
ac17ab7ac6 Refactor set_cache_coro method call in RunnableVerticesManager 2024-03-27 18:41:19 -03:00
Gabriel Luiz Freitas Almeida
75d1c83aae Merge branch 'zustand/io/migration' into globalVariables 2024-03-27 18:20:34 -03:00
Gabriel Luiz Freitas Almeida
043ec91d96 Update status message format in RunnableExecutor.py 2024-03-27 18:11:39 -03:00
anovazzi1
124bdf0e3a Merge branch 'zustand/io/migration' of personal:logspace-ai/langflow into zustand/io/migration 2024-03-27 18:00:44 -03:00
anovazzi1
7ea25b52f1 Refactor group.spec.ts test case 2024-03-27 18:00:40 -03:00
Gabriel Luiz Freitas Almeida
b3a621d1b2 Refactor RunnableExecutor.py to handle input keys and provide status information 2024-03-27 17:59:19 -03:00
Gabriel Luiz Freitas Almeida
77d1f7e731 Refactor RunnableExecutor.py to improve output handling 2024-03-27 17:52:34 -03:00
Gabriel Luiz Freitas Almeida
54aeee570b Add assemblyai dependency and update websockets version 2024-03-27 17:42:34 -03:00
cristhianzl
c660c1e945 ⬆️ (playwright.config.ts): upgrade number of workers from 2 to 3 to improve test parallelization and speed up test execution 2024-03-27 17:06:08 -03:00
cristhianzl
a99612af3b (playwright.config.ts): set the number of workers to 2 to improve test parallelization
📝 (API/index.ts): remove conditional return of 100 for getRepoStars function to ensure accurate retrieval of stargazers count from GitHub API
📝 (API/index.ts): remove conditional return of example data for getExamples function to ensure accurate retrieval of examples from GitHub API
📝 (auto_login.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (codeAreaModalComponent.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (dragAndDrop.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (dropdownComponent.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (floatComponent.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (flowPage.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (group.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (inputComponent.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (intComponent.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (keyPairListComponent.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (langflowShortcuts.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (nestedComponent.spec.ts): update page.goto URLs to include the protocol to fix navigation issues
📝 (promptModalComponent.spec.ts): update page.goto URLs to include the protocol to fix navigation issues

 (saveComponents.spec.ts): update page.goto() URL to include the correct protocol and port for the frontend app
 (toggleComponent.spec.ts): update page.goto() URL to include the correct protocol and port for the frontend app
2024-03-27 17:04:19 -03:00
cristhianzl
4d0a1616bb remove location 2024-03-27 16:56:54 -03:00
Gabriel Luiz Freitas Almeida
8d55e058ce Fix build status update in flowStore.ts 2024-03-27 16:52:10 -03:00
Gabriel Luiz Freitas Almeida
a6f66af191 Update error logging in log_vertex_build function 2024-03-27 16:52:02 -03:00
Gabriel Luiz Freitas Almeida
dfc733be7d Add llm_creator and prompt_creator to VertexTypesDict 2024-03-27 16:43:30 -03:00
cristhianzl
0bbd77afd0 merge fix 2024-03-27 16:29:48 -03:00
cristhianzl
cfc2913e9c merge fix 2024-03-27 16:29:32 -03:00
cristhianzl
735c1808b2 (parameterComponent/index.tsx): add data-testid attributes to improve testability and accessibility
 (codeTabsComponent/index.tsx): add componentName prop to InputListComponent to improve testability and accessibility
 (inputListComponent/index.tsx): add componentName prop to improve testability and accessibility
 (textAreaComponent/index.tsx): add data-testid attribute to IconComponent to improve testability and accessibility
 (EditNodeModal/index.tsx): add componentName prop to InputListComponent to improve testability and accessibility
 (DisclosureComponent/index.tsx): add data-testid attribute to Disclosure.Button to improve testability and accessibility
 (components/index.ts): add componentName prop to InputListComponentType to improve testability and accessibility
 (codeAreaModalComponent.spec.ts): reduce wait time for better test performance
 (dragAndDrop.spec.ts): reduce wait time for better test performance

 (dropdownComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (dropdownComponent.spec.ts): add new test file filterEdge.spec.ts to test filtering functionality in dropdown component
 (filterEdge.spec.ts): add tests for tooltip and filter functionality in dropdown component

 (floatComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (flowPage.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (group.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (inputComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance

 (inputListComponent.spec.ts): add end-to-end test for InputListComponent to ensure proper functionality
 (intComponent.spec.ts): add end-to-end test for IntComponent to ensure proper functionality
 (keyPairListComponent.spec.ts): add end-to-end test for KeyPairListComponent to ensure proper functionality
 (nestedComponent.spec.ts): add end-to-end test for NestedComponent to ensure proper functionality

 (promptModalComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (promptModalComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (promptModalComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (promptModalComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (saveComponents.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (saveComponents.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (saveComponents.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (saveComponents.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (textAreaModalComponent.spec.ts): add test for TextAreaModalComponent
 (toggleComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (toggleComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (toggleComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
 (toggleComponent.spec.ts): reduce wait time for page.waitForTimeout from 2000ms to 1000ms to improve test performance
2024-03-27 16:11:59 -03:00
Gabriel Luiz Freitas Almeida
868d5fbb52 Replace import statement with langflow.custom 2024-03-27 16:09:33 -03:00
Gabriel Luiz Freitas Almeida
e274738861 Return additional vertices to run 2024-03-27 16:06:21 -03:00
Gabriel Luiz Freitas Almeida
9abad780b2 Replace import statement in custom component class 2024-03-27 15:37:22 -03:00
Gabriel Luiz Freitas Almeida
3a8d29241d Refactor RunnableExecutor.py to add default values for input_key and output_key 2024-03-27 15:33:19 -03:00
Gabriel Luiz Freitas Almeida
a8d9dea167 Add input types to runnable info 2024-03-27 15:27:25 -03:00
Gabriel Luiz Freitas Almeida
f19c449f15
Add Frontend Tests (#1571)
* Add TypeScript test workflow

* Update follow-redirects and katex versions

* Add Python setup and Poetry installation for backend

* Update Poetry version and setup Python in workflows

* Add Poetry installation step to GitHub Actions workflow

* Add Playwright report artifact upload and improve test script

* Update Playwright test configuration and add global teardown script

* Update path for playwright-report directory

* Update timeout value in playwright.config.ts

* Update page URLs in end-to-end tests

* Update GitHub Actions workflow and Playwright configuration

* Update TypeScript test workflow

* Add pattern and merge-multiple options to artifact download

* Update TypeScript test workflow to install Poetry

* Add cache steps for Playwright and Poetry

* Update PLAYWRIGHT_BROWSERS_PATH in TypeScript test workflow

* Add 'stuff/' to .gitignore

* Remove caching of Poetry virtualenv

* Update frontend tests to use Playwright for UI testing

* Add global teardown for removing temp database

* Add cache-hit condition to setup-node and setup-python steps

* Add new file to .gitignore and update ignored files

* Update playwright cache key in TypeScript test workflow

* Update path for blob-report in GitHub workflow

* Update path for playwright cache

* Update dependency installation in workflows

* Update baseURL in playwright.config.ts

* Update baseURL in playwright.config.ts

* Refactor test timeouts

* Remove playwright-report index.html file

* Add npm run start command to playwright.config.ts

* Update npm start command in playwright.config.ts

* Update Playwright browser caching and installation

* Update playwright cache path

* Update playwright cache path

* Update actions/cache version to v4

* Update Playwright cache key to use package-lock.json

* Update Playwright cache and install dependencies

* Fix typo in Playwright installation command

* Fix npm ci command in TypeScript test workflow

* Update TypeScript test workflow
2024-03-27 14:27:40 -03:00
igorrCarvalho
a3b7001264 Refactor: Increase hover time 2024-03-27 14:21:49 -03:00
Gabriel Luiz Freitas Almeida
569d384573 Add AstraDB icon and field order to AstraDBVectorStoreComponent and AstraDBSearchComponent 2024-03-27 00:43:02 -03:00
Gabriel Luiz Freitas Almeida
eaf2479c87
Update function signature, refactor code, add new langflow helper functions and files, and add version module (#1570)
* Update function signature and import statements

* Refactor code and fix bugs

* Add new langflow helper functions and remove base model component

* Add new files and modify existing files

* Add version module and update imports

* Update packages include path in pyproject.toml

* Update Poetry version to 1.8.2
2024-03-26 23:18:44 -03:00
Gabriel Luiz Freitas Almeida
a92dcaf37d Update agent.py and experimental components 2024-03-26 21:24:33 -03:00
Gabriel Luiz Freitas Almeida
16e91a00de Update mypy configuration to include namespace packages 2024-03-26 21:24:17 -03:00
Gabriel Luiz Freitas Almeida
532615533a Add VariableService and related files 2024-03-26 20:40:03 -03:00
Gabriel Luiz Freitas Almeida
95f5c4421f Merge remote-tracking branch 'origin/zustand/io/migration' into globalVariables 2024-03-26 20:33:15 -03:00
Lucas Oliveira
ff8c3d7a06 Fixed input of global variables 2024-03-27 01:18:21 +02:00
Cezar Vasconcelos
638ea4a87c Merge branch 'zustand/io/migration' of https://github.com/logspace-ai/langflow into zustand/io/migration 2024-03-26 21:30:15 +00:00
root
edf4d5053c fix: system message should be the first message to LLM 2024-03-26 21:29:24 +00:00
Gabriel Luiz Freitas Almeida
8b68f06593 Update OpenAIModelComponent in Langflow Basic Prompting.json 2024-03-26 17:29:00 -03:00
Lucas Oliveira
d123d5b64f Added editNode variable on global variables for inputs 2024-03-26 22:28:42 +02:00
Gabriel Luiz Freitas Almeida
92ab5a1619 Update Python version and package dependencies 2024-03-26 17:17:13 -03:00
Lucas Oliveira
1315137ab8 put optional label on type 2024-03-26 22:03:13 +02:00
Lucas Oliveira
ae7d827483 Fixed type to always exist 2024-03-26 21:54:08 +02:00
Lucas Oliveira
42739a29cf Added types 2024-03-26 21:52:23 +02:00
Lucas Oliveira
5db74fbf5a Changed provider to type and hid field 2024-03-26 21:50:44 +02:00
Gabriel Luiz Freitas Almeida
f60823a40a Update dependencies and install poetry-monorepo-dependency-plugin 2024-03-26 16:22:17 -03:00
anovazzi1
e5b5444e36 Merge branch 'zustand/io/migration' of personal:logspace-ai/langflow into zustand/io/migration 2024-03-26 14:25:52 -03:00