Commit graph

6,139 commits

Author SHA1 Message Date
Mike Fortman
710b6f99b5
refactor: Reduce Sidebar Rerenders (#7699)
* menubar and hook optimizations

* sidebar optimizations

* [autofix.ci] apply automated fixes

* cleanup

* [autofix.ci] apply automated fixes

* sidebare button optimization

* 🐛 (typescript_test.yml): increase the maximum shard count to 40 to improve test distribution and performance

* Get state on focus instead of on keypress

* revert test shard change

* [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-05-06 16:11:47 +00:00
Gabriel Luiz Freitas Almeida
304e28b48a
feat: event polling can process more than one event at a time (#7858)
* refactor: enhance event polling to retrieve all available events and return in NDJSON format

Updated the event polling logic to collect all available events from the queue instead of just one. The response format has been changed to NDJSON, allowing multiple events to be returned in a single response. Improved error handling for timeouts by returning an empty response instead of raising an error.

* refactor: improve NDJSON event processing in build polling

Enhanced the event polling logic to handle NDJSON responses by processing multiple events in a single fetch. Updated the response handling to read the response as text, split it into individual JSON objects, and process each event accordingly. This change improves the efficiency of event handling and maintains a consistent polling interval.

* fix: change event list type from list[str] to list in get_flow_events_response

* refactor: enhance event stream consumption with timeout and error handling

Updated the consume_and_assert_stream function to include a timeout for processing events and improved error handling for JSON parsing failures. Added logging for better debugging and tracking of processed events. Adjusted the event validation logic to ensure both the first and last expected events are present.

* refactor: enhance event polling logic with improved limits and JSON validation

Updated the event polling mechanism to include configurable limits for total events and empty polls, along with a timeout for requests. Enhanced JSON validation for individual events and added logging for better debugging of polling behavior. This refactor aims to improve robustness and maintainability of the event consumption process.

* refactor: update polling interval and streamline event handling

Modified the polling interval constant to improve responsiveness and adjusted event handling logic in the get_flow_events_response function to simplify the processing of event values. This change enhances the efficiency of event consumption and maintains a consistent approach to handling NDJSON responses.

* refactor: simplify event retrieval in get_flow_events_response

Removed unused event_id and put_time variables from the event retrieval logic in the get_flow_events_response function. This change streamlines the code and enhances readability while maintaining the functionality of event handling.

* refactor: update consume_and_assert_stream to use asyncio.wait_for for timeout handling

Modified the consume_and_assert_stream function to utilize asyncio.wait_for for managing timeouts in event processing. This change improves compatibility with Python 3.10 and enhances the robustness of the event consumption logic while maintaining existing functionality.
2025-05-05 22:20:04 +00:00
Lucas Oliveira
75deddd102
fix: re-add name and description editing on tool mode except for Composio, fix MCP server code (#7901)
* Changed backend to contain readonly props for tools

* Show name editing for not readonly tools

* Fixed edit-tools test

* Updated command to use "uvx" instead of "npx" for stability

* Fixed mcp code for authentication on auto_login=false

* removed args from component desc

* [autofix.ci] apply automated fixes

* making tool mode inputs the priority.

* fix: Clean up comments and whitespace in component_tool.py

* Fix column name

* update the dispaly name in composio

* fix format

*  (get-started-progress.tsx): add data-testid attribute to improve testability and accessibility
🔧 (user-progress-track.spec.ts): update test assertions to use the new data-testid attribute for get started progress title

---------

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>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-05-05 21:20:19 +00:00
Cristhian Zanforlin Lousa
051a6c2ae5
feat: Enhance main interface by ensuring persistent navbar visibility (#7889)
* ♻️ (appHeaderComponent/index.tsx): remove unused variables and condition for isEmpty to simplify the code and improve readability

* 📝 (empty-page.tsx): Update page title and descriptions to reflect the new branding and messaging for Langflow
🗑️ (github-bg.png): Delete unused background image file from the frontend assets folder

* 📝 (empty-page.tsx): update text size class from text-xs to text-sm for better readability

* 📝 (empty-page.tsx): Update EMPTY_PAGE_DESCRIPTION to remove extra period for consistency
📝 (empty-page.tsx): Increase font size for text elements for better readability and user experience
2025-05-05 15:54:57 +00:00
Lucas Oliveira
ef8ff1ed9b
fix: disable images on playground (#7881)
* Changed id of sent file on playground page

* Deactivate enable_image_on_playground feature flags
2025-05-02 22:00:20 +00:00
Lucas Oliveira
940b1100ca
fix: get backend url dynamically for mcp (#7878)
added check to use backend URL if baseURL is set (desktop)
2025-05-02 20:27:36 +00:00
Cristhian Zanforlin Lousa
1ebf1598c8
fix: Update folder progress component sizing and correct analytics event name (#7879)
* 🐛 (empty-page.tsx): fix incorrect user tracking event name from "discord_joined" to "discord_clicked" to accurately track user actions

* ♻️ (get-started-progress.tsx): refactor height value from pixels to rem units for better consistency and maintainability
2025-05-02 19:37:48 +00:00
Lucas Oliveira
296d285555
fix: playground page allowing image upload even if feature flag is disabled (#7877)
* Fix use drag and drop to check for playground page

* fix chat input to change file only if enable_image_on_playground is enabled and its on playground page

* change input wrapper to show upload file if constant is enabled

* changed onDrop to not allow sending files if enable_image_on_playground is disabled
2025-05-02 19:05:32 +00:00
dependabot[bot]
2c8e134725
build(deps-dev): bump vite from 5.4.18 to 5.4.19 in /src/frontend (#7870)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.18 to 5.4.19.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.19/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.19/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 5.4.19
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-02 18:25:39 +00:00
Gabriel Luiz Freitas Almeida
a388126ea4
chore: Bump version numbers for langflow and langflow-base to 1.4.0 and 0.4.0 respectively (#7867) 2025-05-02 18:07:04 +00:00
Edwin Jose
a904db6220
fix: Agent execution time duration display in streaming mode (#7852)
* Update events.py

* timer compotation update

* clean up

* add time elapsed for streaming

* [autofix.ci] apply automated fixes

* Update events.py

* preliminary fix

* Update src/backend/base/langflow/schema/message.py

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

* Update src/backend/base/langflow/schema/message.py

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

---------

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-05-02 17:23:07 +00:00
Gabriel Luiz Freitas Almeida
28445d0a70
fix: update templates containing Agent and Tool components (#7860)
* refactor: Update Simple Agent configuration and enhance tool integration

- Changed source and target handles to improve data flow between components.
- Updated input types for better compatibility with new data structures.
- Enhanced tool metadata and descriptions for clarity.
- Adjusted layout dimensions and properties for improved UI consistency.
- Updated agent and tool identifiers to reflect recent changes in the system.

* refactor: Update Invoice Summarizer project configuration and component identifiers

- Changed component IDs and source/target handles for improved data flow.
- Updated tool and agent identifiers to align with recent system changes.
- Adjusted layout properties and descriptions for better clarity and consistency.
- Enhanced metadata for tools and components to facilitate better integration.

* refactor: Update Pokédex Agent configuration and component identifiers

- Changed component IDs and source/target handles to enhance data flow.
- Updated input types and tool identifiers for improved compatibility with recent system changes.
- Enhanced layout properties and descriptions for better clarity and consistency.
- Adjusted metadata for tools and components to facilitate better integration.

* refactor: Update Search Agent configuration for improved compatibility

- Removed input types for the OpenAI API Key to streamline configuration.
- Added new model options including "gpt-4.1", "gpt-4.1-mini", and "gpt-4.1-nano" for enhanced flexibility.
- Updated default model value to "gpt-4.1" for better alignment with current capabilities.

* refactor: Update Financial Agent configuration and component identifiers

- Changed component IDs and source/target handles to enhance data flow.
- Updated tool and agent identifiers for improved compatibility with recent system changes.
- Adjusted layout properties and descriptions for better clarity and consistency.
- Enhanced metadata for tools and components to facilitate better integration.

* refactor: Update Gmail Agent configuration for improved model options

- Removed input types for the OpenAI API Key to streamline the configuration.
- Added new model options including "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", and "o1" for enhanced flexibility.
- Updated default model value to "gpt-4.1" for better alignment with current capabilities.

* refactor: Update Invoice Summarizer project configuration for improved clarity

- Standardized formatting of source and target handles for consistency.
- Adjusted score representation for better readability.
- Removed unnecessary hidden properties to streamline configuration.
- Enhanced metadata for components to facilitate better integration.

* refactor: Standardize source and target handles in agent configurations

- Updated formatting of source and target handles in both Pokédex and Simple Agent configurations for improved consistency.
- Removed unnecessary hidden properties to streamline the configuration.
- Enhanced metadata for components to facilitate better integration and clarity.

* refactor: Streamline OpenAI API Key configuration and enhance model options

- Removed input types for the OpenAI API Key to simplify the configuration.
- Added new model options including "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", and "o1" for increased flexibility.
- Updated default model value to "gpt-4.1" for better alignment with current capabilities.

* refactor: Simplify OpenAI API Key configuration and expand model options

- Removed input types for the OpenAI API Key to streamline the configuration.
- Added new model options "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", and "o1" for enhanced flexibility.
- Updated default model value to "gpt-4.1" for better alignment with current capabilities.

* refactor: Update YouTube Analysis project configuration for improved model options

- Removed input types for the OpenAI API Key to simplify the configuration.
- Added new model options "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", and "o1" for enhanced flexibility.
- Updated default model value to "gpt-4.1-mini" for better alignment with current capabilities.

* fix: update tools in Travel Planning Agents

* update mutateTemplate to be debounced by nodeId

* update fetch data on mount to fetch node data if its tool mode

* Update mutateTemplate instances to contain nodeId

* update starter projects to use gpt-4.1-mini model

* fix: update test expectation for Portfolio Website Code Generator

---------

Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
2025-05-02 16:51:42 +00:00
Deon Sanchez
6ec73c5d92
fix: Icons on dropdown are inconsistent when search/selecting (#7875)
* fix: improve metadata mapping for dropdown options

* fix: refactor dropdown component to streamline selected icon rendering
2025-05-02 14:45:04 +00:00
Lucas Oliveira
37fbbe0ebf
fix: make component test pass if component tab is not present (#7865) 2025-04-30 15:39:58 -03:00
Cristhian Zanforlin Lousa
cf5dba11df
fix: Enhance Gmail API Component with Field Extraction, Add Flow Locking, and Improve Test Stability (#7864)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-04-30 15:21:28 -03:00
Cristhian Zanforlin Lousa
04fb3bb7c9
fix: Update EmptyPageCommunity button dimensions and simplify icon positioning (#7854) 2025-04-29 19:54:08 -03:00
Lucas Oliveira
9c0dcac270
fix: update texts on mcp component and tab, fix icons not updating (#7850)
* Update texts about mcp

* Change generic icon when name changes

* Remove unused imports

* Updated tests
2025-04-29 20:39:07 +00:00
Lucas Oliveira
fce1a5887d
fix: make code button flash, fix mcp icon color (#7848)
* Added new animation

* Use animation on code button and make it appear just once

* fix tests

* Fix Mcp Icon

* Fix fill on white mode

* fixed tests

* Fixed mcp color on dark mode
2025-04-29 19:37:09 +00:00
Deon Sanchez
bdfc69d09b
fix: make icons display correctly in composio dialog (#7708)
* feat: update icon handling and version bump to 1.3.4

* feat: enhance icon rendering and add data-testid attributes for better testing

* revert backend and added change to frontend

* fixed jumping icons

* Fix MAC OS detection by checking if navigator is defined before accessing userAgent

* Remove uv.lock file and update package-lock.json

* Update Playwright and Playwright test dependencies to v1.52.0

* Refactor icon formatting logic into a separate variable for better readability

* Add uv.lock file with Python package dependencies

* Update UV dependencies lock file

* Skip group and ungroup test in workspace release tag

* Simplify data-testid logic in genericIconComponent using optional chaining

* Enable group and ungroup values test by removing test.skip

* Fix icon validation and update icon component data-testid logic

* Simplify icon validation by removing Font Awesome check and refactoring boolean logic

* Simplify MAC OS detection by removing unnecessary type check

* Fix icon case sensitivity in ListItem component by capitalizing first letter

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-04-29 17:28:03 +00:00
Edwin Jose
c80cb3f35e
feat: Add MCP Server Settings to projects, rename Folder to Project (#7741)
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
Co-authored-by: deon-sanchez <deon.sanchez@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
Co-authored-by: phact <estevezsebastian@gmail.com>
2025-04-29 14:14:55 -03:00
Lucas Oliveira
1360e56f28
fix: change note toolbar wrong import that causes wrong padding (#7847)
Fixed import to wrong component
2025-04-29 16:52:34 +00:00
Cristhian Zanforlin Lousa
90b89c006f
fix: Enhance Folder Sidebar Readability - increase Font Sizes and Adjust Layout Dimensions (#7832)
🔧 (get-started-progress.tsx): Increase height of GetStartedProgress component for better visibility
🔧 (get-started-progress.tsx): Adjust text size for better readability and consistency
🔧 (get-started-progress.tsx): Update text size for certain elements to improve UI consistency
🔧 (index.tsx): Adjust text size for better readability and consistency in SideBarFoldersButtonsComponent
2025-04-29 16:48:55 +00:00
Lucas Oliveira
ad3bc07733
fix: remove quick flash with already rendered icons (#7828)
* Fix rapid update with already rendered components

* Added check to not re-render previously rendered icons

* Removed all loaded icons in favor of lazy loaded icons

* Fixed Share icon

* Updated Lucide

* Deleted Eager Icon Imports

* Added AWS Inverted to Lazy Icon Imports

* Added check if name contains a number to kebab case name

* fixed freeze path shortcut

* Added remaining icons to lazy icons mapping

* Removed unused icon mapping, added eager loading react icons, added replacing "icon" with "" on get lucide name

* removed unused import

* Update hook to not be used inside function call

* Updated package-lock
2025-04-29 16:18:22 +00:00
Abhishek Patil
2ea2bb01ed
feat: Add Composio Google Calendar component (#7662)
* feat: add google calendar component

* feat: add Composio Google Calendar Component

* fix: update field names to use '_' as separator & remove init

* fix: update field names to use '_' as separator & remove init

* feat: add google calendar test file & minor improvements

* fix: format

* fix: format

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-04-29 03:52:05 +00:00
Lucas Oliveira
b1217f96fe
feat: new tool mode dialog and UI (#7647)
* Add tools input to the backend

* Add tools type

* Add tools component to parameter render

* Added tools to langflow supported types

* Add tools modal

* Instantiate tools component in parameter render

* Removed div when there is not any visible actions

* Added margin

* Add ComboBoxItem and ListItem components for enhanced selection UI

* Update ComboBoxItem to display item description and enhance ToolsModal layout

* Refactor ToolsModal header styling for improved layout and icon padding

* Enhance ComboBoxItem layout and styling; update ToolsModal size and class for better responsiveness

* Changed display name

* Adds truncate for badges

* Adds custom styling for table used for Tools modal

* Added Tools modal with AgGrid

* Changed button

* made name and description editable

* Parse values for saving

* Add focused row without triggering checkbox click

* [autofix.ci] apply automated fixes

* Added types for tools modal

* added toolsTable with sidebar on toolsModal

* Added changes to work with MCP

* update component.py to add display name and display description in tool mode

* removed editing directly

* Fixed editing

* removed to upper case

* Make editing apply filters

* Adds design changes for MCP

* Adds new design and null check

* 📝 (frontend): add data-testid attribute to elements for testing purposes
🔧 (frontend): update data-testid attribute values for consistency and clarity in testing
 (frontend): update tests to use correct selectors and improve test coverage for editing tools functionality

*  (edit-tools.spec.ts): update test to use a more reliable method for checking visibility of an element

*  (edit-tools.spec.ts): add "@components" tag to the test to categorize it under components for better organization and filtering in test suites.

* Updated design with new design

* update padding

* send args to tools data

* Implemented showing arguments passed to LLM in tool mode

* add componentg name to description

* update package lock

* fixed tests

* fixed backend test

* fixed backend test

* fixed formatting

* Fixed frontend tests

* updated font sizes for badges on actions and styling on sortable list

* Update tool mode design

* added tooltips for info

* tool name update

* Update component_tool.py

* styling utils

* default values change

* fixed tools test

* fix format issues

---------

Co-authored-by: deon-sanchez <deon.sanchez@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2025-04-28 23:24:48 +00:00
Edwin Jose
8433d72ba3
feat: deprecate combine text and update templates (#7690)
* update template to use prompt

* [autofix.ci] apply automated fixes

*  (generalBugs-shard-5.spec.ts): introduce new function addLegacyComponents to handle legacy components in tests

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-04-28 14:21:47 +00:00
Cristhian Zanforlin Lousa
73c2582381
fix: Improve spacing, alignment and consistency across components with icon enhancement (#7792)
*  (AccountMenu/index.tsx): Adjust height of AccountMenu items for better UI consistency
 (ThemeButtons/index.tsx): Remove unnecessary padding from ThemeButtons component
 (appHeaderComponent/index.tsx): Update position of notification badge for improved alignment
 (empty-page.tsx): Refactor create first flow button text and add icon for better user experience

* [autofix.ci] apply automated fixes

*  (get-started-progress.tsx): Adjust height of elements for better visual alignment and spacing
 (get-started-progress.tsx): Add margin top to the inner container for improved layout
 (get-started-progress.tsx): Adjust padding values for better visual appearance
 (input-edit-folder-name.tsx): Add text size class to input element for better readability
 (index.tsx): Adjust text size class for better consistency and readability
 (index.tsx): Adjust icon size for better visual consistency and alignment
 (index.tsx): Adjust text size class for better consistency and readability

* 📝 (sideBarFolderButtons): remove unnecessary class from span element to improve code readability and maintainability

* 🔧 (select-options.tsx): Add 'text-xs' class to select options for consistent styling across components.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-25 20:44:17 +00:00
Cristhian Zanforlin Lousa
5607ac9d8a
test: Enhance MCP server test reliability with retry logic and improved interactions (nightly fix) (#7807) 2025-04-25 08:44:54 -03:00
Cristhian Zanforlin Lousa
eed7dee8bf
fix: display errors when webhook background tasks fail (#7572)
* 📝 (base.py): improve naming convention for task names in Graph class
🔧 (base.py): add error logging functionality in _execute_tasks method
🔧 (utils.py): update data parameter type in log_vertex_build function
🔧 (index.tsx): remove unused setCurrentFlow function call in StoreCardComponent
🔧 (use-get-builds-polling-mutation.ts): add error handling and display logic for build failures
🔧 (flowSidebarComponent/index.tsx): make showLegacy prop optional in FlowSidebarComponentProps interface
🔧 (index.tsx): remove commented out code related to branding in FlowPage component

* [autofix.ci] apply automated fixes

* fix: update URL construction in CopyFieldAreaComponent to handle undefined endpointName

- Modified the URL construction logic to use currentFlow.id when endpointName is not provided, ensuring a valid URL is always generated.

* 🔧 (base.py): add error logging method for vertex build failures

- Introduced `_log_vertex_build_from_exception` method to handle and log exceptions during vertex building, improving error reporting and output structure.
- Updated `_execute_tasks` method to utilize the new logging method for better exception handling.

* 🐛 (use-get-builds-polling-mutation.ts): fix error display count to only show errors once per build failure instead of multiple times

* 📝 (embedding_model.py): improve formatting of the info message for the 'dimensions' input to enhance readability and clarity

* [autofix.ci] apply automated fixes

* fix: add webhook component handling in task execution

---------

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-24 22:18:49 +00:00
Cristhian Zanforlin Lousa
c2fdc823c1
fix: Reduce spacing in EmptyPageCommunity component from gap-12 to gap-7 (#7783) 2025-04-24 16:07:44 -03:00
Cristhian Zanforlin Lousa
9dabe63677
fix: Standardize font sizes using Tailwind classes across frontend components (#7770)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-24 16:03:51 -03:00
Lucas Oliveira
3b660c26a3
fix: make dropdown not repeat values on update, update mcp component (#7779)
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-04-24 13:01:43 -03:00
Cristhian Zanforlin Lousa
60de34074b
fix: Enhance Growth UI Layout and Consistency (#7768) 2025-04-23 19:17:22 -03:00
Cristhian Zanforlin Lousa
f213f487a6
feat: Allow dropdown to add new values when they don't exist in options list (#7641)
* 🔧 (dropdownComponent/index.tsx): refactor filteredOptions state initialization to include custom values not in validOptions
♻️ (dropdownComponent/index.tsx): refactor value memoization logic to handle custom values and improve performance
🔧 (dropdownComponent/index.tsx): refactor filteredOptions state update logic to handle custom values and improve user experience

* 📝 (RenderInputParameters/index.tsx): Remove unnecessary console.log statement
🔧 (dropdownComponent/index.tsx): Add constant RECEIVING_INPUT_VALUE and update styles for disabled state in Dropdown component

*  (dropdownComponent/index.tsx): add new constant SELECT_AN_OPTION to improve user experience by providing a default option when no value is selected.

*  (constants.ts): add constant SELECT_AN_OPTION to improve user experience by providing a clear message to select an option

---------

Co-authored-by: deon-sanchez <deon.sanchez@datastax.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-04-23 00:17:15 +00:00
Cristhian Zanforlin Lousa
a8ae17b86d
feat: add observable UX for community interaction tracking (#7512)
*  (model.py): add UserOptin class to manage user opt-in actions for better organization and extensibility
♻️ (model.py): refactor User model to include user_optin field as a dictionary to store opt-in actions for users

* [autofix.ci] apply automated fixes

* change name optins

* [autofix.ci] apply automated fixes

*  (add_optins_column_to_user.py): Add optins column to the user table to store user preferences
♻️ (model.py): Refactor UserOptin class to BaseModel for better type hinting and add optins field to User model with default values and proper typing

* [autofix.ci] apply automated fixes

* 🐛 (add_optins_column_to_user.py): fix an issue where the optins column was not being added if it already existed in the user table

*  (empty-page.tsx): Add new page EmptyPageCommunity to display community information and actions
 (main-page.tsx): Add new page CollectionPage to manage collections and folders
🔧 (routes.tsx): Update import path for CollectionPage to point to the new main-page file

*  (background-gradient.tsx): Add a new component BackgroundGradient to create a visually appealing background gradient effect for UI elements
📝 (empty-page.tsx): Refactor EmptyPageCommunity component to use the newly added BackgroundGradient component for GitHub and Discord sections to enhance visual appeal and consistency

* 📝 (tasks.mdc): Add concise task management protocol for sequential mode to improve task organization and execution
 (frontend): Introduce DotBackgroundDemo component for creating a visually appealing dot background effect
♻️ (frontend): Refactor BackgroundGradient component to improve gradient styling and border consistency
🔧 (frontend): Update motion import in background-gradient.tsx to use framer-motion instead of motion/react
🔧 (icons): Add missing newline at the end of Anthropic icon file
🔧 (empty-page.tsx): Adjust styling classes and z-index to improve layout and visual hierarchy in EmptyPageCommunity component

*  (empty-page.tsx): add githubBg image import to use as background image for GitHub link
♻️ (empty-page.tsx): refactor positioning and styling of GitHub link elements for better alignment and readability

* 🔧 refactor(server.ts): change port variable case from lowercase port to uppercase PORT to improve semantics
 refactor(server.ts): add support for process.env.PORT environment variable to be able to run app on a configurable port

* 📝 (AccountMenu/index.tsx): Update imports and remove unused code for better organization and performance
🔧 (use-get-version.ts): Add functionality to refresh the latest version in darkStore after fetching version data
♻️ (darkStore.ts): Add refreshLatestVersion function to update the latest version in darkStore
📝 (dark/index.ts): Add latestVersion field and refreshLatestVersion function to DarkStoreType for better state management

*  (AccountMenu/index.tsx): Add constants for Discord, Docs, GitHub, and Twitter URLs for better maintainability and reusability
📝 (constants.ts): Update Twitter URL to a new value for consistency with other URLs
📝 (TwitterX): Add new TwitterX icon and component for use in the application
📝 (styleUtils.ts): Import and use the new TwitterXIcon in the list of node icons
📝 (utils.ts): Update formatNumber function to handle undefined input values for better error handling

* [autofix.ci] apply automated fixes

* 📝 (add_optins_column_to_user.py): Update down_revision to '1b8b740a6fa3' for consistency
🔧 (AccountMenu/index.tsx): Adjust classNameSize prop value to 'w-[272px]' for styling consistency
🔧 (HeaderMenu/index.tsx): Update HeaderMenuItems component to accept classNameSize prop for dynamic styling
🔧 (langflow-counts.tsx): Adjust styling for better visual consistency and spacing
🔧 (index.tsx): Update className for Bell icon to include text-muted-foreground and strokeWidth
🔧 (get-started-progress.tsx): Update styling and spacing for better visual consistency
🔧 (header-buttons.tsx): Add Separator component for visual separation in HeaderButtons component

* 🔧 (AccountMenu/index.tsx): Adjust padding in AccountMenu component for better alignment and spacing. Fix ThemeButtons positioning for improved layout.

*  (appHeaderComponent/index.tsx): Add support for managing flows and folders in the app header component
📝 (get-started-progress.tsx): Update heading tag to improve semantics
📝 (empty-page.tsx): Update text content in empty page to provide clearer instructions and information

*  (background-gradient.tsx): Add support for dynamic border radius in BackgroundGradient component
🔧 (empty-page.tsx): Remove BackgroundGradient import and replace it with EnhancedBeamEffect component
🔧 (empty-page.tsx): Update styles and classes for EnhancedBeamEffect component and adjust layout
 (enchanced-beam-effect.tsx): Create EnhancedBeamEffect component to add enhanced beam effect to UI components

*  (frontend): update text content and button labels in empty page component for better user experience
📝 (frontend): add data-testid attributes for testing purposes in various components
🔧 (frontend): add new test file for user progress tracking feature with Playwright tests

*  (AccountMenu/index.tsx): Add Admin Page button for admin users in the account menu component
🔧 (user-progress-track.spec.ts): Add utility function addNewUserAndLogin to facilitate adding and logging in new users for testing purposes

* [autofix.ci] apply automated fixes

* 🐛 (get-started-progress.tsx): fix calculation of percentage to ensure it does not exceed 100%

*  (empty-page.tsx): Add Lucide ExternalLink component for external links and update styling for external link icons
♻️ (empty-page.tsx): Refactor CSS classes for external link icons to improve readability and maintainability
📝 (index.css): Add custom CSS variable for Discord color
📝 (tailwind.config.mjs): Add Discord color to Tailwind CSS custom colors

* [autofix.ci] apply automated fixes

* add logo png

*  (index.tsx): Add z-50 class to improve stacking context in CardsWrapComponent
 (empty-page.tsx): Add text-center class to center text elements in EmptyPageCommunity
 (empty-page.tsx): Adjust spacing and alignment in EmptyPageCommunity for better layout and readability

* 🐛 (AccountMenu/index.tsx): fix condition to show admin options only when isAdmin is true and autoLogin is false

* 🔧 (alertDropDown/index.tsx): update z-index value in PopoverContent class to z-50 for proper stacking order

* 🔧 (index.tsx): update z-index value to improve the stacking order of the component on the page

* ♻️ (index.tsx): refactor classNames in CardsWrapComponent to improve readability and maintainability

* 🐛 (empty-page.tsx): fix data-testid attribute value to match the updated element name for better consistency and clarity
🐛 (user-progress-track.spec.ts): fix test cases to match the updated data-testid attribute value for the main page title element to ensure accurate testing and assertions

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-22 23:26:33 +00:00
Cristhian Zanforlin Lousa
e30b1985d1
fix: Enhance error handling with new constants in flow management components (devx) (#7562)
* 📝 (constants.ts): add UUID_PARSING_ERROR constant for better error handling in use-add-flow.ts
🐛 (use-add-flow.ts): handle UUID_PARSING_ERROR in onError callback to display a specific error message and redirect to flows page if UUID parsing error occurs

*  (use-add-flow.ts): introduce constant REDIRECT_DELAY to improve code readability and maintainability
2025-04-22 22:27:01 +00:00
Cristhian Zanforlin Lousa
f14811fc8d
fix: make composio icon color black in white mode (#7698)
🔧 (Composio): change fill color of Composio icon based on isdark prop value
🔧 (Composio): add useDarkStore hook to dynamically set isdark prop for Composio icon based on dark mode state
2025-04-22 22:26:58 +00:00
Edwin Jose
0ba8f6559c
feat: Adds MCP_SSE to be filled from frontend (#7594)
* add mcp sse to copy field

* add MCP_SSE from frontend

* [autofix.ci] apply automated fixes

* refactor: reorder imports in mcp_component.py for consistency

*  (mcp-server.spec.ts): refactor code to use consistent selector for sse_url textarea element in tests

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-04-17 18:02:37 +00:00
Mike Fortman
960d46250f
refactor: Cleanup up unused frontend files using Knip (#7506)
* extrasidebar cleanup

* shad component cleanup

* components and types batch

* controllers cleanup

* helpers and table components

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-17 15:19:22 +00:00
Gabriel Luiz Freitas Almeida
be5260fcbc
chore: Bump version numbers for langflow and langflow-base to 1.3.4 and 0.3.4 respectively (#7677) 2025-04-17 01:44:11 +00:00
Cristhian Zanforlin Lousa
71473cbc3a
chore: Add @components tag to auto-save-off test configuration (#7674)
 (auto-save-off.spec.ts): add new "@components" tag to the test for better categorization and organization
2025-04-16 19:05:29 +00:00
Cristhian Zanforlin Lousa
b6f54ee681
fix: detect unsaved changes in FlowPage Component to enable save button when auto-save is off (nightly fix) (#7668) 2025-04-16 12:15:15 -03:00
Mike Fortman
2c2a348a2f
refactor: reduce menu bar rerenders (#7589)
* reduce menu bar rerenders

* imports cleanup

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-15 16:20:43 +00:00
Mike Fortman
ebe20e131b
refactor: Implement Lazy loading for icons in cloud deployments (#7218)
* init add lazy loading for icons

* Add more icon fixes

* [autofix.ci] apply automated fixes

* cleanup

* [autofix.ci] apply automated fixes

* add change to user management modal

* Add eager loading for common icons

* add fallback for flow id

* [autofix.ci] apply automated fixes

* ♻️ (GenericNode/index.tsx): refactor selectedNodes to selectedNodesCount for better readability and performance optimization

* add one more icon

* add missing icon

* cleanup

* [autofix.ci] apply automated fixes

* fallback fixes

* [autofix.ci] apply automated fixes

* move lucide imports

* [autofix.ci] apply automated fixes

* conditional lazy loading for cloud only

* [autofix.ci] apply automated fixes

* fix imports

* [autofix.ci] apply automated fixes

* up the shards

* add a bit of a timeout

* group icon fix and reduce playground button rerenders

* and new icons to lazy load

* [autofix.ci] apply automated fixes

* warning cleanup

* iconExists fix

* cleanup

* [autofix.ci] apply automated fixes

* move icon

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-04-15 16:00:16 +00:00
Lucas Oliveira
7fb400d99e
fix: made reranker not disable when hybrid search is enabled (#7622)
* added toggle_disable option

* made toggle be disabled when toggle_disable is true

* added logic to disable toggle when choosing hybrid search

* Updated starter projects

* Fixed toggle_disable to be optional

* fixed toggle disable to remove toggle

*  (intComponent.spec.ts): update test assertions to match expected behavior after changes in the component's functionality

---------

Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-04-14 23:47:14 +00:00
Deon Sanchez
28675d873f
fix: update Gmail icon to Google and improve ListSelectionComponent styles (#7591)
* fix: update Gmail icon to Google and improve ListSelectionComponent styles

* fix: remove unnecessary info and improve required field handling in Composio components

* style: update ListSelectionComponent and SortableListItem for improved layout and styling

* fix: enhance ListSelectionComponent and SortableListComponent to support search functionality

* style: adjust height and padding in SortableListItem for better visual consistency

*  (intComponent.spec.ts): update test assertions to match expected behavior after changes in the component's functionality

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-04-14 23:08:43 +00:00
Gabriel Luiz Freitas Almeida
ae2ef5d8e4
chore: Update langflow and langflow-base package versions to 1.3.3 and 0.3.3 (#7625)
* chore: update package versions to 1.3.3 and 0.3.3

- Bump langflow version to 1.3.3 in pyproject.toml and uv.lock.
- Update langflow-base version to 0.3.3 in its pyproject.toml and uv.lock.

* chore: bump langflow version to 1.3.3 in package.json and package-lock.json
2025-04-14 22:38:00 +00:00
Lucas Oliveira
801276cbb7
fix: revert "feat: adds pan and pinch nav mode like figma" (#7603)
Revert "feat: adds pan and pinch nav mode like figma (#7410)"

This reverts commit a2c5090c7a.
2025-04-12 02:35:40 +00:00
dependabot[bot]
93fbd3bff7
build(deps-dev): bump vite from 5.4.16 to 5.4.18 in /src/frontend (#7596)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.16 to 5.4.18.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.18/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.18/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 5.4.18
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-11 19:23:42 +00:00
Eric Hare
907a594428
feat: Add Hybrid Search functionality to AstraDB + AstraPy / LangChain Updates (#7358)
* feat: Add Hybrid Search functionality and AstraPy 2.0 and associated deps (#7357)

* astrapy 2.0 tentative full pass

* Update the create collection function

---------

Co-authored-by: Stefano Lottini <stefano.lottini@datastax.com>

* Update deps

* Update uv.lock

* Fix linting errors in astradb

* Update package lock

* [autofix.ci] apply automated fixes

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

* Add basic UI scaffolding for hybrid search

* [autofix.ci] apply automated fixes

* Continue to clean up component

* [autofix.ci] apply automated fixes

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

* Fix the keyspace compatibility

* [autofix.ci] apply automated fixes

* feat: add nodeId, nodeClass, and handleNodeClass props to dropdown an… (#7406)

feat: add nodeId, nodeClass, and handleNodeClass props to dropdown and string render components

Co-authored-by: deon-sanchez <deon.sanchez@datastax.com>

* Update uv.lock

* Update uv.lock

* Add hybrid search support in collection creation

* [autofix.ci] apply automated fixes

* Updates from review comments

* [autofix.ci] apply automated fixes

* Add in lexical search support

* [autofix.ci] apply automated fixes

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

* Detect collection hybrid params

* [autofix.ci] apply automated fixes

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

* Pass lexical terms at search time

* [autofix.ci] apply automated fixes

* Update test_astra_component.py

* 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

* Feedback from review

* [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

* Switch to multiline for lexical terms

* [autofix.ci] apply automated fixes

* Create Hybrid Search RAG.json

* Update Hybrid Search RAG.json

* Added queryInput in vectorstore model

* Added queryInput in lexical terms

* Update model.py

* Update Hybrid Search RAG.json

* Add query support in field validation

* fix: bump Astra Assistants version to support AstraPy 2.0 (#7535)

2.2.12

Co-authored-by: phact <estevezsebastian@gmail.com>

* Update uv.lock

* Fixed QueryInput not receiving text from handle

* Set search type to similarity search when hybrid

* Always set to similarity when we have the reranker

* [autofix.ci] apply automated fixes

* Add logging for hybrid search support

* Update starter projects

* Update Hybrid Search RAG.json

* Added dropdown toggle on backend

* Added toggle on dropdown on frontend

* Added showing only value if there is just one option in the dropdown

* Added toggle to Dropdown Input on Astra Db

* [autofix.ci] apply automated fixes

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

* init toggle value as true or false

* Change it to send null value if toggle is disabled

* Added resizer on search query

* Added Search Hybrid, Lexical and Vector icons

* Added icons and new Lexical Search on Dropdown Input of Astra DB

* Updated starter projects

* Changed descriptions on astradb component

* Changed starter projects

* Lexical search option for dropdown

* Update astradb.py

* Update starter projects

* One small lexical update

* Update astradb.py

* Update projects

* [autofix.ci] apply automated fixes

* Fixed dropdown changing when toggle is off

* Update astradb.py

* [autofix.ci] apply automated fixes

* Don't show lexical terms on new collection creation

*  (actionsMainPage-shard-0.spec.ts): add functionality to add flow to test on empty langflow button click
 (filterEdge-shard-1.spec.ts): add functionality to add flow to test on empty langflow button click
♻️ (await-bootstrap-test.ts): refactor code to reuse addFlowToTestOnEmptyLangflow function for adding flow to test on empty langflow button click

* [autofix.ci] apply automated fixes

* 🐛 (filterEdge-shard-1.spec.ts): fix incorrect reference to memoriesAstra DB Chat Memory, update to memoriesMem0 Chat Memory for accurate testing data.

---------

Co-authored-by: Stefano Lottini <stefano.lottini@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: deon-sanchez <deon.sanchez@datastax.com>
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: phact <estevezsebastian@gmail.com>
2025-04-11 18:03:34 +00:00