Improve the waiting logic in the tweksTest.spec.ts file to ensure that the necessary elements are loaded before interacting with them. This includes using the waitForSelector function with appropriate timeouts for the modal and popover elements.
* Fix node inputs not being captured, add runtime inputs as well to be captured by the tracers properly
* Fix outputs missing on traces due to them being reset before ending the traces because of race conditions
* Fallback to project name if none
* Remove 'dynamic inputs' to stop sending the component code every time
* fix: Add async flow name retrieval in graph building process
* fix: Retrieve flow name from database when building graph from data
* Fix: make session.exec call awaitable in chat API
* Refactor `_get_flow_name` to manage session internally
* Refactor session handling to use `async_session_scope` in chat API
* Refactor test cases to remove unnecessary async usage in mock functions
* [autofix.ci] apply automated fixes
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* Added use get types to fetch types from backend using tanstack
* Updated typesStore to use new set types
* Updated project to not use getTypes anymore
* deleted unused getTypes
* add tests
* [autofix.ci] apply automated fixes
* fix tests
---------
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* 🔧 (nodeToolbarComponent/index.tsx): improve positioning logic for node toolbar based on scale and tool mode to enhance user experience
* ✨ (GlobalVariableModal.tsx): Refactor type selection in GlobalVariableModal to use a dropdown select component for better user experience and consistency.
* Revert "🔧 (nodeToolbarComponent/index.tsx): improve positioning logic for node toolbar based on scale and tool mode to enhance user experience"
This reverts commit 322ba353a6984fcf870cba8c82c26689381842da.
* ✨ (GlobalVariableModal.tsx): Add data-testid attribute to SelectTrigger for testing purposes
🔧 (globalVariables.spec.ts, userSettings.spec.ts): Update test scripts to interact with the SelectTrigger using data-testid attribute for consistency and improved testing accuracy
* 📝 (userSettings.spec.ts): remove commented out code for focusElementsOnBoard function to improve code readability and maintainability
📝 (PageComponent/index.tsx): Remove redundant useEffect hook that sets notice data for old components
📝 (flowStore.ts): Remove unnecessary check for old components in selection nodes in useFlowStore function
Improve the wait time in the saveComponents.spec.ts file to ensure that the necessary elements are loaded before interacting with them. This helps prevent potential errors and improves the reliability of the test.
* Added warning color
* Implemented more colors
* Implemented warning button variant
* Added warning section to node
* Removed warning button and added warning outline to outdated components
* Added negative margin top to node for it to not move when updatable
* Fixed border to be consistent
* removed unused code
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* Implemented avoidCollisions on ShadTooltip
* Added type for avoidCollisions
* Changed tooltip position for buttons on IOModal
* Fix color of light theme switcher
* refactor: Improve time and use waitForSelector in freeze-path.spec.ts
* refactor: Improve time and use waitForSelector in freeze-path.spec.ts
* fromat code
* Refactor freeze.spec.ts: Remove unnecessary code
* fix: ensure unique flow names when assigning to superuser
* refactor: Creates a new function with logic to rename flows
* refactor: simplify function
* Extract STARTER_FOLDER constants to a separate module
* Filter orphaned flows by excluding those in the starter folder
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* refactor: Improve structure and attributes of Message object in guides-data-message.md
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
* docs: Add Google OAuth Integrations Docs
- Added documentation teaching how to configure an application using Google's OAuth API to use the components present in Langflow. Example: (Google Drive Loader, Google Drive Search and Gmail Loader).
Co-authored-by: Vinícios Batista da Silva <vinicios.batsi@gmail.com>
* docs: Updated the json available for download with the example flow
- Updated the json available for download with the example flow for using OAuth permissions in Langflow.
- Modified the existing Google Oauth Token component in Flow, with corrections and updates from component.
Co-authored-by: Vinícios Batista da Silva <vinicios.batsi@gmail.com>
* cleanup-style
* url
* docs: Add Google OAuth Integrations Docs
- Added documentation teaching how to configure an application using Google's OAuth API to use the components present in Langflow. Example: (Google Drive Loader, Google Drive Search and Gmail Loader).
Co-authored-by: Vinícios Batista da Silva <vinicios.batsi@gmail.com>
* docs: Updated the json available for download with the example flow
- Updated the json available for download with the example flow for using OAuth permissions in Langflow.
- Modified the existing Google Oauth Token component in Flow, with corrections and updates from component.
Co-authored-by: Vinícios Batista da Silva <vinicios.batsi@gmail.com>
* cleanup-style
* url
* fix: Updated Google Oauth Token component in flow example
- The component code has been updated to resolve lint issues and improve performance as per commit example:
https://github.com/langflow-ai/langflow/pull/4383/commits/4df070f6e23a323114930e3e1dce500df7368353
Co-authored-by: Vinícios Batista da Silva <vinicios.batsi@gmail.com>
* docs: apply reviewer’s suggestions for documentation clarity
- Corrected grammar and improved readability as per GitHub review feedback
Co-authored-by: Vinícios Batista da Silva <vinicios.batsi@gmail.com>
* update-gif-new-workflow
* style-and-test
* Apply suggestions from code review
Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
---------
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
* docs: Update agent tool documentation and enhance flow as tool component details
* docs: Update component terminology for consistency and improve section title
* chore: add lucide-react dependency to package-lock and yarn.lock
* feat: Add configuration options for maximum transactions and vertex builds retention
* Add functions to clean up old transactions and vertex builds in the database
- Implement `clean_transactions` to delete transactions exceeding the configured limit.
- Implement `clean_vertex_builds` to delete vertex builds exceeding the configured limit.
- Integrate cleanup functions into the service initialization process.
* Add error handling and logging for cleanup tasks in utils.py
- Wrap transaction and vertex build cleanup operations in try-except blocks.
- Log success and error messages for cleanup operations.
- Rollback session on exceptions without re-raising, as these are cleanup tasks.
- Adjust service initialization order to ensure proper setup.
* Reorder setup and cleanup tasks in database initialization process
* fix: Update type hints for settings_service in cleanup functions
* Remove execution options in cleanup functions
* Handle specific exceptions during cleanup tasks in utils.py
* Use `col` for column references in delete statements to improve SQL query clarity.
* Unselect nodes and edges on enter
* Start with viewport fit
* Fix run component tooltip to match error and success
* Update scrollbar design
* Added node toolbar without portal to match the width of the node
* Updated color of scrollbar
* Updated NoteNode to have same behavior as GenericNode
* Updated logic for tests to pass
* Fix fitview to only occur when nodes are present
* Update z index of resize handle
* Sticky notes test fix
* [autofix.ci] apply automated fixes
* freeze test fixed
---------
Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
* add deprecation flag on base upload flow route
* add deprecation flag on base upload flow route
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* Add pyproject.toml config flag to ruff commands in Makefile
* Update ruff exclude path in pyproject.toml
* Remove unused TYPE_CHECKING import from api_key.py
* Remove redundant config flag from 'ruff check' command in Makefile
* expanding download folder to zip file
* run formatter
* Update src/backend/base/langflow/api/v1/folders.py
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* changing model to flowRead
* run formatter
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* Use `typing_extensions.override` for compatibility with older Python versions
* Format starter projects
* Fix async call in get_lf_version_from_pypi by adding 'await'
* ✨ (use-handle-new-value.tsx): Introduce useUpdateNodeInternals hook from reactflow to update node internals when handling new values
♻️ (flowStore.ts): Refactor set method in useFlowStore to accept a callback function to be executed after updating nodes
📝 (flowStore.ts): Update FlowStoreType to include a callback function in the update method signature
* 📝 (flowStore.ts): add comment to explain deferring callback execution to ensure it runs after state updates are fully applied