Commit graph

14,536 commits

Author SHA1 Message Date
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
anovazzi1
ae7401bf7b
refactor: Improve keyPairListComponent.spec.ts test reliability and performance (#4906)
This commit refactors the keyPairListComponent.spec.ts file to improve the reliability and performance of the tests. It replaces the usage of `waitForTimeout` with `waitForSelector` to ensure that the necessary elements are present before proceeding with the test. This change enhances the stability and efficiency of the test suite.
2024-11-29 13:47:54 -03:00
anovazzi1
f8c9ac3289
Refactor: Update Data class to handle different types of text inputs (#4938)
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.
2024-11-29 13:45:30 -03:00
anovazzi1
0240315020
Refactor: improve dropdownComponent (#4855)
Refactor dropdownComponent.spec.ts to improve code readability and reliability
2024-11-29 15:57:21 +00:00
Ítalo Johnny
3ed44430ef
test: re-enable unit test (#4455) 2024-11-29 13:23:50 +00:00
Gabriel Luiz Freitas Almeida
c99f2a35bd
fix: adds better boolean check for DataFrame and fixes output display (#4933)
* feat: Add DataFrameInput to inputs module

* feat: add DataFrame support and refactor array processing

* feat: add truth value testing for DataFrame class

* refactor: remove Python 2 compatibility method from DataFrame class
2024-11-28 17:58:50 -03:00
anovazzi1
438c3afdc9
Improve test reliability and performance in toggleComponent.spec.ts (#4927)
refactor: Improve test reliability and performance in toggleComponent.spec.ts
2024-11-28 20:01:58 +00:00
Christophe Bornet
c816832b44
fix: Use async_open in a few places (#4929)
Use async_open in a few places
2024-11-28 18:06:01 +00:00
anovazzi1
877d4dc0ed
Refactor: Improve performance of sliderComponent tests (#4923) 2024-11-28 17:41:52 +00:00
anovazzi1
17560245e2
Refactor: codeAreaModalComponent.spec.ts for improved test readability and maintainability (#4928)
* refactor: Update codeAreaModalComponent.spec.ts to improve test readability and maintainability

* [autofix.ci] apply automated fixes
2024-11-28 17:33:05 +00:00
Lucas Oliveira
79e3d3f50d
fix: removed beta from current date (#4901)
* Removed beta from current date

* [autofix.ci] apply automated fixes

* refactor: improve error message handling in CloudflareWorkersAIEmbeddings

* Fix filter sidebar test

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-11-28 09:02:15 -08:00
anovazzi1
8b04954a0e
Refactor: Update TableOptions component to add data-testid attributes for buttons (#4925)
* Refactor: Update TableOptions component to add data-testid attributes for buttons

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-28 09:00:52 -08:00
Lucas Oliveira
dc87faa7a1
fix: update cards quantity (#4905)
* Fixed constants to follow new page size

* Fixed page size to be consistent with 3 columns being shown
2024-11-28 16:40:00 +00:00
Gabriel Luiz Freitas Almeida
f10dc27dfc
refactor: Remove load_from_db attribute from FIELD_FORMAT_ATTRIBUTES (#4884)
refactor: remove load_from_db attribute from template fields
2024-11-28 16:21:15 +00:00
Cristhian Zanforlin Lousa
ac69be2e8a
Fix: Disable the ComponentAsTool shortcut when the component code does not have tool_mode=True + regression tests (#4918)
 (index.tsx): Add convertTestName function to generate data-testid attribute dynamically based on display_name
🔧 (use-shortcuts.tsx): Pass hasToolMode parameter to handleToolModeWShortcut function to conditionally activate tool mode
🔧 (index.tsx): Pass hasToolMode prop to NodeToolbarComponent to enable/disable tool mode functionality
🔧 (Vector Store.spec.ts): Import and use extractAndCleanCode function to extract and clean code content
🔧 (general-bugs-component-as-tool-shortcut.spec.ts): Import and use extractAndCleanCode function to extract and clean code content
📝 (extract-and-clean-code.ts): Add utility function extractAndCleanCode to extract and clean code content from HTML page
2024-11-28 16:14:54 +00:00
anovazzi1
89e2224158
Refactor: update keyPairListComponent.spec.ts to improve test reliability and performance (#4874)
Refactor keyPairListComponent.spec.ts to improve test reliability and performance
2024-11-28 16:03:13 +00:00
Lucas Oliveira
652de10e9d
fix: edit toggle size to be consistent (#4903)
Fix editNode toggle side to be consistent
2024-11-28 15:45:09 +00:00
anovazzi1
e777e397b9
Refactor: update nestedComponent test to improve performance (#4919)
fix: update nestedComponent test to use explicit timeouts

The nestedComponent test was updated to use explicit timeouts when waiting for certain elements to appear. This ensures that the test waits for the elements to be present before proceeding, preventing any potential race conditions or flakiness in the test results.
2024-11-28 11:58:04 -03:00
anovazzi1
29e5ddc0f6
fix: Update NodeToolbarComponent to use setErrorData instead of setNoticeData (#4892)
Refactor: Update NodeToolbarComponent to use setErrorData instead of setNoticeData
2024-11-28 14:30:07 +00:00
Gabriel Luiz Freitas Almeida
712a43958c
fix: updates file size limit to use middleware and add tests for uploads (#4883) 2024-11-28 12:25:26 +00:00
Lucas Oliveira
1ec1a704dd
fix: add padding to global variables input (#4900)
* Fixed padding for badges on input component

* Removed border from emerald badge
2024-11-28 04:15:05 -08:00
Lucas Oliveira
42f8c4b20f
fix: update minimized component outdated design (#4896)
* Fix nodeStatus to show only when showNode is true

* Removed unused classes and made update not appear wrong on minimized components
2024-11-28 04:06:23 -08:00
Lucas Oliveira
2eec720a0c
fix: auto fix starter projects (#4907)
auto fix starter projects
2024-11-28 04:05:44 -08:00
Luis Felipe Salazar Ucros
cfc5365b73
feat: add sambanova component (#4908)
* feat: add sambanova component

* update param name

* add multimodal models

* feat: add sambanova icon

* feat: add sambanova

* feat: format

* feat: add sambanova import

* feat: add sambanova

* feat: add sambanova docs
2024-11-28 04:05:32 -08:00
Cristhian Zanforlin Lousa
109b1acd03
docs: standardize environment variable configuration instructions in authentication docs (#4880)
* 📝 (configuration-authentication.md): Improve formatting and readability of authentication configuration documentation. Add note recommending the use of a .env file for setting variables for security and maintainability.

* remove-export-note

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2024-11-28 01:34:24 +00:00
Siavash Safi
5307f0683f
feat: add cloudflare workers ai embeddings (#3697) 2024-11-28 00:45:48 +00:00
Eric Hare
e38af369e5
fix: Use global var if available for api endpoint (#4909)
* fix: Use global var if available for api endpoint

* Update astradb.py
2024-11-28 00:39:23 +00:00
Mendon Kissling
7e7fe19f4f
docs: send image file to the api endpoint (#4902)
* send-image-file

* env-var

* env-var

* Apply suggestions from code review

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

* flow-id

* clearer-flow-id

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2024-11-27 17:10:29 -05:00
Eric Hare
6902f1611d
fix: Successfully return agents in the Sequential Crew Component (#4899)
* fix: return the agents list in the crew code

* fix: return the agents list in the crew code

* Update crew.py
2024-11-27 13:29:18 -08:00
Gabriel Luiz Freitas Almeida
e6ebe7e206
feat: Add DataFrameInput and refactor DataSet references (#4898)
* refactor: rename DataSet to DataFrame

* feat: add DataFrameInput type and update InputTypes definition

* feat: add DataFrame type to CUSTOM_COMPONENT_SUPPORTED_TYPES

* refactor: replace DataSet with DataFrame in schema and tests
2024-11-27 21:14:04 +00:00
Cristhian Zanforlin Lousa
8fba3e1e3d
Fix: Unable to Click on Prompt in UI when It is empty and add regression test (#4904)
📝 (sanitizedHTMLWrapper/index.tsx): Update className from "m-1" to "m-1 w-full" for better styling
 (generalBugs-prompt.spec.ts): Add test for user to edit an empty prompt in the application
2024-11-27 21:04:47 +00:00
Lucas Oliveira
2f629c63a6
fix: make shortcut change work for shortcuts with two words, added sidebar shortcut, fix categories order (#4831)
* Removed sidebar shortcut

* Fixed restore default shortcut

* Added new shortcut and fixed the freezePath one

* Added shortcut to sidebar opening

* Added shortcut_mod for correct restore, added shortcut for sidebar

* Fixed freezePath shortcut name

* Refactored the shortcutName get to get the correct shortcut

* Added new toggleSidebar and fixed freezePath name

* Fix categories order

* Fix custom_component not showing the correct empty results

* Add toCamelCase function

* Refactor shortcut to work with more than one word

* Removed unused console.log

* fix ctrl not appearing
2024-11-27 20:49:42 +00:00
Christophe Bornet
eb46bd4606
fix: Fix get_default_folder_id (#4893)
Fix get_default_folder_id
2024-11-27 12:41:28 -08:00
anovazzi1
8f68222b15
Refactor: improve inputListComponent to enable deletion of the first item (#4890)
* Refactor inputListComponent to improve enable deletion of the first item

* [autofix.ci] apply automated fixes

* Refactor codeAreaModalComponent.spec.ts to improve test reliability and remove unnecessary code
2024-11-27 20:36:30 +00:00
anovazzi1
49079098b4
fix: Update host_url in getWidgetCode function (#4894)
Refactor: Update host_url in getWidgetCode function
2024-11-27 20:23:24 +00:00
anovazzi1
b9f312cfb8
Refactor: update chatInputOutput.spec.ts to improve test reliability and performance (#4853)
Refactor chatInputOutput.spec.ts to improve test reliability and performance
2024-11-27 12:16:52 -08:00
TarunAdvaithK
2a434f6844
feat: Add combinatorial reasoning as a component (#4782)
* Add Icosa's Combinatorial Reasoner as component under tools

* Remove temporary testing tool revert unit test script

* reverting changes to locks

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* Moved combinatorial reasoner component to separate icosacomputing folder for Icosa's bundle

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-27 09:28:22 -08:00
anovazzi1
4d599590e2
Refactor: update fileUploadComponent.spec.ts to improve test reliability, performance and readability (#4856)
Refactor fileUploadComponent.spec.ts to improve test reliability and readability
2024-11-27 15:48:41 +00:00
Gabriel Luiz Freitas Almeida
ad43340a9a
chore: Update CI workflow job and step names for clarity and consistency (#4847)
Update CI workflow job and step names for clarity and consistency
2024-11-27 07:33:07 -08:00
Cezar Vasconcelos
4c35e0567a
fix: add missing component URLs in Component Maker (#4820)
* fix: missing component URLs

* add tags, gradient and icon to Custom Component Maker template

* Add descriptive error messages to project data assertions

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-11-27 15:13:15 +00:00
Thomas Kraxner
1e6ada3a3a
feat: make log format configurable (#4851)
* made logformat configurable

* [autofix.ci] apply automated fixes

* documentation of log format env var

* log stuff at one place in documentation

* added documentation of log environment

* check for log format

* [autofix.ci] apply automated fixes

* just load log format on custom logenv

* [autofix.ci] apply automated fixes

* no more invalid whitespaces

* fixed br s with escape

* logging error in case of invalid format string

---------

Co-authored-by: Kraxner Thomas <thomas.kraxner@illwerkevkw.at>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-27 06:28:50 -08:00
Phil Miesle
2de119b8d5
feat: defaulting tool description to the flow description in Flow as Tool (#4873)
defaulting tool description to the flow description
2024-11-27 00:48:21 +00:00
Gabriel Luiz Freitas Almeida
7e88a4760b
feat: add easier initialization to DataSet (#4864)
* feat: enhance DataSet class with improved constructor and methods for better data handling

- Added custom constructor to support various input formats including lists of Data objects, dictionaries, and existing DataFrames.
- Introduced methods `add_row` and `add_rows` for adding single or multiple rows to the DataSet.
- Updated docstrings and examples for clarity and usability.
- Ensured compatibility with pandas DataFrame operations while preserving Data object structures.

* test: add comprehensive tests for DataSet initialization and row operations

* feat: add DataSet class to schema module

* refactor: simplify DataSet initialization and improve data validation
2024-11-27 00:01:08 +00:00