Commit graph

14,628 commits

Author SHA1 Message Date
Cristhian Zanforlin Lousa
41d3fbcc2a
fix: use cn utility for className assignment (#5032)
📝 (NodeName/index.tsx): refactor className logic to use cn() function for better readability and maintainability
2024-12-04 14:16:09 +00:00
Cristhian Zanforlin Lousa
5407cad728
feature: Update HandleTooltipComponent text from "Select" to "Click" for better clarity (#5004) 2024-12-04 09:46:58 +00:00
Eric Hare
975164ebcb
fix: Support Ollama models in CrewAI Components (#4936)
* fix: Support ollama in crewai

* fix: Correct name for type of model
2024-12-04 00:32:57 +00:00
anovazzi1
77922c2bfd
refactor: Simplify ContentDisplay component (#5027)
Simplify the ContentDisplay component by removing unnecessary conditional rendering and updating the input label to be more concise.
2024-12-03 23:22:00 +00:00
anovazzi1
a2bd59e45e
fix: prevent inconsistent scroll behavior (#4958)
Refactor: update inputComponent popover styles and button variants
2024-12-03 23:10:45 +00:00
Lucas Oliveira
213d657b00
fix: auto fill chat input on new sessions (#5034)
* Show chatview only if messages are fetched

* Get value from chatInput node to put in new sessions and make New Flow not flash on the screen
2024-12-03 21:33:18 +00:00
Lucas Oliveira
166813c897
fix: uncentered tweaks tables text and removed notes from tweaks (#5035)
* Remove notes nodes from tweaks

* Fix alignment of tweaks
2024-12-03 20:56:18 +00:00
Cristhian Zanforlin Lousa
8a516de691
refactor: Split folderSidebarComponent into modular components (#5000)
*  (index.tsx): Refactor SideBarFoldersButtonsComponent to improve code readability and maintainability. Add new functionalities such as drag and drop, folder hovering effects, and folder actions like upload, download, add, update, and delete. Update folder state management and handle loading states for various folder operations.

*  (add-folder-button.tsx): Add a new component for adding folders to the sidebar
 (folder-select-item.tsx): Add a new component for displaying folder select items in the sidebar
 (header-buttons.tsx): Add a new component for displaying header buttons in the sidebar
 (input-edit-folder-name.tsx): Add a new component for editing folder names in the sidebar
 (select-options.tsx): Add a new component for displaying select options in the sidebar
 (upload-folder-button.tsx): Add a new component for uploading folders to the sidebar
 (handle-select-change.ts): Add a new helper function for handling select changes in the sidebar
🔧 (index.tsx): Refactor sidebar folder buttons component to use new components and helpers for better organization and functionality
2024-12-03 20:18:37 +00:00
Cristhian Zanforlin Lousa
3f027396d3
refactor: migrate flow handling hooks and clean up component code (#5024)
*  (use-post-add-flow.ts): Add useGetRefreshFlows hook to refresh flows after adding a new flow
♻️ (use-add-flow.ts): Remove unnecessary refreshFlows hook and refactor code to use useGetRefreshFlows hook instead
📝 (dropdown/index.tsx): Update import paths for useDuplicateFlows and useSelectOptionsChange hooks
📝 (grid/index.tsx): Update import path for useDescriptionModal hook and remove commented out code related to playground functionality

 (MainPage): Add new hooks for handling duplicate flows, selecting all flows, changing select options, and managing selected flows
📝 (MainPage): Update import path for useDescriptionModal hook to correct location
🔧 (MainPage): Remove unused code related to playground functionality in ListComponent

🔧 (use-handle-duplicate.tsx): Remove unused file use-handle-duplicate.tsx
🔧 (componentsComponent/index.tsx): Remove unused imports and function call for useDuplicateFlows
📝 (homePage/index.tsx): Add console log to log data.flows for debugging purposes

* 📝 (dropdown/index.tsx): refactor useDuplicateFlows hook to accept an object with named parameters for better readability and maintainability
📝 (use-handle-duplicate.tsx): update useDuplicateFlows hook to accept an object with named parameters for better readability and maintainability
📝 (componentsComponent/index.tsx): remove import of useDuplicateFlows hook as it is no longer used in the file
📝 (homePage/index.tsx): remove console.log statement for data.flows in the HomePage component

*  (FlowMenu/index.tsx): Add useGetRefreshFlowsQuery to fetch and refresh flows data when folders are fetched
♻️ (use-get-flow.ts): Refactor useGetFlow to include queryClient for refetching queries on settled response
 (use-get-refresh-flows-query.ts): Introduce useGetRefreshFlowsQuery to fetch and process flows data with query options
🔧 (use-post-add-flow.ts): Update usePostAddFlow to use queryClient for refetching queries instead of refreshFlows
🔧 (use-get-folders.ts): Update useGetFoldersQuery to remove unnecessary refreshFlows call and use queryClient for refetching queries
🔧 (use-upload-flow.ts): Remove unnecessary refreshFlows call from useUploadFlow to improve flow data handling

🔧 (FlowPage/index.tsx): Remove unused imports and variables for better code cleanliness and maintainability
🔧 (ViewPage/index.tsx): Remove unused imports and variables for better code cleanliness and maintainability

* 🔧 (twoEdges.spec.ts): remove unnecessary click on "input-inspection-retriever" element to improve test clarity and efficiency
2024-12-03 20:08:44 +00:00
Cristhian Zanforlin Lousa
5145b7496c
refactor: Update true/false response methods to return None (#5001)
* ♻️ (conditional_router.py): refactor ConditionalRouterComponent to return None instead of self.message when condition is not met to improve code clarity and consistency

* 🐛 (conditional_router.py): fix issue where None was being returned instead of an empty string in certain cases to improve consistency and avoid potential errors

* ♻️ (conditional_router.py): Update return type of true_response and false_response methods to allow returning either Message or str for better flexibility and compatibility with different response types.
2024-12-03 16:58:23 -03:00
Cristhian Zanforlin Lousa
728a86aab0
refactor: Move RetrieverToolComponent to langchain_utilities and add legacy support (#5003)
*  (langchain_utilities): add RetrieverToolComponent to langchain_utilities package
♻️ (tools): remove RetrieverToolComponent from tools package to avoid duplication and improve organization

* style: fix import block un-sorted

* 🔧 (twoEdges.spec.ts): remove unnecessary click on "input-inspection-retriever" element to improve test clarity and efficiency

---------

Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
2024-12-03 18:21:26 +00:00
Lucas Oliveira
39027e3d5a
fix: remove "content" from "download content" on folder menu (#4990)
Remove Content from Download Content in folder
2024-12-03 17:50:20 +00:00
Eric Hare
b779a952e3
fix: handle incorrect token in AstraDB (#5030) 2024-12-03 17:40:24 +00:00
anovazzi1
fbbe887aa8
fix: change wrong component in json display (#5026)
refactor: Remove wrong CodeBlock import and replace with SimplifiedCodeTabComponent
2024-12-03 16:12:12 +00:00
anovazzi1
e14c35ceb5
Refactor: Update toTitleCase function and CrashErrorComponent (#4940)
* Refactor: Update Data class to handle different types of text inputs

The Data class in the langflow schema has been updated to handle different types of text inputs. Previously, the page_content attribute was expected to be a string, but now it can also accept other types. If the input is already a string, it is used as is. Otherwise, it is converted to a string before being assigned to the page_content attribute of the Document object.

This change improves the flexibility and robustness of the Data class, allowing it to handle a wider range of input types.

* Refactor: Update toTitleCase function to handle ignoreTitleCase option

* Refactor: Update CrashErrorComponent to add ignoreTitleCase option to the Report on GitHub button

* [autofix.ci] apply automated fixes
2024-12-03 16:01:29 +00:00
Rodrigo Nader
a8470c89a2
remove unnecessary function from youtube transcript (#4978)
* remove unnecessary function from youtube transctipt

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
2024-12-03 15:46:50 +00:00
Rodrigo Nader
53e00c8092
remove retriever component and outputs (#4979)
* remove retriever component and outputs

* [autofix.ci] apply automated fixes

* ruff check fix

* [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>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
2024-12-03 07:38:02 -08:00
anovazzi1
8e09cf3335
Refactor: Update shortcut for minimizing component (#4916)
Refactor: Update shortcut for minimizing window

Changed the shortcut for minimizing the window from "mod+shift+q" to "mod+." in order to align with the default shortcuts. This improves the consistency and usability of the application.
2024-12-03 15:27:22 +00:00
Eric Hare
7956f8b1ce
fix: correct param for TableInput value (#5015) 2024-12-03 15:19:23 +00:00
Lucas Oliveira
60d8e48488
fix: changed cursor on slider to cursor-pointer (#4991)
changed cursor on slider to cursor-pointer
2024-12-03 15:10:13 +00:00
Lucas Oliveira
7a54a82fb4
fix: add padding to search bar for it to align with images on templates screen (#4993)
* Fix search bar alignment on templates screen

*  (youtube-transcripts.spec.ts): remove unnecessary step of filling language field before running the test to improve test efficiency

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2024-12-03 14:57:52 +00:00
yabi90
4b08696947
refactor: Improve Timeout Handling, Simplify Link Logic, and Enhance Cleanup (#4744)
* Refactor NoticeAlert: Improve Timeout Handling, Simplify Link Logic, and Enhance Cleanup

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-03 14:32:36 +00:00
Eric Hare
0dc37bb98e
Track caller versions in Astra DB, fix dynamic inputs (#5016) 2024-12-03 14:16:09 +00:00
Luis Felipe Salazar Ucros
fcff5e4e48
fix: sambanova streaming (#5002)
fix: add sseclient-py dependency to fix sambanova streaming
2024-12-03 13:28:31 +00:00
Mendon Kissling
9c0dfc3c17
docs: add uv installation (#5011)
* add-uv-option-to-installation-page

* uv-readme

* quickstart
2024-12-03 13:07:50 +00:00
Eric Hare
9f3663e560
fix: Update components-loaders.md for accuracy with Unstructured (#5014) 2024-12-02 22:20:18 +00:00
Eric Hare
7a74c01a4b
fix: update vector RAG flow for Astra DB comp changes (#5006) 2024-12-02 20:11:44 +00:00
Lucas Oliveira
008c65b6b7
docs: update docs for global variables page and security (#4878)
* Added best practices document

* Refactored global variables page

* added category

* move-security-page

* link

* Removed title from Security Best Practices

* Avoid empty headings

* Sentence case for headings

* Remove general best practices not related to Langflow

* Add bulleted list instead of numbered list

* changed default secret locations to use the default secret key locations

* Add periods on end of sentences

* Changed title to be imperative

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2024-12-02 19:32:57 +00:00
Eric Hare
19d2974904
feat: Support for Autodetect in AstraDBVectorStore settings (#4869)
* feat: first pass at autodetect updates

* [autofix.ci] apply automated fixes

* Fully support autodetect

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-02 16:37:14 +00:00
Phil Miesle
269bc8fa63
allowing Server File Path to be Message or Data (#4995)
* allowing Server File Path to be Message or Data

* [autofix.ci] apply automated fixes

* Ruff check updates

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
2024-12-02 16:27:48 +00:00
Cristhian Zanforlin Lousa
4b5c956dbe
feat: add NvidiaIcon component to support dark mode (#4994)
*  (Nvidia): Add support for dark mode in Nvidia icon by using useDarkStore hook to determine fill color based on dark mode state

* ♻️ (index.tsx): remove unnecessary console.log statement from CustomInputPopover component
2024-12-02 16:17:39 +00:00
dependabot[bot]
6f8eaf3c13
build(deps): bump astral-sh/setup-uv from 3 to 4 (#4975)
build(deps):(deps): bump astral-sh/setup-uv from 3 to 4

Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 3 to 4.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](https://github.com/astral-sh/setup-uv/compare/v3...v4)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  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>
2024-12-02 12:35:28 +00:00
dependabot[bot]
b8e52f18b5
build(deps):(deps): bump autofix-ci/action from dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a to ff86a557419858bb967097bfc916833f5647fa8c (#4973)
build(deps):(deps): bump autofix-ci/action

Bumps [autofix-ci/action](https://github.com/autofix-ci/action) from dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a to ff86a557419858bb967097bfc916833f5647fa8c.
- [Release notes](https://github.com/autofix-ci/action/releases)
- [Commits](dd55f44df8...ff86a55741)

---
updated-dependencies:
- dependency-name: autofix-ci/action
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-02 12:29:53 +00:00
dependabot[bot]
cc1a5efe92
build(deps):(deps): bump Namchee/conventional-pr from 0.15.4 to 0.15.5 (#4974)
Bumps [Namchee/conventional-pr](https://github.com/namchee/conventional-pr) from 0.15.4 to 0.15.5.
- [Release notes](https://github.com/namchee/conventional-pr/releases)
- [Commits](https://github.com/namchee/conventional-pr/compare/v0.15.4...v0.15.5)

---
updated-dependencies:
- dependency-name: Namchee/conventional-pr
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-02 04:27:52 -08:00
Rodrigo Nader
2a9396d68e
Refactor youtube transcripts for proper tool mode 2024-12-01 01:16:21 -03:00
Cristhian Zanforlin Lousa
d0c93992d8
fix: prevent a glitch displaying run duration (#4951) 2024-11-30 20:08:53 +00:00
Gabriel Luiz Freitas Almeida
cd3848661a
fix: allow passing curly braces in messages to the Agent component (#4960) 2024-11-30 18:39:08 +00:00
Mike Fortman
d49a1b24b5
refactor: Feature flag custom chat icons and custom banner spacing changes to stay in sync with DataStax Langflow (#4845)
fix chat icons and custom banner spacing
2024-11-30 18:31:43 +00:00
Gabriel Luiz Freitas Almeida
ee37ce04ef
fix: Handle DataFrame serialization and export in langflow.io (#4956) 2024-11-30 18:15:03 +00:00
Gabriel Luiz Freitas Almeida
2f6e4582e8
chore: Remove HAR files from the repository (#4935) 2024-11-30 15:11:00 -03:00
Cristhian Zanforlin Lousa
ce12ac096c
feat: Add toolset component utilities and refactor tool mode handling (#4946) 2024-11-30 18:10:36 +00:00
Soham
9cee720365
fix: composio component not updating config state on refresh (#4910)
* fix: not changing config state on refresh

* [autofix.ci] apply automated fixes

* fix ruff check

* fix:reverted change in cloudflare

* fix:removed unused code

* [autofix.ci] apply automated fixes

* removed commented code

* [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>
2024-11-29 16:34:49 -05:00
Gabriel Luiz Freitas Almeida
243dd9da0c
ci: Add GitHub Actions workflow to store pytest durations once a day (#4937)
Add GitHub Actions workflow to store pytest durations

This commit introduces a new workflow that runs pytest and stores test durations. The workflow is scheduled to run daily at 6:30 UTC and includes steps for setting up the environment, restoring cache, running tests, and creating a pull request to update the test durations file automatically.
2024-11-29 21:09:13 +00:00
anovazzi1
f313bd248a
fix: Add icon SQLDatabaseComponent (#4756)
* refactor: Add icon to SpiderTool class in spider.py

* refactor: Add icon to SQLDatabaseComponent class in sql_database.py

* remove langchain icon in spider component
2024-11-29 20:50:59 +00:00
Gabriel Luiz Freitas Almeida
df7ee68210
fix: update sort logic to handle cycles when running component (#4957)
fix: handle cycle scenario by adjusting stop component logic in graph sorting

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-11-29 17:30:02 -03:00
Ítalo Johnny
22482d7258
fix: update temperature input type and set min/max values (#4939)
* fix: update input type and define its min and max values

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-29 20:02:50 +00:00
anovazzi1
a30298f0e3
Refactor: remove timeouts and update selectors in linkComponent.spec.ts (#4917)
* fix: update timeouts and selectors in linkComponent.spec.ts
2024-11-29 17:24:55 +00:00
anovazzi1
5e2becdf32
refactor: improve timeouts for textAreaModalComponent (#4926)
refactor: Improve reliability and performance of keyPairListComponent.spec.ts test
2024-11-29 17:15:38 +00:00
anovazzi1
da09c6a2a1
Refactor: inputComponent.spec.ts to improve performance (#4858)
Refactor inputComponent.spec.ts to improve performance
2024-11-29 17:06:53 +00:00
anovazzi1
fd399e9692
fix: Update promptModalComponent.spec.ts to use waitForSelector instead of waitForTimeout (#4920)
- Replaced the usage of waitForTimeout with waitForSelector in promptModalComponent.spec.ts to improve reliability and stability of the tests.
2024-11-29 16:58:26 +00:00