Commit graph

3,688 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
6737c845eb Refactor code and fix formatting issues 2024-03-27 23:46:11 -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
75d1c83aae Merge branch 'zustand/io/migration' into globalVariables 2024-03-27 18:20:34 -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
8d55e058ce Fix build status update in flowStore.ts 2024-03-27 16:52:10 -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
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
Lucas Oliveira
d123d5b64f Added editNode variable on global variables for inputs 2024-03-26 22:28:42 +02: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
anovazzi1
a6d42c043c check edge case when options is empty 2024-03-26 14:25:49 -03:00
anovazzi1
1cdaa284d6 add utf-8 characters to inputCOmponent test 2024-03-26 13:23:50 -03:00
Cristhian Zanforlin Lousa
7c114ce37d
Fix CSS on Chat Border when have overflow of variables (#1564)
♻️ (IOview/index.tsx): remove unnecessary 'overflow-hidden' class from IOView component to fix layout issue
2024-03-26 13:05:50 -03:00
Matheus Jacques
8172e62236
Split Langflow into Langflow and Langflow Base (#1562)
* Initial Restructure

* Replace import langflow for import langflow_base

* Fix dependencies

* 🔧 chore(Makefile): refactor build process to separate base and frontend builds for better organization and maintainability

* 🚀 chore(Makefile): update build_frontend command to copy frontend build to the correct directory
🔖 chore(pyproject.toml): update python and httpx dependencies versions
🔧 chore(__init__.py): update import statement for load_flow_from_json function

* 🔖 chore(pyproject.toml): update package version from 0.0.6 to 0.0.8 to reflect changes in the codebase

* 🚀 feat(server.ts): change port variable case from lowercase port to uppercase PORT to improve semantics
🚀 feat(server.ts): add support for process.env.PORT environment variable to be able to run app on a configurable port

* 🐛 fix(server.ts): change port variable case from lowercase port to uppercase PORT to improve semantics
 feat(server.ts): add support for process.env.PORT environment variable to be able to run app on a configurable port
🚚 chore(pyproject.toml): update langflow-base version from 0.0.8 to 0.0.10
 feat(server.ts): add new agent component LCAgentComponent to langflow_base
 feat(server.ts): add new model component LCModelComponent to langflow_base
 feat(server.ts): add new helper functions docs_to_records and records_to_text to langflow_base
 feat(server.ts): add new flow helper functions list_flows, load_flow, run_flow, generate_function_for_flow, get_flow_inputs, build_schema_from_inputs to langflow_base
 feat(server.ts): add new prompt component PromptComponent to langflow_base
 feat(server.ts): add new chat components ChatInput and ChatOutput to langflow_base
 feat(server.ts): add new model component OpenAIModelComponent to langflow_base
🚚 chore(main.py): update import path from langflow.main to langflow_base.main
🚚 chore(service.py): update import path from langflow.services.database.manager to langflow_base.services.database.manager
🚚 chore(factory.py): update import path from langflow.services to langflow_base.services
🚚 chore(service.py): update import path from langflow.services.plugins to langflow_base.services.plugins
🚚 chore(utils.py): update import path from langflow.services to langflow_base.services
🚚 chore(validate.py): update import path from langflow.field_typing to langflow_base.field_typing
🚚 chore(pyproject.toml): update langflow-base version from 0.0.8 to 0.0.10

* Update Makefile to install backend dependencies and build langflow

* Add langflow main module and update __init__.py

* Update langflow install process to use implicit namespace

* Add langflow-base as a local dependency

* Add setup_poetry target to Makefile

* Update Poetry version and add poetry-monorepo-dependency-plugin

* Refactor code to improve performance and readability

* Update imports to custom and load

* Update content-hash in poetry.lock

---------

Co-authored-by: Matheus <jacquesmats@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@logspace.ai>
2024-03-26 09:26:30 -03:00
anovazzi1
c38a50a7eb Fix ShareModal rendering issue 2024-03-25 17:34:08 -03:00
Gabriel Luiz Freitas Almeida
13f2881f00 Add ping animation to update button 2024-03-25 15:44:32 -03:00
Gabriel Luiz Freitas Almeida
60139e9c87 Add "agents" category to NATIVE_CATEGORIES 2024-03-25 14:46:08 -03:00
Gabriel Luiz Freitas Almeida
297f9df89f Add vertices_to_run field to VerticesOrderResponse 2024-03-25 13:45:18 -03:00
Gabriel Luiz Freitas Almeida
c2ce214c8a Remove console.log statement in flowStore.ts 2024-03-25 12:50:52 -03:00
Gabriel Luiz Freitas Almeida
0f9dccc4fd Refactor parameterComponent to use inline button_text 2024-03-25 10:27:42 -03:00
Gabriel Luiz Freitas Almeida
8292cb8cfa Update global variable type in API and store 2024-03-25 09:59:10 -03:00
Gabriel Luiz Freitas Almeida
2ba305bc7a Add Variable model and remove Credential model 2024-03-25 09:46:53 -03:00
Gabriel Luiz Freitas Almeida
306d8f6715 Fix refresh button text handling 2024-03-23 18:51:31 -03:00
Lucas Oliveira
7aa3c5f494 Added type into new Global input component 2024-03-22 17:48:19 +01:00
Lucas Oliveira
fe2f30d5c5 Added global input component to modularize 2024-03-22 17:18:45 +01:00
Gabriel Luiz Freitas Almeida
b121a03a0b Update description for AddNewVariableButton component 2024-03-22 12:49:00 -03:00
Lucas Oliveira
0f867dc485 Merge remote-tracking branch 'origin/zustand/io/migration' into globalVariables 2024-03-22 16:21:02 +01:00
Lucas Oliveira
ad8e016ab8 Fixed error message appearing when deleting field 2024-03-22 16:19:46 +01:00
Lucas Oliveira
df621707f7 Implemented error alerts and function to clean deleted global variables 2024-03-22 16:18:11 +01:00
Cristhian Zanforlin Lousa
496c2aae3e
Add a new handle when the backend application is offline (#1550)
 (App.tsx): Import the `useNavigate` hook from `react-router-dom` to enable programmatic navigation within the app.
📝 (App.tsx): Add comments to explain the purpose of the `isLoadingHealth` state variable and the `checkApplicationHealth` function.
📝 (App.tsx): Add comments to explain the purpose of the `onHealthCheck` function.
🐛 (App.tsx): Fix a bug where the `checkApplicationHealth` function was not being called when the component mounts.
🐛 (App.tsx): Fix a bug where the `onHealthCheck` function was not being called when the health check was successful.
📝 (App.tsx): Add comments to explain the purpose of the `checkApplicationHealth` function and the `onHealthCheck` function.
 (fetchErrorComponent/index.tsx): Import the `BaseModal` component from the `modals/baseModal` module to display the fetch error component in a modal.
 (fetchErrorComponent/index.tsx): Import the `Button` component from the `ui/button` module to display a retry button in the fetch error component.
 (fetchErrorComponent/index.tsx): Add a retry button to the fetch error component to allow the user to retry the failed request.
 (ui/dialog-with-no-close.tsx): Create a new file `ui/dialog-with-no-close.tsx` to define a custom dialog component without a close button.
 (ui/dialog-with-no-close.tsx): Define the `Dialog`, `DialogTrigger`, `DialogPortal`, `DialogOverlay`, `DialogContent`, `DialogHeader`, `DialogFooter`, `DialogTitle`, and `DialogDescription` components for the custom dialog component.

📝 (baseModal/index.tsx): add support for a new type prop to switch between modal and dialog mode
🐛 (baseModal/index.tsx): fix typo in import statement for Modal and ModalContent components
♻️ (baseModal/index.tsx): refactor BaseModal component to conditionally render either Modal or Dialog based on the type prop
🐛 (flowsManagerStore.ts): fix issue where isLoading state was not being set to false after catching an error
🐛 (typesStore.ts): fix issue where error alert was not being shown when fetching types failed
🐛 (typesStore.ts): remove unnecessary error alert when fetching types failed
 (components/index.ts): add new properties to fetchErrorComponentType to support opening a modal, retrying, and showing loading state
2024-03-22 09:34:59 -03:00
Gabriel Luiz Freitas Almeida
fd7a0fcbff Add field_name prop to PromptAreaComponent 2024-03-22 09:32:04 -03:00
Gabriel Luiz Freitas Almeida
f4c3d445c4 Fix function calls and formatting in PageComponent and NodeToolbarComponent 2024-03-21 17:06:22 -03:00
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
Gabriel Luiz Freitas Almeida
fbe346ccee Refactor globalVariables key names in GlobalVariablesStore 2024-03-21 14:02:37 -03:00
Gabriel Luiz Freitas Almeida
7f34516a52 Change key to name 2024-03-21 14:02:08 -03:00
Gabriel Luiz Freitas Almeida
69735b070f Refactor addNewVariableButtonComponent and API registerGlobalVariable 2024-03-21 14:01:05 -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
Lucas Oliveira
178db4b95f Fix merge bug 2024-03-21 17:26:28 +01:00
Gabriel Luiz Freitas Almeida
4cfb011dfc Fix handling of password input when copied from another input 2024-03-21 13:16:55 -03:00