Commit graph

15,573 commits

Author SHA1 Message Date
dependabot[bot]
7691b0eb8d
build(deps):(deps): bump actions/checkout from 3 to 4 (#7379)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-01 14:32:17 +00:00
Lucas Oliveira
2b3ea5604c
fix: make sure public flow endpoint is correctly identified (#7381)
Fixed public flow api endpoint on frontend
2025-04-01 14:25:33 +00:00
Mendon Kissling
a04b0b19b4
docs: rename tutorials to sample-flows (#7307)
* builds-and-serves-no-errors

* Apply suggestions from code review

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

* update-links

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-04-01 14:04:20 +00:00
Mendon Kissling
21870d3618
docs: update API and authentication pages (#7271)
* add-secure-server-guide

* auth-page-complete

* end-sentence

* end-sentence-remove-content

* docs: Update API keys documentation for clarity and structure

* docs: Enhance configuration documentation for API keys and secret key generation

* swap-end-sentences

* Apply suggestions from code review

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

* fields-bold-and-ui-location

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-04-01 13:36:35 +00:00
Mendon Kissling
1b65f98465
docs: update composio integration (#7337)
update-task-and-screenshot
2025-03-31 21:53:04 +00:00
Gabriel Luiz Freitas Almeida
6c2ff92ccf
docs: Update documentation and add TAVILY_API_KEY to environment variables (#7366)
* feat: add TAVILY_API_KEY to environment variables list

* feat: update global variables documentation to include new API keys

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-31 19:30:12 +00:00
Mendon Kissling
c76aeb6e9e
docs: mcp server component and integrations (#7286)
* mcp-server-component-update

* update-image

* step-number

* more-content

* astra-npx

* mcp-see-mode-and-env-var

* fix-build

* docs-add-mcp-inspector

* create-section-for-mcp

* code-review
2025-03-31 19:19:09 +00:00
Mendon Kissling
37fc581472
docs: v1.3 (#7160)
* lint-plaintext

* Squashed commit of the following:

commit 0820877007091550e196c1ec9189580a1adcfe80
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Wed Feb 19 17:34:54 2025 -0500

    fix-links

commit b47fbfe04e3f3c2239147df59b14626839f6b07c
Merge: 22987155fa 02617ffad2
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Wed Feb 19 17:18:18 2025 -0500

    Merge branch 'main' into docs-publish-v0

commit 22987155fa3bbf39ab2f2a31fe6db643cb98f43f
Merge: bf01a75e72 e8529eaecb
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Wed Feb 19 16:25:52 2025 -0500

    Merge branch 'main' into docs-publish-v0

commit bf01a75e7252f61303c237c7f39c35b6e9831278
Merge: 85770ae167 b43bf8f783
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Wed Feb 19 14:42:10 2025 -0500

    Merge branch 'main' into docs-publish-v0

commit 85770ae167914837a2e0eb5b8848d79726507f3e
Merge: fda54f8f43 e970cdbca3
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Wed Feb 19 11:19:11 2025 -0500

    Merge branch 'main' into docs-publish-v0

commit fda54f8f4344ea629ef8028c388ce65ebc0cac51
Merge: 3027a9c3a4 25ac555e8f
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Tue Feb 18 11:43:21 2025 -0500

    Merge branch 'main' into docs-publish-v0

commit 3027a9c3a44a0c270333d033394eda9b8cd521de
Merge: 0046d1884e 45e2f739d5
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Fri Feb 14 13:20:44 2025 -0500

    Merge branch 'main' into docs-publish-v0

commit 0046d1884e30794f9e372ecba2c484a00675be9a
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Thu Feb 13 13:31:22 2025 -0500

    delete-site-and-redirect

commit 1bf763b3b102b2a7cffb75705c5614a114f3a50a
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Thu Feb 13 13:17:49 2025 -0500

    docs: Add information about sharing the Langflow application's Playground endpoint

commit 4eb34bd746fe16c1e81c92d74640d803d0473dcd
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Thu Feb 13 13:06:46 2025 -0500

    docs: Update references from "API pane" to "Publish pane" in documentation

* s3-bucket-init

* add-bundles-page

* output-parser-component

* language-model-component

* legacy-components

* update-file-component

* parser-component

* publish-doc

* update-agent-starter-flows

* voice-mode

* webhook-component-update

* file-management

* update-env-vars

* make-env-var-table-more-readable

* file-management-link

* bump-version

* add-graph-rag-component

* docs-lambda-filter-component

* docs-add-watsonx-model-component

* add-langchain-links-for-watson-package

* remove-s3-bucket-data-component

* docs: publish-flows introduction

* docs: update voice mode instructions for clarity and detail

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* plurals

* docs-review

* Apply suggestions from code review

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

* steps-for-file-component

* parse-data-and-dataframe-in-legacy

* remove-beta-from-parser-component

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-03-31 16:05:23 -03:00
dependabot[bot]
3a5dbb2aa2
chore(deps-dev): bump vite from 5.4.14 to 5.4.16 in /src/frontend (#7365)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.14 to 5.4.16.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.16/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.16/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  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-03-31 18:49:45 +00:00
Cristhian Zanforlin Lousa
a84335af78
fix: add secret key loading functionality to basic templates (#7363)
* add secret keys to templates

* 🐛 (Simple Agent.json): fix load_from_db value to true to correctly load data from the database instead of false

* 🐛 (Vector Store RAG.json): Fix load_from_db value to true for API Endpoint configuration to correctly load from database
🐛 (Vector Store RAG.json): Fix value to "ASTRA_DB_API_ENDPOINT" for api_endpoint configuration to set the correct default value
🐛 (Vector Store RAG.json): Fix load_from_db value to true for API Endpoint configuration to correctly load from database
🐛 (Vector Store RAG.json): Fix value to "ASTRA_DB_APPLICATION_TOKEN" for application_token configuration to set the correct default value

* 🐛 (Meeting Summary.json, Search agent.json): Fix issue where load_from_db was incorrectly set to false instead of true for certain fields in JSON files
2025-03-31 18:20:54 +00:00
Mendon Kissling
d0b6299beb
docs: platform content (#7091)
* initial-content

* fix-url-errors

* update platform build instructions for environment variable setup

* code-review

* code-review

* naming-and-cleanup

* fix-broken-link-for-build

* typo-and-confirm-windows-path

* local-memory-update

* memory-introduction

* no-deploy

* fix-build-error

* title-anchors-correctly

* more-overview-and-walkthrough

* reorder-pages-fix-link

* another-link

* Apply suggestions from code review

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

* page-titles

* numbered-list-to-bullets

* trailing-spaces

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-03-31 17:54:10 +00:00
Cristhian Zanforlin Lousa
5ef13d98d1
chore: bump langflow and langflow-base for 1.3.0 release (#7362)
* ⬆️ (pyproject.toml): update package version to 1.3.0 and langflow-base dependency to 0.3.0
♻️ (LoopTemplate.json): change legacy flag from true to false for ParseData component to align with updated logic and functionality

* uv sync package

*  (frontend/package.json): update version from 1.2.0 to 1.3.0 to reflect the latest changes and improvements in the frontend application.

* 🐛 (LoopTemplate.json): set "legacy" property to true for ParseData component to handle legacy functionality and improve compatibility with older versions.

* ⬆️ (pyproject.toml): upgrade package version from 0.2.0 to 0.3.0
2025-03-31 17:41:20 +00:00
Ronnie Miller
bdcd76d5cd
docs: ensure asset paths update on draft rebuilds (#7355) 2025-03-31 10:18:46 -07:00
Gabriel Luiz Freitas Almeida
b4124a4027
fix: Prevent API key banner from displaying when key is unavailable (#7356)
fix: prevent displaying API key banner when key is not available

- Added a conditional check to ensure the API key banner is only displayed if a valid API key is retrieved. This improves user experience by avoiding unnecessary prompts.
2025-03-31 16:38:13 +00:00
Edwin Jose
2007495ec4
fix: MCP SSE Model tool mode issue (#7360)
Update mcp_component.py
2025-03-31 13:59:23 -03:00
Edwin Jose
017a0a463b
feat: deprecate Parsing component and replace them in starter projects (#6697)
* fix: fixed the parser component

* fix: fixed parser component test

* fix: ruff error

* chore: rename input

* chore: remove beta attribute

* update

* updated template with legacy as true

* updated templates

* [autofix.ci] apply automated fixes

*  (freeze.spec.ts): add new test steps to check sidebar options and legacy switch functionality
 (similarity.spec.ts): add new test steps to check sidebar options and legacy switch functionality
 (loop-component.spec.ts): add new test steps to check sidebar options and legacy switch functionality, as well as zoom out and expand button modal functionality

* remove-copy-numbers-from-template-titles

* update-blog-writer-template-readme

* update-document-qa-template-notes

* update-market-research-template-notes

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

*  (filterEdge-shard-0.spec.ts, freeze.spec.ts, Portfolio Website Code Generator.spec.ts, decisionFlow.spec.ts, similarity.spec.ts, generalBugs-shard-9.spec.ts, codeAreaModalComponent.spec.ts, fileUploadComponent.spec.ts, nestedComponent.spec.ts, filterEdge-shard-1.spec.ts, loop-component.spec.ts, generalBugs-shard-12.spec.ts, add-legacy-components.ts): add function to handle legacy components in tests for improved test readability and maintainability

* remove duplicated graph rag template

* update changes

* update Templates with new parser component

* [autofix.ci] apply automated fixes

* fix: remove name attribute

* fix: autofix.ci patch

*  (stop-building.spec.ts): add new function addLegacyComponents to include legacy components in the test scenario
🔧 (decisionFlow.spec.ts): increase timeout from 500ms to 2000ms for better stability and reliability in waiting for selectors to appear

---------

Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
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: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-03-31 13:57:30 -03:00
Ítalo Johnny
85787cf53e
fix: fixed the parser component (#7303)
* fix: fixed the parser component

* fix: fixed parser component test

* fix: ruff error

* chore: rename input

* chore: remove beta attribute

* fix: remove name attribute

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-03-31 15:47:52 +00:00
Jordan Frazier
6c36f4895b
ref: split ast parsing / class exec loops (#7248)
* Split ast parsing / class exec loops

* remove unnecessary module check

* remove comment

* [autofix.ci] apply automated fixes

* ruff

* [autofix.ci] apply automated fixes

* Ruff

* [autofix.ci] apply automated fixes

* ruff

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-31 15:43:23 +00:00
Desiree Sng
2407fe39d6
feat: Update AgentQL templates (#7165)
Update AgentQL templates

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2025-03-31 15:30:37 +00:00
Rodrigo Nader
fecd2b5598
feat: add a unified local vector store (#6995)
* add a unified local vector store

* [autofix.ci] apply automated fixes

* fixed lint Error

* [autofix.ci] apply automated fixes

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor: Enhance type hints and clean up imports in LocalDBComponent

- Added type hints for the `update_build_config` method parameters and return type.
- Removed unused import of `override`.
- Cleaned up the `build_vector_store` method by removing the import error handling for `Chroma`, as it is now assumed to be handled elsewhere.

* test: Add unit tests for LocalDBComponent functionality

- Introduced comprehensive tests for the LocalDBComponent, covering database creation, data ingestion, similarity search, and duplicate handling.
- Implemented fixtures for default parameters and collection mappings.
- Verified the behavior of various search types and ensured correct handling of duplicates.
- Added tests for configuration updates and listing existing collections.

* feat: Implement equality comparison for DataFrame class

- Added an __eq__ method to the DataFrame class to handle comparisons with empty DataFrames and non-DataFrame objects.
- Ensures that empty DataFrames and empty lists are treated as unequal, improving the robustness of DataFrame comparisons.

* Update local_db.py

* [autofix.ci] apply automated fixes

* removed data output

* [autofix.ci] apply automated fixes

---------

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: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
2025-03-31 15:15:06 +00:00
Lucas Oliveira
57524d538c
fix: update currentflow to be fetched from Flow Store for icon to be rendered correctly (#7354)
* Updated current flow to be fetched from FlowStore

* Changed setPlaygroundPage's place because of console error
2025-03-31 15:00:51 +00:00
Ítalo Johnny
cac85c62b4
feat: expose serialization truncation constants in /config route (#7316)
* test: validate truncation logic and response structure

* feat: expose serialization truncation constants in /config route

* chore: tidy up redundant import from module
2025-03-31 14:46:40 +00:00
Edwin Jose
aea98a4019
feat: lmprove MCP langflow port selection and error handling (#7327)
* langflow port search and error handling

* [autofix.ci] apply automated fixes

* Update mcp_component.py

* Update util.py

*  (test_mcp_component.py): add support for validating URL and setting max retries to improve connection handling
🐛 (test_mcp_component.py): fix incorrect exception type in test_connect_timeout method to match expected behavior

* [autofix.ci] apply automated fixes

*  (test_mcp_component.py): refactor test_connect_to_server method for better readability and maintainability
🔧 (test_mcp_component.py): refactor test_connect_timeout method for improved error message formatting

* [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-03-31 14:43:17 +00:00
Lucas Oliveira
7ba4bff956
fix: adds priority sorting for sidebar components and makes LanguageModel appear first (#7322)
* Added priority field to components

* Added priority as 0 to LanguageModelComponent

* Adds sorting based on priority

* refactor: remove redundant name attribute from LanguageModelComponent

* Updated custom component to include priority

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-03-31 14:29:34 +00:00
Edwin Jose
58b12b40e1
fix: make agent work with new tool mode backend updates (#7314)
* update tools in agents

* fix: update tool status check to default to True

* refactor: rename to_toolkit method to _get_tools and remove deprecated code

* [autofix.ci] apply automated fixes

* fix: makes agent tool metadata be correctly generated

* Update agent JSON files with new code for Agent component

* Enhance Financial Agent JSON configuration with updated code for the Agent component, including improved memory handling, tool validation, and error logging for better robustness and async functionality.

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-31 14:23:19 +00:00
Gabriel Luiz Freitas Almeida
7ff6b1ae34
chore: fix small typo in grep command (#7353)
* fix: ensure consistent version extraction for langflow-base in workflows

Updated version extraction commands in multiple workflow files to consistently use 'head -n 1' for retrieving the first occurrence of the langflow-base version. This change improves reliability in version detection across docker-build, nightly_build, python_test, release_nightly, and release workflows.

* fix: correct version extraction command in nightly build workflow

Removed an extraneous quote from the version extraction command in the nightly_build.yml workflow file to ensure proper execution and reliability in retrieving the langflow-base version.
2025-03-31 09:44:27 -03:00
Gabriel Luiz Freitas Almeida
62aef0b8ed
chore: Ensure consistent version extraction for langflow-base in workflows (#7352)
fix: ensure consistent version extraction for langflow-base in workflows

Updated version extraction commands in multiple workflow files to consistently use 'head -n 1' for retrieving the first occurrence of the langflow-base version. This change improves reliability in version detection across docker-build, nightly_build, python_test, release_nightly, and release workflows.
2025-03-31 09:34:28 -03:00
Sebastián Estévez
d73624e862
feat: voice mode tts endpoint (#7294)
* 📝 (chat-view-wrapper.tsx): Refactor ChatViewWrapper component to improve code readability and maintainability
📝 (chat-input.tsx): Add functionality to set voice assistant active state when showAudioInput is true
📝 (voice-assistant.tsx): Add functionality to set voice assistant active state and scroll to bottom when closing audio input
📝 (chat-view.tsx): Update ChatView component to consider sidebarOpen and isVoiceAssistantActive states
📝 (voiceStore.ts): Add isVoiceAssistantActive state and setIsVoiceAssistantActive function to voice store
📝 (index.ts, voice.types.ts): Update types to include sidebarOpen prop in chatViewProps and isVoiceAssistantActive state in VoiceStoreType

* url change

* 🔧 (chat-input.tsx): Add new session close voice assistant functionality to chat input component
🔧 (voice-button.tsx): Update voice button to set new session close voice assistant state
🔧 (sidebar-open-view.tsx): Update sidebar open view to set new session close voice assistant state
🔧 (voiceStore.ts, voice.types.ts): Add new session close voice assistant state and setter to voice store and types

* ♻️ (chat-input.tsx): remove unused setNewSessionCloseVoiceAssistant function to clean up code and improve readability

* url

* merge

* 📝 (chat-view-wrapper.tsx): Refactor ChatViewWrapper component to improve code readability and maintainability
📝 (chat-input.tsx): Add functionality to set voice assistant active state when showAudioInput is true
📝 (voice-assistant.tsx): Add functionality to set voice assistant active state and scroll to bottom when closing audio input
📝 (chat-view.tsx): Update ChatView component to consider sidebarOpen and isVoiceAssistantActive states
📝 (voiceStore.ts): Add isVoiceAssistantActive state and setIsVoiceAssistantActive function to voice store
📝 (index.ts, voice.types.ts): Update types to include sidebarOpen prop in chatViewProps and isVoiceAssistantActive state in VoiceStoreType

* new endpoint

* 🐛 (voice_mode.py): remove unnecessary comment and update input parameter in speech creation function
🐛 (use-start-conversation.ts): update WebSocket URL to use flow_tts endpoint and add support for audio language and input audio transcription model in WebSocket session update configuration

* 📝 (voice_mode.py): add "voice" attribute with value "coral" to TTSConfig class for voice mode customization
♻️ (use-start-conversation.ts): refactor code to use "transcription_session.update" type and update session attributes based on audioSettings and audioLanguage variables

*  (voice_mode.py): introduce a new 'voice' attribute with the value "coral" to specify the voice used for text-to-speech conversion in TTSConfig class

* ♻️ (voice_mode.py): remove unused 'voice' variable assignment to improve code cleanliness and readability

*  (voice_mode.py): update voice parameter value to "coral" for better voice quality and clarity in TTS websocket flow.

*  (voice_mode.py): add support for configuring OpenAI voice setting in TTSConfig class
🐛 (voice_mode.py): fix updating OpenAI voice setting in flow_tts_websocket function
📝 (use-start-conversation.ts): update voice settings format for flow_tts endpoint to include voice and provider information

* 🐛 (use-start-conversation.ts): fix issue with immediate startRecording function call by adding a 300ms delay to ensure proper initialization

* refactor

* refactor

* 🔧 (audio-settings-dialog.tsx): add isPlayingRef prop to SettingsVoiceModal component for managing audio playback state
🔧 (voice-assistant.tsx): pass isPlayingRef prop to VoiceAssistant component for controlling audio playback state

* [autofix.ci] apply automated fixes

* fixed tts and 11l

* lint fix

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-30 14:50:51 +00:00
Edwin Jose
306f50b71f
fix: remove composio Gmail component (#7319)
remove composio Gmail component
2025-03-30 07:51:46 +00:00
Lucas Oliveira
5e39d3f1e2
fix: removed duplicate controls from node toolbar (#7274)
* Removed duplicate elements from node toolbar

* Fixed freeze tests

* Replaced advanced button modal with edit button modal in all tests

* Fixed freeze test

* Fixed tests

* Readded freeze when there is tool mode

---------

Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
2025-03-30 00:54:20 +00:00
Lucas Oliveira
928e2da78e
fix: changed naming from freeze path to freeze (#7343)
* Changed naming from freeze path to freeze

* Fixed tests

* Fixed tests
2025-03-30 00:11:04 +00:00
Lucas Oliveira
f99d626080
fix: change file cursor and selection ordering on file modal (#7344)
* Removed renaming from file renderer and changed cursor

* Removed sorting by selected files

* Updated file upload test
2025-03-29 23:54:37 +00:00
Lucas Oliveira
1d42e4b877
fix: make dataframe output format identify and show truncation (#7312)
* Added pagination info on table options

* Added pagination info on table component

* Added truncated rows and truncate message when row count is > 1000
2025-03-29 23:26:50 +00:00
Deon Sanchez
d3104e15ae
feat: Composio Component Upgrade (#6905)
* feat: Add button component and update dropdown rendering

* feat: Implement ListSelectionComponent and update ButtonComponent

- Add new ListSelectionComponent for selecting actions with search functionality
- Refactor ButtonComponent to use ListSelectionComponent
- Update ParameterRenderComponent to simplify button rendering
- Modify DropdownComponent to prepare for future changes

* feat: Add Sortable.js for drag-and-drop functionality and grid icon

- Integrated Sortable.js library in index.html and package files
- Added GridHorizontalIcon for drag handle visualization
- Updated ButtonComponent with commented sortable list example
- Improved input styling in ListSelectionComponent

* feat: Add ButtonInput for Composio API and update input types

- Introduced ButtonInput class in inputs module
- Added new button input fields to ComposioAPIComponent
- Updated FieldTypes enum to include BUTTON type
- Modified frontend ButtonComponent layout
- Removed commented-out code in DropdownComponent

* [autofix.ci] apply automated fixes

* feat: Enhance ButtonComponent with dynamic type and improved UI

- Add type prop to ButtonComponent to support different rendering modes
- Implement tool name and actions button layouts
- Add sample action data for actions button type
- Improve sortable list styling and interaction
- Refactor ButtonComponent to handle different use cases

* refactor: Improve ButtonComponent layout and Sortable configuration

- Adjust Sortable animation duration
- Modify list item layout and positioning
- Remove unnecessary CSS classes
- Simplify button and icon positioning

* feat: Integrate react-sortablejs for improved drag-and-drop functionality

- Replace Sortable.js with react-sortablejs library
- Add TypeScript types for SortableJS
- Update ButtonComponent to use ReactSortable component
- Improve list item rendering and styling
- Remove manual Sortable initialization

* feat: Enhance ButtonComponent with authentication and dynamic action data

- Add isAuthenticated state to control button visibility
- Introduce initialActionData and actionData state for dynamic list management
- Update button styling and icon for unauthenticated state
- Enable ReactSortable to modify action data list

* style: Update ButtonComponent styling with accent-themed colors

* style: Refine button styling with amber accent theme

* feat: Enhance ButtonComponent with dynamic rendering and improved UX

* feat: Add external link to DataStax Wikipedia page on button click

* feat: Implement delete action for button component action data

* feat: Enhance ButtonComponent with authentication and UI improvements

* feat: Enhance ListSelectionComponent with dynamic data and multi-select functionality

* feat: Improve ListSelectionComponent and ButtonComponent interaction and authentication flow

* refactor: Replace ButtonInput with ListSelectionInput in Composio API and input components

* [autofix.ci] apply automated fixes

* refactor: Optimize ListComponent with memoization and improved state management

* feat: Add selection type support to Composio API and ListSelectionComponent for improved user interaction

* refactor: Rename action-related props in ListSelectionComponent and ListComponent for clarity and consistency

* feat: Expand ListSelectionInput options and enhance ListSelectionComponent with dynamic data and metadata support

* refactor: Clean up comments and improve code readability in ListSelectionComponent and ListComponent

* [autofix.ci] apply automated fixes

* chore: Remove debug log from ParameterRenderComponent and add text/plain type to DRAG_EVENTS_CUSTOM_TYPES

* feat: Introduce ConnectionInput and SortableListInput components, replacing ListSelectionInput; enhance ComposioAPIComponent with new input types and improve parameter rendering with connection support

* [autofix.ci] apply automated fixes

* feat: Enhance ConnectionComponent with new state management and selection handling; update SortableListComponent to utilize new props for improved functionality

* feat: Implement SearchBarComponent to enhance ListSelectionComponent with improved search functionality and category selection

* feat: Update ComposioAPIComponent with external links and enhance ConnectionComponent with improved state management and dynamic link handling

* fix: Update ConnectionComponent layout and button styles for improved UI consistency

* chore: Remove unused Sortable.js script from index.html to streamline frontend resources

* Update index.tsx

* [autofix.ci] apply automated fixes

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

* Add backend support for composio actions

* [autofix.ci] apply automated fixes

* Update composio_api.py

* Update composio_api.py

* [autofix.ci] apply automated fixes

* fix: enhance ListSelectionComponent styling and functionality

- Updated ListItem component to accept a className prop for better customization.
- Improved item name display with truncation for better UI handling.
- Adjusted DialogContent styling for responsive width and layout.
- Enhanced overflow handling in the selection list for better user experience.

* feat: enhance ListSelectionComponent and ConnectionComponent functionality

- Added onSelection prop to ListSelectionComponent for handling item selection actions.
- Improved item selection logic to trigger onSelection callback.
- Refactored connection handling in ConnectionComponent to manage loading state and authentication.
- Updated connection link handling to ensure proper link retrieval and usage.

* fix: reset search input in ListSelectionComponent after selection

- Added functionality to clear the search input by setting it to an empty string when an item is selected. This improves user experience by ensuring the search field is reset after a selection is made.

* fix: improve selection logic and styling in ListSelectionComponent and ConnectionComponent

- Enhanced ListItem component to conditionally apply a green color for validated items.
- Updated selection logic in ListSelectionComponent to consider items with a validated link as selected.
- Initialized authentication state in ConnectionComponent based on the connection link status.
- Adjusted connection handling to update authentication state when the link changes.

* fix: refine item selection handling in ConnectionComponent

- Removed the setting of selectedItem state in the handleSelection function to streamline the selection process.
- Updated logic to focus on handling new value updates without maintaining a separate selected item state.

* fix: enhance ConnectionComponent and ListSelectionComponent functionality

- Removed console log from ListSelectionComponent to clean up the code.
- Added nodeId, nodeClass, and name props to ConnectionComponent for improved data handling.
- Implemented polling logic in ConnectionComponent to validate connections and manage loading states effectively.
- Updated loading state handling in the button to reflect polling status.

* fix: refactor ConnectionComponent for improved state management and polling logic

- Streamlined prop destructuring for better readability.
- Enhanced state management for polling and authentication.
- Added cleanup effects for polling intervals and timeouts.
- Improved event handling for connection button clicks and selection dialog.
- Updated comments for clarity and organization.

* Support handling the auth parameter

* [autofix.ci] apply automated fixes

* fix: improve key handling and state management in ListSelection and SortableList components

* Updated key assignment in ListSelectionComponent to include index for uniqueness.
* Enhanced SortableListComponent with useEffect to initialize listData from props and improved remove handler to update state correctly.
* Refactored setListData to ensure proper state updates and value handling.

* fix: update selected item handling in ConnectionComponent (#7280)

* Added useEffect to set selected item based on value and options.
* Modified handleSelection to ensure selected item structure is consistent.

* Fix output of component in actions

* fix: enhance connection handling in ConnectionComponent

* Updated handleConnectionButtonClick to accept a parameter for connection checking.
* Modified event handler to call handleConnectionButtonClick with the appropriate argument based on connection state.
* Ensured that the connection link opens in a new tab only when the connection check is true.

* [autofix.ci] apply automated fixes

* Remove the search categories

* fix: update list data handling in SortableListComponent

* Refactored useEffect to correctly set listData when value changes.
* Introduced a temporary variable to hold the value before updating state.

* refactor: optimize list data management in SortableListComponent

* Replaced useEffect with useMemo for listData initialization.
* Simplified state update logic in createRemoveHandler and setListDataHandler.
* Improved key assignment for SortableListItem to handle potential undefined names.

* Check if validated before passing link

* [autofix.ci] apply automated fixes

* refactor: improve connection handling and state management in ConnectionComponent

* Enhanced state management for tracking connection status and UI states.
* Updated polling management to prevent memory leaks and ensure proper cleanup.
* Simplified event handlers for connection button clicks and selection handling.
* Improved comments for better code clarity and understanding.

* fix: improve connection link handling in ConnectionComponent

* Added logging for connectionLink to aid in debugging.
* Updated useEffect to set the link only if connectionLink is not empty.
* Implemented authentication state change when connectionLink is validated.

* Clear list of actions when changing tools

* Update composio_api.py

* [autofix.ci] apply automated fixes

* feat: enhance error handling in ConnectionComponent

* Introduced ShadTooltip for displaying error messages.
* Added state management for error visibility and updated connection link handling based on error data.
* Modified button behavior and icon display based on connection status.

* refactor: simplify error handling in ConnectionComponent

* Removed unused state for error tooltip visibility.
* Updated error handling logic to include connection link status in addition to error data.

* Properly indicate error status in component

* Better management of tool name helper text

* refactor: streamline selected item initialization in ConnectionComponent

* Simplified the logic for setting the selected item based on the value prop.
* Ensured that the selected item is updated correctly when value or options change.

* fix: update authentication status in ConnectionComponent

* Added logic to set authentication status based on the selected option.
* Ensured that authentication state is updated when no option is selected.

* feat: update composio package (#7325)

update composio package

* Update Gmail Agent.json

* refactor: optimize InputGlobalComponent logic

* Removed unused imports and streamlined the useEffect and useMemo hooks for better performance.
* Enhanced the handling of unavailable fields and initial load completion state.
* Simplified the logic for setting the selected option based on the value and load_from_db status.

* refactor: improve error handling in ConnectionComponent

* Removed dependency on errorData in useEffect for setting link state.
* Streamlined error handling logic to focus solely on connectionLink status.

* refactor: enhance connection handling in ConnectionComponent

* Merged error handling logic into a single useEffect for improved clarity.
* Updated link state management to reflect the selected item's validation status.
* Ensured authentication state is set correctly based on the selected item.

* Filter list of available tools

* refactor: update ListSelectionComponent to use limit instead of selection type

* Removed the SelectionMode type and replaced it with a limit prop for selection.
* Adjusted selection logic to enforce the limit on selected items.
* Updated related components to reflect the new limit prop instead of type.

* [autofix.ci] apply automated fixes

* Add limit field and santiziation

* Update inputs.py

* Update composio_api.py

* Show actions only if a tool is selected

* [autofix.ci] apply automated fixes

* refactor: add limit prop to ParameterRenderComponent and SortableListComponent

* Introduced a limit prop to both components to control item rendering and selection behavior.
* Updated SortableListItem to conditionally render elements based on the limit value.
* Adjusted button visibility and styles in SortableListComponent according to the limit prop.

* fix: adjust styles in SortableListItem based on limit prop

* Updated height and padding styles for SortableListItem when limit is set to 1.
* Ensured consistent spacing and visibility of elements based on the limit value.

* Push latest template

* style: enhance SortableListItem styles for improved interaction

* Updated class names to ensure proper styling for hover and group states.
* Improved visibility of the remove button based on the limit prop, enhancing user experience.

* Update composio_api.py

* style: update SortableListItem max-width for improved layout

* Adjusted max-width class for SortableListItem when limit is set to 1, enhancing the component's visual consistency.

* Update Gmail Agent.json

* style: enhance ListItem component for better interaction

* Updated class names to improve hover effects and selected state styling.
* Added rounded corners and background color changes for better visual feedback.

* style: refine ListSelectionComponent and SortableListComponent layout

* Simplified class names in ListItem for cleaner styling.
* Moved HelperTextComponent into a dedicated div in SortableListComponent for improved layout and spacing.

* refactor: clean up ConnectionComponent code

* Removed unused imports and comments for better readability.
* Updated polling timeout duration from 30 seconds to 9 seconds to prevent indefinite polling.

* Fix bug with link on refresh

* Update Gmail Agent.json

* Update Gmail Agent.json

* Update Gmail Agent.json

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-03-29 10:12:51 +00:00
Thiago Araujo
a16df4b2bf
feat: Add watsonx embedding component (#7292)
* Add draft watsonx component

* feat: improved logic for embedding

* Add small changes to the ibm embedding component

* Fix icon and logger mode

---------

Co-authored-by: Thiago Araujo <thirauj@br.ibm.com>
Co-authored-by: Giovanni-Galatro <giovanni.galatro@ibm.com>
Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com>
Co-authored-by: galatro <galatrogiovanni@gmail.com>
2025-03-29 08:57:33 +00:00
Lucas Oliveira
6f5b548960
fix: adds external link icon to empty prompt (#7324)
Added external link icon to prompt
2025-03-29 01:34:10 +00:00
Lucas Oliveira
76a1e56e06
fix: adds truncation to tab input (#7323)
Added classes to truncate tab input

Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2025-03-29 01:30:08 +00:00
Lucas Oliveira
f5c7df3a6b
fix: make node be maximized when adding more handles (#7320)
Add useEffect to maximize node that is not minimal
2025-03-29 01:27:42 +00:00
Ítalo Johnny
d8233c2a76
ci: add pytest-timeout with 120s limit for CI tests (#7342) 2025-03-28 18:06:53 -03:00
Cristhian Zanforlin Lousa
dead8150c7
test: Fix apply_json_filter to handle empty string filters and nested key access edge cases (#7340)
* 🐛 (test_apply_json_filter.py): fix test failures by updating expected return values and handling special cases in apply_json_filter function

* [autofix.ci] apply automated fixes

* 📝 (test_temp_flow_cleanup.py): comment out test_cleanup_worker_run_with_exception to temporarily disable the test for further investigation

* [autofix.ci] apply automated fixes

* 🐛 (test_apply_json_filter.py): fix logic to handle special characters and numeric keys in nested paths to ensure accurate comparison of results

* [autofix.ci] apply automated fixes

*  (test_temp_flow_cleanup.py): add get_settings_service dependency to test_cleanup_worker_run_with_exception test to improve test coverage and handle exceptions gracefully.

* ♻️ (test_apply_json_filter.py): remove commented-out code and unused imports to clean up the test file and improve readability

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-28 18:04:06 -03:00
Cristhian Zanforlin Lousa
ba8bf9a803
test: fix apply json filter validation test (#7338)
*  (test_apply_json_filter.py): add test cases to skip empty key tests with special handling for complex nested access in data.

*  (test_apply_json_filter.py): skip specific failing case in test_complex_nested_access to prevent test failure

* [autofix.ci] apply automated fixes

* 🐛 (test_apply_json_filter.py): fix assertion error for specific case when both keys are empty, ensuring the function returns an empty list
💡 (test_apply_json_filter.py): improve comments and readability in test_complex_nested_access function

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-28 14:44:11 -03:00
Gabriel Luiz Freitas Almeida
7e65be32a3
fix: Enhance dictionary access tests and refactor apply_json_filter function (#7335)
* refactor: streamline apply_json_filter function for improved clarity and performance

- Simplified data extraction from Data objects and handled None inputs.
- Enhanced dictionary access logic and removed redundant checks.
- Improved handling of special cases for filter access, including nested and array structures.

* test: enhance dictionary access tests with additional examples

- Added new example cases to the test_basic_dict_access function to cover edge cases, including empty dictionaries and keys with spaces.
- Improved test robustness by utilizing the @example decorator from hypothesis for better failure discovery.
2025-03-28 13:22:29 -03:00
Cristhian Zanforlin Lousa
d0e526d9f0
fix: add memo hook to handle filter to prevent excessive renders (icons loading error) (#7317)
♻️ (GenericNode/index.tsx): refactor selectedNodes to selectedNodesCount for better readability and performance optimization
2025-03-27 21:19:25 +00:00
Mendon Kissling
fa2a8a713c
docs: deprecate freeze and replace with freeze path (#6828)
* deprecate-freeze

* deprecate-freeze-replace-with-freeze-path
2025-03-27 20:41:33 +00:00
Mendon Kissling
d428d734c6
docs: deployment overview (#7108)
* sidebars

* init

* more-content

* backend-only-dockerfile

* more-content

* postgres-page

* cleanup

* cleanup

* multiple-postgres-db

* move-content

* test

* spacing-issue

* remove-link-temporarily-for-build

* code-review

* add-note-for-readOnlyRootFilesystem

* Apply suggestions from code review

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

* rename-concepts-to-overview

* docs: Refactor deployment overview for clarity and conciseness

* improve-sentence-add-comma-remove-trailing-spaces

* code-review

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-03-27 20:38:19 +00:00
Cristhian Zanforlin Lousa
d5bf54831e
fix: Add debouncing to handleOnNewValue and disable retries for usePostTemplateValue mutation (#7263)
*  (use-handle-new-value.ts): add debounce functionality to handleOnNewValue function to improve performance and prevent excessive API calls
🔧 (use-post-template-value.ts): update usePostTemplateValue function options to set retry to 0 and prevent automatic retries on API call failures

* 🐛 (use-handle-new-value.ts): fix condition to check if value length is greater than 10 before updating node state

* 🐛 (use-handle-new-value.ts): fix condition to update node state based on changes in value to ensure correct behavior and remove unnecessary length check on value array

*  (use-handle-new-value.ts): introduce constant DEBOUNCE_TIME_1_SECOND for better readability and maintainability of debounce time

* 🔧 (use-handle-new-value.ts): update debounce time from 1 second to 2 seconds for better user experience and performance.

*  (use-handle-new-value.ts): introduce DEBOUNCE_FIELD_LIST constant to handle debouncing for specific input types
♻️ (use-handle-new-value.ts): refactor DEBOUNCE_TIME_2_SECONDS constant to DEBOUNCE_TIME_1_SECOND for better consistency and readability

* 🐛 (use-handle-new-value.ts): fix debounce time constant value to 2 seconds for better performance and user experience

* 🐛 (use-handle-new-value.ts): fix debounce time constant value from 2 seconds to 1 second for better user experience
2025-03-27 20:38:18 +00:00
Jordan Frazier
6028fc4384
fix: valid file type check (#7152)
* Fix valid file type check

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-27 20:35:13 +00:00
Mendon Kissling
6557d3f860
docs: example for HCD vector store (#7214)
* docs:example-hcd-flow

* Apply suggestions from code review

Co-authored-by: brian-f <brian.fisher@datastax.com>

* Update docs/docs/Components/components-vector-stores.md

* Apply suggestions from code review

Co-authored-by: Christopher Bradford <bradfordcp@gmail.com>

---------

Co-authored-by: brian-f <brian.fisher@datastax.com>
Co-authored-by: Christopher Bradford <bradfordcp@gmail.com>
2025-03-27 15:25:19 +00:00
Cristhian Zanforlin Lousa
e82b23f932
feat: remove graph rag template (#7289)
remove graph rag template
2025-03-27 14:20:54 +00:00
jeevi cao
858f2f3cd0
fix: use stdout instead richHandler in loguru improve performance #7018 (#7024)
* Update py_autofix.yml

* fix: use stdout instead richHandler in loguru improve performance

* Revert "Update py_autofix.yml"

This reverts commit 7aed45e98602f57c2d6d33532080bad30cf02507.

* log to stdout use env vairable control

* feat:  env  LAGFLOW_PRETTY_LOGS

---------

Co-authored-by: tianzhipeng <tzpabc@gmail.com>
Co-authored-by: caojianwei-jk <caojianwei-jk@360shuke.com>
2025-03-27 13:13:01 +00:00