Commit graph

16,265 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
7ec3cb063d
chore(deps): update pyleak version and activate pyleak_marker in tests (#8905)
* chore: update pyleak dependency to version 0.1.14 in pyproject.toml and uv.lock

* fix(tests): enable pyleak marker in test files to address memory leak issues
2025-07-07 15:23:25 +00:00
Edwin Jose
b6e3df6b89
fix: updates Youtube Analysis template error message (#8906)
* Update Youtube Analysis.json

* fix: removed the if else

* Update Youtube Analysis.json

* Update Youtube Analysis.json

* Update src/backend/base/langflow/initial_setup/starter_projects/Youtube Analysis.json

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-07-07 15:18:50 +00:00
Jordan Frazier
64855b2f49
fix: langwatch component initialization and some QoL (#8885)
* Fix langwatch component initialization and some QoL

* [autofix.ci] apply automated fixes

* Fix ruff and add unit tests

* [autofix.ci] apply automated fixes

* feat(langwatch): add utility for caching evaluators and refactor component to use it

* test(langwatch): add initial test file for LangWatchComponent and mock evaluator method

* fix(langwatch): use getattr for safer access to current_evaluator attribute

* test(langwatch): update cache clearing method to use utility 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-07-07 13:42:33 +00:00
Jordan Frazier
56ff3e12f6
fix: add launcher script to wrap langflow startup (#8884)
* Add launcher script to wrap langflow startup

* [autofix.ci] apply automated fixes

* Ruff

* [autofix.ci] apply automated fixes

* ruff

* [autofix.ci] apply automated fixes

* rut pusff

* [autofix.ci] apply automated fixes

* use exec instead of subprocess

* [autofix.ci] apply automated fixes

* Remove forced run addition to cli

* Integrate Typer for improved error handling in langflow launcher

---------

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-07-07 13:28:54 +00:00
Cristhian Zanforlin Lousa
db48cd38cd
refactor: Improve async handling and file clearing logic (#8835)
* fix chat image sent

* 🐛 (chat-input.tsx): fix issue where files were not being cleared immediately after sending a message
📝 (chat-input.tsx): refactor code to improve readability and maintainability by extracting filesToSend logic into a separate variable

* Delete diff_output_ts.txt

* ♻️ (chat-input.tsx): refactor code to store and restore files when sending a message to prevent losing files if an error occurs during sending.

*  (fileUploadComponent.spec.ts): update timeout values for better test reliability and performance

*  (fileUploadComponent.spec.ts): update test assertion to check for the correct attribute value to ensure accurate testing

---------

Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-07-04 20:18:04 +00:00
Cristhian Zanforlin Lousa
98c4e6ecb0
fix: Exclude text selections from flow actions in PageComponent (#8827)
fix: check for text selection on copy

Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
2025-07-04 17:20:34 +00:00
Edwin Jose
a88829a9d6
feat(api): add special handling for _mcp_servers file uploads and improve tests (#8847)
* update

* [autofix.ci] apply automated fixes

* refactor: update file query logic and enhance error logging in file deletion

* refactor: enhance error handling and improve code clarity in MCP server list retrieval

* refactor: improve type hinting and code clarity in MCP servers file tests

* fix: handle potential None value for server configuration file in async server list retrieval

* Update test_files.py

* fix: autofix.ci / Update Starter Projects (pull_request)

* chore: Add API key environment variables to CI workflows

* Updated .github/workflows/ci.yml and .github/workflows/python_test.yml to include OPENAI_API_KEY, ANTHROPIC_API_KEY, and other relevant API keys as environment variables for CI jobs.

---------

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: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
2025-07-04 16:20:04 +00:00
Cristhian Zanforlin Lousa
557f7b31aa
feat: Add image upload support with file path handling (#8830)
*  (data.py): introduce a new function get_file_paths to resolve file paths before creating image URLs in HumanMessage contents

*  (general-bugs-agent-images-playground.spec.ts): add test case for user to send images in the playground with the agent component

* 📝 (general-bugs-agent-images-playground.spec.ts): update file path to image file to fix test failure due to incorrect file path

* [autofix.ci] apply automated fixes

* fix: autofix.ci / Update Starter Projects (pull_request)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
2025-07-04 13:54:22 +00:00
Cristhian Zanforlin Lousa
6d99faa7d0
feat: Add menu customization with copy functionality (#8803)
* 🔧 Update .gitignore to include *.mcp.json files
 Add useMenuCustomization hook to customize JSON editor menu items
📝 Add menuUtils for filtering and enhancing JSON editor menu items
📝 Add useMenuCustomization hook for customizing JSON editor menu items

* [autofix.ci] apply automated fixes

*  (copy-button-in-output.spec.ts): add test for user to copy JSON from output in the frontend application.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-04 13:38:06 +00:00
Gabriel Luiz Freitas Almeida
09de4d1532
chore: add required API key secrets for CI workflows (#8877) 2025-07-04 09:56:52 -03:00
Mendon Kissling
aec07c3c7e
docs: quick guide for public deployment (#8712)
* initial-concat

* deploy-public-server

* docs-review

* add-required-api-key

* Apply suggestions from code review

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

* docs-review

* Apply suggestions from code review

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

* docs-review

* anchor-text

* Apply suggestions from code review

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

---------

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
2025-07-03 21:09:59 +00:00
Mendon Kissling
dd55acb7f3
docs: link components to docs pages (#8850)
* docs-links

* Update url.py

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-07-03 21:08:13 +00:00
Cristhian Zanforlin Lousa
78d64eb7af
feat: Add Windows build and run automation scripts (#8861)
* 🔧 (build_and_run.bat): Add a Windows batch script to build frontend, copy build files to backend, and run Langflow
🔧 (build_and_run.ps1): Add a Windows PowerShell script to build frontend, copy build files to backend, and run Langflow

* 📝 scripts/windows/build_and_run.bat: improve script messages for better clarity and consistency
📝 scripts/windows/build_and_run.ps1: update script steps numbering and messages for consistency and clarity

* 📝 (build_and_run.bat): Add attention message to wait for uvicorn to run before opening the browser
📝 (build_and_run.ps1): Add attention message to wait for uvicorn to run before opening the browser
2025-07-03 19:42:17 +00:00
Deon Sanchez
c8b9aafe56
fix: correct icon casing for MariTalk (#8863)
fix: correct icon casing for MariTalk in styleUtils.ts

Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
2025-07-03 18:36:32 +00:00
Lucas Oliveira
1fdeefda1b
fix: enable tool mode only if a server is selected (#8865)
* Enable tool mode only if a server is selected

* Set tool mode as false when mcp server is cleared

* Added bool to build config tool show
2025-07-03 18:34:51 +00:00
Lucas Oliveira
180a94a7f3
fix: make MCP naming changes, change actions to tools (#8860)
* Changed actions to tools

* Changed connections to servers

* Added no tools found

* Changed actions to tools in mcp

* Added new label for mcp servers description

* Added better descriptions
2025-07-03 18:04:04 +00:00
Lucas Oliveira
f4101f9031
fix: not allow selecting texts that shouldn't be selectable (#8864)
Added CSS to apply select none to cursor pointer, default, not-allowed, label and buton
2025-07-03 18:01:57 +00:00
Lucas Oliveira
89dd39b5ff
fix: added error width limitation, truncation and tooltip on MCP dialog (#8858)
* Added error width limitation, truncation and tooltip

* Updated width to occupy more space from STDIO and SSE

* Update src/frontend/src/modals/addMcpServerModal/index.tsx

Co-authored-by: Mike Fortman <michael.fortman@datastax.com>

---------

Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2025-07-03 17:55:11 +00:00
Deon Sanchez
b1ae5e4159
refactor: reuse single session when getting variables from db (#8814)
* refactor: enhance database session management in custom components

- Updated `get_variables` method in `CustomComponent` to accept an optional session parameter, allowing for session reuse and reducing connection pool exhaustion.
- Modified `update_params_with_load_from_db_fields` to pass the session when calling `get_variables`.
- Adjusted `get_instance_results` to support session management for database operations.
- Increased connection pool size and max overflow in settings for improved performance under load.

* [autofix.ci] apply automated fixes

* Prefer single session by default:

* remove unused session

* Revert pool size changes

* refactor: update get_variables method for backward compatibility

- Added a new async `get_variables` method in `CustomComponent` to maintain backward compatibility with the deprecated method, ensuring it calls the existing `get_variable` method with session management.
- This change enhances the robustness of the component while preserving existing functionality.

* refactor: remove unused session import from endpoints.py

- Eliminated the unused `session_scope` import from the `endpoints.py` file to streamline the code and improve clarity. This change contributes to maintaining a clean and efficient codebase.

* refactor: update deprecated variables method in CustomComponent

- Modified the `variables` method to call the new `get_variables` method for improved clarity and consistency. This change maintains backward compatibility while encouraging the use of the updated async method.

* refactor: update method calls to use get_variables because we don't have session in update_build_config

- Replaced instances of the deprecated `get_variable` method with the new `get_variables` method in `LMStudioEmbeddingsComponent`, `LMStudioModelComponent`, and `ChatOllamaComponent`. This change enhances code clarity and maintains consistency across components while ensuring backward compatibility.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
2025-07-03 14:55:55 +00:00
Gabriel Luiz Freitas Almeida
6403a8f564
fix(graph): fixes bug that caused simple flows with Loop to fail (#8809)
* fix: improve predecessors check for loop component

- Enhanced the handling of cycle vertices to prevent infinite loops by ensuring that a vertex can only run if all pending predecessors have completed.
- Updated conditions for the first execution of cycle vertices to allow running only if all pending predecessors are also cycle vertices.
- This refactor improves the robustness of the vertex management system in asynchronous workflows.

* fix: update _mark_branch method to return visited vertices and refine predecessor mapping

* fix: prevent duplicate item dependencies in LoopComponent

* feat: add loop connection handling in Component class

- Introduced methods to process loop feedback connections, allowing components to connect outputs to loop-enabled inputs.
- Implemented checks to validate loop connections and ensure proper handling of callable methods from other components.
- Enhanced the edge creation logic to support special loop feedback edges targeting outputs instead of inputs.

* fix: enhance name overlap validation in FrontendNode

- Updated the validate_name_overlap method to exclude outputs that allow loops from the overlap check.
- Improved error message to include the display name of the component, along with detailed lists of input and output names for better debugging.

* fix: correct condition for executing cycle vertices in RunnableVerticesManager

- Updated the logic to ensure that a cycle vertex can only execute if it is a loop and all pending predecessors are cycle vertices. This change enhances the robustness of the vertex management system in asynchronous workflows.

* feat: implement comprehensive loop flow for URL processing

- Added a new loop flow that processes multiple URLs through a series of components including URLComponent, SplitTextComponent, LoopComponent, ParserComponent, PromptComponent, OpenAIModelComponent, StructuredOutputComponent, and ChatOutput.
- Enhanced the StructuredOutputComponent to include a detailed system prompt and refined output schema to ensure proper JSON formatting.
- Introduced a test case to validate the creation and execution of the loop flow, ensuring all components are correctly integrated and the expected execution order is maintained.

* refactor: enhance loop target handling in Component and Edge classes

- Introduced LoopTargetHandleDict to better manage loop target structures in the Component and Edge classes.
- Updated the Component class to utilize type casting for loop target handles, improving type safety.
- Refactored the Edge class to accommodate the new loop target handling, ensuring compatibility with existing edge structures.
- Removed deprecated message handling methods from the Component class to streamline the codebase and improve maintainability.

* test: skip OpenAI model integration test if API key is not set

- Added a conditional skip to the test_build_model_integration_reasoning method to prevent execution when the OPENAI_API_KEY environment variable is not set, ensuring tests run only in appropriate environments.

* [autofix.ci] apply automated fixes

* chore: add required secrets for OpenAI and Anthropic APIs in CI workflows

* Updated ci.yml to include OPENAI_API_KEY and ANTHROPIC_API_KEY secrets.
* Modified python_test.yml to mark these secrets as required for workflow execution.

* fix: update OPENAI_API_KEY check in test_loop.py to handle dummy values

* Modified the condition in the pytest skipif decorator to also skip tests when OPENAI_API_KEY is set to "dummy", ensuring more robust test execution.

* refactor: streamline component setup in test_loop.py

* Removed redundant comments and improved formatting for component initialization in the loop_flow function.
* Added missing system_prompt to StructuredOutputComponent to resolve "Multiple structured outputs" error.
* Updated test_loop_flow to ensure it tests the graph creation with proper loop feedback connection.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-03 14:39:09 +00:00
Rodrigo Nader
474e8d42d9
feat: add clipboard import support for table component (#8846)
* feat: add clipboard import support for table component

Add support for pasting TSV (Excel/Sheets) and Markdown table data directly into table components. The component now detects clipboard data format and automatically parses rows when pasting.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* [autofix.ci] apply automated fixes

*  (TableNodeComponent/index.tsx): Improve parsing functionality for TSV and markdown tables to handle different scenarios and edge cases
🔧 (table-node-component.test.tsx): Add tests for TableNodeComponent to ensure proper functionality and edge case handling

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-07-03 14:26:09 +00:00
Ítalo Johnny
2f3600a64e
fix: metadata serialization in AstraDB vector store (#8855)
* fix(astradb): serialize metadata in documents

* chore: update starter projects

* [autofix.ci] apply automated fixes

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

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
2025-07-03 14:20:50 +00:00
Gabriel Luiz Freitas Almeida
c7962855d5
fix: update test selectors in test that uses If-Else Component, add new tag (#8853) 2025-07-03 08:45:21 -03:00
Yuqi Tang
19c9514d54
feat: update if-else component (#8756)
* add ifelse component

* [autofix.ci] apply automated fixes

* fix test

* fix test

* fix test

* fix tests

* [autofix.ci] apply automated fixes

* fix tests

* fix test

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Lucas Democh <democh@datax.dev>
2025-07-02 22:56:57 +00:00
Edwin Jose
e28093234b
ref: sidebar experience improvement with new bundles (#8824)
* cohere sidebar

* side bar embeddings

* move memories

* sort style utils

* [autofix.ci] apply automated fixes

* serach components add

* Update __init__.py

* Update styleUtils.ts

* [autofix.ci] apply automated fixes

* Update model_input_constants.py

* fix lint

* update to wikipedia

*  (tableInputComponent.spec.ts): Refactor test to use for loops for better readability and efficiency
 (filterEdge-shard-1.spec.ts): Update model names for better clarity and consistency
🐛 (duckduckgo.spec.ts): Update selector for search button to match changes in the frontend
🐛 (generalBugs-shard-11.spec.ts): Update selector for search button to match changes in the frontend

* [autofix.ci] apply automated fixes

* update tests path

* update tests

* Update test_arxiv_component.py

* [autofix.ci] apply automated fixes

* make embeddings functions

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-07-02 20:11:59 +00:00
Lucas Oliveira
dc671ae204
fix: updated folder name to not be the deprecated (#8793)
* Updated folder name to not be the deprecated

* Changed backend to use Starter Project as default folder name

* Changed docs

* Changed frontend to display pure folder name without deprecated

* Updated tests

* Added migration to change folder name

* Refactor migration to rename folder names with unique constraint checks for users. Updated upgrade and downgrade functions to streamline the renaming process for "My Projects" and "Starter Project".

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-07-02 19:24:23 +00:00
Edwin Jose
d2bee3069b
ref: Portfolio Website Code Generator template (#8823)
* Update Portfolio Website Code Generator.json

* Update Portfolio Website Code Generator.json

* Update Portfolio Website Code Generator.json

*  (dropdownComponent/index.tsx): add data-testid attribute to dropdown option container for improved testing
🔧 (refresh-dropdown-list.spec.ts): update test to click on the correct dropdown option container for refreshing the dropdown list

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-07-02 18:49:50 +00:00
Edwin Jose
ae764d6465
ref: Research Translation Loop template (#8821)
* Update Research Translation Loop.json

* Update Research Translation Loop.json

* Update Research Translation Loop.json
2025-07-02 18:36:26 +00:00
Deon Sanchez
b6b1917c8d
bug: Unformatted curl requests in API Access menu (#8817)
fixed bad logic

Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
2025-07-02 17:41:04 +00:00
April I. Murphy
c0aca94680
docs: Fix broken link (#8818) 2025-07-02 17:06:38 +00:00
Edwin Jose
eb94953707
ref: Delete meeting summary (#8819)
Delete meeting summary
2025-07-02 16:33:07 +00:00
Mike Fortman
a99b1ff429
refactor: Update template notes (#8816)
* update templates

* small-changes

* template cleanup

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-07-02 15:34:14 +00:00
Lucas Oliveira
6460e23bfb
fix: make MCP display loading states when loading tools, surface errors on MCP, sanitize MCP names (#8792)
* Catch timeout errors on check server

* Make errors propagate from the MCP clients

* Apply timeout error handling and made Server change only trigger a loader on the Tools dropdown

* Add placeholder to ToolsInput on errors

* Updated useEffect to run when nothing is selected

* Added timeout handling to mcp component

* Added placeholder to tools component

* removed unused props

* Added timeout handling on loading of tools on config page

* Fixed key pair input not working

* Set key pair values as empty list

* Surface final error from mcp

* Removed ID from tool mode turning on

* Turn exception on to more places

* Fixed cache on mcp component and make tool mode data not reset

* Added loading placeholder only if there are no data

* Refresh data if placeholder is Loading on tool mode

* Show modal if no tools are available

* Add useEffect to run handleOnNewValue if placeholder is Loading actions...

* Removed checks from toolsTable to run handleOnNewValue

* Sanitized MCP name

* Updated message

* Fixed actions not loading in mcp component

* [autofix.ci] apply automated fixes

* reuse mcp servers

* mypy fixes

* fix: update tool reference in MCPToolsComponent to use field_value

* Added last_updated to backend

* get latest version of node and compare last_updated before returning post template value

* assign last updated and only set node class if newTemplate exists

* Adds type

* Removed timeout from backend to frontend

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: phact <estevezsebastian@gmail.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-07-02 15:31:48 +00:00
Gabriel Luiz Freitas Almeida
1930fe0356
fix: comment out pyleak_marker in tests due to ongoing issues (#8826) 2025-07-02 09:01:31 -03:00
Gabriel Luiz Freitas Almeida
6bf60ece71
ci: add frontend test execution, reporting, and coverage in workflow (#8815)
* chore: add jest-junit dependency for improved test reporting

- Updated package.json and package-lock.json to include jest-junit version 16.0.0, enhancing test reporting capabilities in the project.

* chore: enhance Jest configuration for improved test coverage and CI reporting

- Added coverage collection settings, including coverage thresholds and report formats.
- Configured CI-specific options for Jest, including the use of jest-junit for test reporting and adjusted worker settings for better performance in CI environments.

* chore: update frontend test command for CI mode to ensure proper environment variable usage

- Modified the test command in the Makefile to set CI=true for accurate test execution in CI environments.

* chore: enhance frontend CI workflow with test reporting and coverage uploads

- Replaced the frontend dependency installation step with a command to run unit tests in CI mode.
- Added steps to publish test results using junit report and to comment on pull requests with coverage summaries.
- Implemented artifact upload for coverage reports to improve visibility and tracking of test coverage over time.

* chore: add frontend dependency installation step to CI workflow

- Introduced a step to install frontend dependencies using npm ci in the GitHub Actions workflow.
- This enhancement ensures that all necessary packages are available before running frontend unit tests, improving the reliability of the CI process.

* chore: update junit report action version in CI workflow

- Upgraded the junit report action from v5 to v5.5.1 in the GitHub Actions workflow to leverage the latest features and improvements for test result reporting.

* chore: add Jest unit test workflow for frontend

- Introduced a new GitHub Actions workflow to run Jest unit tests for the frontend.
- The workflow includes steps for checking out the repository, setting up the Node.js environment, running tests, publishing test results, adding coverage comments on pull requests, and uploading coverage reports.
- This enhancement improves the CI process by ensuring comprehensive testing and reporting for frontend components.

* chore: integrate Jest unit tests into CI workflow

- Added a new job to the CI workflow to run frontend unit tests using Jest.
- Updated the changes filter to include Jest test files, ensuring they are recognized during the CI process.
- This enhancement improves the testing coverage and reliability of the frontend components.
2025-07-01 20:38:10 +00:00
Lucas Oliveira
514b31282e
fix: updated Run Flow to not group outputs (#8806)
Changed run flow to not group outputs
2025-07-01 18:56:52 +00:00
Cristhian Zanforlin Lousa
b7af3d5446
style: Adjust copy button position in APITabsComponent (#8801)
🐛 (code-tabs.tsx): fix button positioning by adjusting right margin to 4px instead of 2px
2025-07-01 17:09:27 +00:00
Cristhian Zanforlin Lousa
2242d7557f
feat: Add CustomTermsLinks component to GeneralPage (#8808)
 (frontend): add CustomTermsLinks component to GeneralPage to display custom terms links in the settings page.
2025-07-01 14:51:24 +00:00
Deon Sanchez
466a18c744
fix: enhance dropdown component with refresh button and clean up parameter render logic (#8493)
* fix: enhance dropdown component with refresh button and clean up parameter render logic

- Added a refresh button to the dropdown component, improving user interaction.
- Refactored parameter render component to remove unnecessary wrapping around the render function.
- Updated package-lock.json to remove extraneous dependencies.

* [autofix.ci] apply automated fixes

* refactor(OutputComponent): replace DropdownMenu with Popover and Command components

- Updated OutputComponent to use Popover and Command components for improved UI interaction.
- Refactored dropdown logic to enhance accessibility and user experience.
- Added a reference for the button to manage focus visibility.

* refactor: update Memory Chatbot configuration and remove unused RefreshParameterComponent

- Changed display names and output methods in Memory Chatbot JSON configuration for clarity and consistency.
- Introduced a new output method for retrieving messages as text.
- Removed the RefreshParameterComponent and its references from the parameter render component to streamline the codebase.

* refactor: update dropdown component layout for improved styling

- Changed the layout classes in the dropdown component to enhance responsiveness and visual consistency.
- Adjusted flex properties to ensure proper alignment and spacing based on the presence of filtered metadata.

* refactor: streamline dropdown component structure and enhance button functionality

- Removed redundant rendering functions for refresh and custom option dialogs, integrating them directly into the dropdown's main structure.
- Improved layout and styling for better responsiveness and visual consistency.
- Adjusted class names for better alignment and spacing, particularly in relation to filtered metadata.
- Ensured the refresh button is consistently displayed based on dialog input conditions.

* refactor: enhance dropdown component styling for better readability

- Updated text size in dropdown options for improved visibility.
- Increased padding in command items for better touch targets and visual consistency.

* refactor: adjust dropdown component styling for improved usability

- Reduced padding in the search input for a more compact design.
- Updated text size in the search input for better readability.
- Enhanced layout of filtered metadata display for clearer visibility.

* refactor: enhance dropdown component rendering and styling

- Added console log for filtered metadata to assist in debugging.
- Adjusted class names in dropdown options for better responsiveness based on filtered metadata length.

* feat: add data-testid attributes for refresh buttons and simplify memoization in ParameterRenderComponent

- Added data-testid attributes to refresh buttons in Dropdown component for improved testability.
- Removed unnecessary useMemo in ParameterRenderComponent to streamline rendering logic.
- Introduced a new test for the refresh dropdown list functionality to ensure proper behavior.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-01 13:07:48 +00:00
Deepankar Mahapatro
5734735e2d
test: add pyleak for task and event loop block detections (#8802)
* test: add pyleak for task and event loop block detections

* test: add pyleak for task and event loop block detections

* ci: add env variables for verbose logging

* chore: dummy sleep to shwocase error

* chore: dummy sleep to showcase error

* chore: remove dummy sleep
2025-07-01 13:07:25 +00:00
Mike Fortman
7d44121691
fix: Fix broken state from an invalid folderId in the path (#8790)
* Fix the invalid folderId path

* log fix
2025-07-01 12:15:32 +00:00
Bar Nuri
087fa34a57
feat: clean messages table after run in flow_runner (#8773)
* feat: flow_runner cleanup messages table

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* fix lint

* lint

* fix lint

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-01 11:49:03 +00:00
April I. Murphy
ca613f5e48
Docs: Revise component overview page (#8734)
* revise component overview page

* comment out 1.5 piece

* reorg

* coderabbit

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-06-30 21:49:51 +00:00
Deon Sanchez
ff00eb582f
fix: improves table formatting in the playground and adds Jest tests (#8743)
* feat(tests): add Jest configuration and setup for testing environment

- Introduced Jest configuration file to set up testing environment with TypeScript support and JSDOM.
- Added setupTests.ts for global test configurations, including mocks for ResizeObserver and IntersectionObserver.
- Updated package.json and package-lock.json to include Jest and related dependencies.
- Implemented utility functions for processing markdown content, including handling tables and <think> tags.
- Added comprehensive tests for markdown utility functions to ensure proper functionality.

* refactor(makefile): separate frontend commands into a dedicated Makefile

- Removed frontend-related targets from the main Makefile and created a new Makefile.frontend to manage frontend-specific commands.
- Updated the main Makefile to include a reference to the new frontend Makefile and added a help message for frontend commands.
- This restructuring improves organization and clarity for managing backend and frontend build processes.
2025-06-30 21:13:04 +00:00
Mendon Kissling
0034c0b8cc
docs: install from source (#8369)
* initial-content

* add-faster-instructions-to-readme

* link-anchor-and-clone

* additional-make-commands

* copy-content-to-contributing-repo-file

* remove-readme-content

* remove extra file

* tests-location

* makefile-update

* cleanup-extra-make-commands

* contributing-update

* Apply suggestions from code review

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

* move-run-cli

* docs-review

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
2025-06-30 20:44:05 +00:00
Mendon Kissling
2de118910a
docs: icon audit (#8763)
* replace-aria-label-with-aria-hidden

* 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: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update docs/docs/Concepts/concepts-components.md

---------

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-06-30 20:39:32 +00:00
Mendon Kissling
fd685382f4
templates: memory chatbot and vector rag notes (#8788)
* fix-note

* remove-oss-language-in-note
2025-06-30 20:38:43 +00:00
Edwin Jose
2ae66976f3
ref: Delete Diet analysis template (#8787)
Delete Diet abalysis template
2025-06-30 20:04:14 +00:00
Mendon Kissling
b9d2665fce
templates: add note to hybrid search rag (#8768)
add-note

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-06-30 19:44:57 +00:00
Edwin Jose
748bb9da68
fix: Template updates to fix broken edges (#8785)
* update llm component

* template updates

* Update SEO Keyword Generator.json
2025-06-30 19:44:01 +00:00