Commit graph

15,543 commits

Author SHA1 Message Date
Lucas Oliveira
928e2da78e
fix: changed naming from freeze path to freeze (#7343)
* Changed naming from freeze path to freeze

* Fixed tests

* Fixed tests
2025-03-30 00:11:04 +00:00
Lucas Oliveira
f99d626080
fix: change file cursor and selection ordering on file modal (#7344)
* Removed renaming from file renderer and changed cursor

* Removed sorting by selected files

* Updated file upload test
2025-03-29 23:54:37 +00:00
Lucas Oliveira
1d42e4b877
fix: make dataframe output format identify and show truncation (#7312)
* Added pagination info on table options

* Added pagination info on table component

* Added truncated rows and truncate message when row count is > 1000
2025-03-29 23:26:50 +00:00
Deon Sanchez
d3104e15ae
feat: Composio Component Upgrade (#6905)
* feat: Add button component and update dropdown rendering

* feat: Implement ListSelectionComponent and update ButtonComponent

- Add new ListSelectionComponent for selecting actions with search functionality
- Refactor ButtonComponent to use ListSelectionComponent
- Update ParameterRenderComponent to simplify button rendering
- Modify DropdownComponent to prepare for future changes

* feat: Add Sortable.js for drag-and-drop functionality and grid icon

- Integrated Sortable.js library in index.html and package files
- Added GridHorizontalIcon for drag handle visualization
- Updated ButtonComponent with commented sortable list example
- Improved input styling in ListSelectionComponent

* feat: Add ButtonInput for Composio API and update input types

- Introduced ButtonInput class in inputs module
- Added new button input fields to ComposioAPIComponent
- Updated FieldTypes enum to include BUTTON type
- Modified frontend ButtonComponent layout
- Removed commented-out code in DropdownComponent

* [autofix.ci] apply automated fixes

* feat: Enhance ButtonComponent with dynamic type and improved UI

- Add type prop to ButtonComponent to support different rendering modes
- Implement tool name and actions button layouts
- Add sample action data for actions button type
- Improve sortable list styling and interaction
- Refactor ButtonComponent to handle different use cases

* refactor: Improve ButtonComponent layout and Sortable configuration

- Adjust Sortable animation duration
- Modify list item layout and positioning
- Remove unnecessary CSS classes
- Simplify button and icon positioning

* feat: Integrate react-sortablejs for improved drag-and-drop functionality

- Replace Sortable.js with react-sortablejs library
- Add TypeScript types for SortableJS
- Update ButtonComponent to use ReactSortable component
- Improve list item rendering and styling
- Remove manual Sortable initialization

* feat: Enhance ButtonComponent with authentication and dynamic action data

- Add isAuthenticated state to control button visibility
- Introduce initialActionData and actionData state for dynamic list management
- Update button styling and icon for unauthenticated state
- Enable ReactSortable to modify action data list

* style: Update ButtonComponent styling with accent-themed colors

* style: Refine button styling with amber accent theme

* feat: Enhance ButtonComponent with dynamic rendering and improved UX

* feat: Add external link to DataStax Wikipedia page on button click

* feat: Implement delete action for button component action data

* feat: Enhance ButtonComponent with authentication and UI improvements

* feat: Enhance ListSelectionComponent with dynamic data and multi-select functionality

* feat: Improve ListSelectionComponent and ButtonComponent interaction and authentication flow

* refactor: Replace ButtonInput with ListSelectionInput in Composio API and input components

* [autofix.ci] apply automated fixes

* refactor: Optimize ListComponent with memoization and improved state management

* feat: Add selection type support to Composio API and ListSelectionComponent for improved user interaction

* refactor: Rename action-related props in ListSelectionComponent and ListComponent for clarity and consistency

* feat: Expand ListSelectionInput options and enhance ListSelectionComponent with dynamic data and metadata support

* refactor: Clean up comments and improve code readability in ListSelectionComponent and ListComponent

* [autofix.ci] apply automated fixes

* chore: Remove debug log from ParameterRenderComponent and add text/plain type to DRAG_EVENTS_CUSTOM_TYPES

* feat: Introduce ConnectionInput and SortableListInput components, replacing ListSelectionInput; enhance ComposioAPIComponent with new input types and improve parameter rendering with connection support

* [autofix.ci] apply automated fixes

* feat: Enhance ConnectionComponent with new state management and selection handling; update SortableListComponent to utilize new props for improved functionality

* feat: Implement SearchBarComponent to enhance ListSelectionComponent with improved search functionality and category selection

* feat: Update ComposioAPIComponent with external links and enhance ConnectionComponent with improved state management and dynamic link handling

* fix: Update ConnectionComponent layout and button styles for improved UI consistency

* chore: Remove unused Sortable.js script from index.html to streamline frontend resources

* Update index.tsx

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* Add backend support for composio actions

* [autofix.ci] apply automated fixes

* Update composio_api.py

* Update composio_api.py

* [autofix.ci] apply automated fixes

* fix: enhance ListSelectionComponent styling and functionality

- Updated ListItem component to accept a className prop for better customization.
- Improved item name display with truncation for better UI handling.
- Adjusted DialogContent styling for responsive width and layout.
- Enhanced overflow handling in the selection list for better user experience.

* feat: enhance ListSelectionComponent and ConnectionComponent functionality

- Added onSelection prop to ListSelectionComponent for handling item selection actions.
- Improved item selection logic to trigger onSelection callback.
- Refactored connection handling in ConnectionComponent to manage loading state and authentication.
- Updated connection link handling to ensure proper link retrieval and usage.

* fix: reset search input in ListSelectionComponent after selection

- Added functionality to clear the search input by setting it to an empty string when an item is selected. This improves user experience by ensuring the search field is reset after a selection is made.

* fix: improve selection logic and styling in ListSelectionComponent and ConnectionComponent

- Enhanced ListItem component to conditionally apply a green color for validated items.
- Updated selection logic in ListSelectionComponent to consider items with a validated link as selected.
- Initialized authentication state in ConnectionComponent based on the connection link status.
- Adjusted connection handling to update authentication state when the link changes.

* fix: refine item selection handling in ConnectionComponent

- Removed the setting of selectedItem state in the handleSelection function to streamline the selection process.
- Updated logic to focus on handling new value updates without maintaining a separate selected item state.

* fix: enhance ConnectionComponent and ListSelectionComponent functionality

- Removed console log from ListSelectionComponent to clean up the code.
- Added nodeId, nodeClass, and name props to ConnectionComponent for improved data handling.
- Implemented polling logic in ConnectionComponent to validate connections and manage loading states effectively.
- Updated loading state handling in the button to reflect polling status.

* fix: refactor ConnectionComponent for improved state management and polling logic

- Streamlined prop destructuring for better readability.
- Enhanced state management for polling and authentication.
- Added cleanup effects for polling intervals and timeouts.
- Improved event handling for connection button clicks and selection dialog.
- Updated comments for clarity and organization.

* Support handling the auth parameter

* [autofix.ci] apply automated fixes

* fix: improve key handling and state management in ListSelection and SortableList components

* Updated key assignment in ListSelectionComponent to include index for uniqueness.
* Enhanced SortableListComponent with useEffect to initialize listData from props and improved remove handler to update state correctly.
* Refactored setListData to ensure proper state updates and value handling.

* fix: update selected item handling in ConnectionComponent (#7280)

* Added useEffect to set selected item based on value and options.
* Modified handleSelection to ensure selected item structure is consistent.

* Fix output of component in actions

* fix: enhance connection handling in ConnectionComponent

* Updated handleConnectionButtonClick to accept a parameter for connection checking.
* Modified event handler to call handleConnectionButtonClick with the appropriate argument based on connection state.
* Ensured that the connection link opens in a new tab only when the connection check is true.

* [autofix.ci] apply automated fixes

* Remove the search categories

* fix: update list data handling in SortableListComponent

* Refactored useEffect to correctly set listData when value changes.
* Introduced a temporary variable to hold the value before updating state.

* refactor: optimize list data management in SortableListComponent

* Replaced useEffect with useMemo for listData initialization.
* Simplified state update logic in createRemoveHandler and setListDataHandler.
* Improved key assignment for SortableListItem to handle potential undefined names.

* Check if validated before passing link

* [autofix.ci] apply automated fixes

* refactor: improve connection handling and state management in ConnectionComponent

* Enhanced state management for tracking connection status and UI states.
* Updated polling management to prevent memory leaks and ensure proper cleanup.
* Simplified event handlers for connection button clicks and selection handling.
* Improved comments for better code clarity and understanding.

* fix: improve connection link handling in ConnectionComponent

* Added logging for connectionLink to aid in debugging.
* Updated useEffect to set the link only if connectionLink is not empty.
* Implemented authentication state change when connectionLink is validated.

* Clear list of actions when changing tools

* Update composio_api.py

* [autofix.ci] apply automated fixes

* feat: enhance error handling in ConnectionComponent

* Introduced ShadTooltip for displaying error messages.
* Added state management for error visibility and updated connection link handling based on error data.
* Modified button behavior and icon display based on connection status.

* refactor: simplify error handling in ConnectionComponent

* Removed unused state for error tooltip visibility.
* Updated error handling logic to include connection link status in addition to error data.

* Properly indicate error status in component

* Better management of tool name helper text

* refactor: streamline selected item initialization in ConnectionComponent

* Simplified the logic for setting the selected item based on the value prop.
* Ensured that the selected item is updated correctly when value or options change.

* fix: update authentication status in ConnectionComponent

* Added logic to set authentication status based on the selected option.
* Ensured that authentication state is updated when no option is selected.

* feat: update composio package (#7325)

update composio package

* Update Gmail Agent.json

* refactor: optimize InputGlobalComponent logic

* Removed unused imports and streamlined the useEffect and useMemo hooks for better performance.
* Enhanced the handling of unavailable fields and initial load completion state.
* Simplified the logic for setting the selected option based on the value and load_from_db status.

* refactor: improve error handling in ConnectionComponent

* Removed dependency on errorData in useEffect for setting link state.
* Streamlined error handling logic to focus solely on connectionLink status.

* refactor: enhance connection handling in ConnectionComponent

* Merged error handling logic into a single useEffect for improved clarity.
* Updated link state management to reflect the selected item's validation status.
* Ensured authentication state is set correctly based on the selected item.

* Filter list of available tools

* refactor: update ListSelectionComponent to use limit instead of selection type

* Removed the SelectionMode type and replaced it with a limit prop for selection.
* Adjusted selection logic to enforce the limit on selected items.
* Updated related components to reflect the new limit prop instead of type.

* [autofix.ci] apply automated fixes

* Add limit field and santiziation

* Update inputs.py

* Update composio_api.py

* Show actions only if a tool is selected

* [autofix.ci] apply automated fixes

* refactor: add limit prop to ParameterRenderComponent and SortableListComponent

* Introduced a limit prop to both components to control item rendering and selection behavior.
* Updated SortableListItem to conditionally render elements based on the limit value.
* Adjusted button visibility and styles in SortableListComponent according to the limit prop.

* fix: adjust styles in SortableListItem based on limit prop

* Updated height and padding styles for SortableListItem when limit is set to 1.
* Ensured consistent spacing and visibility of elements based on the limit value.

* Push latest template

* style: enhance SortableListItem styles for improved interaction

* Updated class names to ensure proper styling for hover and group states.
* Improved visibility of the remove button based on the limit prop, enhancing user experience.

* Update composio_api.py

* style: update SortableListItem max-width for improved layout

* Adjusted max-width class for SortableListItem when limit is set to 1, enhancing the component's visual consistency.

* Update Gmail Agent.json

* style: enhance ListItem component for better interaction

* Updated class names to improve hover effects and selected state styling.
* Added rounded corners and background color changes for better visual feedback.

* style: refine ListSelectionComponent and SortableListComponent layout

* Simplified class names in ListItem for cleaner styling.
* Moved HelperTextComponent into a dedicated div in SortableListComponent for improved layout and spacing.

* refactor: clean up ConnectionComponent code

* Removed unused imports and comments for better readability.
* Updated polling timeout duration from 30 seconds to 9 seconds to prevent indefinite polling.

* Fix bug with link on refresh

* Update Gmail Agent.json

* Update Gmail Agent.json

* Update Gmail Agent.json

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-03-29 10:12:51 +00:00
Thiago Araujo
a16df4b2bf
feat: Add watsonx embedding component (#7292)
* Add draft watsonx component

* feat: improved logic for embedding

* Add small changes to the ibm embedding component

* Fix icon and logger mode

---------

Co-authored-by: Thiago Araujo <thirauj@br.ibm.com>
Co-authored-by: Giovanni-Galatro <giovanni.galatro@ibm.com>
Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com>
Co-authored-by: galatro <galatrogiovanni@gmail.com>
2025-03-29 08:57:33 +00:00
Lucas Oliveira
6f5b548960
fix: adds external link icon to empty prompt (#7324)
Added external link icon to prompt
2025-03-29 01:34:10 +00:00
Lucas Oliveira
76a1e56e06
fix: adds truncation to tab input (#7323)
Added classes to truncate tab input

Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2025-03-29 01:30:08 +00:00
Lucas Oliveira
f5c7df3a6b
fix: make node be maximized when adding more handles (#7320)
Add useEffect to maximize node that is not minimal
2025-03-29 01:27:42 +00:00
Ítalo Johnny
d8233c2a76
ci: add pytest-timeout with 120s limit for CI tests (#7342) 2025-03-28 18:06:53 -03:00
Cristhian Zanforlin Lousa
dead8150c7
test: Fix apply_json_filter to handle empty string filters and nested key access edge cases (#7340)
* 🐛 (test_apply_json_filter.py): fix test failures by updating expected return values and handling special cases in apply_json_filter function

* [autofix.ci] apply automated fixes

* 📝 (test_temp_flow_cleanup.py): comment out test_cleanup_worker_run_with_exception to temporarily disable the test for further investigation

* [autofix.ci] apply automated fixes

* 🐛 (test_apply_json_filter.py): fix logic to handle special characters and numeric keys in nested paths to ensure accurate comparison of results

* [autofix.ci] apply automated fixes

*  (test_temp_flow_cleanup.py): add get_settings_service dependency to test_cleanup_worker_run_with_exception test to improve test coverage and handle exceptions gracefully.

* ♻️ (test_apply_json_filter.py): remove commented-out code and unused imports to clean up the test file and improve readability

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-28 18:04:06 -03:00
Cristhian Zanforlin Lousa
ba8bf9a803
test: fix apply json filter validation test (#7338)
*  (test_apply_json_filter.py): add test cases to skip empty key tests with special handling for complex nested access in data.

*  (test_apply_json_filter.py): skip specific failing case in test_complex_nested_access to prevent test failure

* [autofix.ci] apply automated fixes

* 🐛 (test_apply_json_filter.py): fix assertion error for specific case when both keys are empty, ensuring the function returns an empty list
💡 (test_apply_json_filter.py): improve comments and readability in test_complex_nested_access function

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-28 14:44:11 -03:00
Gabriel Luiz Freitas Almeida
7e65be32a3
fix: Enhance dictionary access tests and refactor apply_json_filter function (#7335)
* refactor: streamline apply_json_filter function for improved clarity and performance

- Simplified data extraction from Data objects and handled None inputs.
- Enhanced dictionary access logic and removed redundant checks.
- Improved handling of special cases for filter access, including nested and array structures.

* test: enhance dictionary access tests with additional examples

- Added new example cases to the test_basic_dict_access function to cover edge cases, including empty dictionaries and keys with spaces.
- Improved test robustness by utilizing the @example decorator from hypothesis for better failure discovery.
2025-03-28 13:22:29 -03:00
Cristhian Zanforlin Lousa
d0e526d9f0
fix: add memo hook to handle filter to prevent excessive renders (icons loading error) (#7317)
♻️ (GenericNode/index.tsx): refactor selectedNodes to selectedNodesCount for better readability and performance optimization
2025-03-27 21:19:25 +00:00
Mendon Kissling
fa2a8a713c
docs: deprecate freeze and replace with freeze path (#6828)
* deprecate-freeze

* deprecate-freeze-replace-with-freeze-path
2025-03-27 20:41:33 +00:00
Mendon Kissling
d428d734c6
docs: deployment overview (#7108)
* sidebars

* init

* more-content

* backend-only-dockerfile

* more-content

* postgres-page

* cleanup

* cleanup

* multiple-postgres-db

* move-content

* test

* spacing-issue

* remove-link-temporarily-for-build

* code-review

* add-note-for-readOnlyRootFilesystem

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* rename-concepts-to-overview

* docs: Refactor deployment overview for clarity and conciseness

* improve-sentence-add-comma-remove-trailing-spaces

* code-review

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-03-27 20:38:19 +00:00
Cristhian Zanforlin Lousa
d5bf54831e
fix: Add debouncing to handleOnNewValue and disable retries for usePostTemplateValue mutation (#7263)
*  (use-handle-new-value.ts): add debounce functionality to handleOnNewValue function to improve performance and prevent excessive API calls
🔧 (use-post-template-value.ts): update usePostTemplateValue function options to set retry to 0 and prevent automatic retries on API call failures

* 🐛 (use-handle-new-value.ts): fix condition to check if value length is greater than 10 before updating node state

* 🐛 (use-handle-new-value.ts): fix condition to update node state based on changes in value to ensure correct behavior and remove unnecessary length check on value array

*  (use-handle-new-value.ts): introduce constant DEBOUNCE_TIME_1_SECOND for better readability and maintainability of debounce time

* 🔧 (use-handle-new-value.ts): update debounce time from 1 second to 2 seconds for better user experience and performance.

*  (use-handle-new-value.ts): introduce DEBOUNCE_FIELD_LIST constant to handle debouncing for specific input types
♻️ (use-handle-new-value.ts): refactor DEBOUNCE_TIME_2_SECONDS constant to DEBOUNCE_TIME_1_SECOND for better consistency and readability

* 🐛 (use-handle-new-value.ts): fix debounce time constant value to 2 seconds for better performance and user experience

* 🐛 (use-handle-new-value.ts): fix debounce time constant value from 2 seconds to 1 second for better user experience
2025-03-27 20:38:18 +00:00
Jordan Frazier
6028fc4384
fix: valid file type check (#7152)
* Fix valid file type check

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-27 20:35:13 +00:00
Mendon Kissling
6557d3f860
docs: example for HCD vector store (#7214)
* docs:example-hcd-flow

* Apply suggestions from code review

Co-authored-by: brian-f <brian.fisher@datastax.com>

* Update docs/docs/Components/components-vector-stores.md

* Apply suggestions from code review

Co-authored-by: Christopher Bradford <bradfordcp@gmail.com>

---------

Co-authored-by: brian-f <brian.fisher@datastax.com>
Co-authored-by: Christopher Bradford <bradfordcp@gmail.com>
2025-03-27 15:25:19 +00:00
Cristhian Zanforlin Lousa
e82b23f932
feat: remove graph rag template (#7289)
remove graph rag template
2025-03-27 14:20:54 +00:00
jeevi cao
858f2f3cd0
fix: use stdout instead richHandler in loguru improve performance #7018 (#7024)
* Update py_autofix.yml

* fix: use stdout instead richHandler in loguru improve performance

* Revert "Update py_autofix.yml"

This reverts commit 7aed45e98602f57c2d6d33532080bad30cf02507.

* log to stdout use env vairable control

* feat:  env  LAGFLOW_PRETTY_LOGS

---------

Co-authored-by: tianzhipeng <tzpabc@gmail.com>
Co-authored-by: caojianwei-jk <caojianwei-jk@360shuke.com>
2025-03-27 13:13:01 +00:00
Rodrigo Nader
50dc34ed9d
fix: add "mode" to priorityFields in constants (#7279) (#7290)
Updated the priorityFields set to include "mode" for enhanced functionality.
2025-03-27 03:07:24 +00:00
Lucas Oliveira
27b5e02acc
fix: made plus button on file component not occupy full width (#7278)
Fixed w-full on input file component
2025-03-26 16:24:22 +00:00
Lucas Oliveira
9a649da269
fix: make json viewer design more consistent with current design (#7276)
* Updated color of json editor

* Added classes that make json viewer more consistent with current design
2025-03-26 16:24:12 +00:00
Lucas Oliveira
83e53ceac8
fix: made node toolbar not appear when selecting multiple nodes (#7277)
Made toolbar not appear when selecting more than one node
2025-03-26 16:23:59 +00:00
Gabriel Luiz Freitas Almeida
1218246ba1
fix: Implement cleanup grace period for job queue tasks (#7250)
* feat: implement cleanup grace period for job queue tasks

* Enhance JobQueueService to include a CLEANUP_GRACE_PERIOD, allowing tasks marked for cleanup to persist for a specified duration before actual removal.
* Update internal data structure to track cleanup timestamps for each job.
* Modify cleanup logic to check task status and manage cleanup timing effectively, ensuring resources are released appropriately after a grace period.
* Improve documentation to clarify the new cleanup mechanism and its purpose.

* fix: update queue data retrieval to include additional return value
2025-03-26 13:43:10 +00:00
Lucas Oliveira
9e480026b3
fix: allow float to be typed in float input (#7275)
Added local state for (.) to be allowed when inserting Float input
2025-03-25 22:14:07 +00:00
Sebastián Estévez
6c4828b72e
fix: override modality for elevenlabs on response.create (#7269)
override modality for 11l on response.create

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-03-25 21:10:05 +00:00
Gabriel Luiz Freitas Almeida
fa6e9ac11e
chore: Remove mention of anovazzi1 from bug report template (#7265)
fix: remove anovazz1 mention from bug report template
2025-03-25 20:53:18 +00:00
Gabriel Luiz Freitas Almeida
bad36a8816
refactor: update logging to use logger.debug for consistency (#7258)
refactor: replace rich print statements with logger.debug for improved logging consistency in main.py

* Updated startup and shutdown messages to use logger.debug instead of rich print for better integration with logging practices.
* Enhanced service initialization and flow loading messages to provide clearer debug information during application startup.
2025-03-25 19:27:08 +00:00
Cristhian Zanforlin Lousa
ce5a4ff786
fix: Improve tool metadata and dropdown state management (#7257)
* 🐛 (component.py): Fix issue where tags attribute may not exist on tool object
🐛 (index.tsx): Fix bug where value may not be included in options before setting it

* 🐛 (component.py): fix issue where tags list is empty if tool.tags is not defined, now default to [tool.name] to ensure at least one tag is present

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-03-25 18:21:03 +00:00
Jordan Frazier
9bb2878760
ci: use uv for base install workflow (#7266)
use uv for base install workflow
2025-03-25 12:40:05 -03:00
Cristhian Zanforlin Lousa
58e0d4290e
fix: add tool_mode to query input on gleanSearchComponent (#7216)
* 📝 (glean_search_api.py): Remove unnecessary comma in the MultilineInput configuration to improve code consistency
📝 (glean_search_api.py): Add tool_mode parameter to the MultilineInput configuration to enhance functionality and customization

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-24 19:36:34 +00:00
Gabriel Luiz Freitas Almeida
6887ac3ff4
docs: Add tribute comment to Otávio Anovazzi in reactflowUtils.ts (#7017)
* docs: Add tribute comment to Otávio Anovazzi in reactflowUtils.ts

* Add open source message

* [autofix.ci] apply automated fixes

* Add contributions mention

* Fix typo in reactflowUtils.ts comment

* Update contribution count after his last PR merged

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Rodrigo <rodrigosilvanader@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-24 16:09:45 +00:00
galatro
0eeb142ecd
feat: add watsonx component (#7080)
* feat: add watsonx icon

* feat: added watsonx icon export

* feat: add icon to styleUtils

* feat: add watsonx.ai model component

* feat: added watsonx.ai component to init

* fix: icon not correct

* feat: implemented streaming

* feat: added dynamc list for models

* fix: removed model on change url

* chore: removed refresh, not needed anymore

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* chore: ruff formatting

* [autofix.ci] apply automated fixes

* fix: use ChatWatsonx instead of WatsonxLLM

* Add ibm dependencies to pyproject

* feat: added new parameters for chat

* langflow-specific tweaks

* lint

* [autofix.ci] apply automated fixes

* lint starter project

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>
Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com>
2025-03-24 15:41:01 +00:00
Cristhian Zanforlin Lousa
234b10457e
fix: update handle display logic and improve popover layout in node components (#7244)
*  (NodeInputField/index.tsx): Add support for displaying a refresh button based on the template configuration
🔧 (popover/index.tsx): Adjust the width of the input field in the popover to improve UI consistency

* 🐛 (NodeInputField/index.tsx): fix access to refresh_button property to prevent potential null pointer error

*  (index.tsx): Add hasRefreshButton prop to InputComponent, InputGlobalComponent, and StrRenderComponent to enable refresh button functionality
📝 (index.tsx): Add hasRefreshButton prop to BaseInputProps type to ensure type safety and consistency across components and types
2025-03-24 15:19:18 +00:00
Sebastián Estévez
ee1b5494fc
fix: Standardize flow name handling with snake_case conversion in MCP API (#7242)
* support spaces

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-24 15:11:40 +00:00
Gabriel Luiz Freitas Almeida
a19ea7b5c6
fix: Enhance state management with reset methods and logout functionality improvements (#7234)
* feat: add resetStore method to foldersStore for state management

 (foldersStore.tsx): Implement resetStore function to clear folders and reset related state variables, enhancing state management capabilities.

* feat: add resetStore method to flowsManagerStore for improved state management

 (flowsManagerStore.ts): Implement resetStore function to clear flows and reset related state variables, enhancing the store's state management capabilities.

* feat: add resetFlowState method to flowStore for enhanced state management

 (flowStore.ts): Implement resetFlowState function to clear and reset the flow-related state variables, improving the management of flow state in the application.

* feat: enhance logout functionality with state resets and query invalidation

 (use-post-logout.ts): Update the useLogout function to reset flow, flows manager, and folder states upon successful logout. Additionally, invalidate and remove related queries to ensure data consistency in the application.

* test: add user flow state cleanup test for session management

 (user-flow-state-cleanup.spec.ts): Implement a comprehensive test to verify that user flow states are properly cleaned up between sessions. The test includes user creation, flow management, and ensures that the admin cannot see user-specific flows after logout, enhancing the robustness of session handling in the application.

* refactor: streamline logout query management in useLogout function

🔧 (use-post-logout.ts): Remove redundant query removal calls in the useLogout function, focusing on invalidating queries to maintain data consistency post-logout. This change simplifies the logout process and enhances code clarity.

* 🔧 (user-flow-state-cleanup.spec.ts): remove unnecessary verification step for admin empty state to improve test readability and efficiency

*  (user-flow-state-cleanup.spec.ts): improve user flow state cleanup test by adding error handling for clicking on new project button and new flow button to ensure test stability and reliability

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-03-24 14:33:08 +00:00
Cristhian Zanforlin Lousa
7aeb30926b
test: update api-request tests (#7231)
 (test_api_request_component.py): refactor test to check if to_data method returns a list of Data objects
2025-03-22 23:19:29 -03:00
Cristhian Zanforlin Lousa
e265fbe754
test: fix outdated components (nightly fix) (#7230)
📝 (test_api_request_component.py): update assertion to match changes in the JSON response structure
2025-03-22 22:41:19 -03:00
Cristhian Zanforlin Lousa
6b3f1870c2
test: fix api_request test (nightly fix) (#7229)
* 📝 (test_api_request_component.py): add print statements to help identify where the content is stored in the response data

* 📝 (test_api_request_component.py): remove print statements used for debugging purposes
2025-03-22 20:42:50 -03:00
Cristhian Zanforlin Lousa
603efe7911
test: add timeout on freeze test to prevent errors on ci (#7227) 2025-03-22 08:10:23 -03:00
cristhianzl
ff3c364916 (freeze.spec.ts): Add test for freezing a component feature in the frontend to ensure users can freeze components and verify expected behavior with different runs. 2025-03-21 22:30:59 -03:00
Cristhian Zanforlin Lousa
ac4b3dc740
tests: change freeze test folder (#7221)
 (freeze.spec.ts): Add test case for freezing a component in the frontend extended features test suite. The test verifies that a user can freeze a component successfully and compares the text content before and after freezing.
2025-03-21 21:55:38 -03:00
Cristhian Zanforlin Lousa
d4bf1d5e56
tests: change handle testid on URL Component (#7220)
 (tool-mode.spec.ts): update the test to use the correct test ID for clicking on a component in the toolset
🔧 (chatInputOutputUser-shard-1.spec.ts): add a 1-second timeout before running the flow to ensure proper execution timing
♻️ (chatInputOutputUser-shard-1.spec.ts): remove unnecessary timeout before deleting an edge in the test case
2025-03-21 20:07:11 -03:00
Lucas Oliveira
6c1928adb6
fix: made truncate gradient appear just in the end of the truncated component (#7215)
Fixed truncate function
2025-03-21 22:50:37 +00:00
Cristhian Zanforlin Lousa
fbe5666c81
fix: add full width on Select files button (#7219)
🔧 (index.tsx): Add "w-full" class to the div element with data-testid "input-file-component" to ensure full width display
♻️ (index.tsx): Refactor the Button component class to include "w-full" for consistent styling across the application
2025-03-21 19:49:27 -03:00
Rodrigo Nader
35d62a033f
feat: enhance URL component with recursive crawling (#7006)
* feat: Enhance URL component with recursive crawling and advanced options.

- Implement advanced URL loading with configurable depth, domain prevention, and async options.

* chore: move component to a new file and restore the old one

* test: add test to new component

* [autofix.ci] apply automated fixes

* feat: enhance URLComponent for recursive URL loading

- Updated URLComponent to support recursive loading and parsing of child links from a root URL.
- Introduced new inputs: max_depth for controlling link traversal depth and prevent_outside to restrict crawling to the same domain.
- Replaced AsyncHtmlLoader with RecursiveUrlLoader for improved document loading.
- Enhanced error handling and logging for better debugging.
- Updated output methods to return structured data and text content more effectively.

* chore: delete component

* chore: update component tests

*  (freeze.spec.ts): refactor click actions to improve readability and maintainability
♻️ (loop-component.spec.ts): refactor click actions to improve readability and maintainability
🔧 (chatInputOutputUser-shard-1.spec.ts): add click action to fit view element for better user experience

* 🐛 (url.py): fix issue where data was being returned before error handling, causing potential errors to be missed
🐛 (freeze.spec.ts): fix incorrect test assertions for text comparison, ensuring correct comparison logic is applied

* [autofix.ci] apply automated fixes

* fix: ruff error

*  (stop-building.spec.ts): refactor test to use click method instead of hover and mouse events for better readability and reliability
 (loop-component.spec.ts): update test to use consistent naming convention for handle-urlcomponent-shownode-data-right
 (chatInputOutputUser-shard-1.spec.ts): update test to use consistent naming convention for handle-urlcomponent-shownode-message-right and handle-urlcomponent-shownode-dataframe-right

*  (chatInputOutputUser-shard-1.spec.ts): add additional wait time before running and verifying data output to ensure proper loading and display of data

* fix: playwrite test

* fix: ruff error

*  (auto-login-off.spec.ts): add delay before continuing test to ensure proper execution
 (freeze-path.spec.ts): increase timeout for certain actions to prevent test failures due to timing issues
 (freeze-path.spec.ts): add delay before continuing test to ensure proper execution
 (dropdownComponent.spec.ts): refactor test to use a more reliable assertion for dropdown value length

*  (freeze.spec.ts): add additional wait time before clicking on a button to improve test stability
 (freeze.spec.ts): increase timeout for waiting for "built successfully" text to appear to improve test reliability
 (globalVariables.spec.ts): add initial setup function to skip certain steps and improve test efficiency

---------

Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
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: cristhianzl <cristhian.lousa@gmail.com>
2025-03-21 19:39:03 -03:00
Sebastián Estévez
59b2ed7765
chore: merge mcp components (#7167)
* take1

* depreacate stdio and sse mcp components

* optionals

* rodrigo fixes

* session management

* update init

* mcp component integration test

* broken

* [autofix.ci] apply automated fixes

* fix url input name

* upated MCP

* Update mcp_component.py

* [autofix.ci] apply automated fixes

* update to the MCP component

* [autofix.ci] apply automated fixes

* mostly working

* [autofix.ci] apply automated fixes

* Update mcp_component.py

* [autofix.ci] apply automated fixes

* update component

* [autofix.ci] apply automated fixes

* Update mcp_component.py

* rename component because Simon

* icon and description for simon

* fix integration test

* fix test

* Update mcp_component.py

* update and basic QoL

* [autofix.ci] apply automated fixes

* refactor clients to util and use flow names not IDs in mcp.py

* integration test

* take out traces

*  (edit-tools.spec.ts): add test for user to be able to edit tools in the frontend application.

* session fix

* fix content output

* ♻️ (util.py): remove redundant constant HTTP_TEMPORARY_REDIRECT and replace its usage with httpx.codes.TEMPORARY_REDIRECT for better code readability and maintainability

* [autofix.ci] apply automated fixes

* 🐛 (utils.ts): fix potential null pointer error when converting words to title case by adding null check before accessing properties

* 🐛 (genericIconComponent/index.tsx): Fix issue with optional chaining in mapping function
🐛 (renderIconComponent/index.tsx): Fix issue with optional chaining in mapping function
🐛 (button.tsx): Fix issue with optional chaining in mapping function
🐛 (utils.ts): Fix issue with optional chaining in mapping functions

* 🐛 (language-select.tsx): Fix potential null pointer error when mapping over allLanguages array

*  (constants.ts): add support for multiple languages in the application by defining an array of language options
♻️ (audio-settings-dialog.tsx, language-select.tsx): refactor to import the array of all languages from constants.ts instead of duplicating it in each file

*  (auto-login-off.spec.ts): add a 2-second delay before continuing the test to ensure proper loading and rendering of elements on the page

* ⬆️ (filterEdge-shard-0.spec.ts): reduce wait time for page interactions to improve test performance
⬆️ (playground.spec.ts): optimize wait times for page interactions to enhance test efficiency

---------

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: cristhianzl <cristhian.lousa@gmail.com>
2025-03-21 19:11:01 -03:00
Samuel Matioli
4527c473be
feat: Enhance AstraDB tool component with vector search and metadata filter (#6887)
* feat: Enhance AstraDB tool component with advanced configuration and semantic search

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* Format and Lint

* Format and Lint

* refactor: Improve AstraDB tool component with code cleanup and documentation

* [autofix.ci] apply automated fixes

* Lint & Format

* [autofix.ci] apply automated fixes

* Add search_query description input

* Format backend

* [autofix.ci] apply automated fixes

* Error message on Astra DB CQL Tool

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* Format backend

* Enhance AstraDB CQL Tool Component with new tools_params input and update filtering logic. Deprecate partition and clustering keys inputs. Introduce attribute_name for improved field mapping.

* Add 'is_date' parameter to AstraDBToolComponent for date filtering and update filter logic to handle date values.

* Revert "Format backend"

This reverts commit 0f12efbd817d82087bc9b48af809e0384b1eb160.

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* format backend

* [autofix.ci] apply automated fixes

* Implement timestamp parsing in AstraDB components and update filtering logic to utilize the new method. Rename 'is_date' to 'is_timestamp' for clarity in parameter definitions.

---------

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: Eric Hare <ericrhare@gmail.com>
2025-03-21 18:30:11 +00:00
Boris Feld
8c2f6addf2
feat: add new Opik Tracer (#6928)
* feat: add new Opik Tracer

This PR adds a new Tracer to sends traces and spans to Opik.

* Fix typo in docs

* Optimize Opik integration to reduce number of HTTP calls

* Add session_id and user_id to the Opik tracer

* Check Opik configuration on the client side before making a remote check

* Tackle documentation reviews

* Apply suggestions from code review

Co-authored-by: Jacques Verré <jverre@gmail.com>

* Fix one of the doc link

* Explicitely check for Opik environment variables before enabling the Opik tracer

* test: add opik tracing unit tests

---------

Co-authored-by: Nadir J <31660040+NadirJ@users.noreply.github.com>
Co-authored-by: Jacques Verré <jverre@gmail.com>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
2025-03-21 18:18:19 +00:00