* refactor: update dynamic parameter in ParameterRenderComponent to false
* refactor: update CodeAreaComponent to use CodeAreaModal for node toolbar
* feat: Add EmptyParameterComponent to render empty parameters
* refactor: Add types for parameter render component
Add typescript types for the parameter render component to improve code readability and maintainability.
* feat: Add EmptyParameterComponent to render empty parameters
* refactor: Update RefreshParameterComponent to use InputProps
Update the RefreshParameterComponent to use the InputProps interface for better code readability and maintainability.
* refactor: Update InputProps in parameterRenderComponent/types.ts
Update the InputProps interface in parameterRenderComponent/types.ts to remove the Partial<OptionalInputProps> and simplify the composition of input props. This improves code readability and maintainability.
* refactor: Update InputProps in parameterRenderComponent/types.ts
* refactor: Update parameterRenderComponent/types.ts to use handleOnNewValue instead of onChange
Update the parameterRenderComponent/types.ts file to import the handleOnNewValueType from "@/CustomNodes/hooks/use-handle-new-value" and replace the onChange function with handleOnNewValue in the BaseInputProps interface. This change improves code readability and maintainability.
* update folder structure
* refactor: Update TableModal to support disabled state
Update the TableModal component to include a disabled prop, allowing the modal to be disabled when necessary. This improves the flexibility and usability of the component.
* refactor: Update parameterRenderComponent/types.ts to include TableComponentType
Update the parameterRenderComponent/types.ts file to include the TableComponentType interface, which defines the structure for a table component. This change improves code organization and maintainability.
* refactor: Update parameterRenderComponent to use TableNodeComponent from the correct folder
* refactor: Update codeAreaComponent imports and props in parameterRenderComponent
Update the imports and props in the parameterRenderComponent file to reflect the changes made in the codeAreaComponent file. This refactor improves code organization and maintainability.
* refactor: Update parameterRenderComponent/types.ts to include CodeAreaComponentType
Update the parameterRenderComponent/types.ts file to include the CodeAreaComponentType interface, which defines the structure for a code area component. This change improves code organization and maintainability.
* refactor: Remove unused import of CodeAreaComponent in nodeToolbarComponent
Remove the unused import of CodeAreaComponent in the nodeToolbarComponent file to improve code cleanliness and maintainability.
* refactor: Remove unused import of CodeAreaComponent in nodeToolbarComponent
* refactor: Remove unused import of CodeAreaComponent in nodeToolbarComponent
* refactor: Remove unused import of CodeAreaComponent in codeAreaComponent/index.tsx
* refactor: Remove unused import of CodeAreaComponent in parameterRenderComponent/index.tsx
* refactor: Update floatComponent imports and props in parameterRenderComponent
Update the imports and props in the parameterRenderComponent file to reflect the changes made in the floatComponent file. This refactor improves code organization and maintainability.
* refactor: Update floatComponent imports and props in parameterRenderComponent
* update int component path
* update int component type
* update toogle location
* refactor: Update ToggleComponentType in components/index.ts
Remove the ToggleComponentType interface from the components/index.ts file. This change is part of a refactoring effort to remove unused code and improve code organization.
* refactor: Update ToggleComponentType in components/index.ts
Remove unused ToggleComponentType interface from components/index.ts
* refactor: Update ToggleShadComponent to handle new value changes
Refactor the ToggleShadComponent to handle new value changes by passing the updated value to the handleOnNewValue function. This improves the functionality and maintainability of the component.
* refactor: Move InputFileComponent to parameterRenderComponent/components folder
Move the InputFileComponent file from the src/frontend/src/components folder to the src/frontend/src/components/parameterRenderComponent/components folder. This change improves code organization and maintainability.
* refactor: Add FileComponentType interface to parameterRenderComponent/types.ts
Add the FileComponentType interface to the parameterRenderComponent/types.ts file. This interface defines the fileTypes property for the FileComponentType, allowing for better type checking and documentation. This change improves code organization and maintainability.
* refactor: Update InputFileComponent props in parameterRenderComponent
Update the props of the InputFileComponent in the parameterRenderComponent file to match the changes made in the index.tsx file. This refactor improves code organization and maintainability.
* refactor: Move PromptAreaComponent to parameterRenderComponent/components folder
* update types prompt field
* refactor: Update PromptAreaComponent to handle new value changes
Refactor the PromptAreaComponent to handle new value changes by passing the updated value to the handleOnNewValue function. This improves the functionality and maintainability of the component.
* refactor: Move LinkComponent to parameterRenderComponent/components folder
* refactor: Add LinkComponentType interface to parameterRenderComponent/types.ts
Add the LinkComponentType interface to the parameterRenderComponent/types.ts file. This interface defines the icon and text properties for the LinkComponentType, allowing for better type checking and documentation. This change improves code organization and maintainability.
* refactor: Update LinkComponent to use InputProps in parameterRenderComponent
Update the LinkComponent in parameterRenderComponent to use the InputProps interface for better type checking and consistency. This refactor improves code organization and maintainability.
* refactor: Move KeypairListComponent to parameterRenderComponent/components folder
* refactor: Add KeyPairListComponentType interface to parameterRenderComponent/types.ts
* refactor: Update KeypairListComponent to use InputProps in parameterRenderComponent
Refactor the KeypairListComponent in parameterRenderComponent to use the InputProps interface for better type checking and consistency. This refactor improves code organization and maintainability.
* refactor: Move DictComponent to parameterRenderComponent/components folder
* refactor: Update KeyPairListComponentType interface in parameterRenderComponent/types.ts
* refactor: Update KeypairListComponent to use InputProps in parameterRenderComponent
* refactor: Move InputListComponent to parameterRenderComponent/components folder
Move the InputListComponent to the parameterRenderComponent/components folder for better code organization and maintainability.
* refactor: Add StrRenderComponentType interface to parameterRenderComponent/types.ts
* refactor: Move InputListComponent to parameterRenderComponent/components folder
* refactor: Move InputListComponent to parameterRenderComponent/components folder
* refactor: Move InputListComponent to parameterRenderComponent/components folder
Move the InputListComponent to the parameterRenderComponent/components folder for better code organization and maintainability.
* refactor: Update InputListComponent to use InputProps in parameterRenderComponent
Refactor the InputListComponent in parameterRenderComponent to use the InputProps interface for better type checking and consistency. This refactor improves code organization and maintainability.
* refactor: Move IOFieldView to IOModal/components folder
Move the IOFieldView component to the IOModal/components folder for better code organization and maintainability.
* refactor: Move DropdownComponent to parameterRenderComponent/components folder
* refactor: Add DropDownComponentType interface to parameterRenderComponent/types.ts
* refactor: Update DropdownComponent import in StrRenderComponent
Update the import statement for DropdownComponent in StrRenderComponent to reflect its new location in the parameterRenderComponent/components folder. This refactor improves code organization and maintainability.
* refactor: Update StrRenderComponent to use baseInputProps
Refactor the StrRenderComponent in parameterRenderComponent to use the baseInputProps object instead of individual props for better code organization and maintainability.
* refactor: Update StrRenderComponent to use TextAreaComponent from correct location
Update the import statement for TextAreaComponent in StrRenderComponent to reflect its new location in the parameterRenderComponent/components folder. This refactor improves code organization and maintainability.
* remove unused imports
* refactor: Add TextAreaComponentType interface to parameterRenderComponent/types.ts
* refactor: Update TextAreaComponent to use handleOnNewValue instead of onChange
Refactor the TextAreaComponent in parameterRenderComponent to use the handleOnNewValue function instead of the onChange function for better code consistency. This change aligns with the recent updates to the component's props and improves maintainability.
* refactor: Update StrRenderComponent to use baseInputProps
Refactor the StrRenderComponent in parameterRenderComponent to use the baseInputProps object instead of individual props for better code organization and maintainability.
* refactor: Move inputGlobalComponent to parameterRenderComponent/components folder
Move the inputGlobalComponent to the parameterRenderComponent/components folder to improve code organization and maintainability.
* refactor: Move inputGlobalComponent to parameterRenderComponent/components folder
* refactor: Update InputGlobalComponent to use handleOnNewValue instead of onChange
Refactor the InputGlobalComponent in parameterRenderComponent to use the handleOnNewValue function instead of the onChange function for better code consistency. This change aligns with the recent updates to the component's props and improves maintainability.
* refactor: Update StrRenderComponent to use baseInputProps
Refactor the StrRenderComponent in parameterRenderComponent to use the baseInputProps object instead of individual props for better code organization and maintainability.
* refactor: Move multiselectComponent to parameterRenderComponent/components folder
Move the multiselectComponent to the parameterRenderComponent/components folder to improve code organization and maintainability.
* refactor: Move MultiselectComponent to parameterRenderComponent/components folder
Move the MultiselectComponent to the parameterRenderComponent/components folder to improve code organization and maintainability.
* refactor: Move MultiselectComponent to parameterRenderComponent/components folder
* refactor: Move MultiselectComponent to parameterRenderComponent/components folder
* refactor: Remove unused code in StrRenderComponent
* refactor: Remove unused code in StrRenderComponent
* refactor: Remove unused code in StrRenderComponent
* [autofix.ci] apply automated fixes
* ✨ (tableInputComponent.spec.ts): add ua-parser-js library to parse user agent information for better control handling based on OS
🔧 (tableInputComponent.spec.ts): update key press event to use the correct control key based on the user's operating system for textarea selection.
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
* fix: Update the columns that need to change their type to text
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* Remove Poetry references from pyproject.toml and update project metadata
* Remove '--no-update' flag from 'uv lock' commands in Makefile
* Add script metadata with Python version and dependencies
* Remove Poetry references and integrate UV setup in CI workflow
* Remove Poetry setup and installation from integration tests workflow
* Remove Poetry references and update workflow to use custom setup action
* Remove references to Poetry from configuration files
* added a color change in cursor to help user find the cursor in the canvas page
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
* Add 'tags' column to 'flow' table and update models
- Added migration script to include 'tags' column in 'flow' table.
- Updated `Flow` model to include `tags` field.
- Introduced `Tags` enum in `schema.py` for predefined tag values.
* Update `tags` column to use JSON type in Flow model
* Add conditional checks for 'tags' column in Alembic migration script
* Make 'tags' field nullable in Flow model
* Add default value for 'tags' field in Flow model
* Update default values for 'tags' field in Flow model
* resolveQdrant Vector Store doesnt' use the advanced fields when ingesting documents #3749
* resolveQdrant Vector Store doesnt' use the advanced fields when ingesting documents #3749
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This pull request fixes the `run_flow_from_json` function by adding `session_id` parameter. This update ensures that session management is properly handled during flow execution.
Changes include:
- Added `session_id` as an optional input parameter.
- Updated function documentation to reflect the inclusion of the new parameter.
- Added unit test for run_flow_from_json input parameters
This fix enhances the function's usability by allowing for better tracking of individual sessions.
* feat(YahooFinanceTool): enhance tool with new inputs for data retrieval methods
* test: fix test
* test: fix test units
* test: fix import
* fix: rename component
* Fix instantiation of YfinanceToolComponent in complex_agent.py
---------
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* feat: Add skipFallback parameter to ForwardedIconComponent
This commit adds a new skipFallback parameter to the ForwardedIconComponent in the genericIconComponent module. The skipFallback parameter allows developers to skip rendering the fallback component when using Suspense. This can be useful in cases where the fallback component is not needed or should be handled differently.
* feat: Add skipFallback parameter to IconComponentProps
* feat: Add skipFallback parameter to IconComponentProps and ForwardedIconComponent
This commit adds the skipFallback parameter to the IconComponentProps and ForwardedIconComponent. This parameter allows skipping the fallback icon rendering when the specified icon is not found. The skipFallback parameter is used in the ParentDisclosureComponent to conditionally render the chevron-down or chevron-right icon based on the component's state.
The commit also updates the defaultOpen value in the ParentDisclosureComponent in the ExtraSidebarComponent. The defaultOpen value is set to true, ensuring that the "Integrations" section is always expanded when the component is rendered.
* refactor: Update ExtraSidebarComponent layout and styling
* [autofix.ci] apply automated fixes
* move file
* move file
* move file
* move file
* move file
* Update NotionLogo size
* Update size of AssemblyAI logo
* Update colors and names for AssemblyAI in styleUtils.ts
* Update BUNDLES_SIDEBAR_FOLDER_NAMES in constants.ts
* [autofix.ci] apply automated fixes
* add changes from pr #3934
* chore: add cache.db to .gitignore
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Fix message list order
The system message should be inserted into the first position of the message list instead of being appended at the last position.
* Set `_has_cycle_edges` to `True` for source and target vertices in cycle edges
* feat: Add `has_cycle_edges` method to Vertex class
The `has_cycle_edges` method is added to the `Vertex` class to check if the vertex has any cycle edges. Additionally, the `instantiate_component` method is updated to use the `initialize.loading.instantiate_class` function for custom component instantiation.
* Add `apply_on_outputs` method to Vertex for applying functions to outputs
* Add utility to find vertices in cycles within a directed graph
- Implement `find_cycle_vertices` function to identify all vertices that are part of cycles in a directed graph.
- Utilize depth-first search (DFS) to detect cycles and collect vertices involved in those cycles.
* Add unit tests for `find_cycle_vertices` utility function in graph module
* Add method to set cache for vertices in cycle
- Introduced `_set_cache_to_vertices_in_cycle` method to enable caching for vertices involved in cycles.
- Added `find_cycle_vertices` import to support the new method.
- Refactored vertex instantiation into `_instantiate_components_in_vertices` method for better code organization.
* refactor: Update caching logic for vertices in cycles
Refactor the `_set_cache_to_vertices_in_cycle` method to improve caching logic for vertices involved in cycles. Instead of setting the `cache` attribute to `True`, it is now set to `False` for better clarity and consistency. This change ensures that the cache is properly handled for vertices in cycles.
* Refactor `find_cycle_vertices` to use NetworkX for cycle detection
* Refactor `find_cycle_vertices` tests to remove entry point parameter and add new test case
- Removed the `entry_point` parameter from all test cases for `find_cycle_vertices`.
- Added a new parameterized test case `test_handle_two_inputs_in_cycle` to verify handling of cycles with two inputs.
* Disable cache in cycle: Update `apply_on_outputs` to handle empty outputs in `base.py`
* Add unit test to ensure output cache is disabled in graph cycles
* Add unit test for graph cyclicity with prompt components and OpenAI integration
- Introduce `test_updated_graph_with_prompts` to validate graph cyclicity and execution.
- Integrate `PromptComponent`, `OpenAIModelComponent`, and `ConditionalRouterComponent` in the test.
- Ensure graph execution with a maximum of 20 iterations and cache disabled.
- Validate the presence of expected output vertices in the results.
* Convert `_instantiate_components_in_vertices` to async and disable cache in cycle vertices
* Add default value handling for cycle edges in vertex component
- Introduced `default_value` to handle cases where edges are cycles and target parameters are present.
- Ensured that `default_value` is returned if defined, preventing errors when the component is not built.
* Switch from os.environ to os.getenv for API key retrieval in test_cycles.py
* Add __repr__ method to Edge class to indicate cycle edges with a symbol
* Refactor test_cycles.py to streamline component initialization and update assertions
- Simplified component initialization using method chaining.
- Corrected router input and message parameters to use openai_component_1.
- Updated assertions to check for correct output IDs.
* Refactor test_cycles.py to streamline component initialization and update assertions
* Refactor test to use custom serialization method instead of pickle
* Add cycle_vertices property to optimize cycle detection in graph
- Introduced `_cycle_vertices` attribute to store vertices involved in cycles.
- Added `cycle_vertices` property to compute and cache cycle vertices.
- Updated edge creation logic to use `cycle_vertices` for cycle detection.
* Enhance error message in `types.py` to include component ID for better debugging
* Refactor test_cycles.py to update graph configuration and assertions
- Changed router operator from "equals" to "contains".
- Consolidated chat output to a single component.
- Updated graph construction to use a single chat output.
- Replaced `_snapshot` with `get_snapshot` for graph state capture.
- Adjusted assertions to reflect the updated graph structure and outputs.
* Add api_key_required marker to test_updated_graph_with_prompts test
* Add validation to require max_iterations for cyclic graphs
* run ruff
- Refactored error message handling in `base.py` for cyclic graphs.
- Optimized cycle vertex extraction in `utils.py` by using set comprehension.
* Comment out tests for loading flow from JSON in test_loading.py
* Refactor test fixture for webhook flow creation in conftest.py
* Update unit tests to reflect new webhook flow structure in vertices endpoints
* Temporarily disable tests for loading Langchain objects with and without cached sessions
* Disable caching in vector store and OpenAI model components
* Add async support and dependencies to pyproject.toml files
- Added `asgi-lifespan>=2.1.0` to dependencies.
- Configured `asyncio_mode` and `asyncio_default_fixture_loop_scope` for pytest.
- Updated `tool.uv` section with `asgi-lifespan` in dev-dependencies.
* Convert test fixtures to async and use AsyncClient for HTTP requests
* Handle 'ImportFrom' nodes in AST validation to support module attribute imports
* Convert test cases to use async HTTP client
- Updated test cases in `test_database.py`, `test_endpoints.py`, `test_user.py`, `test_variable.py`, `test_files.py`, `test_chat_endpoint.py`, `test_misc.py`, `test_messages_endpoints.py`, `test_api_key.py`, `test_webhook.py`, and `test_login.py` to use `httpx.AsyncClient` instead of `fastapi.TestClient`.
- Modified test functions to be asynchronous and use `await` for HTTP requests.
- Adjusted fixtures and helper functions to support asynchronous operations.
- Ensured consistency in endpoint paths and request methods across all test cases.
* Refactor string concatenation to f-string in test_chat_endpoint.py
* [autofix.ci] apply automated fixes
* Refactor import validation to use pattern matching for AST nodes
* Set `startup_timeout` and `shutdown_timeout` to `None` in `LifespanManager` for test files.
* Convert test functions to async in `test_messages_endpoints.py`
* Add `api_key_required` marker to assistant component tests
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>