Commit graph

15,650 commits

Author SHA1 Message Date
Simon Duncan
ff197a4fa7
feat: Update CLI message and style (#7588)
* Update CLI message and style

* [autofix.ci] apply automated fixes

* 📝 (langflow/__main__.py): update access link to include protocol dynamically based on input

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-04-11 15:35:19 +00:00
Mendon Kissling
fa76d568cd
docs: batch run component example (#7542)
* init

* add-instructions-and-image-for-batch-run

* Apply suggestions from code review

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

* update-table-values

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-04-11 13:19:31 +00:00
Lucas Oliveira
c68372bb73
fix: removed handle on secret input (#7411)
* Removed input types from secret input

* Changed starter projects
2025-04-11 12:17:34 +00:00
Gabriel Luiz Freitas Almeida
a8d2fccd1c
Revert "fix: published flows now can add rows to the database" (#7571)
Revert "fix: published flows now can add rows to the database (#7560)"

This reverts commit 077110a496.
2025-04-10 21:40:54 +00:00
Edwin Jose
0d942b264e
feat: create Amazon bundle (#7255)
* create Amazon bundle

* Update s3_bucket_uploader.py

* update FE tests

* [autofix.ci] apply automated fixes

*  (dropdownComponent.spec.ts): update test selectors to match the updated component names for better test accuracy
 (keyPairListComponent.spec.ts): update test selectors to match the updated component names for better test accuracy

* Update filterEdge-shard-1.spec.ts

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-04-10 20:22:32 +00:00
Edwin Jose
e135b7f341
fix: loop variable not accessible error (#7501)
* tests cases

* update to loop

* Update component.py

* 📝 (LoopTemplate.json): update value of a configuration key from "OPENAI_API_KEY" to "ANTHROPIC_API_KEY" in order to reflect the correct API key being used

* update json test loop

* fix: update test URL in loop-component.spec.ts to reflect correct reference

Changed the URL in the test case from "Artificial_intelligence" to "Human_intelligence" to ensure accurate testing of the loop component functionality.

* update FE tests

* [autofix.ci] apply automated fixes

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-10 20:13:33 +00:00
Lucas Oliveira
b5e33cea54
fix: show connected outputs being hidden by code (#7510)
* remove-tag-manager

* update-gtag-tracking-id

* add-head-tag

* remove Google Analytics gtag configuration from docusaurus.config.js

* fix-hydration-error

* revert-to-easy-way

* standard-gtag

* broken-link

* refactor: streamline Google Tag Manager script configuration in docusaurus.config.js

* Apply suggestions from code review

Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>

* Added ShowHiddenOutputs to node output field and made handle not be shown if hidden

* Added ShowHiddenOutputs in OutputParameter

* Added showHiddenOutputs to nodeOutputFieldComponentType

* Passed showHiddenOutputs to outputs

* Check if input types is not empty before counting handle

* Updated missing callback dep

* Added hidden parameter to not have duplicated handles

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-10 20:07:00 +00:00
Edwin Jose
b060183c8c
feat: QoL MCP (#7361)
* Update mcp_component.py

* [autofix.ci] apply automated fixes

* Update mcp_component.py

* Update mcp_component.py

* making tools empty when see url is empty

*  (mcp-server.spec.ts): add additional tests to ensure dropdown_str_tool is disabled and has a timeout of 30 seconds for selector wait.

* fix mcp tests

* [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: cristhianzl <cristhian.lousa@gmail.com>
2025-04-10 18:58:06 +00:00
Lilko Petkov
58b9551758
feat: Enable SSL flags for local development (#7060)
* ssl-support: Enable SSL for local development to simulate a production-like environment. This would allow testing features requiring SSL during development, third party integrations, and allowing easier SSL integration without WAFs and reverse proxies

* rebase

* rebase fixes

---------

Co-authored-by: lpetkov <lpetkov@pros.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com>
Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>
2025-04-10 18:12:04 +00:00
jeevi cao
3fccfd75ed
feat: frontend docker nginx configuration add brower cache accelerated pages access (#7125)
* Update py_autofix.yml

* feat: frontend docker nginx  add brower cache accelerate page access

* Revert "Update py_autofix.yml"

This reverts commit 7aed45e98602f57c2d6d33532080bad30cf02507.

* revert py_autofix.yml

* Revert "Update py_autofix.yml"

This reverts commit 7aed45e98602f57c2d6d33532080bad30cf02507.

* add: remove blank line

* fix: update Nginx configuration to prevent caching for index.html

---------

Co-authored-by: tianzhipeng <tzpabc@gmail.com>
Co-authored-by: caojianwei-jk <caojianwei-jk@360shuke.com>
2025-04-10 17:57:41 +00:00
Gabriel Luiz Freitas Almeida
4173656c89
fix: Update type hints in BatchRunComponent to avoid lint errors (#7567)
* fix: update type hints in BatchRunComponent for improved clarity and consistency

* fix: add type casting in BatchRunComponent for improved type safety

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-10 17:23:40 +00:00
Gabriel Luiz Freitas Almeida
4953227391
chore: Update Makefile to include PostgreSQL in backend installation (#7561)
fix: update Makefile to include 'postgresql' in backend installation command
2025-04-10 17:23:24 +00:00
Jeffrey Carpenter
dff2606fa0
feat: add multi-file support and rename NVIDIA Ingest to NeMo Retriever Extraction (#7495)
* nv-ingest multi-file support

* [autofix.ci] apply automated fixes

* fix linter error

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-10 16:13:23 +00:00
Cristhian Zanforlin Lousa
eb814b29c0
fix: remove unecessary comment from build_flow (#7563)
♻️ (chat.py): remove unused settings_service parameter from the build_flow function signature to clean up the code and improve readability
2025-04-10 16:01:42 +00:00
Gabriel Luiz Freitas Almeida
077110a496
fix: published flows now can add rows to the database (#7560)
* fix: add File model to module exports in database models

* fix: remove unused relationships and imports in database models

* fix: remove foreign key constraints from message, transaction, and vertex_build tables
2025-04-10 15:37:12 +00:00
Abhishek Patil
e8cf155488
chore: Composio version bump (#7557)
chore: composio version bump
2025-04-10 14:46:03 +00:00
saber-wang
cf165953f1
fix: endpoint build_public_tmp now supports event delivery type direct (#7526)
* fix the issue where `build_public_tmp` does not support `EVENT_DELIVERY=direct`

* fix: modify `build_public_tmp` to conform to the latest design

* [autofix.ci] apply automated fixes

* fix: Delete debugging logs

* fix: Delete debugging logs

* fix: Delete debugging logs

---------

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-04-10 14:28:55 +00:00
Rodrigo Nader
67009190cd
refactor: update BatchRunComponent to enhance functionality and usability (#7318)
* refactor: update BatchRunComponent to enhance functionality and usability

- Added TOML formatting for rows when no specific column is set.
- Updated display names and descriptions for clarity.
- Introduced an output column name option for customizable model response storage.
- Improved metadata handling and error management.
- Refactored row creation to include original columns and enhanced metadata.

* [autofix.ci] apply automated fixes

* fix: ruff errors

* [autofix.ci] apply automated fixes

* fix: component tests

* [autofix.ci] apply automated fixes

* Update src/backend/base/langflow/components/helpers/batch_run.py

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>

* [autofix.ci] apply automated fixes

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

* ♻️ (batch_run.py): refactor type annotations to use Hashable for dictionary keys to improve type safety and compatibility with different types of keys

* youtube fix

* 🔧 (batch_run.py): remove unnecessary StrInput import and update MessageTextInput import to improve code cleanliness and remove redundancy

* 📝 (batch_run.py): Update import statement to include Hashable from collections.abc for better readability and maintainability
📝 (Youtube Analysis.json): Update display name from "Batch Results" to "DataFrame" for better clarity and consistency

* [autofix.ci] apply automated fixes

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

* uv ruff fixes

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
2025-04-10 13:37:15 +00:00
Lucas Oliveira
404e04989a
feat: adds new queryInput with separator and dialog (#7458)
* Add Query Input and Mixin on backend

* Adds Query on supported types

* Adds types for query modal and component

* Adds size for new query modal

* Adds query modal

* Adds query component

* Adds query component on parameter render

* [autofix.ci] apply automated fixes

*  (switch-case-size.ts): Update height value to 'h-fit' for 'small-query' case to improve responsiveness
 (queryInputComponent.spec.ts): Add unit test for user interaction with query input component, including updating code and testing functionality

* Fixed handle not working on Query Input

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-04-10 13:04:54 +00:00
Cristhian Zanforlin Lousa
6f259c6bee
fix: add conditional authorization header for dslf in curl commands (#7457)
*  (get-curl-code.tsx): add support for ENABLE_DATASTAX_LANGFLOW feature flag to include Authorization header in curl command if flag is enabled

* 🐛 (get-curl-code.tsx): fix conditional logic for adding x-api-key header in curl command to correctly handle authentication status

---------

Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2025-04-10 10:05:43 +00:00
Cristhian Zanforlin Lousa
92bd92b1eb
fix: Improve Dropdown component handling of custom values and add regression test (#7486)
*  (frontend): Add handleOnNewValue prop to Dropdown component to allow selecting a value not in the list
🔧 (frontend): Remove TODO comment and keep handleOnNewValue prop in DropdownComponent
 (frontend): Add test for selecting a value not in the list in Dropdown component

* 🐛 (dropdownComponent/index.tsx): fix issue where custom value was not being added to validOptions and filteredOptions when pressing Enter
 (dropdownComponent/index.tsx): improve functionality to reset filtered options and custom value input when opening the dropdown

* 🔧 (dropdownComponent/index.tsx): improve styling and layout of dropdown component for better user experience

* ♻️ (dropdownComponent/index.tsx): remove unnecessary comments and improve code readability by removing redundant comments and separating render helper functions from logic blocks.

* 📝 (dropdownComponent/index.tsx): add 'no-focus-visible' class to dropdown component to remove focus outline for better accessibility
📝 (applies.css): add styles for 'no-focus-visible' class to remove focus outline for better accessibility
2025-04-10 10:05:29 +00:00
Edwin Jose
7dd75a658c
fix: removing redundant initialisations in composio components (#7485)
removing redundant initialisations
2025-04-10 07:28:46 +00:00
Mendon Kissling
24a052f70c
fix: update Google Analytics tracking ID in docusaurus configuration (#7539)
* fix: update Google Analytics tracking ID in docusaurus configuration

* empty-commit
2025-04-09 23:17:56 +00:00
Mendon Kissling
ab324e5eb9
docs: decrease leftnav spacing (#7532)
* add-coles-sidebar-fix

* menu-spacing

* Changed sidebar-ad from sticky to fixed positioning
2025-04-09 21:26:39 +00:00
Cristhian Zanforlin Lousa
34f00a7f9e
feat: Disable inspect button for empty node outputs (#7528)
🔧 (NodeOutputfield/index.tsx): refactor useMemo hook to check for empty output messages in the flowPoolNode data
🔧 (NodeOutputfield/index.tsx): refactor disabledInspectButton logic to include check for empty output messages

Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2025-04-09 20:56:04 +00:00
Cristhian Zanforlin Lousa
b1e6881fd2
fix: add conditional authorization header for dslf in curl commands (#7457)
*  (get-curl-code.tsx): add support for ENABLE_DATASTAX_LANGFLOW feature flag to include Authorization header in curl command if flag is enabled

* 🐛 (get-curl-code.tsx): fix conditional logic for adding x-api-key header in curl command to correctly handle authentication status

---------

Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2025-04-09 20:47:33 +00:00
Cristhian Zanforlin Lousa
b2c74173b5
Fix: Prevent Error Popups When Session Expires During Logout (#7455)
🔧 (use-get-refresh-flows-query.ts, use-get-refresh-flows.ts): Add check for AxiosError status to handle specific error case and set error message accordingly.
2025-04-09 20:45:27 +00:00
Cristhian Zanforlin Lousa
823b9448d3
Fix: Add ENABLE_IMAGE_ON_PLAYGROUND feature flag to control image upload functionality in playground environment (#7490)
 (frontend): introduce ENABLE_IMAGE_ON_PLAYGROUND feature flag to control image functionality on playground
📝 (frontend): update feature-flags.ts to include ENABLE_IMAGE_ON_PLAYGROUND flag
🔧 (frontend): update input-wrapper.tsx, use-drag-and-drop.ts, and chat-view.tsx to conditionally enable image functionality based on ENABLE_IMAGE_ON_PLAYGROUND flag

Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2025-04-09 20:19:19 +00:00
Gabriel Luiz Freitas Almeida
0185f74276
fix: job id should be returned only if event_delivery is not direct (#7540) 2025-04-09 16:13:42 -03:00
Cristhian Zanforlin Lousa
59a7440045
fix: Resolve event delivery configuration header passing between frontend and backend (#7514)
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-09 14:58:11 -03:00
cristhianzl
467ae9e34f (tabComponent/index.tsx): add data-testid attribute with dynamic value for better testing capabilities
 (mcp-server.spec.ts): add end-to-end test for changing mode of MCP server without issues
2025-04-09 11:29:22 -03:00
Mendon Kissling
8a1b64ed77
docs: gtag management (#7491)
* remove-tag-manager

* update-gtag-tracking-id

* add-head-tag

* remove Google Analytics gtag configuration from docusaurus.config.js

* fix-hydration-error

* revert-to-easy-way

* standard-gtag

* broken-link

* refactor: streamline Google Tag Manager script configuration in docusaurus.config.js

* Apply suggestions from code review

Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>

---------

Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
2025-04-08 17:16:45 +00:00
Edwin Jose
098937b7df
feat: update groq models (#7488)
update groq Models

Tested curated list of latest models
2025-04-08 16:33:59 +00:00
Gabriel Luiz Freitas Almeida
4792e569f0
tests: add "direct" event delivery method in tests (#7436)
* feat: implement direct event delivery method on the frontend

- Updated buildFlow function to include eventDelivery parameter, allowing for "direct" event delivery mode.
- Modified NodeStatus and IOModal components to utilize the new eventDelivery setting.
- Expanded flowStore and buildUtils to support event delivery options, improving flexibility in event handling.
- Added "direct" option to event delivery types in enums for better configurability.
- Updated tests to cover new event delivery modes.

* Update src/frontend/src/controllers/API/api.tsx

* Update src/frontend/src/utils/buildUtils.ts

* refactor: remove "direct" from event delivery modes in tests

- Updated the event delivery modes in the withEventDeliveryModes utility to exclude "direct", aligning with recent changes in event handling behavior.
- This change simplifies the testing setup and ensures consistency with the current application logic.

* feat: add "direct" to event delivery modes in tests

- Expanded the event delivery modes in the withEventDeliveryModes utility to include "direct", enhancing the testing coverage for this delivery method.
- This update ensures that tests reflect the latest event handling capabilities and improves the robustness of the testing framework.

---------

Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2025-04-08 13:13:03 +00:00
dependabot[bot]
1c7871a63c
build(deps): bump estree-util-value-to-estree from 3.3.2 to 3.3.3 in /docs (#7496)
build(deps): bump estree-util-value-to-estree in /docs

Bumps [estree-util-value-to-estree](https://github.com/remcohaszing/estree-util-value-to-estree) from 3.3.2 to 3.3.3.
- [Release notes](https://github.com/remcohaszing/estree-util-value-to-estree/releases)
- [Commits](https://github.com/remcohaszing/estree-util-value-to-estree/compare/v3.3.2...v3.3.3)

---
updated-dependencies:
- dependency-name: estree-util-value-to-estree
  dependency-version: 3.3.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-04-08 12:18:55 +00:00
Ronnie Miller
7f42a5be36
docs: avoid building docs draft for pull requests from fork (#7493) 2025-04-07 15:01:20 -07:00
Mendon Kissling
eb4e6ae87e
docs: clean up configuration folder (#7426)
* remove-config-pages

* redirect-and-remove-from-sidebars

* add-note-about-backend-only

* redirects-and-sidebar

* fix-plaintext-linting-errors

* cli-page
2025-04-07 21:10:09 +00:00
Lucas Oliveira
a2c5090c7a
feat: adds pan and pinch nav mode like figma (#7410)
* Adds Figma pan modes

* Added selection on drag

* Changed multi selection key code to shift

* Changed tests to have correct modifiers
2025-04-07 19:15:57 +00:00
Lucas Oliveira
ced8d6d8e5
fix: removed file uploaded successfully message when no file is picked, fixed nvidia ingest message (#7441)
* Removed msg from nvidia_ingest

* Added default file picker timeout

* Use bigger timeout for file picker

* Added condition to only say that file was uploaded successfully if there are files
2025-04-07 19:15:55 +00:00
Lucas Oliveira
73302a0a1d
fix: removed cleaning edges where input with same type is hidden (#7479)
Removed function that cleaned edges if another input with the same type is hidden
2025-04-07 19:15:52 +00:00
Gabriel Luiz Freitas Almeida
eeb443bdc1
fix: Improve error handling for NVIDIA model component (#7484)
fix: ignore ConnectionError in  NVIDIA model component in case there's no internet connection

- Added logging for connection issues when accessing the NVIDIA API.
- Implemented exception handling for ConnectionError, MaxRetryError, and NameResolutionError to improve robustness and user feedback.
2025-04-07 18:40:50 +00:00
Mendon Kissling
cde01b3696
docs: add langflow desktop to install page (#7386)
* install-instructions

* numbering

* url

* get-started

* Apply suggestions from code review

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

* version-management

* order-and-style

* introduction-and-admonition

* space

* docs: update installation guide to reflect removal of cloud hosted service option

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-04-07 18:16:40 +00:00
Lucas Oliveira
e5df14875b
feat: put Shareable Playground under ENABLE_PUBLISH feature flag and removed old publish (#7482)
* Removed old toolbar

* Add enable_publish check before showing Shareable Playground

* Removed enable_publish condition on play button

* Removed enable_publish condition on playground title

* Removed unused import
2025-04-07 17:09:02 +00:00
Cristhian Zanforlin Lousa
7a7c8a14df
feat: Display flow logs timestamps in local time zone (#7477)
⬆️ (frontend): upgrade moment-timezone dependency to version 0.5.48
 (frontend): add new utility function convertUTCToLocalTimezone to convert UTC timestamps to local timezone in flowLogsModal and utils files
2025-04-07 14:47:50 +00:00
Mendon Kissling
ac8464cdb2
docs: clean up starter flows and screenshots (#7428)
* quickstart-use-parser

* update-screenshots

* blog-writer

* document-qa

* remove-math-agent-and-redirect

* other-starter-flows

* swap-message-history-and-message-store

* link

* prerequisite-language

* Apply suggestions from code review

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

* docs: update prerequisite phrasing for clarity

* add-running-instance-to-quickstart

* bullets

* quickstart-spacing

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-04-07 14:31:48 +00:00
Christophe Bornet
66996868fd
feat: Add configurable polling interval for syncing flows from FS (#7065)
* Add configurable polling interval for syncing flows from FS

* Update src/backend/base/langflow/services/settings/base.py

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

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-04-07 13:49:05 +00:00
github-actions[bot]
6e9df0b68f
chore: update test durations (#7469)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
2025-04-07 09:10:35 -03:00
Lucas Oliveira
6e38033a95
fix: publish button not redirecting to right path (#7439)
* Added custom link to shareable playground

* Added correct tooltip to Shareable Playground button

* Fix typo
2025-04-04 21:17:23 +00:00
Gustavo Costa
1cb2e0684b
fix: add ENV to Dockerfile when packing flows to image (#7454)
* add ENV to Dockerfile

* 📝 (deployment-docker.md): Update formatting and indentation for better readability and consistency in the deployment Docker documentation.

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-04-04 19:11:45 +00:00
Cristhian Zanforlin Lousa
8e31fc5a8a
chore: bump langflow and langflow-base for 1.3.2 release (#7434)
upgrade langflow 1.3.2
2025-04-03 18:49:22 -03:00