Commit graph

16,148 commits

Author SHA1 Message Date
Cristhian Zanforlin Lousa
2ad73df1b5
test: update backend config, frontend utilities, and test coverage (#8671)
*  (custom-get-download-folders.ts): update default filename to include folderName variable to provide more context and improve user experience

*  (custom-get-download-folders.ts): update folder name from "My Projects" to "Starter Project" for better clarity and consistency

* 📝 (.github/changes-filter.yaml): add new directory 'serialization' to components list for changes filtering
🐛 (general-bugs-truncate-results.spec.ts): fix typo in 'truncated' word and update timeout for better test reliability

* 🔧 (custom-get-download-folders.ts): Remove unnecessary conditional statement and update default filename for download to "flows.zip" for better clarity.
2025-06-23 18:57:46 +00:00
Cristhian Zanforlin Lousa
0895ebbdcb
feat: Add conditional API key display for auth and auto-login (#8684)
*  Add IS_AUTO_LOGIN constant to handle auto login feature in NodeInputField and TableNodeCellRender components
🔧 Add loginLangflow utility function to facilitate login process in tests

*  (NodeInputField/index.tsx): introduce useIsAutoLogin hook to simplify logic for determining auto login status
 (tableNodeCellRender/index.tsx): introduce useIsAutoLogin hook to simplify logic for determining auto login status
📝 (use-is-auto-login.ts): add custom hook useIsAutoLogin to encapsulate logic for determining auto login status
2025-06-23 18:53:08 +00:00
Cristhian Zanforlin Lousa
797a7b6848
fix: Replace Google with GoogleGenerativeAI in provider options (#8683)
*  (language_model.py): update the options_metadata in DropdownInput to include a new model provider "GoogleGenerativeAI" for better user experience

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-23 18:53:02 +00:00
Cristhian Zanforlin Lousa
30a0f11448
fix: implement locked flow interaction restrictions (#8645)
* 📝 (handleRenderComponent/index.tsx): Add useShallow import for zustand/react/shallow to optimize re-renders
📝 (handleRenderComponent/index.tsx): Introduce isLocked state to handle locked flow functionality
📝 (handleRenderComponent/index.tsx): Update tooltip visibility based on isLocked state
📝 (handleRenderComponent/index.tsx): Update handle style based on isLocked state
📝 (PageComponent/index.tsx): Add useShallow import for zustand/react/shallow to optimize re-renders
📝 (PageComponent/index.tsx): Introduce isLocked state to handle locked flow functionality
📝 (PageComponent/index.tsx): Prevent edge click actions when flow is locked
📝 (PageComponent/index.tsx): Disable edge actions when flow is locked
📝 (PageComponent/index.tsx): Update edge actions based on isLocked state
📝 (lock-flow.spec.ts): Add test to simulate deleting edges when flow is locked

*  (lock-flow.spec.ts): add functionality to try connecting nodes and handle edge cases when connecting nodes in the flow diagram.
2025-06-23 18:52:26 +00:00
Lucas Oliveira
8f4d1cb902
fix: make json edit modal have fixed height and be readOnly if its on View mode (#8680)
Fixed dict area modal to not allow editing of a json when not on edit mode
2025-06-23 18:27:03 +00:00
Lucas Oliveira
eeb7f246fe
fix: make playground scroll not scroll down when not needed (#8676)
Fixed playground scroll

Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
2025-06-23 18:26:41 +00:00
github-actions[bot]
751e6a240f
docs: OpenAPI spec content updated without version change (#8447)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-06-23 18:19:14 +00:00
Mendon Kissling
9bfd0b7757
docs: move smart filter to be alphabetical (#8682)
alphabetize-name
2025-06-23 18:17:39 +00:00
Lucas Oliveira
b1993670ea
fix: added props to all icons and added width and height defs to node icon (#8649)
* Updated icons to include props

* Updated node icon to include width and height
2025-06-23 18:07:54 +00:00
Jordan Frazier
131322cb9b
fix: adds logging to langflow run command (#8466)
* Clean up initialiation of uv run langflow run

* sigint fixes

* Log level fixes and gunicorn logs removal

* sqlalch contraints

* Add back banner for windows

* [autofix.ci] apply automated fixes

* handle sigint sigterms

* [autofix.ci] apply automated fixes

* handle multiple sigints

* more gracefully handle shutdown during init

* [autofix.ci] apply automated fixes

* swallow cancellation during log flush

* fix path import and cleanup

* [autofix.ci] apply automated fixes

* start with step logs

* 📝 (main.py): Comment out logger.info statement to prevent unnecessary logging of static files directory setup information.

* 💡 (langflow/__main__.py): Comment out logger.info message for initializing Langflow to reduce noise in logs and improve readability.

* uncomment logs, change to debug

* 📝 (langflow): remove redundant logger info messages in signal handlers and shutdown process
♻️ (langflow): refactor shutdown process to use a progress indicator for better visibility and control
♻️ (langflow): refactor initialization process to remove redundant logger info messages
📝 (langflow): add methods to print shutdown summary and farewell message after shutdown is complete
📝 (langflow): add method to create a progress indicator for shutdown steps
📝 (langflow): add predefined shutdown steps for Langflow shutdown process
📝 (langflow): add method to create a progress indicator with predefined Langflow initialization steps
📝 (langflow): add method to create a progress indicator with predefined Langflow shutdown steps
📝 (langflow): add predefined shutdown steps in reverse order of initialization
📝 (langflow): add predefined initialization steps for Langflow initialization process
📝 (langflow): add method to print a summary of all completed shutdown steps

* 📝 (api/v1/__init__.py): reorganize imports and include_router calls for better readability and maintainability
🔧 (api/v1/__init__.py): update __all__ list to explicitly include all routers for better module encapsulation
💡 (utils.py): add logging statement to indicate building custom components from specified paths

* Fix ordering of operations for windows builds

* use lowercase log levels for uvicorn

* converts log to lower if set from env var

* [autofix.ci] apply automated fixes

* use a subprocess for windows so progress step can complete

* [autofix.ci] apply automated fixes

* test subprocess for windows

* use subprocess for all architectures

* Clean up global vars and simplify shutdown

* [autofix.ci] apply automated fixes

* 📝 (progress.py): add platform check to use different characters and icons based on the operating system for better compatibility and user experience

* 📝 (langflow/__main__.py): use platform-specific characters for icons to prevent encoding issues and improve cross-platform compatibility

* test for windows

* remove print

* move windows blocking call outside of progres step

* [autofix.ci] apply automated fixes

* log cleanup and timeout of teardown

* remove seemingly unnecessary redirect

* [autofix.ci] apply automated fixes

* ruff

* Add init file to cli dir

* ruff:
:

* unused import

* mypy fixes

* mypy fixes

* [autofix.ci] apply automated fixes

* ruff

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* Try underscores so ci doesn't remove

* [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-06-23 17:57:27 +00:00
Jordan Frazier
e5bec89cc8
chore: remove ragstack-ai-knowledge-store dep (#8681)
Remove ragstack-ai-knowledge-store dep
2025-06-23 17:21:32 +00:00
Eric Hare
84e46c00ef
fix: Allow non-verified SSL connections in Elastic (#8623)
* fix: Allow non-verified SSL connections in Elastic

* [autofix.ci] apply automated fixes

* Update src/backend/base/langflow/components/vectorstores/elasticsearch.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update elasticsearch.py

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-06-23 17:10:29 +00:00
Eric Hare
412fdd20cc
fix: Rebuild Templates and Broken Connections (#8386)
* Update Vector Store RAG.json

* fix: make starter projects auto refactor not remove selected output (#8400)

* Fixed bug where starter projects were refactored incorrectly

* fix: improve handling of selected outputs in custom component template builder

- Added checks to ensure selected output is valid before attempting to set its state.
- Enhanced code readability with comments explaining the logic for selecting outputs.

* Set selected output as the previous selected output

* Update base.py

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>

* fix: made clean edges clean after changing dropdown of output (#8460)

fixed output considering all outputs not just selected one

* refactor(docker): remove --extra deploy flag from uv sync commands (#8485)

🔧 (build_and_push_with_extras.Dockerfile): remove unnecessary uv sync command options to improve build efficiency and reduce redundancy

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

* fix: refactor mcp and freeze tests to be less prone to flaky results (#8486)

* Fixed mcp test to be less prone to errors

* Fix freeze spec

* fix: made button disabled state more congruent, made edit flow details submit on enter (#8339)

* Changed textarea classes

* Changed flowsettingscomponent to use form

* changed edit flow settings to use form and to submit on enter

* Reset form data on close

* Updated disabled state to have lower opacity instead of to have set background

* Fixed loading state of button

* Fix: chat memory store issue and fix output types (#8463)

* fix chat memory

* update template

* update update outputs

* update update outputs

---------

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

* ci: update setup-uv to possibly fix caching (#8490)

* update templates

* update templates

* First round of template updates

* Update templates

* fix: Update SaaS, Social Media, and YouTube json file (#8441)

* update SaaS, Social Media, and YouTube json file

* fix: make starter projects auto refactor not remove selected output (#8400)

* Fixed bug where starter projects were refactored incorrectly

* fix: improve handling of selected outputs in custom component template builder

- Added checks to ensure selected output is valid before attempting to set its state.
- Enhanced code readability with comments explaining the logic for selecting outputs.

* Set selected output as the previous selected output

* Update base.py

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>

* fix: made clean edges clean after changing dropdown of output (#8460)

fixed output considering all outputs not just selected one

* refactor(docker): remove --extra deploy flag from uv sync commands (#8485)

🔧 (build_and_push_with_extras.Dockerfile): remove unnecessary uv sync command options to improve build efficiency and reduce redundancy

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

* fix: refactor mcp and freeze tests to be less prone to flaky results (#8486)

* Fixed mcp test to be less prone to errors

* Fix freeze spec

* fix: made button disabled state more congruent, made edit flow details submit on enter (#8339)

* Changed textarea classes

* Changed flowsettingscomponent to use form

* changed edit flow settings to use form and to submit on enter

* Reset form data on close

* Updated disabled state to have lower opacity instead of to have set background

* Fixed loading state of button

* Fix: chat memory store issue and fix output types (#8463)

* fix chat memory

* update template

* update update outputs

* update update outputs

---------

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

* ci: update setup-uv to possibly fix caching (#8490)

* update json

* fix custom component

* revert change

---------

Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>

* fix: templates (#8499)

* basic-prompting-template-updated

* show-system-message

* names

* blog-writer-tested

* financial-report-parser

* image-sentiment-analysis

* seo-keyword-generator

* seo-keyword-generator

* Merge branch 'fix-vector-search-template' into mendons-template-branch

---------

Co-authored-by: Eric Hare <ericrhare@gmail.com>

* Update Basic Prompting.json

* Update Blog Writer.json

* Further template updates

* Update Image Sentiment Analysis.json

* Update templates

* Update Financial Report Parser.json

* Update Market Research.json

* Update Market Research.json

* Update Image Sentiment Analysis.json

* Update Market Research.json

* Update image sentiment analysis template

* Update Market Research.json

* Update Custom Component Maker.json

* Update Custom Component Maker.json

* Update Hybrid Search RAG.json

* Update Hybrid Search RAG.json

* Update Hybrid Search RAG.json

* More template updates

* Update Financial Report Parser.json

* Update Custom Component Maker.json

* Template updates

* Update Custom Component Maker.json

* Template updates

* fix custom component

* Update Financial Agent.json

* More template updates

* finance report parser fix

---------

Co-authored-by: Yuqi Tang <yuqi.tang@datastax.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2025-06-23 16:53:55 +00:00
April I. Murphy
332738a317
docs: Build out Troubleshooting and Support documentation (#8662)
* change luna to enterprise support

* community page updates

* combine issues and discussions pages

* move telemetry out of contribute

* remove gerund title

* rewrite issues page

* fix 2 anchors

* add troubleshooting page

* move troubleshooting and extras from install

* add some more issues

* coderabbit
2025-06-23 16:16:40 +00:00
April I. Murphy
e8236dbd21
docs: Fix two anchored links on the Install page (#8661)
fix 2 anchors

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-06-23 15:14:36 +00:00
Jordan Frazier
576b78e8eb
docs: update pip install instructions to use uv (#8519)
* update code pip install docs

* update readme to use -U, remove old dockerfile

* [autofix.ci] apply automated fixes

* fix uvlock

* [autofix.ci] apply automated fixes

* uv.lock

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-23 14:56:56 +00:00
Lucas Oliveira
4a09655f2f
fix: implemented cached values and temporary MCP servers on MCP component (#8628)
* Added actionCount to fetch only servers without actionCount

* Updated queries and uses to use servers without action data first, and then to fetch them

* removed comment

* updated constants

* Added loading dropdown

* Make options persist

* Implemented new value format for McpComponent and implemented saving and removing temp Mcp Server if config is existent

* Changed value type

* Implemented cache and saving the server config

* Fixed mcp server test

* fix backend formatting

* fixed lint

* Added await

* Fixed save button not appearing when no servers are available

* added condition to only show save button when options is not null
2025-06-23 14:15:22 +00:00
Cristhian Zanforlin Lousa
043ba55718
feat: add sessions endpoint with session management enhancements (#8596)
* 📝 (monitor.py): Add endpoint to get sessions and handle session_id encoding for API requests
📝 (use-get-messages-mutation.ts): Implement a mutation function to fetch messages with query parameters and handle session_id encoding for API requests
📝 (use-get-messages-polling.ts): Ensure proper encoding of session_id for API requests in polling mutation
📝 (use-get-messages.ts): Handle session_id encoding for API requests in messages query
📝 (new-modal.tsx): Implement functions to handle session deletion and proper encoding of session_id for API requests
📝 (utils.ts): Add functions to encode, decode, validate, format, and prepare session IDs for API requests

* 📝 (constants.ts): Add SESSIONS constant to API URLs for monitoring sessions
🔧 (use-delete-messages.ts): Add queryClient to UseRequestProcessor to invalidate sessions query
 (use-get-sessions-from-flow.ts): Introduce useGetSessionsFromFlowQuery to fetch sessions from flow
🔧 (use-rename-session.ts): Change refetchQueries to invalidateQueries for useGetSessionsFromFlowQuery
🔧 (custom-new-modal.tsx): Update import path for IOModal to playground-modal
🔧 (session-selector.tsx): Add setActiveSession function to handle setting active session
🔧 (sidebar-open-view.tsx): Add setActiveSession function to handle setting active session
♻️ (new-modal.tsx): Refactor IOModal into playground-modal and update functionality
♻️ (playground-modal.tsx): Refactor IOModal to handle playground-specific functionality
⬆️ (flowStore.ts): Add newChatOnPlayground state and setNewChatOnPlayground function
⬆️ (index.ts): Update FlowStoreType to include newChatOnPlayground and setNewChatOnPlayground

* 🔧 (pyproject.toml): update testpaths to point to the correct directory for tests
 (test_session_endpoint.py): add unit tests for sessions endpoint with flow_id filtering
♻️ (session-selector.tsx): refactor to trim editedSession before setting it
♻️ (sidebar-open-view.tsx): refactor to set visibleSession instead of activeSession

*  (use-get-sessions-from-flow.ts): Always include the flow ID as the default session if it's not already present
♻️ (playground-modal.tsx): Refactor setting sessions to include currentFlowId as the default session if not present, and handle visibility of sessions more efficiently

* ♻️ (use-get-messages-mutation.ts): remove unused imports and refactor code for better readability and maintainability

*  (test_session_endpoint.py): refactor test function names for better clarity and consistency

*  (create-new-session-name.ts): add function to generate a new session name based on the current date and time
🔧 (playground-modal.tsx): import createNewSessionName function to dynamically set a new session name when no session is visible

* [autofix.ci] apply automated fixes

*  (monitor.py): rename get_sessions endpoint to get_message_sessions for clarity and consistency
🔧 (constants.ts): remove unused SESSIONS constant from API URLs
🔧 (use-delete-messages.ts): remove commented out code and unnecessary comments
 (use-delete-sessions.ts): add functionality to delete sessions in frontend
🔧 (use-get-sessions-from-flow.ts): update API endpoint for getting sessions to match backend changes
🔧 (playground-modal.tsx): add functionality to delete sessions and associated messages in the UI, update UI optimistically, and handle errors appropriately

* [autofix.ci] apply automated fixes

* 🐛 (monitor.py): Fix type hinting issue in delete_messages function
📝 (monitor.py): Add comments and improve readability in test_messages_endpoints.py
📝 (session_endpoint.py): Update endpoint paths for consistency and clarity in test_session_endpoint.py

* [autofix.ci] apply automated fixes

* fix: update SQL statement to use col() for session_id filtering in get_message_sessions function

---------

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-06-23 14:11:07 +00:00
Edwin Jose
068db12c33
feat: update structured output to multiline input and revise system prompt (#8585)
* Update structured_output.py

* [autofix.ci] apply automated fixes

* Update structured_output.py

* [autofix.ci] apply automated fixes

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

* update to prompt

* template updates

* Update src/backend/base/langflow/components/processing/structured_output.py

* [autofix.ci] apply automated fixes

* Update src/backend/base/langflow/components/processing/structured_output.py

* Update src/backend/base/langflow/components/processing/structured_output.py

* Update src/backend/base/langflow/components/processing/structured_output.py

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-23 13:48:21 +00:00
Gabriel Luiz Freitas Almeida
dbaa8a1c6f
refactor: simplify init target by removing cache cleanup and adding pre-commit hook (#8590)
* build: add pyyaml dependency

* refactor: simplify init command by removing cache cleaning and langflow run call

* refactor: simplify init target by removing cache cleanup and adding pre-commit hook

* refactor: update langchain_core.prompts import paths to use specific modules

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-06-23 13:46:55 +00:00
Gabriel Luiz Freitas Almeida
8563d87729
ci: Skip truncated values test for refactoring (#8670) 2025-06-23 09:46:30 -03:00
Mendon Kissling
15f44519af
docs: agent refactor (#8524)
* changes-from-1.5

* initial-content

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* breakout-tools-config

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* docs-review

* fix-broken-links

* Apply suggestions from code review

---------

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
2025-06-20 22:05:48 +00:00
Mendon Kissling
0c9d378161
docs: refactor installation page (#8487)
* initial-changes

* install-by-os

* powershell-install-and-venvs

* clearer-intro

* post-install-and-ordering

* readme quickstart

* run

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* dependency-extras

* move-troubleshooting-to-details-tabs

* manage-versions-tabs

* left-align

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* add-venv-deactivate-why

---------

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-06-20 21:34:46 +00:00
Mendon Kissling
48d623057e
docs: refresh quickstart (#8582)
* content

* Apply suggestions from code review

Add suggestions from first half

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* icon-and-image

* more-cleanup

* replace-urls

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Update quickstart guide to clarify script execution for curl snippet

* clarify-tweaks

* indentation

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* fix-broken-links

* code-review

---------

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
2025-06-20 21:29:55 +00:00
Eric Hare
d4d9a70cd4
fix: Show 1000 rows of DataFrame and properly display number truncated (#8565)
* fix: Allow up to 10000 dataframe rows to be visible

* [autofix.ci] apply automated fixes

* Update constants.py

* Remove truncation from the data serializer

* Revert "[autofix.ci] apply automated fixes"

This reverts commit f66698097eb42000489cf736bfff2d1d0462d2fa.

* Update schemas.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-06-20 20:51:51 +00:00
Jordan Frazier
14f3a2c111
ref: improve starter projects setup performance (#8549)
* Update starter project logic to only delete and recreate if necessary

* move updates to correct location

* [autofix.ci] apply automated fixes

* remove unused var

* Add to env var md

* Use setting service for env vars

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-20 20:07:50 +00:00
Gabriel Luiz Freitas Almeida
092c12f7b6
refactor: remove state manager from Graph class (#8258)
* refactor: remove state management from Graph class

* Remove unused state mgmt methods

* [autofix.ci] apply automated fixes

* refactor: remove GraphStateManager class and its methods

This commit deletes the GraphStateManager class, which was responsible for managing the state within the graph. The removal is part of a cleanup effort to streamline the codebase and eliminate unused components.

* refactor: remove ListenComponent and NotifyComponent classes

This commit deletes the ListenComponent and NotifyComponent classes, which were previously responsible for handling notifications within the system. The removal is part of a codebase cleanup to eliminate unused components and streamline the architecture.

---------

Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com>
2025-06-20 20:03:43 +00:00
Edwin Jose
9954f7fa0c
feat: update input_value field to use MultilineInput (#8583)
* Update structured_output.py

* [autofix.ci] apply automated fixes

* Update Image Sentiment Analysis.json

* [autofix.ci] apply automated fixes

* Update Image Sentiment Analysis.json

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-20 19:53:40 +00:00
Eric Hare
19ce474b3a
fix: Restore Prompt Component functionality by disallowing use of {code} template variable (#8622)
fix: Disallow the use of {code} as a template variable
2025-06-20 19:50:27 +00:00
Eric Hare
f04e336f1d
fix: Remove duplicate options in Save File Component (#8559)
* fix: Take only unique values for the file format

* Update save_file.py

* Update News Aggregator.json

* [autofix.ci] apply automated fixes

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

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

* Update News Aggregator.json

* Update src/backend/base/langflow/components/processing/save_file.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update News Aggregator.json

* Small tweaks to the save file

* [autofix.ci] apply automated fixes

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

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

* Update News Aggregator.json

* [autofix.ci] apply automated fixes

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

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

* Update save_file.py

* Update News Aggregator.json

* [autofix.ci] apply automated fixes

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

* [autofix.ci] apply automated fixes

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

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

* Reorder list

* Update save_file.py

* [autofix.ci] apply automated fixes

* Change default for message

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-06-20 19:39:09 +00:00
Yuqi Tang
9c252453dc
fix: change lambda filter to smart function (#8558)
* change lambda filter nme

* reverse change for lambda filter

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-06-20 18:52:11 +00:00
Yuqi Tang
664cd9d7ed
fix: change local db component input as required and tool method name (#8560)
* change input as required and tool method name

* [autofix.ci] apply automated fixes

* Delete uv.lock

* add uvlock back

---------

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: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-06-20 18:51:47 +00:00
Edwin Jose
4832093e99
refactor(setup): generalize tool/agent node logic and update starter templates (#8618)
* update several templates

* updated templates

* change custom component maker

* Update Twitter Thread Generator.json

* updates from main

* llm reset issue

* Update setup.py

* Update Custom Component Maker.json

* [autofix.ci] apply automated fixes

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

* udpate templates

* [autofix.ci] apply automated fixes

* Update setup.py

* Update Custom Component Maker.json

* [autofix.ci] apply automated fixes

* Update Custom Component Maker.json

* text fixes

---------

Co-authored-by: Yuqi Tang <yuqi.tang@datastax.com>
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: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-06-20 18:51:35 +00:00
Mendon Kissling
d4fca1fe40
docs: merge starter projects and sample flows into templates (#8652)
* move-pages-and-add-redirects

* move-vector-rag-in-list
2025-06-20 18:34:30 +00:00
Mendon Kissling
b135da749b
docs: hide breadcrumbs from landing page (#8653)
hide-toc-is-true
2025-06-20 18:28:59 +00:00
Gabriel Luiz Freitas Almeida
322e70ad49
test: add test id to frozen icon and streamline freeze functionality test (#8619)
* fix: add data-testid attribute to frozen icon in NodeOutputField component for improved testing

* refactor: simplify freeze.spec.ts by removing redundant component interactions and enhancing test clarity

- Removed unnecessary component interactions and waits to streamline the test flow.
- Updated assertions to ensure expected output values are validated correctly.
- Improved timeout settings for better reliability in test execution.

* refactor: enhance freeze.spec.ts by replacing timeout with waitForSelector for improved test reliability

- Updated the test to use waitForSelector instead of a fixed timeout, enhancing the robustness of the test execution.
- This change aims to ensure that the test waits for the specific element to be present before proceeding, reducing flakiness.

* Revert "refactor: enhance freeze.spec.ts by replacing timeout with waitForSelector for improved test reliability"

This reverts commit 42eccbfa0d7e7defba02ee3589535689556390bb.

* test: increase timeout for frozen icon selector to improve test reliability

* test: increase timeout for frozen icon selector to enhance reliability

* test: simplify frozen icon visibility check in freeze.spec.ts

* test: comment out frozen icon visibility check in freeze.spec.ts

* test: add assertion for initial output and enhance frozen icon visibility check in freeze.spec.ts

* test: replace fixed timeout with waitForSelector for improved frozen icon visibility check in freeze.spec.ts

* test: implement polling approach for frozen icon visibility check in freeze.spec.ts to enhance error handling and reliability

* [autofix.ci] apply automated fixes

* fix: add data-testid attribute to frozen icon in NodeOutputField component for improved testing

* refactor: simplify freeze.spec.ts by removing redundant component interactions and enhancing test clarity

- Removed unnecessary component interactions and waits to streamline the test flow.
- Updated assertions to ensure expected output values are validated correctly.
- Improved timeout settings for better reliability in test execution.

* refactor: enhance freeze.spec.ts by replacing timeout with waitForSelector for improved test reliability

- Updated the test to use waitForSelector instead of a fixed timeout, enhancing the robustness of the test execution.
- This change aims to ensure that the test waits for the specific element to be present before proceeding, reducing flakiness.

* Revert "refactor: enhance freeze.spec.ts by replacing timeout with waitForSelector for improved test reliability"

This reverts commit 42eccbfa0d7e7defba02ee3589535689556390bb.

* test: increase timeout for frozen icon selector to improve test reliability

* test: increase timeout for frozen icon selector to enhance reliability

* test: simplify frozen icon visibility check in freeze.spec.ts

* test: comment out frozen icon visibility check in freeze.spec.ts

* test: add assertion for initial output and enhance frozen icon visibility check in freeze.spec.ts

* test: replace fixed timeout with waitForSelector for improved frozen icon visibility check in freeze.spec.ts

* test: implement polling approach for frozen icon visibility check in freeze.spec.ts to enhance error handling and reliability

* [autofix.ci] apply automated fixes

*  (freeze.spec.ts): add a 1-second delay before making the final assertion to ensure the element is fully rendered before checking its visibility

*  (nodeToolbarComponent/index.tsx): add data-testid attribute to freeze button for better testing
🐛 (freeze.spec.ts): update test to use new data-testid for freeze button to ensure proper element selection

*  (nodeToolbarComponent/index.tsx): add functionality to take a snapshot when freezing all vertices in the flow.

*  (component_freeze.spec.ts): add test case for freezing a component to ensure user can freeze components in the application and verify the frozen state with polling approach for better error handling.

*  (component_freeze.spec.ts): refactor frozen icon visibility check to use waitForSelector for improved reliability and error handling, replacing the previous polling approach.

*  (component_freeze.spec.ts): update timeout values to improve test reliability and stability

*  (freeze.spec.ts): add test case for freezing a component in the application to ensure the functionality works as expected

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: Yuqi Tang <yuqi.tang@datastax.com>
2025-06-20 18:24:05 +00:00
April I. Murphy
4fcc447109
docs: Change paragraph text alignment from justified to start (#8651)
change paragraph text alignment
2025-06-20 16:54:48 +00:00
Victor-w-Madeira
7fcbbe4f37
docs: add tip about icon usage with Lucide in custom components doc (#8644)
* docs: add tip about icon usage with Lucide in custom components doc

* Update docs/docs/Components/components-custom-components.md

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-06-20 16:43:12 +00:00
April I. Murphy
0e42f0dd09
docs: Promote MCP content in the left nav and revise the MCP connection component docs (#8567)
* related links and nav change

* create mcp client page and condense mcp tool info

* rewrite mcp client content

* add mcp to the welcome page

* tweak text regarding modes

* small style edits

* minor edit
2025-06-20 16:33:41 +00:00
Lucas Oliveira
fcbb6d2825
fix: add max note node width (#8648)
Added max note width
2025-06-20 15:46:21 +00:00
Lucas Oliveira
0ea3a50b95
fix: adds add button visibility condition on ListSelectionComponent (#8646)
Fixed add button appearing on composio component
2025-06-20 15:14:08 +00:00
Steve Roudebush
5d0abf424c
fix: ensure PdfReader is closed (#8636) 2025-06-20 15:00:18 +00:00
Jordan Frazier
e2b3c607f2
ci: change nightly to run in UTC time to fix nightly-status check (#8629)
Change nightly to run in UTC time
2025-06-20 14:23:40 +00:00
cristhianzl
e1c57d930c Revert "📝 (handleRenderComponent/index.tsx): Add useShallow import for zustand/react/shallow to optimize re-renders"
This reverts commit 9898d1cacd.
2025-06-20 10:45:07 -03:00
cristhianzl
9898d1cacd 📝 (handleRenderComponent/index.tsx): Add useShallow import for zustand/react/shallow to optimize re-renders
📝 (handleRenderComponent/index.tsx): Introduce isLocked state to handle locked flow functionality
📝 (handleRenderComponent/index.tsx): Update tooltip visibility based on isLocked state
📝 (handleRenderComponent/index.tsx): Update handle style based on isLocked state
📝 (PageComponent/index.tsx): Add useShallow import for zustand/react/shallow to optimize re-renders
📝 (PageComponent/index.tsx): Introduce isLocked state to handle locked flow functionality
📝 (PageComponent/index.tsx): Prevent edge click actions when flow is locked
📝 (PageComponent/index.tsx): Disable edge actions when flow is locked
📝 (PageComponent/index.tsx): Update edge actions based on isLocked state
📝 (lock-flow.spec.ts): Add test to simulate deleting edges when flow is locked
2025-06-20 10:43:56 -03:00
Victor-w-Madeira
cf985bd834
docs: fix typos in Structured Output section (#8624) 2025-06-19 17:50:03 +00:00
Lucas Oliveira
24e7acf972
fix: remove placeholder duplicate on inputs (#8521)
Made placeholder transparent
2025-06-18 21:33:21 +00:00
Mike Fortman
50d58609a4
refactor: Remove Flow description from project view (#8620)
remove description
2025-06-18 17:03:57 +00:00
Gabriel Luiz Freitas Almeida
bd0af911d9
refactor: replace hardcoded serialization constants with getter functions (#8616)
* refactor: move serialization length limits to settings and use cached getters

* refactor: replace hardcoded serialization limits with dynamic settings-based values

* refactor: replace hardcoded serialization constants with getter functions

* 📝 Add docstrings to `move-max-consts-to-settings` (#8617)

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix:  improve docstring formatting

* fix: ensure flow_id is UUID type when creating vertex build record

* docs: enhance docstrings for max_text_length and max_items_length in Settings class

Updated the docstrings for max_text_length and max_items_length to clarify their purpose and behavior regarding UI display and truncation.

* docs: add LANGFLOW_MAX_ITEMS_LENGTH and LANGFLOW_MAX_TEXT_LENGTH environment variables

Introduced new environment variables to configure the maximum number of items and text length displayed in the UI. Updated documentation to reflect these changes and their impact on UI truncation behavior.

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-18 16:34:25 +00:00
Deon Sanchez
ea02f639ff
fix: code snippet allows horizontal scroll (#8564)
* fix: add overflow-hidden class to BaseModal.Content in CodeAreaModal for improved layout

* fix: update BaseModal.Content in CodeAreaModal to use overflowHidden prop for better layout control
2025-06-18 15:26:50 +00:00