* fix: add optional method property to OutputFieldType
* feat: Enhance GenericNode with breaking change detection
- Added state management for breaking changes in GenericNode.
- Updated useCheckCodeValidity hook to evaluate breaking changes based on outputs and template keys.
- Improved node status color logic to reflect breaking changes and outdated code.
- Enhanced UI feedback for users with appropriate alerts and dismiss options.
* refactor: Improve breaking change handling in useCheckCodeValidity hook
- Simplified logic for detecting breaking changes and outdated code.
- Updated state management to ensure accurate status updates based on user inputs and templates.
- Enhanced readability by consolidating related checks into a single conditional structure.
* Fix outdated check
* Componentized breaking change
* Updated design of update handle on node
* Added small-update to modal sizes
* updated duplicate flow hook to duplicate just a flow
* Added update component modal with updating for single component
* Added new duplicateFlow on dropdown on main page
* use new update code modal on generic node
* delete check code validity
* add new check code vaildity util function
* removed unused sets from update node code
* Make componentsToUpdate contain breaking info
* Make Generic Node use Components to Update
* Change border in Node Status
* Stop propagation on node update
* Update update all components to have changes from figma
* updated flow store type and added components to update
* Update update component modal
* added icon on outdatedNodes
* Added id filtering on update components
* Added table with components to update
* Update styling
* Update update component modal to use table component
* Updated styles
* filter map
* Update select to not allow selecting texts on backup flow
* Update cursor for label
* Update text of backup flow
* Try to update selection
* Fix selection of components on opening modal
* Insert Update button on node toolbar if dismissed
* Added new parameters of node toolbar
* Added new types of node toolbar
* Removed update button from node status
* Updated shadcn theme
* Added dismiss by node, added dismissing to local storage, added correct update display
* Clarified update warnings in the UpdateComponentModal to better inform users about potential breaking changes and the need to reconnect components.
* Refactored update component visibility logic in GenericNode to use a memoized value for improved performance and readability.
* Updated test for outdated components to reflect changes in button selectors and improved visibility assertions for update notifications.
* Simplified visibility assertion in outdated components test to check for a more concise update message.
* Fixed edges not coming back after undoing
* Fixed breaking change check to not be checked if code is the same
* Fixed imports
* removed unused functions
* updated icon color
* updated test id
* updated for function to foreach
* updated data testid
* updated outdated flow
* removed flowToCanvas that caused bug when going from main page to flow page
* [autofix.ci] apply automated fixes
* Fixed outdated actions test
* fixed timeouts
* Added check for Backup
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* fixed icon color
* fixed id
* Fixed name not being resized
* Update isEmptyFlow when currentFlowId changes
* Adds cache to ForwardedIconComponent
* Updated cache to come from styleUtils
---------
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
⬆️ (pyproject.toml): upgrade fastavro dependency to version 1.9.7 for Python versions below 3.13 and to version 1.9.8 for Python versions 3.13 and above
* updated vite-env to stop svg loading lint errors
* added scroll direction package
* added new Chat Scroll Anchor
* removed scroll handling from chat message
* added scroll handling on chat view
* removed console.log
* Removed validator from table and added on messagebase
* removed validator from model
* changed to scroll down after error
* [autofix.ci] apply automated fixes
* fixed not scrolling to bottom
* fix constant
* refactor: update MessageTable model configuration for validation and type allowance
* refactor: update properties type in MessageTable model and adjust validation logic
* refactor: update content_blocks type in MessageTable model to allow dict or ContentBlock
* Fix playground failing when it's Run Flow
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
* Fixed hidden to be output.hidden
* Fixed disabled Hide button to look disabled
* Fixed lastInput being true to all fields
* Changed text
* fixed multiple renders
* fixed show hidden
✨ (auto-login-off.spec.ts): update text selector to match new welcome message for improved test accuracy
♻️ (user-flow-state-cleanup.spec.ts): refactor test to use the new welcome message selector for consistency and accuracy
📝 (autoLogin.spec.ts): add import statement for awaitBootstrapTest utility function to fix test failures due to missing import
* refactor: streamline node update logic in setup.py
Simplified the conditions for updating project components by consolidating checks for tool mode and output types. This enhances readability and maintainability of the code while ensuring that updates are applied correctly based on the latest component versions.
* fix: refine field removal logic in update_projects_components_with_latest_component_versions
* feat: add 'description' to NODE_FORMAT_ATTRIBUTES in constants.py
Enhanced the NODE_FORMAT_ATTRIBUTES list by including 'description' to improve metadata handling for nodes.
---------
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
* Add Tavily search parameters and Extract API component
* [autofix.ci] apply automated fixes
* Fix style issues flagged by Ruff
* fix Ruff Style Check issues
* [autofix.ci] apply automated fixes
* Fix linting issue reported by Ruff
* fix inlcude and exclude domains
* Fix linting issue reported by Ruff
* fix: update descriptions and input types across multiple starter project JSON files
- Changed "Tavily AI" to "Tavily Search" in descriptions for consistency.
- Updated input types for several API keys to be empty arrays instead of containing "Message".
- Added new fields such as "chunks_per_source", "days", "exclude_domains", "include_domains", and "include_raw_content" to enhance functionality in various projects.
- Adjusted the "description" field in the "Youtube Analysis" project for clarity.
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* Updated model filtering to avoid hard coding of named based exclusions
* Stylistic adjustments
* Remove accidentally added package-lock.json from PR
* revert removal of package lock
* Modifications to the UT and changed component to be more async
* [autofix.ci] apply automated fixes
* Lint
---------
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* menubar and hook optimizations
* sidebar optimizations
* [autofix.ci] apply automated fixes
* cleanup
* [autofix.ci] apply automated fixes
* sidebare button optimization
* 🐛 (typescript_test.yml): increase the maximum shard count to 40 to improve test distribution and performance
* Get state on focus instead of on keypress
* revert test shard change
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
* add pyinstrument and fastapi wrapper
* Truncate vertex build responses
* Truncate vertex response and transactions
* [autofix.ci] apply automated fixes
* Update test for vertex response structure to reflect new truncation logic
* Refactor profiling middleware to use environment variable for configuration
* Update test for vertex response structure to correct truncation logic
* move pyinstrument to dev dependencies
* Update serialization test to include max_items parameter for list truncation
* remove profiling from this PR, fix constants
* [autofix.ci] apply automated fixes
* Add asyncio configuration options to pyproject.toml
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* refactor: enhance event polling to retrieve all available events and return in NDJSON format
Updated the event polling logic to collect all available events from the queue instead of just one. The response format has been changed to NDJSON, allowing multiple events to be returned in a single response. Improved error handling for timeouts by returning an empty response instead of raising an error.
* refactor: improve NDJSON event processing in build polling
Enhanced the event polling logic to handle NDJSON responses by processing multiple events in a single fetch. Updated the response handling to read the response as text, split it into individual JSON objects, and process each event accordingly. This change improves the efficiency of event handling and maintains a consistent polling interval.
* fix: change event list type from list[str] to list in get_flow_events_response
* refactor: enhance event stream consumption with timeout and error handling
Updated the consume_and_assert_stream function to include a timeout for processing events and improved error handling for JSON parsing failures. Added logging for better debugging and tracking of processed events. Adjusted the event validation logic to ensure both the first and last expected events are present.
* refactor: enhance event polling logic with improved limits and JSON validation
Updated the event polling mechanism to include configurable limits for total events and empty polls, along with a timeout for requests. Enhanced JSON validation for individual events and added logging for better debugging of polling behavior. This refactor aims to improve robustness and maintainability of the event consumption process.
* refactor: update polling interval and streamline event handling
Modified the polling interval constant to improve responsiveness and adjusted event handling logic in the get_flow_events_response function to simplify the processing of event values. This change enhances the efficiency of event consumption and maintains a consistent approach to handling NDJSON responses.
* refactor: simplify event retrieval in get_flow_events_response
Removed unused event_id and put_time variables from the event retrieval logic in the get_flow_events_response function. This change streamlines the code and enhances readability while maintaining the functionality of event handling.
* refactor: update consume_and_assert_stream to use asyncio.wait_for for timeout handling
Modified the consume_and_assert_stream function to utilize asyncio.wait_for for managing timeouts in event processing. This change improves compatibility with Python 3.10 and enhances the robustness of the event consumption logic while maintaining existing functionality.
* Changed backend to contain readonly props for tools
* Show name editing for not readonly tools
* Fixed edit-tools test
* Updated command to use "uvx" instead of "npx" for stability
* Fixed mcp code for authentication on auto_login=false
* removed args from component desc
* [autofix.ci] apply automated fixes
* making tool mode inputs the priority.
* fix: Clean up comments and whitespace in component_tool.py
* Fix column name
* update the dispaly name in composio
* fix format
* ✨ (get-started-progress.tsx): add data-testid attribute to improve testability and accessibility
🔧 (user-progress-track.spec.ts): update test assertions to use the new data-testid attribute for get started progress title
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
* Update anthropic.py
* updates to templates
* [autofix.ci] apply automated fixes
* update the templates
* Refactor Anthropic API URL handling to use a constant. Introduced DEFAULT_ANTHROPIC_API_URL in anthropic_constants.py and updated references in anthropic.py for improved maintainability and clarity.
* [autofix.ci] apply automated fixes
* Refactor AnthropicModelComponent to streamline API URL handling. Removed unnecessary base_url checks and ensured consistent use of DEFAULT_ANTHROPIC_API_URL for improved clarity and maintainability.
* [autofix.ci] apply automated fixes
* Fix base_url check in update_build_config to ensure key existence before accessing value
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* ♻️ (appHeaderComponent/index.tsx): remove unused variables and condition for isEmpty to simplify the code and improve readability
* 📝 (empty-page.tsx): Update page title and descriptions to reflect the new branding and messaging for Langflow
🗑️ (github-bg.png): Delete unused background image file from the frontend assets folder
* 📝 (empty-page.tsx): update text size class from text-xs to text-sm for better readability
* 📝 (empty-page.tsx): Update EMPTY_PAGE_DESCRIPTION to remove extra period for consistency
📝 (empty-page.tsx): Increase font size for text elements for better readability and user experience