Commit graph

15,530 commits

Author SHA1 Message Date
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
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