Commit graph

15,193 commits

Author SHA1 Message Date
Mendon Kissling
f7db8eecf2
docs: more information on run flow component (#6046)
* edit-tools

* more-info-on-edit-tools

* component-as-tool-metadata

* Apply suggestions from code review

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

* Fix formatting and clarity in agent tool documentation

* clarity-on-tool-and-run-flow

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-02-12 14:09:29 +00:00
Cristhian Zanforlin Lousa
39c4304543
feat: update OpenAI component temperature limit to 1.0 (#6194)
update openai component temperature max=1
2025-02-12 13:56:29 +00:00
Cristhian Zanforlin Lousa
7e132b37f4
fix: add optional chaining and improve code robustness (#6262)
🔧 (switchOutputView/index.tsx): Fix issue with accessing nested properties in flowPoolNode data object
🔧 (switchOutputView/index.tsx): Fix issue with accessing nested properties in resultMessage object
2025-02-12 13:56:26 +00:00
Christophe Bornet
ffbc97bfc9
feat: Use Alembic with async driver (#6258)
Use Alembic with async driver
2025-02-11 23:11:55 +00:00
Edwin Jose
93bc185ca9
fix: run flow component tool mode issues, causing tool result to be empty (#6121)
* update

* [autofix.ci] apply automated fixes

* updates

* [autofix.ci] apply automated fixes

* Update run_flow.py

* review suggestions

* Update src/backend/base/langflow/components/logic/run_flow.py

Co-authored-by: Madhavan <msmygit@users.noreply.github.com>

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Madhavan <msmygit@users.noreply.github.com>
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2025-02-11 17:41:17 +00:00
Cristhian Zanforlin Lousa
3ea8e7291e
feat: enhance ChatMessage loading state management (#6196)
🔧 (chat-message.tsx): add isBuilding variable to track if the chat message is being built to improve user experience

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-02-11 17:06:20 +00:00
Mendon Kissling
babc3e2700
docs: processing components (#6099)
* docs: renamed-components-and-syntax

* link-anchors

* Apply suggestions from code review

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

* code-review

* docs: add legacy notice to components-processing documentation

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-02-11 17:01:36 +00:00
Edwin Jose
d1402b888f
feat: option to hide a column in frontend when defining a Table Input, hides Tool identifier from table display (#6222)
* added changes to hide fields from table input

* [autofix.ci] apply automated fixes

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-11 16:40:12 +00:00
Cristhian Zanforlin Lousa
e1e9d7baef
refactor: migrate chat lock state to useFlowStore (#6166)
* 🔧 (frontend): remove unused lockChat and setLockChat props from ChatViewWrapper and ChatView components
♻️ (frontend): refactor ChatMessage component to use useFlowStore for lockChat state management instead of passing it as a prop

* 🔧 (chat-message.tsx): Remove unused variables setLockChat and lockChat
♻️ (chat-message.tsx): Refactor code to use isBuilding state instead of setLockChat and lockChat variables
♻️ (new-modal.tsx): Refactor code to remove setLockChat function and references
♻️ (flowStore.ts): Refactor code to remove setLockChat function and lockChat variable
♻️ (components/index.ts): Refactor code to remove setLockChat function and lockChat variable
♻️ (flow/index.ts): Refactor code to remove setLockChat function and lockChat variable
♻️ (buildUtils.ts): Refactor code to remove setLockChat function and references

* ♻️ (chat-view.tsx): refactor variable name 'lockChat' to 'isBuilding' for better clarity and semantics in the code.

* 🔧 (chat-view.tsx, chat-input.tsx, button-send-wrapper.tsx, text-area-wrapper.tsx, upload-file-button.tsx, use-focus-unlock.ts, use-upload.ts, chat-message.tsx, index.ts): Remove lockChat variable and replace it with isBuilding variable to improve code readability and consistency.

* ♻️ (button-send-wrapper.tsx): remove unnecessary disabled prop from Button component to improve code readability and maintainability
2025-02-11 16:39:56 +00:00
Gabriel Luiz Freitas Almeida
8a5cfa3526
fix: make extension check case-insensitive in BaseFileComponent (#6256)
fix: Case-insensitive file extension validation in BaseFileComponent

Modify file extension validation to use lowercase comparison, ensuring consistent handling of file extensions across different input cases
2025-02-11 15:14:26 +00:00
Saurabh Misra
10aea2e9b6
refactor: (codelash) ️ Speed up function find_all_cycle_edges by 17% (#5389)
️ Speed up function `find_all_cycle_edges` by 17%
Here is the optimized version of the given program. The major optimization here is to avoid unnecessary list concatenations in the DFS recursion by using a more efficient approach for aggregating cycle edges.

Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
2025-02-11 11:45:02 +00:00
Saurabh Misra
1bf6c847b7
refactor: (codeflash) ️ Speed up function update_target_handle by 27% in src/backend/base/langflow/graph/graph/utils.py (#5388)
* ️ Speed up function `update_target_handle` by 27%
Sure, here are the optimized versions of the given functions. The key optimizations include avoiding redundant dictionary lookups, removing unnecessary condition checks, and simplifying the logic where possible.

* lint fix

* Apply suggestions from code review

Co-authored-by: Christophe Bornet <cbornet@hotmail.com>

---------

Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
Co-authored-by: Christophe Bornet <cbornet@hotmail.com>
2025-02-11 11:02:48 +00:00
Gabriel Luiz Freitas Almeida
b73b3a09d8
chore: Bump version to 1.1.5 for langflow and 0.1.5 for langflow-base (#6241) 2025-02-10 15:27:10 -03:00
Gabriel Luiz Freitas Almeida
f9b2ce18a4
fix: Improve variable decryption error handling (#6199)
* fix: Improve variable decryption error handling in DatabaseVariableService

Add robust error handling for variable decryption, logging decryption failures and falling back to the original value for generic type variables

* chore: Bump version to 1.1.4.post1 for langflow and 0.1.4.post1 for langflow-base
2025-02-07 18:34:13 +00:00
Deon Sanchez
141e6736d6
chore: Add CustomLoader component and integrate with loading states in Admin, Flow, and Main pages (#6047)
* feat: Add CustomLoader component and integrate with loading states in Admin, Flow, and Main pages

* refactor: simplify CustomLoader component and remove conditional loading logic

* feat: add configurable size to CustomLoader component
2025-02-07 16:22:24 +00:00
Edwin Jose
f9e41f93a0
feat: improve error handling of Agent component, solves Empty ExceptionWithMessageError (#6097)
* Gracefully handle Errors

* updates to Error handling

* update in Error handling

* update lint error similar to main

* [autofix.ci] apply automated fixes

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

* feat: add max retry and request timeout to open ai component, fixes remote protocol error caused by OpenAI LLM in Agents (#6118)

* update to __str__ and fix lint errors

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-07 12:55:58 +00:00
Cristhian Zanforlin Lousa
92640834fa
feat: rename MergeData to CombineData component (#6167)
*  (processing): Rename MergeDataComponent to CombineDataComponent for better clarity and consistency in naming conventions. Add CombineDataComponent to handle different data combination operations like concatenation, appending, merging, and joining.

* [autofix.ci] apply automated fixes

* ♻️ (combine_data.py): refactor class name from CombineDataComponent to MergeDataComponent for better clarity and consistency with the operation performed

*  (processing): Rename CombineDataComponent to MergeDataComponent for better clarity and consistency
📝 (processing): Add new MergeDataComponent to combine data using different operations like Concatenate, Append, Merge, and Join

* ♻️ (processing/__init__.py): refactor CombineDataComponent to MergeDataComponent for better naming consistency and clarity

*  (processing/__init__.py): rename merge_data module to combine_text for better clarity and consistency

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-02-07 12:07:19 +00:00
Cristhian Zanforlin Lousa
8208310fa6
refactor: replace StrInput with MultilineInput for URL fields (FirecrawlAPI) (#6160)
* 📝 (firecrawl_crawl_api.py): update StrInput to MultilineInput for better handling of URL input
📝 (firecrawl_scrape_api.py): update StrInput to MultilineInput for better handling of URL input

* [autofix.ci] apply automated fixes

*  (firecrawl_crawl_api.py): introduce StrInput class to langflow.io module for handling string inputs in the API

* [autofix.ci] apply automated fixes

*  (changes-filter.yaml): add new directories to components list for langflow schema and utils to be included in changes filtering

*  (changes-filter.yaml): add new directory "src/backend/base/langflow/graph/" to components list for changes filtering in the workspace.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-07 11:56:26 +00:00
Jorge Piedrahita Ortiz
414797f3f8
feat: add sambanova-langchain package (#5923)
* add new sambanova available models

* feat: add sambanova-langchain package

add sambanova package
minor improvements in sambanova component
add sambanova in agent examples

* [autofix.ci] apply automated fixes

* fmt

* [autofix.ci] apply automated fixes

* minor changes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-02-07 11:55:24 +00:00
Abhishek Patil
a0474dcc1c
feat: composio-core & composio-langchain version bump (#6187) 2025-02-07 11:11:54 +00:00
Mendon Kissling
9ba0c9ce13
fix: update documentation links for Custom Component to use the correct URL (#6145)
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-02-06 22:39:05 +00:00
Gabriel Luiz Freitas Almeida
792f882088
fix: ensure file path is list before iterating over it (#6175)
fix: Handle file path input for list-type fields in Vertex

Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2025-02-06 21:16:22 +00:00
Eric Hare
c8db2fcde0
Fix: properly handle duplicate files on delete (#6173) 2025-02-06 20:52:58 +00:00
Cristhian Zanforlin Lousa
0b7368e23d
refactor: prevent disconnected handles from executing when input template edge is hidden (#6132)
*  (reactflowUtils.ts): add new function filterHiddenFieldsEdges to filter out edges based on hidden fields in node templates

* ♻️ (reactflowUtils.ts): refactor filterHiddenFieldsEdges function to accept targetNode directly instead of nodes array to improve code readability and maintainability

* 🐛 (reactflowUtils.ts): fix a bug where nodeInputType is accessed without null check, causing potential runtime error

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2025-02-06 20:34:22 +00:00
Cristhian Zanforlin Lousa
fdad49764a
Refactor: Simplify Vertex Queue Initialization by Removing is_input_vertex Dependency (#6155)
* 📝 (vertex_types.py): improve default value assignment logic based on edge type for ComponentVertex class

* [autofix.ci] apply automated fixes

* 📝 (schema.py): remove TextInput from INPUT_COMPONENTS list as it is no longer used
♻️ (vertex_types.py): refactor default_value assignment logic for ComponentVertex class to improve readability and maintainability

*  (schema.py): introduce new TextInput component to the list of INPUT_COMPONENTS for the graph schema

* 📝 (vertex_types.py): improve default value assignment logic based on edge type for ComponentVertex class

* [autofix.ci] apply automated fixes

* 🐛 (utils.py): fix layered topological sort to prevent TextInput from being incorrectly placed at the start

* ♻️ (vertex_types.py): Remove unnecessary comment about getting default value based on edge type to improve code readability and maintainability.

* 🐛 (vertex_types.py): simplify default value assignment logic for cycle edges

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-02-06 19:08:41 +00:00
Eric Hare
28e07be870
feat: Unified File Management API (#6100)
* feat: FIrst pass at file management API

* [autofix.ci] apply automated fixes

* Add delete and edit endpoints

* [autofix.ci] apply automated fixes

* Add file size and duplicate name handling

* Ensure the File model has a unique name

* Ensure count is before extension

* [autofix.ci] apply automated fixes

* Add the correct path to the return

* Added function to handle list of paths in File component

* [autofix.ci] apply automated fixes

* Update input_mixin.py

* Refactor to a v2 endpoint

* Add unit tests

* Update test_files.py

* Update frontend.ts

* [autofix.ci] apply automated fixes

* Remove extension from name

* Cast the string type for like

* Update files.py

* Update base.py

* Update base.py

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
2025-02-06 18:35:24 +00:00
dependabot[bot]
cc3417bec7
build(deps): bump undici from 6.21.0 to 6.21.1 in /docs (#6128)
Bumps [undici](https://github.com/nodejs/undici) from 6.21.0 to 6.21.1.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.21.0...v6.21.1)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-06 18:03:07 +00:00
Mendon Kissling
84ff6d0fec
chore: use yarn only (#6141)
* use-only-yarn

* cicd-changes

* update-readme-and-contributing

* fix-build-log-url-error

* chore: Update package.json to use yarn commands

* yarn-install

* docs: Update workflow to clarify docs build step

* space
2025-02-06 17:44:46 +00:00
Edwin Jose
e89edc3c1c
feat: update Cohere embedding model to use langchain_cohere, added support to dynamically load latest embedding models, improved error handling (#6034)
* update cohere model

* Update src/backend/base/langflow/components/embeddings/cohere.py

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-02-06 17:43:38 +00:00
github-actions[bot]
5f63ca0d24
chore: update test durations (#6098)
Co-authored-by: ogabrielluiz <24829397+ogabrielluiz@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-02-06 00:51:26 +00:00
Ítalo Johnny
fa78e36bd7
fix: adjust LANGFLOW_CONFIG_DIR to prevent permission error (#6095)
* fix: adjust LANGFLOW_CONFIG_DIR to prevent permission error

* chore: remove version from docker-compose.yml

* style: remove trailing whitespace

* refactor: replace expose with ports
2025-02-05 20:54:36 +00:00
Cristhian Zanforlin Lousa
8a7d7ef62f
fix: Notes nodes width resets to default on page reload (#6025)
* fix note node size

* ♻️ (NoteNode/index.tsx): remove commented out code for debounced resize handler to improve code readability and maintainability

* feat: update NoteNode to resize and persist dimensions in state

* 🐛 (generalBugs-shard-10.spec.ts): fix clicking on the last element with the text "openai" instead of the first one to match the intended behavior
 (generalBugs-shard-10.spec.ts): refactor test to use forEach loop for better readability and accuracy in comparing text contents

* 🐛 (general-bugs-save-changes-on-node.spec.ts): add 500ms delay to fix flakiness in tests related to clicking elements and waiting for selectors to appear

*  (appHeaderComponent/index.tsx): add data-testid attribute to app header for testing purposes
📝 (general-bugs-save-changes-on-node.spec.ts): update verifyTextareaValue function to accept an additional parameter flowName for better test coverage and clarity
📝 (general-bugs-save-changes-on-node.spec.ts): add functionality to input and fill a random flow name in the test scenario for improved test coverage and reliability

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-02-05 18:53:50 +00:00
Edwin Jose
974cf2ee20
feat: add time range for tavily search component (#6092)
* added date option in tavily api

* fix lint errors

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-02-05 18:49:27 +00:00
Raphael Valdetaro
25dfe7f474
chore: update Google AI models list (#6013)
* chore: update Google AI models list

* [autofix.ci] apply automated fixes

* chore: update Gemini model name from exp to standard version

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-05 18:35:34 +00:00
brian-ogrady
8bf7048485
feat: Restructure Rerankers so both NVIDIA and Cohere work properly (#5933)
* Removing reference to nonexistent method

* Restructuring rerankers to inherit from BaseDocumentCompressor. Adding Voyage AI reranker.

* Removing Voyage AI component and dependency.

* [autofix.ci] apply automated fixes

* feat: Add method to compress documents as DataFrame in LCCompressorComponent

* Changing description of abstract build_compressor method

* [autofix.ci] apply automated fixes

* Adding top_n as an argument to the NVIDIA reranker

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-02-05 18:29:29 +00:00
Mendon Kissling
8ab74e037a
docs: Add usage guide for MCP stdio and SSE components (#6133)
* docs: Add usage guide for MCP stdio and SSE components

* docs: Remove example URL for MCP SSE component
2025-02-05 18:24:52 +00:00
Mendon Kissling
7e99dab42e
docs: API for v113 (#6093)
* bump-openapi-doc

* docs: Update API Reference documentation with comprehensive examples and explanations

* docs: Update API Reference documentation with consistent curl command formatting

* configure-build

* docs: Improve API reference documentation clarity for flow execution endpoint

* run-result

* webhook-data

* updates-to-stream-and-run

* bump-api-to-114

* note-on-streaming-responses

* Apply suggestions from code review

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

* fix-broken-link-in-report

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-02-05 17:28:08 +00:00
Mendon Kissling
37a56b106f
docs: webhook component playground test (#6053)
* webhook-component-test

* add-api-pane-pointer
2025-02-05 15:37:45 +00:00
Cristhian Zanforlin Lousa
8531e1b58d
feat: Update node name and description UX editing (#5920)
*  (NodeName/index.tsx): add cursor-grab class to improve user experience when dragging the node
 (NodeName/index.tsx): add nodrag class to prevent text selection when dragging the node
 (NodeStatus/index.tsx): add nodrag class to prevent text selection when dragging the node
 (GenericNode/index.tsx): add nopan, nodelete, nodrag, noflow classes to improve node dragging behavior

* 📝 (NodeDescription/index.tsx): Update cursor style to 'auto' for better user experience
📝 (NodeName/index.tsx): Update cursor style to 'auto' for better user experience
📝 (NodeOutputfield/index.tsx): Add cursor style 'pointer' to improve interactivity

*  (NodeDescription/index.tsx): Add support for editing node description when selected and editNameDescription is true
 (NodeName/index.tsx): Add support for editing node name when selected and editNameDescription is true
🔧 (GenericNode/index.tsx): Introduce useAlternate hook to handle toggling editNameDescription state
📝 (use-alternate.tsx): Add custom hook useAlternate to handle toggling boolean state
🔧 (style/index.css): Add new CSS variable --zinc-foreground for styling purposes
🔧 (tailwind.config.mjs): Add new tailwind color variable "zinc-foreground" for styling purposes

* 📝 (NodeDescription/index.tsx): Remove unnecessary setInputDescription call and update useEffect dependencies for better performance
📝 (NodeDescription/index.tsx): Update className for Textarea component to improve styling and readability
📝 (NodeDescription/index.tsx): Update className for generic-node-desc-text to improve styling and cursor behavior
📝 (NodeName/index.tsx): Remove unnecessary setInputName call and update useEffect dependencies for better performance
📝 (NodeName/index.tsx): Update className for span element to improve cursor behavior and styling
📝 (GenericNode/index.tsx): Add useRef for node element and implement useChangeOnUnfocus hook for better handling of focus events
📝 (GenericNode/index.tsx): Update className for pencil icon based on editNameDescription state for better visual feedback
📝 (GenericNode/index.tsx): Add editNameDescription to dependencies of useCallback to prevent unnecessary re-renders
📝 (GenericNode/index.tsx): Add editNameDescription to dependencies of useEffect to handle changes in editNameDescription state
📝 (use-change-on-unfocus.tsx): Implement custom hook useChangeOnUnfocus for handling focus events and state changes

* Refactor NodeDescription to remove old logic and variables

* Refactor NodeName component to remove unnecessary logic and variables

* [autofix.ci] apply automated fixes

*  (NodeDescription/index.tsx): Add functionality to edit node description and handle events like blur, key down, and double click for sticky notes
📝 (NoteNode/index.tsx): Introduce useAlternate hook to toggle edit mode for node description in NoteNode component

* ♻️ (NoteNode/index.tsx): refactor useAlternate hook usage to simplify code and improve readability

* 🔧 (GenericNode/index.tsx): refactor className to conditionally apply translate-x styles based on showNode state for improved UI responsiveness

* 📝 (NodeDescription/index.tsx): Refactor handleBlurFn and handleKeyDownFn to improve code readability and maintainability
📝 (NodeName/index.tsx): Refactor handleBlur and handleKeyDown functions for better code organization and readability
📝 (GenericNode/index.tsx): Update toggleEditNameDescription prop to setEditNameDescription for consistency and clarity
📝 (use-change-on-unfocus.tsx): Remove unnecessary handleEscape function and handleBlur event listener for better code simplicity and performance

* 📝 (NodeDescription/index.tsx): Update CSS class name to use 'focus-border-primary' instead of 'focus-border-black' for consistency and clarity
📝 (GenericNode/index.tsx): Add data-testid attribute to save and edit name description buttons for testing purposes
📝 (edit-name-description-node.spec.ts): Add test to verify user can edit name and description of a node in the UI

*  (GenericNode/index.tsx): Add functionality to show and hide toolbar with animation based on node selection status
📝 (get-class-toolbar-transform.ts): Create helper function to determine transform classes for toolbar animation based on showToolbar and showNode status

*  (NodeDescription/index.tsx): add setHasChangedNodeDescription prop to update parent component when node description changes
 (NodeName/index.tsx): add setHasChangedNodeDescription prop to update parent component when node name changes
 (GenericNode/index.tsx): add hasChangedNodeDescription state and setHasChangedNodeDescription function to track changes in node description and update parent component
📝 (edit-name-description-node.spec.ts): add wait for sidebar custom component button and timeout to improve test reliability

*  (group.spec.ts): Update click event on "title-Group" element to improve user interaction
🐛 (group.spec.ts): Fix click event on "save-name-description-button" element to properly save changes
🐛 (general-bugs-save-changes-on-node.spec.ts): Increase timeout for selectors to prevent test failures due to slow loading
🐛 (general-bugs-save-changes-on-node.spec.ts): Fix random value generation to ensure consistent length
🐛 (general-bugs-save-changes-on-node.spec.ts): Fix click event on "add-component-button-text-output" element to add component correctly
🐛 (general-bugs-save-changes-on-node.spec.ts): Fix timeout for selector to prevent test failures due to slow loading
🐛 (general-bugs-save-changes-on-node.spec.ts): Fix verifyTextareaValue function to properly verify textarea values

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-05 14:02:57 +00:00
Cristhian Zanforlin Lousa
6b17240d75
feat: resolve component update notification state persistence after dismissal (#6032)
*  (NodeStatus): Add support for utility store in NodeStatus component to manage dismissAll state
🔧 (GenericNode): Import and use utility store in GenericNode component to access dismissAll state
🔧 (use-reset-dismiss-update-all): Create hook to reset dismissAll state in utility store
🔧 (UpdateAllComponents): Import and use utility store in UpdateAllComponents component to access dismissAll state
🔧 (header): Import useResetDismissUpdateAll hook in header component to reset dismissAll state
🔧 (list): Import useResetDismissUpdateAll hook in list component to reset dismissAll state
🔧 (utilityStore): Add dismissAll state and setDismissAll method to utility store
🔧 (utility/index): Add dismissAll state and setDismissAll method to UtilityStoreType

*  (NodeStatus/index.tsx): add dismissAll prop to NodeStatus component to handle dismissing all notifications
 (GenericNode/index.tsx): add dismissAll prop to GenericNode component to handle dismissing all notifications
 (UpdateAllComponents/index.tsx): add e.stopPropagation() to onClick event handler to prevent event bubbling
🔧 (header/index.tsx): remove unused import useResetDismissUpdateAll from header component

*  (NodeStatus/index.tsx): Add functionality to handle updating a component when it is outdated and not user-edited
🔧 (GenericNode/index.tsx): Update handleUpdateComponent function to handleUpdateCode for consistency
🔧 (appHeaderComponent/index.tsx): Add useResetDismissUpdateAll hook to reset dismiss update all functionality
🔧 (use-reset-dismiss-update-all.ts): Update useResetDismissUpdateAll hook to only reset dismiss update all in flow location path
🔧 (list/index.tsx): Remove useResetDismissUpdateAll hook from ListComponent as it is no longer needed
🔧 (index.css): Remove extra whitespace in CSS file

* 🔧 (GenericNode/index.tsx): improve conditional class logic to include dismissAll variable in className calculation

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2025-02-05 12:49:58 +00:00
Mendon Kissling
369b8ec855
chore(deps): upgrade Docusaurus and related dependencies (#6120)
chore(deps): upgrade Docusaurus and related dependencies to version 3.7.0
2025-02-05 12:33:32 +00:00
anovazzi1
6cb7fa313f
chore: Bump version to 1.1.4 for langflow and 0.1.4 for langflow-base (#6119) 2025-02-04 18:23:44 -03:00
Gabriel Luiz Freitas Almeida
bdda781461
fix: Implement get_or_create_default_folder for user folder management (#6090)
* feat: implement get_or_create_default_folder function to ensure default folder exists for users

* refactor: replace create_default_folder_if_it_doesnt_exist with get_or_create_default_folder for user folder creation

* test: add unit tests for get_or_create_default_folder function

*  (generalBugs-shard-10.spec.ts): refactor test script to improve readability and maintainability by chaining actions on page elements instead of using separate lines for each action

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-02-03 18:34:58 +00:00
Mendon Kissling
ea5806f30e
docs: add guide for rotating LANGFLOW_SECRET_KEY (#6091)
docs: Add guide for rotating LANGFLOW_SECRET_KEY
2025-02-03 16:27:28 +00:00
Gabriel Luiz Freitas Almeida
f8b08a446c
refactor: Enhance profile picture copying with optimized I/O and error handling (#6083)
* feat: enhance profile picture copying with optimized I/O and error handling

* fix: correct docstring for copy_profile_pictures function
2025-02-03 15:56:47 +00:00
anovazzi1
d24e989a91
fix: abort connection on error preventing infinite build (#6050)
* fix: abort connection on build errors

* fix: streamline error message formatting in ErrorMessage class

* test: remove timeout from waitForSelector in generalBugs-shard-10.spec.ts

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-02-03 15:56:26 +00:00
codeflash-ai[bot]
d676aef9b4
refactor: Speed up function _serialize_dataframe by 123% in PR #6044 (refactor-serialization) (#6078)
* feat: Implement serialization functions for various data types and add a unified serialize method

* feat: Enhance serialization by adding support for primitive types, enums, and generic types

* fix: Update Pinecone integration to use VectorStore and handle import errors gracefully

* test: Add hypothesis-based tests for serialization functions across various data types

* refactor: Replace custom serialization logic with unified serialize function for consistency and maintainability

* refactor: Replace recursive serialization function with unified serialize method for improved clarity and maintainability

* refactor: Replace custom serialization logic with unified serialize function for improved consistency and clarity

* refactor: Enhance serialization logic by adding instance handling and streamlining type checks

* refactor: Remove custom dictionary serialization from ResultDataResponse for streamlined handling

* refactor: Enhance serialization in ResultDataResponse by adding max_items_length for improved handling of outputs, logs, messages, and artifacts

* refactor: Move MAX_ITEMS_LENGTH and MAX_TEXT_LENGTH constants to serialization module for better organization

* refactor: Simplify message serialization in Log model by utilizing unified serialize function

* refactor: Remove unnecessary pytest marker from TestSerializationHypothesis class

* optimize _serialize_bytes

Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>

* feat: Add support for numpy integer type serialization

* feat: Enhance serialization with support for pandas and numpy types

* test: Add comprehensive serialization tests for numpy and pandas types

* fix: Update _serialize_dispatcher to return string representation for unsupported types

* fix: Update _serialize_dispatcher to return the object directly instead of its string representation

* optmize conditional

Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>

* optimize length check

Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>

* fix: Update string and list truncation to include ellipsis for clarity

* ️ Speed up function `_serialize_dataframe` by 123% in PR #6044 (`refactor-serialization`)
Certainly! Here's a more efficient version of the given program. The primary optimization performed here is removing the redundant `.apply()` call and directly truncating values in a more performant way.



### Changes Made.
1. **Removed redundant `apply` calls**: In the original code, there were nested `apply` calls which can be very slow on larger DataFrames. The new implementation converts the DataFrame to a list of dictionaries first and then truncates the values if needed.
2. **Optimized truncation logic**: Applied truncation directly while iterating over the dictionary after conversion from a DataFrame. This reduces overhead and improves readability.

These changes should enhance the runtime performance of the serialization process, especially for larger DataFrames.

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
2025-02-03 15:48:34 +00:00
Eric Hare
1acc724e23
fix: Better handle other non-prod environments (#6048)
* fix: Better handle other non-prod environments

* [autofix.ci] apply automated fixes

*  (duck_duck_go_search_run.py): refactor DuckDuckGoSearchComponent to improve code structure and readability
📝 (duck_duck_go_search_run.py): update DuckDuckGoSearchComponent with new display name, description, and documentation URL
📝 (duck_duck_go_search_run.py): update DuckDuckGoSearchComponent inputs with additional information and tool mode
📝 (duck_duck_go_search_run.py): update DuckDuckGoSearchComponent outputs with new output methods and display names
📝 (duck_duck_go_search_run.py): update DuckDuckGoSearchComponent methods to improve clarity and functionality

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-02-03 15:40:03 +00:00
codeflash-ai[bot]
4fd2b2feb1
refactor: Speed up function _serialize_series by 234% in PR #6044 (refactor-serialization) (#6079)
* feat: Implement serialization functions for various data types and add a unified serialize method

* optmize conditional

Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>

* fix: Update string and list truncation to include ellipsis for clarity

* ️ Speed up function `_serialize_series` by 234% in PR #6044 (`refactor-serialization`)
Certainly! Here is a more optimized version of the program.



Changes made.
1. Replaced the `apply` method with dictionary comprehension. This avoids creating an intermediate Series, which can be an expensive operation.
2. Moved `_truncate_value` outside of the main function to keep the main function concise and focused.

* refactor: Remove unused `_truncate_value` function from serialization module

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
2025-02-03 15:39:58 +00:00
Lucas Oliveira
5ef9d34599
fix: elevate edges on select (#6052)
Elevate edges on select

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-02-03 15:25:51 +00:00