Commit graph

5,665 commits

Author SHA1 Message Date
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
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
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
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
Cristhian Zanforlin Lousa
d0c93992d8
fix: prevent a glitch displaying run duration (#4951) 2024-11-30 20:08:53 +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
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
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
0240315020
Refactor: improve dropdownComponent (#4855)
Refactor dropdownComponent.spec.ts to improve code readability and reliability
2024-11-29 15:57:21 +00: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
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
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
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
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
Siavash Safi
5307f0683f
feat: add cloudflare workers ai embeddings (#3697) 2024-11-28 00:45:48 +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
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
anovazzi1
5d2de860e5
Refactor: inputListComponent.spec.ts to improve test reliability and performance (#4859)
* Refactor inputListComponent.spec.ts to improve test reliability and performance

* Refactor: update intComponent tests for improved reliability and performance (#4860)

* Refactor inputListComponent.spec.ts to improve test reliability and performance

* Refactor IntComponent test to improve search reliability and performance

* Refactor test grep pattern to fix syntax error

* debuging ci

* Refactor test grep pattern to fix syntax error and improve test reliability and performance
2024-11-26 22:06:28 +00:00
anovazzi1
9158fe7e74
Refactor: improve codeAreaModalComponent.spec.ts (#4854)
* Refactor codeAreaModalComponent.spec.ts to improve readability and reliability
* [autofix.ci] apply automated fixes
2024-11-26 20:09:27 +00:00
Lucas Oliveira
fc5632af78
fix: add !important to shadcn aggrid styling (#4871)
* 📝 (App.css): add style for ag-cell class to remove internal calculated line height for better UI appearance

* 📝 (App.css): update CSS to remove internal calculated line height for specific elements in ag-grid cells

* Fix ag grid shadcn theme

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2024-11-26 13:59:01 -03:00
Cristhian Zanforlin Lousa
803b5b2c1d
css: Fix AG Grid cell line height by setting internal property to none (#4870)
* 📝 (App.css): add style for ag-cell class to remove internal calculated line height for better UI appearance

* 📝 (App.css): update CSS to remove internal calculated line height for specific elements in ag-grid cells
2024-11-26 15:59:12 +00:00
anovazzi1
f90e980cb5
Refactor: floatComponent.spec.ts for improved readability, performance, and reliability (#4857)
Refactor floatComponent.spec.ts to improve readability, performance and reliability
2024-11-26 13:09:17 +00:00
anovazzi1
52b302233b
Refactor: improve generalBugsShard test code and improve test reliability (#4835) 2024-11-26 08:16:02 -03:00
anovazzi1
d200c8aba4
refactor: remove regression test timeouts (#4837)
refactor: Remove unnecessary wait timeouts in regression test
2024-11-26 00:57:47 +00:00
anovazzi1
735729e879
refactor: Improve timeout handle in memoryChatbot test (#4821)
* improve timeout handle in memoryChatbot test

* [autofix.ci] apply automated fixes

---------

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-26 00:31:58 +00:00
anovazzi1
94ea537d6e
refactor: Improve page loading, timeout, and component interaction in Simple Agent test (#4825)
* fix: Improve page loading, timeout  and component interaction in Simple Agent test

* [autofix.ci] apply automated fixes

---------

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-25 16:24:29 -08:00
Cristhian Zanforlin Lousa
8b0c8d7b3a
fix: correct PlaygroundButton import path in flowToolbarComponent (#4841)
 (playground-button.tsx): add new PlaygroundButton component to flowToolbarComponent for interactive playground feature in the application
♻️ (index.tsx): refactor import path for PlaygroundButton component to correct directory structure in flowToolbarComponent
2024-11-26 00:08:59 +00:00
anovazzi1
534a9dc9cb
fix: Improve test reliability and performance in similarity.spec.ts (#4823) 2024-11-25 20:30:44 -03:00
anovazzi1
b9af310abf
fix: starter-project was broken in main (#4842)
* fix broken test

* ci: Enhance TypeScript test workflow with debug output and refined release condition

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-11-25 22:43:34 +00:00
Cristhian Zanforlin Lousa
043cf14fba
fix: improve node internal updates in setNodeClass function (#4836)
*  (use-handle-new-value.tsx): change the callback function to be asynchronous to introduce a delay of 500ms before updating node internals

* 🐛 (use-handle-new-value.tsx): fix setNode function call to include additional parameters for immediate update and callback function to update node internals after setting the node class.

* 🔧 (use-handle-new-value.tsx): Remove unnecessary line break to improve code readability and consistency

* 🔧 (.github/workflows/typescript_test.yml): update matrix output to ensure proper JSON formatting using jq command
2024-11-25 19:17:23 -03:00