Commit graph

15,517 commits

Author SHA1 Message Date
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
Cristhian Zanforlin Lousa
e5cb767432
feat: Add truncation notification for large outputs (#7212)
 (textOutputView/index.tsx): add support for displaying a message when the output is truncated due to its size
2025-03-21 17:56:57 +00:00
Cristhian Zanforlin Lousa
b081a219a0
fix: Improve disabled state handling in CustomInputPopover and InputGlobalComponent (#7213)
🐛 (popover/index.tsx): Fix issue where input field was not disabled when disabled prop is true
🐛 (popover/index.tsx): Fix issue where placeholder was not showing when input field is disabled
🐛 (inputGlobalComponent/index.tsx): Fix issue where handleDelete function was not considering the disabled prop when deleting a key
2025-03-21 17:52:41 +00:00
Mike Fortman
05c34f932d
refactor: Add compression to the 2 largest LF calls (#7200)
* add compression to largest calls

* add to the flows call too

* [autofix.ci] apply automated fixes

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

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-21 17:18:59 +00:00
Lucas Oliveira
8512a89ced
fix: updated icons with same svg id that caused conflicts (#7198)
updated icons with same svg id
2025-03-21 17:18:23 +00:00
Lucas Oliveira
1d9ca7b599
fix: added overflow on dataframe output (#7197)
* Increase min table column width

* Add overflow to table on markdown

* Added overflow hidden
2025-03-21 17:18:15 +00:00
Cristhian Zanforlin Lousa
55ee8b4c49
fix: add validation on build request to prevent output glitch (#7210)
* 📝 (use-post-logout.ts): import Cookies from "react-cookie" to handle cookies in the logout functionality
💡 (use-post-logout.ts): update logic to check for "auto_login_lf" cookie value in addition to autoLogin state before logging out the user

* 📝 (use-post-logout.ts): add constants for IS_AUTO_LOGIN and LANGFLOW_AUTO_LOGIN_OPTION for better code readability and maintainability

* 🐛 (use-get-builds-polling-mutation.ts): fix potential issue where flowPool is undefined before setting it to state
2025-03-21 16:35:24 +00:00
Jordan Frazier
1153a301c6
docs: remove dupe reference to wsl install (#7206)
* remove dupe refernece to wsl install

* styleguide-review

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-03-21 15:00:19 +00:00
Cristhian Zanforlin Lousa
ac7dcd4b7d
fix: prevent logout when auto-login is true (#7209)
* 📝 (use-post-logout.ts): import Cookies from "react-cookie" to handle cookies in the logout functionality
💡 (use-post-logout.ts): update logic to check for "auto_login_lf" cookie value in addition to autoLogin state before logging out the user

* 📝 (use-post-logout.ts): add constants for IS_AUTO_LOGIN and LANGFLOW_AUTO_LOGIN_OPTION for better code readability and maintainability
2025-03-21 10:38:52 -03:00
Cristhian Zanforlin Lousa
3faf4fc7c8
fix: refetch endpoints on backend startup (improvement for devs) (#7208)
🔧 (AppInitPage/index.tsx): refactor useGetConfig hook to only fetch when isFetched is true for better performance
🔧 (AppInitPage/index.tsx): add refetch functionality for useGetAutoLogin and useGetBasicExamplesQuery hooks to update data when isConfigFetched is true
2025-03-21 12:54:23 +00:00
Rodrigo Nader
166b0a07da
feat: Add cURL command unescaping for API request parsing (#7026)
* feat: Add cURL command unescaping for API request parsing

Enhance APIRequestComponent with a new _unescape_curl method to handle:
- JSON string encoded curl commands
- Double and single escaped quotes
- Robust error handling for curl command parsing

The new method improves flexibility when parsing curl commands with various escape sequences.

* [autofix.ci] apply automated fixes

* refactor: Simplify cURL command unescaping logic in APIRequestComponent

Updated the unescaping logic to improve readability and maintainability. The method now directly attempts to decode JSON strings and handles escaped quotes more efficiently, with enhanced error handling for various exceptions.

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* fix pokedex agent

* Please provide the output of 'git diff --staged' command.

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2025-03-21 12:47:23 +00:00
Cristhian Zanforlin Lousa
905ea02779
fix: Test Stability Enhancements (nightly fix) (#7207)
*  (PageComponent/index.tsx): Update maxZoom value to 3 for better user experience
🔧 (globalVariables.spec.ts): Refactor code to use hover and click methods for better readability and maintainability
♻️ (publish-flow.spec.ts): Refactor adjustScreenView function to accept parameters for better flexibility and update zoom out value to 3

*  (globalVariables.spec.ts): update the selector for clicking the last element with the test ID "add-component-button-openai" to ensure the correct element is clicked
 (publish-flow.spec.ts): update the selector for clicking the last element with the test ID "add-component-button-chat-input" to ensure the correct element is clicked
2025-03-21 08:51:24 -03:00
Mendon Kissling
ddda5970aa
docs: integrate nvidia NIM on WSL2 (#7192)
* initial-content

* more-on-wsl2

* update flow docs

* cleanup

* title-sidebar

---------

Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>
2025-03-21 01:18:55 +00:00
Jordan Frazier
7c99bc0d64
fix: nvidia model component refresh behavior (#7203)
Fix nvidia model component refresh behavior
2025-03-20 16:38:58 -07:00
Rodrigo Nader
44254206b8
feat: enhance APIRequestComponent with new output methods (#7148)
*  (Research Translation Loop.spec.ts): Increase timeout value by a factor of 3 for better reliability in waiting for element to appear
 (chatInputOutputUser-shard-1.spec.ts): Increase timeout value by a factor of 3 for better reliability in waiting for element to appear

* 🐛 (typescript_test.yml): adjust the maximum shard count to 10 to prevent exceeding the limit and optimize test execution.

* 🐛 (chatInputOutputUser-shard-1.spec.ts): increase timeout for waiting for "built successfully" text to improve test reliability

* ⬆️ (typescript_test.yml): increase maximum shard count to 15 for better test distribution
♻️ (Portfolio Website Code Generator.spec.ts): refactor test assertions to improve readability and maintainability

* 🐛 (typescript_test.yml): adjust the maximum shard count to 10 to prevent exceeding the limit of parallel test executions

* 🔧 (typescript_test.yml): Increase maximum shard count to 15 for better test distribution efficiency
🐛 (chatInputOutputUser-shard-1.spec.ts): Update timeout values for page element waits to prevent premature failures due to timing issues

* templates adjustments

* travel planning fix

* Update Travel Planning Agents.json

* fix templates

* ♻️ (Youtube Analysis.spec.ts): remove unused imports and cleanup code for better readability and maintainability

* json fix

* fix: update simple agent template (#7081)

* Update Simple Agent.json

* Update Simple Agent.json

* feat: update search agent template agent component (#7082)

* update agent component with the latest changes

* Update Search agent.json

* Update Search agent.json

* feat: enhance APIRequestComponent with new output methods

- Refactored output methods to include `as_data` and `as_message` for better data handling.
- Updated existing output method from `make_requests` to `as_data` for consistency.
- Improved metadata handling by merging dictionary results and storing non-dict results as 'data'.
- Added detailed docstrings for new methods to clarify their functionality.

* added the updated test class

* [autofix.ci] apply automated fixes

* 📝 (ContentBlockDisplay.tsx): wrap headerIcon element in a span with data-testid attribute for better accessibility
📝 (DurationDisplay.tsx): add data-testid attribute to the duration display element for testing purposes
📝 (Simple Agent.spec.ts, Social Media Agent.spec.ts, generalBugs-shard-9.spec.ts): update test assertions to improve readability and accuracy
📝 (chatInputOutput.spec.ts): add a skip test annotation and a todo comment for further investigation

*  (typescript_test.yml): Add support for a new development suite in the test workflow
 (frontend): Add support for a new development suite in multiple test files

* 🔧 (.github/workflows/typescript_test.yml): ensure that the SUITES variable is valid JSON format to prevent errors and improve reliability

*  (inputFileComponent/index.tsx): Refactor InputFileComponent to wrap Button component in a div for better structure and readability
🔧 (Vector Store.spec.ts): Add initialGPTsetup function to set up GPT environment variables for tests
🔧 (Vector Store.spec.ts): Refactor test to use initialGPTsetup function and improve readability
🔧 (add-new-api-keys.ts): Refactor addNewApiKeys function to handle multiple openai_api_key inputs
🔧 (remove-old-api-keys.ts): Refactor removeOldApiKeys function to click on the correct remove-icon-badge element

*  Add support for running tests in serial mode with a delay between each test
🔧 Configure tests to run with a 3-second delay between each test run
🔧 Add a 7-second delay before starting tests in userSettings.spec.ts
🔧 Add a 3-second delay before the second event delivery mode test in withEventDeliveryModes.ts

* 📝 (userSettings.spec.ts): remove unnecessary console log message to improve test readability and maintainability

* 📝 (deploy-dropdown.tsx): Add data-testid attribute to shareable-playground element
 (index.tsx): Add useGetTypes hook to fetch types data when component is fetched
🔧 (publish-flow.spec.ts): Increase timeout for page.waitForSelector and page.waitForTimeout
🔧 (Vector Store.spec.ts): Refactor code to wait for dropdown to appear and be visible
🔧 (files-page.spec.ts): Refactor tests to run serially with a delay between each test and add comments to improve readability

*  Add useGetTypes hook to fetch types data and support caching with checkCache option
🔧 Refactor useGetTypes hook to accept options object with checkCache property
🔧 Refactor useGetTypes hook to conditionally return cached data if available
🔧 Refactor useGetTypes hook to fetch types data with force_refresh query parameter
🔧 Refactor useGetTypes hook to handle errors and set types data
🔧 Refactor useGetTypes hook to improve query function and options handling
🔧 Refactor useGetTypes hook to optimize query function and options handling
🔧 Refactor useGetTypes hook to improve caching logic and error handling
🔧 Refactor useGetTypes hook to enhance caching mechanism and error handling
🔧 Refactor useGetTypes hook to improve data fetching and error handling
🔧 Refactor useGetTypes hook to optimize data fetching and error handling

*  (Vector Store.spec.ts): Remove unnecessary loadingOptions check and expectation
♻️ (withEventDeliveryModes.ts): Refactor withEventDeliveryModes function to accept a timeout parameter for better flexibility

* ️ (Vector Store.spec.ts): increase timeout for page.waitForTimeout from 2000ms to 10000ms to improve test stability and reliability

* update pokedex agent template

*  (publish-flow.spec.ts): Remove unnecessary development tag from test description
 (Simple Agent.spec.ts, Social Media Agent.spec.ts): Remove unnecessary development tag from test description
 (Vector Store.spec.ts): Change withEventDeliveryModes to test for better test organization
🔧 (chatInputOutput.spec.ts): Refactor test description and remove unnecessary development tag
 (files-page.spec.ts): Remove unnecessary development tag from test descriptions
 (userSettings.spec.ts): Remove unnecessary development tag from test description

* formatting json

*  (Vector Store.spec.ts): Add new integration test withEventDeliveryModes for Vector Store RAG
🔧 (Vector Store.spec.ts): Update timeout values in test functions to improve test performance and reliability

* 📝 (Text Sentiment Analysis.json): Update JSON file to have consistent formatting and structure for output_types and inputTypes arrays
📝 (Text Sentiment Analysis.spec.ts): Refactor integration test for Text Sentiment Analysis to improve readability and maintainability

*  (PageComponent/index.tsx): Update minZoom and maxZoom values for better user experience
🐛 (upload-file.ts): Fix missing await keyword before clicking on an element

* 🐛 (PageComponent/index.tsx): fix minZoom value to 0.2 for consistency with fitViewOptions and improve user experience

*  (dropdownComponent.spec.ts): add delay before checking dropdown value to ensure it has updated properly
 (dropdownComponent.spec.ts): add delay before interacting with more options modal to ensure it has loaded
 (floatComponent.spec.ts): add delay after clicking add button to wait for API request to complete

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-20 22:46:19 +00:00
Lucas Oliveira
ec78119b3a
fix: apply field name automatically to Apply to Fields in global variable (#7195)
* added referenceField to GlobalVariableModal to show the field that created

* Added the display name of the input to global variable modal

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-03-20 20:06:26 +00:00
Lucas Oliveira
67b6ce58e5
fix: add tab to supported types to not show input handles (#7196)
Add tab to supported types
2025-03-20 19:52:17 +00:00
Deon Sanchez
f99469f06d
fix: Update min/max zoom value and fit view values (#7113)
* fix: Update minZoom value in PageComponent to improve zoom functionality

* [autofix.ci] apply automated fixes

* fix: Add fitViewOptions to PageComponent for enhanced zoom control

* fix: update default zoom out level in adjustScreenView utility

Changed the default value of numberOfZoomOut from 3 to 1 in the adjustScreenView function to improve initial screen adjustment behavior.

* fix: update zoom out level in filterEdge test

Modified the filterEdge test to pass a specific zoom out level of 3 to the adjustScreenView function, ensuring consistent screen adjustments during test execution.

* chore: update .gitignore to exclude .qodo files

* fix tests

* fixed test

* fix loop on zoom out

* Remove unnecessary zoom out click in starter projects test to improve test accuracy.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
2025-03-20 16:35:55 -03:00
Victor-w-Madeira
6a9a4e94ff
feat: add text sentiment analysis template (#6945)
* feat: add text sentiment analysis template

* update templates

* [autofix.ci] apply automated fixes

* update tags and icon

Co-Authored-By: Tarcio  <rodriguestarcio.adv@gmail.com>

* Update Text Sentiment Analysis.json

Co-Authored-By: Tarcio  <rodriguestarcio.adv@gmail.com>

* note-cleanup

*  (Text Sentiment Analysis.spec.ts): add integration test for text sentiment analysis feature in the frontend to ensure user can analyze text sentiment accurately.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Tarcio <rodriguestarcio.adv@gmail.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
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: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
2025-03-20 16:34:11 -03:00
Cole Goldsmith
b9aed459b0
Docs: Create styled link to DataStax Langflow in the sidebar (#7143)
add new html sidebar item with custom styles and new font

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-03-20 18:29:16 +00:00
Pedro Pacheco
ce07fb5cc2
fix: updated version of lanchain-astradb to 0.5.3 (#7189)
Updated langchain-astradb to version 0.5.3

Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
2025-03-20 16:56:08 +00:00
Gustavo Costa
e50c675d01
fix: MongoDB Atlas search documents (#7166)
* stop dropping collection without adding new vectors

* drop collection only there is new documents to vector store

* create test_mongodb_atlas

* [autofix.ci] apply automated fixes

* remove print

* [autofix.ci] apply automated fixes

* fix lint

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2025-03-20 16:06:46 +00:00
Cristhian Zanforlin Lousa
e9c675cdfd
fix: rollback package-lock.json file (#7184)
⬆️ (frontend/package-lock.json): update package-lock.json to use correct resolved URLs for @esbuild and @napi-rs packages for darwin-arm64 architecture. This ensures the correct packages are fetched for the specified architecture. Add support for fsevents package for darwin OS to handle file system events.
2025-03-20 11:05:17 -03:00
Cristhian Zanforlin Lousa
6f9fefefef
fix: add scify package to pypoetry (#7182)
* ⬆️ (pyproject.toml): upgrade scipy dependency to version 1.15.2 to ensure compatibility and access to new features

* add scipy to pypoetry
2025-03-20 09:57:06 -03:00
Cristhian Zanforlin Lousa
1501066f90
fix: Add webrtcvad dependency to backend base requirements (#7180)
⬆️ (pyproject.toml): upgrade webrtcvad dependency to version 2.0.10 to ensure compatibility and access to new features.
2025-03-20 09:27:46 -03:00
Cristhian Zanforlin Lousa
d0d53787a5
tests: Skip tests that are failing during nightly build (#7177)
 (files-page.spec.ts): skip tests temporarily and add TODO comments to understand the behavior before enabling them again
2025-03-20 07:05:52 -03:00
Cristhian Zanforlin Lousa
6f8720f61f
fix: logout redirection on auto-login off (#7171)
🐛 (authGuard/index.tsx): fix logic in shouldRedirect variable to correctly handle conditions for redirection based on authentication and auto login status
2025-03-19 22:41:32 -03:00