* add style for message feedback
* add backend suprot to new feature
* update frontend interface and add handle function
* [autofix.ci] apply automated fixes
* Update tooltip content for bot messages
* Update evaluation icons styling
* Add custom thumb icons for thumbs up and thumbs down
* Add custom thumb icons for thumbs up and thumbs down
* Update thumb icons based on evaluation value
* [autofix.ci] apply automated fixes
* Update property name for positive feedback
* Update property name for positive feedback
* feat: Add data-testid attributes to helpful and not helpful buttons and update test of playground to include new functionality
* update test to include new message features
* test: add unit test for database url validation
* feat: add function to validate database urls
* refactor: use new database url validation function
* fix: ruff errors
* refactor: validate database urls using sqlalchemy
* test: add more cases for database url validation
* Update sqlmodel dependency to version 0.0.20 in pyproject.toml
* Handle UUID conversion for message IDs in memory update logic
* Refactor Alembic migrations to use `sa.inspect` and update GUID to Uuid type
* refactor: Change flow_id parameter type from str to uuid.UUID in graph building functions
* refactor: Ensure UUID handling for flow_id and user_id across various services and models
* refactor: improve UUID handling and graph caching for compatibility with sqlmodel 0.0.20
* fix: update message assertion in component events test
* chore: update sqlmodel dependency to version 0.0.22 in uv.lock and pyproject.toml
* fix: enhance flow_id validation to ensure valid UUID format in MessageBase model
* fix: add error handling for cache directory cleanup
* refactor: improve flow_id type handling in message storage
* refactor: enhance flow_id handling in message functions to support UUID type
* refactor: integrate Properties into message creation in component event tests
* update test durations
* fix: correct flow_id parameter in database query
* refactor: update session_id and flow_id parameters to support UUID type across message handling functions and models
* fix: handle message data update in SQLModel update method
* refactor: improve flow_id assignment in message update method to enhance UUID handling
* refactor: rename DataSet to DataFrame
* feat: add DataFrameInput type and update InputTypes definition
* feat: add DataFrame type to CUSTOM_COMPONENT_SUPPORTED_TYPES
* refactor: replace DataSet with DataFrame in schema and tests
* feat: enhance DataSet class with improved constructor and methods for better data handling
- Added custom constructor to support various input formats including lists of Data objects, dictionaries, and existing DataFrames.
- Introduced methods `add_row` and `add_rows` for adding single or multiple rows to the DataSet.
- Updated docstrings and examples for clarity and usability.
- Ensured compatibility with pandas DataFrame operations while preserving Data object structures.
* test: add comprehensive tests for DataSet initialization and row operations
* feat: add DataSet class to schema module
* refactor: simplify DataSet initialization and improve data validation
* Add DataSet class to handle conversion between Data objects and DataFrame
* feat: enhance DataSet class with detailed docstrings and examples for better usability
* feat: add custom constructor property to DataSet for improved DataFrame compatibility
* test: add unit tests for DataSet class methods and functionality
* 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>
* 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>
* feat: Add support for dynamic providers in Astra DB Comp
* [autofix.ci] apply automated fixes
* Make sure we return a default dict
* Rename params in starter template
* Update test_vector_store_rag.py
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* Use AsyncSession for user management
* Simplify check_key
* Don't trigger blockbuster on settings service initialize
* Fix mypy
* Fix api key update_total_uses
* Fix auto-login
* Revert making CustomComponent.list_key_names async
* new components improvements
* ✨ (create_data.py): introduce a new 'legacy' attribute to mark the component as legacy code
* [autofix.ci] apply automated fixes
* chaing langchain hub name
* 📝 (run_flow.py): remove beta flag from RunFlowComponent to indicate it is no longer in beta
📝 (extract_key.py): remove beta flag from ExtractDataKeyComponent to indicate it is no longer in beta
* Updated generic icon component to load icons if already not lazy imported
* [autofix.ci] apply automated fixes
* merge fix
* 📝 (store_message.py): add 'advanced' parameter to the 'Session ID' field to indicate it is an advanced setting
* [autofix.ci] apply automated fixes
* new components sweep
* [autofix.ci] apply automated fixes
* fix tests
* [autofix.ci] apply automated fixes
* ✨ (filterSidebar.spec.ts): Update test descriptions to reflect the correct component names for better clarity and maintainability
♻️ (freeze.spec.ts): Refactor test to use the correct component name for consistency and readability
♻️ (stop-building.spec.ts): Refactor test to use the correct component name for consistency and readability
♻️ (generalBugs-shard-9.spec.ts): Refactor test to use the correct component name for consistency and readability
♻️ (filterEdge-shard-1.spec.ts): Refactor test to use the correct component name for consistency and readability
* style: Improve YahooFinanceToolComponent description and code readability
Enhance clarity in the component's purpose and refine inline formatting to boost maintainability.
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* Add module parameter to build_component_instance_for_tests function for dynamic component retrieval
* Enhance component test base with detailed version mapping and error handling
- Introduced `VersionComponentMapping` TypedDict for structured version mapping.
- Updated `FILE_NAMES_MAPPING` to use a list of `VersionComponentMapping`.
- Added comprehensive error messages for missing or invalid mappings in `test_all_versions_have_a_file_name_defined`.
- Improved `test_component_versions` with detailed exception handling and error reporting.
- Ensured `component_class` is defined before running tests.
* Refactor FILE_NAMES_MAPPING to use a list of dictionaries for better structure and readability in test_prompt_component.py
* refactor: Enhance ComponentTestBase with fixture validation and improved version handling
* Refactor test setup in `test_prompt_component.py` to use fixtures for improved modularity and readability
* fix: Add PlaceholderGraph NamedTuple and handle 'graph' attribute in Component class
* Add attribute checks for 'graph' and 'vertex' to prevent errors
* Handle missing 'graph' attribute in 'store_message' method to prevent errors.
* Handle missing 'graph' attribute in Message creation to prevent errors
* Handle missing 'graph' attribute in chat message flow ID assignment
* Add component code to test instance creation and error logging
* Update SUPPORTED_VERSIONS to remove older versions
* test: add unit tests for ChatInput and TextInputComponent
Implement comprehensive tests for both ChatInput and TextInputComponent to ensure proper functionality, including message responses and handling of various input scenarios. This enhances reliability and aids in future development.
* test: add unit tests for ChatOutput and TextOutputComponent
Implement comprehensive tests for ChatOutput and TextOutputComponent, validating message responses, source properties, and behavior with various input types to ensure reliability and consistency across output components.
* Update JSON files to improve code readability and add missing info fields
- Added missing `info` fields to various input components to provide better context and descriptions.
- Improved code readability by ensuring consistent formatting and structure across JSON files.
- Updated `message_response` method to handle cases where `graph` attribute might not be present.
- Enhanced `build_vectorize_options` method to set `authentication` and `parameters` to `None` if no values are provided.
- Refined `AgentComponent` to include `info` for `agent_llm` and other fields, improving clarity on their purpose.
* Refactor: update attribute access to use private `_vertex` attribute
* test: enhance TextInputComponent tests and update properties assertions
* Remove redundant unit tests for output components in test_output_components.py
* feat: add PlaceholderGraph for backwards compatibility and enhance Component attributes
* fix: improve run_id assignment and ensure user_id is a string in PlaceholderGraph
* Add check for non-empty incoming_edges in get_properties_from_source_component
* Refactor `trace_name` property to use `_id` instead of `_vertex.id` for component identification
* Handle missing session_id attribute in component and agent classes
* Add SUPPORTED_VERSIONS constant for version tracking in tests
* Add utility to download components from GitHub in integration tests
* Rename TestComponent to ComponentForTesting to avoid conflict with pytest
* test: enhance PromptComponent tests for version support
Add parameterized testing for supported versions and a validation for the latest PromptComponent. This improves test coverage and ensures compatibility across different versions.
* refactor: move build_component_instance_for_tests utility to integration utils
* Make `from_template_and_variables` async for backwards compatibility and add sync version
* Refactor `PromptComponent` to use `Message.from_template` method across starter projects JSON files.
* add await to `from_template_and_variables` call
* Add async test for message prompt serialization and update cache directory handling
- Introduced `async` in `test_message_prompt_serialization` for asynchronous message creation.
- Added `test_message_sync_prompt_serialization` for synchronous message testing.
- Updated cache directory paths to "langflow_test" for test isolation.
- Utilized `monkeypatch` to set environment variable for cache directory in `langflow_cache_dir` fixture.
* Add fixture and existence check in test_schema_message.py
- Use `langflow_cache_dir` fixture in `test_message_with_single_image`.
- Add assertion to verify the existence of `second_image`.
* Add base test class to ensure file names are defined for all supported versions
* Remove default value for 'file_name' parameter in 'build_component_instance_for_tests' function
* Enhance `TestPromptComponent` with version-specific file name handling and base class integration
* Refactor test_prompt_component_versions to use FILE_NAMES_MAPPING directly
* Add component version tests and base classes for testing with/without client
* Simplify `build_component_instance_for_tests` by returning `cc_class` directly
* Refactor `TestPromptComponent` to use `ComponentTestBaseWithClient` and remove version tests
* Add assertion for LANGFLOW_CONFIG_DIR in test_message_with_multiple_images
* Refactor: update method call to `from_template` in `langchain_hub.py`
* Handle missing '_id' attribute in 'trace_name' method of custom_component.py
* Optimize `get_and_cache_all_types_dict` call by removing unnecessary thread usage in test.