💡 (index.tsx): add non-null assertion operator to playground variable
♻️ (use-on-file-drop.tsx): add type annotations for folderId and folderChangeCallback
♻️ (use-auto-resize-text-area.tsx): add type annotations for value and inputRef
♻️ (use-drag-and-drop.tsx): add type annotations for setIsDragging, setFiles, currentFlowId, and setErrorData
♻️ (use-focus-unlock.tsx): add type annotations for lockChat and inputRef
♻️ (use-upload.tsx): add type annotations for uploadFile, currentFlowId, setFiles, and lockChat
♻️ (use-column-defs.tsx): add type annotation for myData
♻️ (use-row-data.tsx): add type annotations for myData and open
♻️ (index.tsx): remove commented-out code
♻️ (use-filtered-flows.tsx): add type annotations for flowsFromFolder, searchFlowsComponents, and setAllFlows
💡 (index.tsx): add non-null assertion operator to flowsFromFolder variable
- Add `useDataEffect` to handle data-related side effects
- Add `useInstallComponent` to manage component installation logic
- Add `useLikeComponent` to handle like functionality
- Add `useDragStart` to manage drag start events
- Add `usePlaygroundEffect` to handle playground-related side effects
✨ (cardComponent): add custom hooks for data, install, like, drag start, and playground effects
♻️ (cardComponent): rename state variables for consistency and readability
✨ (MainPage): add CollectionCard component to handle card rendering and interactions
✨ (index.tsx): add CollectionCard component to ComponentsComponent
♻️ (index.tsx): refactor to use CollectionCard instead of inline code
* Update Makefile to use command substitution for killing process
* break long lines into shorter ones
* replace fixed values with variables
* correct the unit test coverage report
---------
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* chore: Add check-format script to package.json for code formatting consistency
* chore: Update lint-js.yml to use npm run check-format instead of npm run format
This pull request adds GitHub workflows for JavaScript and Python
autofix. The JavaScript workflow is triggered on pull requests and
pushes to the main branch for changes in the "src/frontend" directory.
It sets up Node.js, caches Node.js dependencies, installs Node.js
dependencies, and runs Prettier for code formatting. The Python workflow
is also triggered on pull requests and pushes to the main branch for
changes in the "poetry.lock", "pyproject.toml", "src/backend", and
"tests" directories. It installs Ruff and runs Mypy for type checking
and code formatting.
* Added support for Contact points
* Reworded some parameters depending on astra / local cassandra usage
* Added username
Successor of https://github.com/langflow-ai/langflow/pull/2206 but with
the new framework
* Add ProviderKey as text field since it's the only auth entry available
today
* Hide authentication and external key as advanced fields
* Make provider name and model required
* Make provider as dropdown
* Add complete list of models in the help (better to not hardcode models
for now)
This commit adds GitHub workflows for JavaScript and Python autofix. The JavaScript workflow is triggered on pull requests and pushes to the main branch, specifically for changes in the "src/frontend" directory. It checks out the code, sets up Node.js, caches Node.js dependencies, installs Node.js dependencies, and runs Prettier for code formatting. The Python workflow is also triggered on pull requests and pushes to the main branch, but for changes in the "poetry.lock", "pyproject.toml", "src/backend", and "tests" directories. It checks out the code, installs Ruff, and runs Mypy for type checking and code formatting.
This pull request renames the Kubernetes documentation file to use the
.md extension. This change ensures consistency with the file extensions
used in the repository.
* ✨ (typescript_test.yml): add workflow_dispatch event to trigger workflow manually with branch input parameter
🔧 (typescript_test.yml): update workflow to checkout code from the specified branch when triggered manually
* 📝 (lint-py.yml): update linting workflow to trigger on specific pull request events and checks requested action
📝 (lint-py.yml): add a specific job to run Mypy for static type checking in the linting workflow
* 🔧 (python_test.yml): update pull_request event types and branches to trigger on more actions for better test coverage and integration
* 🐛 (tableNodeCellRender): fix templateValue check to use Object.keys
✨ (textAreaComponent): add Case component for conditional rendering
♻️ (editNodeModal): remove commented-out useEffect code
✅ (basicExamples.spec): update test selectors and increase timeout values
✅ (filterEdge.spec.ts): update test IDs to match new naming conventions
✅ (inputListComponent.spec.ts, intComponent.spec.ts): update test IDs and streamline test steps for consistency and clarity
✅ (keyPairListComponent.spec.ts): update test ID for model element
✅ (keyPairListComponent.spec.ts): add steps to test editing model options and saving changes
* ✅ (tests): update end-to-end tests for chat input/output and modal components
- Update test selectors for better accuracy
- Add keyboard interaction in chatInputOutputUser.spec.ts
- Improve file handling in chat image upload test
- Refine prompt modal component tests for better validation
- Enhance twoEdges.spec.ts with additional view controls
* ♻️ (tests): refactor repeated click actions into reusable function in e2e tests
* ✅ (tests): replace waitForTimeout with waitForSelector in end-to-end tests
* ✅ (typescript_test.yml): add --debug flag to Playwright test command for better debugging
* ✅ (typescript_test.yml): enable trace option in Playwright tests for better debugging
* ✅ (typescript_test.yml): reduce Playwright test workers from 2 to 1 to improve stability
✅ (textInputOutput.spec.ts): add waitFor visibility checks to ensure elements are visible before interaction
* ✅ (tests): update paths for test assets to correct locations
✅ (tests): add waitForSelector to ensure elements are loaded before interaction
* ✅ (typescript_test.yml): increase Playwright workers from 1 to 2 to speed up tests
✅ (chatInputOutputUser.spec.ts): increase timeout for AI response to 100000ms
✅ (chatInputOutputUser.spec.ts): correct file path for image upload test
✅ (deleteComponentFlows.spec.ts): change waitFor to target last checkbox-component
✅ (store.spec.ts): increase timeout for share button to 100000ms
* 🐛 (flows.py): ensure flow names are unique by appending a number if necessary
* Apply Ruff formatting
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Cristhianzl <Cristhianzl@users.noreply.github.com>
⬆️ (package.json): update prettier-plugin-tailwindcss to version 0.6.5
♻️ (package.json): reorder @types/lodash dependency for consistency
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* chore: update linting workflows to include dev branch in merge_group
* Update README.md
Add 1.0 banner
* Update README.md
* chore: update package versions in pyproject.toml files
* Refactor "created_at" column type for consistency and fix cancel middleware (#2316)
* chore: update linting workflows to include dev branch in merge_group
* Update README.md
Add 1.0 banner
* Update README.md
* chore: update package versions in pyproject.toml files
* refactor: update "created_at" column type to use the "sa" module for consistency
* Update README.md
Add 1.0 banner
* chore: Remove unused import in ToolCallingAgent.py
* fix: adapt RequestCancelledMiddleware to handle cancelled requests
* chore: Remove unused import in test_helper_components.py
* refactor: Declare queue variable with explicit type in RequestCancelledMiddleware
---------
Co-authored-by: Rodrigo Nader <rodrigosilvanader@gmail.com>
* chore: Update AstraDB.py imports and method signature for search_documents
* chore: Update package versions in pyproject.toml files
* chore: Update run-name in release.yml for Langflow Release
* fix: add call to _add_documents_to_vector_store in AstraDB component
* chore: Fix missing parentheses in RequestCancelledMiddleware
* chore: Update pydantic-settings and tenacity versions
The commit updates the versions of the `pydantic-settings` and `tenacity` packages in the `poetry.lock` file. The `pydantic-settings` version is updated from 2.3.3 to 2.3.4, and the `tenacity` version is updated from 8.4.1 to 8.4.2.
* Update README.md
Add 1.0 banner
* fix fetch data to work even with autologin true
* format code
* deactivate stop button until we have a better solution (#2337)
* consistent auth error status code
* [Fix] unhandled http errors in background tasks (#2326)
* handle exceptions for background task
* revert changes that is not related to this HTTP handler exception
* Refactor model GoogleGenerativeAIModel (#2251)
* refactor model GoogleGenerativeAIModel
* adds model options
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* Fix .env values not being honored in CLI (#2336)
* chore: Update launch.json to include environment file
The launch.json file was updated to include the environment file path for the "run" command in the "Python: Flask" configuration. This change ensures that the necessary environment variables are loaded when running the backend base of Langflow frontend. The previous configuration had the environment variables set in the "env" field, but it has been removed as it is redundant with the new environment file inclusion.
* chore: Update dotenv import and environment variable handling
This commit updates the import statement for the `dotenv` module in the `__main__.py` file. It adds the `dotenv_values` function to the import statement to enable loading environment variables from a file. Additionally, it introduces a new section of code that maps environment variables to their corresponding variables and types, allowing for more flexible and dynamic configuration. The commit also updates the `run` function to update variables based on environment variables, if they are present. This change improves the handling of environment variables and enhances the configurability of the application.
* deactivate stop button until we have a better solution (#2337)
* consistent auth error status code
* [Fix] unhandled http errors in background tasks (#2326)
* handle exceptions for background task
* revert changes that is not related to this HTTP handler exception
* Refactor model GoogleGenerativeAIModel (#2251)
* refactor model GoogleGenerativeAIModel
* adds model options
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
---------
Co-authored-by: ming luo <itestmycode@gmail.com>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
* Update GitHub Actions workflows and dependencies (#2341)
* chore: Add GitHub Actions workflow for testing documentation build
* Fix server start command in GitHub Actions workflows
* chore: Bump langflow and langflow-base versions
* chore: Update GitHub Actions workflow for docs_test
* chore: Update typing import in __main__.py
* Fix user authentication and authorization issues (#2343)
---------
Co-authored-by: Rodrigo Nader <rodrigosilvanader@gmail.com>
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Co-authored-by: ming luo <itestmycode@gmail.com>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
* chore: update linting workflows to include dev branch in merge_group
* Update README.md
Add 1.0 banner
* Update README.md
* chore: update package versions in pyproject.toml files
* Refactor "created_at" column type for consistency and fix cancel middleware (#2316)
* chore: update linting workflows to include dev branch in merge_group
* Update README.md
Add 1.0 banner
* Update README.md
* chore: update package versions in pyproject.toml files
* refactor: update "created_at" column type to use the "sa" module for consistency
* Update README.md
Add 1.0 banner
* chore: Remove unused import in ToolCallingAgent.py
* fix: adapt RequestCancelledMiddleware to handle cancelled requests
* chore: Remove unused import in test_helper_components.py
* refactor: Declare queue variable with explicit type in RequestCancelledMiddleware
---------
Co-authored-by: Rodrigo Nader <rodrigosilvanader@gmail.com>
* chore: Update AstraDB.py imports and method signature for search_documents
* chore: Update package versions in pyproject.toml files
* chore: Update run-name in release.yml for Langflow Release
* fix: add call to _add_documents_to_vector_store in AstraDB component
* chore: Fix missing parentheses in RequestCancelledMiddleware
* chore: Update pydantic-settings and tenacity versions
The commit updates the versions of the `pydantic-settings` and `tenacity` packages in the `poetry.lock` file. The `pydantic-settings` version is updated from 2.3.3 to 2.3.4, and the `tenacity` version is updated from 8.4.1 to 8.4.2.
* Update README.md
Add 1.0 banner
---------
Co-authored-by: Rodrigo Nader <rodrigosilvanader@gmail.com>
The commit updates the versions of the `pydantic-settings` and `tenacity` packages in the `poetry.lock` file. The `pydantic-settings` version is updated from 2.3.3 to 2.3.4, and the `tenacity` version is updated from 8.4.1 to 8.4.2.