Commit graph

4,348 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
be4f949e70 📦 chore(deploy): add .gitignore file to ignore 'pgadmin' directory in the deploy folder 2023-08-16 19:27:26 -03:00
Gabriel Luiz Freitas Almeida
97ad9889be Merge remote-tracking branch 'origin/dev' into celery 2023-08-16 19:26:06 -03:00
Gabriel Luiz Freitas Almeida
c2cfcafc17 🐛 fix(Dockerfile): change order of COPY commands to improve build caching and efficiency
🐛 fix(exportModal/index.tsx): add state for invalidName to handle validation of name field
2023-08-16 19:20:24 -03:00
anovazzi1
2a4668d90d
Types refactor (#659)
This pull request aims to perform a comprehensive type refactor across
the project, enhancing type safety and improving code clarity. The
changes introduced in this PR will lead to better maintainability,
reduced bugs related to type-related issues, and increased overall code
quality.
2023-08-16 18:39:05 -03:00
anovazzi1
7c4fbffeb1 Merge remote-tracking branch 'origin/dev' into types_refactor 2023-08-16 18:33:39 -03:00
anovazzi1
4b64d38d68 fix(inputComponent): fix TypeScript error by adding non-null assertion to className variable
fix(authContext): fix TypeScript error by setting initial value of userData to null
fix(tsconfig.json): enable strict mode in TypeScript compiler for better type checking and error detection
2023-08-16 18:29:47 -03:00
anovazzi1
46aa816ba9 run npm install 2023-08-16 18:22:42 -03:00
anovazzi1
e33e236466 Merge branch 'login' into types_refactor 2023-08-16 18:19:36 -03:00
anovazzi1
545a099339 removed strict and implicity any from tsconfig 2023-08-16 18:13:53 -03:00
anovazzi1
c5850977a7 fix(utils.ts): add TemplateVariableType import to fix type error in checkBaseClass function
chore(tsconfig.json): set strict to false and noImplicitAny to true to relax strict type checking and enforce explicit typing
2023-08-16 18:00:37 -03:00
anovazzi1
57f580c93d refactor(utils.ts): simplify logic for getting chat input field
The logic for getting the chat input field has been simplified by removing unnecessary checks and using optional chaining. This improves readability and reduces the complexity of the code.
2023-08-16 17:52:08 -03:00
anovazzi1
af218867eb fix(formModal): fix nullish coalescing operator usage to handle nullable properties in tabsStateFlowId.formKeysData 2023-08-16 17:49:03 -03:00
anovazzi1
9b0ff166c9 fix(ApiModal): fix null assertion on tabs array
fix(ApiModal): fix strict mode in tsconfig.json to enable strict type checking
2023-08-16 17:45:12 -03:00
anovazzi1
826c62c6fc
update make file to prevent binding bug on make frontend (#694)
This pull request addresses a critical issue related to a binding bug
that has been affecting the make_frontend command. The existing Makefile
was susceptible to this bug, causing unexpected behaviors and
disruptions during the build process.
2023-08-16 17:40:35 -03:00
anovazzi1
16fa3a66b8 chore(Makefile): simplify install_frontend target by removing unnecessary conditional statement
feat(Makefile): add install_frontendc target to install frontend dependencies using npm ci for clean installs
feat(Makefile): add frontendc target to install frontend dependencies using npm ci and run frontend
chore(ApiModal/index.tsx): reformat codesArray for better readability
2023-08-16 17:28:35 -03:00
anovazzi1
9096fcd110 chore(Makefile): modify install_frontend target to conditionally run npm ci or npm install based on the value of the clean variable 2023-08-16 17:23:24 -03:00
Gabriel Luiz Freitas Almeida
d4beb3133c Merge remote-tracking branch 'origin/release' into celery 2023-08-16 15:44:27 -03:00
Gabriel Luiz Freitas Almeida
c93390c0e9 🐳 chore(docker-compose.celery.yml): add PostgreSQL and pgAdmin services to support database operations
 feat(docker-compose.celery.yml): add db service with PostgreSQL image and configure environment variables for database connection

 feat(docker-compose.celery.yml): add pgadmin service with pgAdmin4 image and configure environment variables for admin login

🔧 chore(docker-compose.celery.yml): add db service as a dependency for the queue service
2023-08-16 15:42:10 -03:00
Gabriel Luiz Freitas Almeida
e1872b8213 🔒 chore(poetry.lock): update cohere package version to 4.20.1
🔒 chore(poetry.lock): update exceptiongroup package version to 1.1.3
🔒 chore(poetry.lock): update google-api-python-client package version to 2.97.0
🔒 chore(poetry.lock): update pandas-stubs package version to 2.0.3.230814
🔒 chore(poetry.lock): update setuptools package version to 68.1.0
🔒 chore(poetry.lock): update tenacity package version to 8.2.3
🔒 chore(poetry.lock): update textual package version to 0.33.0
2023-08-16 15:41:55 -03:00
Gabriel Luiz Freitas Almeida
40321f4be7 🐛 fix(frontend): update Dockerfile to use node:20-alpine as base image for frontend build
 feat(frontend): add support for BACKEND_URL environment variable in nginx.conf to configure backend URL
📝 chore(frontend): add start-nginx.sh script to replace placeholder in nginx.conf with actual BACKEND_URL and start nginx
2023-08-16 15:41:09 -03:00
Gabriel Luiz Freitas Almeida
c2ec95fbb7 🐛 fix(base.Dockerfile): change --with deploy to --extras deploy in poetry install command to correctly install deploy extras 2023-08-16 15:40:54 -03:00
Gabriel Luiz Freitas Almeida
49729263ef 🐛 fix(manager.py): fix incorrect assignment of langchain_object.result to result_dict["result"] to store the entire langchain_object instead 2023-08-16 15:40:14 -03:00
Gabriel Luiz Freitas Almeida
284158b33b 📦 chore(deploy_langflow_gcp.sh): add script to deploy Langflow on Google Cloud Platform
📝 docs(walkthroughtutorial.md): add tutorial for deploying Langflow on Google Cloud Platform

The `deploy_langflow_gcp.sh` script is added to the `scripts/gcp` directory. This script sets up the necessary VM, image, and networking configuration for deploying Langflow on Google Cloud Platform. It also creates firewall rules, installs dependencies, and starts the Langflow server.

The `walkthroughtutorial.md` file is added to the `scripts/gcp` directory. This file provides a step-by-step tutorial on how to deploy Langflow on Google Cloud Platform using the `deploy_langflow_gcp.sh` script. It includes instructions on setting up the GCP environment, running the script, and connecting to the Langflow VM.

Cleanup instructions are also provided in the tutorial for removing the resources created during the deployment process.

📝 docs(walkthroughtutorial_spot.md): add walkthrough tutorial for deploying Langflow on Google Cloud Platform

This commit adds a new file `walkthroughtutorial_spot.md` which contains a step-by-step tutorial for deploying Langflow on Google Cloud Platform (GCP) using Google Cloud Shell. The tutorial provides an introduction, prerequisites, instructions for setting up the GCP environment, deploying Langflow, connecting to the Langflow VM, and cleaning up resources after the deployment.

The tutorial is authored by Robert Wilkins III and has a duration of 45 minutes. It assumes that the user has a GCP account and basic knowledge of Google Cloud Shell. The tutorial also includes links to relevant documentation and provides commands for configuring the GCP environment and deploying Langflow.

The tutorial is comprehensive and aims to guide users through the process of deploying Langflow on GCP. It also includes cleanup instructions for removing the resources created during the tutorial if desired.
2023-08-16 15:39:08 -03:00
Gabriel Luiz Freitas Almeida
6b0383be50 📦 chore(deploy): add deployment files and configurations for Docker Compose setup 2023-08-16 15:38:43 -03:00
anovazzi1
5fde616f9b
Added spinning wheel when /all is loading (#757)
Added spinning wheel when all components are still loading.
2023-08-16 15:34:07 -03:00
anovazzi1
0b8d91f116 Merge branch 'release' into bug/loadingIndicator 2023-08-16 15:26:15 -03:00
anovazzi1
408ef81a5b chore(constants.ts): add missing newline at the end of the file
feat(tabsContext.tsx): add support for skipping node updates based on node type defined in the skipNodeUpdate constant to improve performance and prevent unnecessary updates
2023-08-16 15:02:57 -03:00
anovazzi1
aae6223593 code format 2023-08-15 19:43:43 -03:00
anovazzi1
ec79cc43bd Merge remote-tracking branch 'origin/dev' into types_refactor 2023-08-15 19:34:53 -03:00
anovazzi1
8f82367300 refactor(modals/UserManagementModal): move import statement for InputComponent to the top for better organization and readability
refactor(pages/loginPage): remove unused import statement for IconComponent

refactor(pages/signUpPage): remove unused import statement for IconComponent

refactor(routes.tsx): remove unused import statement for SignUp page
2023-08-15 16:05:08 -03:00
anovazzi1
015064b453 Merge branch 'authentication' into login 2023-08-15 16:03:42 -03:00
anovazzi1
4a7ccda51c Merge branch 'login' of personal:logspace-ai/langflow into login 2023-08-15 16:01:08 -03:00
gustavoschaedler
695a337c6c 🔧 fix(auth.py): move SECRET_KEY, ALGORITHM, ACCESS_TOKEN_EXPIRE_MINUTES, and REFRESH_TOKEN_EXPIRE_MINUTES to environment variables for better security and configurability
 feat(auth.py): add support for loading settings from environment variables in create_token and create_user_tokens functions
🔧 fix(auth.py): use settings_manager to access SECRET_KEY, ALGORITHM, ACCESS_TOKEN_EXPIRE_MINUTES, and REFRESH_TOKEN_EXPIRE_MINUTES in create_token and create_user_tokens functions
🔧 fix(auth.py): use settings_manager to access SECRET_KEY and ALGORITHM in get_current_user function
 feat(auth.py): add create_user_longterm_token function to create long-term access token for auto login
 feat(login.py): add auto_login endpoint to automatically log in as a super user if AUTO_LOGIN is enabled in the settings
🔧 fix(settings/base.py): add SECRET_KEY, ALGORITHM, ACCESS_TOKEN_EXPIRE_MINUTES, REFRESH_TOKEN_EXPIRE_MINUTES, and AUTO_LOGIN settings to the base settings class
 feat(settings/base.py): add AUTO_LOGIN setting to control whether auto login is enabled or not
🔧 fix(settings/base.py): use secrets.token_hex(32) to generate a random SECRET_KEY instead of hardcoding it
🔧 fix(settings/base.py): update comments and formatting in the base settings class
 feat(settings/base.py): add AUTO_LOGIN setting to control whether auto login is enabled or not
🔧 fix(settings/base.py): update comments and formatting in the base settings class
🔧 fix(settings/base.py): update comments and formatting in the base settings class
🔧 fix(settings/base.py): update comments and formatting in the base settings class
🔧 fix(settings/base.py): update comments and formatting in the base settings class
🔧 fix(settings/base.py): update comments and formatting in the base settings class
🔧 fix(settings/base.py): update comments and formatting in the base settings class
🔧 fix(settings/base.py): update comments and formatting in the base settings class
🔧 fix(settings/base.py): update comments and formatting in the base settings class
🔧 fix(settings/base.py): update comments and formatting in the base settings class
🔧 fix(settings/base.py): update comments and formatting in the base settings class
🔧 fix(settings/base.py): update comments and formatting in the base settings

🔥 refactor(settings.py): remove unused imports and code, clean up formatting and comments
🔀 chore(settings.py): merge duplicated code into reusable functions
📝 docs(settings.py): add missing docstrings and comments for better code documentation
🔧 chore(settings.py): update settings file to improve readability and maintainability
2023-08-15 20:00:02 +01:00
anovazzi1
a7ed611a15 Merge branch 'dev' into updateMakefile 2023-08-15 15:59:57 -03:00
anovazzi1
021380b6f3 format code 2023-08-15 15:40:50 -03:00
anovazzi1
b528ae86fd chore(Makefile): change npm install command to npm ci for frontend installation to ensure reproducible builds 2023-08-15 15:39:33 -03:00
anovazzi1
993cea0c0b Merge branch 'dev' into updateMakefile 2023-08-15 15:01:45 -03:00
Gabriel Luiz Freitas Almeida
1e0f4f316f
Merge branch 'main' into release 2023-08-15 15:50:42 +00:00
gustavoschaedler
c752872fc3 🐛 fix(auth.py): add optional parameter 'update_last_login' to 'create_user_tokens' function to allow updating last login only when needed
🐛 fix(auth.py): add optional parameter 'db' to 'create_refresh_token' function to allow passing the database session
 feat(login.py): pass 'update_last_login=True' to 'create_user_tokens' function to update last login when user successfully logs in
🐛 fix(ApiModal/index.tsx): fix formatting of 'codesArray' array to improve readability
🐛 fix(formModal/index.tsx): fix formatting of 'getWebSocketUrl' function to improve readability
🐛 fix(vite.config.ts): fix typo in comment
2023-08-15 16:50:40 +01:00
Gabriel Luiz Freitas Almeida
cef9fa4dd0 🔖 chore(pyproject.toml): update package version from 0.4.9 to 0.4.10 for maintenance purposes 2023-08-15 12:48:50 -03:00
Lucas Oliveira
2b21db32b5
Feature/view mode (#769)
This feature implements a view mode to all of the flows, to embed on
sites.
2023-08-15 12:43:29 -03:00
Lucas Oliveira
685ac70e90 disabled ZoomOnDoubleClick 2023-08-15 12:31:17 -03:00
Lucas Oliveira
fe7239b577 Disabled Pan On Pinch 2023-08-15 12:30:39 -03:00
Lucas Oliveira
8529c379e1 Disabled zoom and pan when on view mode 2023-08-15 12:29:19 -03:00
Lucas Oliveira
3667f4812e Fixed bug: flow not showing 2023-08-15 12:21:20 -03:00
Lucas Oliveira
81dba95720 Added view option to LangFlow 2023-08-15 12:16:32 -03:00
Gabriel Luiz Freitas Almeida
ea3aef363c
Fixes Duplicated CustomComponents, CTRL+Backspace and other fixes (#767) 2023-08-15 13:16:34 +00:00
Gabriel Luiz Freitas Almeida
5a490154e3
Merge branch 'main' into release 2023-08-15 13:16:00 +00:00
Rodrigo Nader
4c1b342a43 feat: Add documentation for various tools
- Added documentation for BingSearchRun, Calculator, GoogleSearchResults, GoogleSearchRun, GoogleSerperRun, and InfoSQLDatabaseTool components.
2023-08-15 10:14:24 -03:00
Gabriel Luiz Freitas Almeida
5140ae605d
CtrlBackspace fixed on Macbook (#765) 2023-08-15 13:09:11 +00:00