Commit graph

14,665 commits

Author SHA1 Message Date
Christophe Bornet
b692ef7848
fix: Execute event manager callbacks in asyncio thread (#5150)
Execute event manager callbacks in asyncio thread
2024-12-09 16:23:02 +00:00
anovazzi1
bb703f6e0d
refactor: Improve page loading and element visibility in regression tests (#5134)
* fix: Improve page loading and element visibility in regression tests
2024-12-09 16:10:17 +00:00
anovazzi1
f673630fd4
Refactor: Improve wait times and selectors in sticky-notes.spec.ts (#5100)
* refactor: Improve wait times and selectors in sticky-notes.spec.ts
2024-12-09 16:01:12 +00:00
anovazzi1
c6ddb2905f
Refactor: update NodeDescription component to conditionally render character limit message (#5037)
* Refactor: Update NodeDescription component to conditionally render a character limit message

* [autofix.ci] apply automated fixes

* Refactor: update NoteNode inputClassName to remove unnecessary ring and focus styles (#5038)

refactor: Update NoteNode inputClassName to remove unnecessary ring and focus styles
Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2024-12-09 15:44:32 +00:00
anovazzi1
2c01cd5195
refactor: Remove unnecessary code for handling Enter (#5041)
refactor: Remove unnecessary code for handling Enter key in NodeDescription component

Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2024-12-09 15:34:40 +00:00
anovazzi1
4a4806d638
Refactor: Remove unnecessary code and comments in integration-side-bar.spec.ts (#5073)
fix: Remove unnecessary code and comments in integration-side-bar.spec.ts
2024-12-09 05:04:37 -08:00
Christophe Bornet
d58530c358
feat: Activate blockbuster Lock.aquire detection (#5157)
Activate blockbuster Lock.aquire detection

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-12-09 04:59:50 -08:00
gitworkflows
267c08bc07
fix(Dockerfile): standardize casing for 'FROM' and 'AS' keywords (#5159)
- Updated the Dockerfile to use consistent uppercase casing for 'FROM' and 'AS'.
- Resolved 'FromAsCasing' warnings that were flagged during the Docker build.
- Improves readability and adheres to Dockerfile best practices.

This change ensures a cleaner build process with no warnings.
2024-12-09 04:47:59 -08:00
anovazzi1
c9bedb21c9
refactor: Improve wait time for modals and elements in regression tests (#5141)
* feat: Improve wait time for modals and elements in regression tests

- Increase the timeout for waiting for modals and elements in regression tests to 3000ms.
- Replace the usage of `waitForTimeout` with `waitForSelector` for better reliability.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-09 12:18:57 +00:00
Christophe Bornet
9fb59855a3
fix: Fix to_frontend_node modifying input components (#5116)
Fix to_frontend_node modifying input components
2024-12-09 11:09:17 +00:00
Christophe Bornet
abf38e96e2
feat: Add sqlite to blocking call detection (#4376) 2024-12-09 11:48:48 +01:00
Christophe Bornet
c0b25fa651
ref: Remove some useless asyncio.to_thread (#5149)
Remove some useless asyncio.to_thread
2024-12-08 20:13:08 +01:00
Christophe Bornet
0b39554795
ref: Apply ruff rule RUF052 (#5089)
Apply ruff rule RUF052
2024-12-08 11:51:02 +00:00
Christophe Bornet
60b1927cc5
ref: Apply ruff rule TC006 (#5088)
Apply ruff rule TC006
2024-12-08 11:35:00 +00:00
Christophe Bornet
2f0c67e851
ref: Bump ruff version to 0.8 (#5087) 2024-12-08 11:16:06 +00:00
Christophe Bornet
b98614ca5b
ref: Apply ruff rules FURB110 and RUF046 (#5093)
Apply rules FURB110 and RUF046
2024-12-08 11:05:07 +00:00
Christophe Bornet
9270f1a0f8
ref: Remove sync get_session and DbSession (#5146)
Remove sync get_session and DbSession
2024-12-08 10:27:19 +00:00
anovazzi1
d338a3e86f
Refactor: Remove unnecessary wait times in store-shard-0.spec.ts (#5105) 2024-12-08 01:30:55 +00:00
Christophe Bornet
624a2dde5d
ref: Use AsyncSession in some tests (#5151) 2024-12-08 01:09:43 +00:00
anovazzi1
f97a326023
Refactor: Improve wait times and visibility checks in store-shard-3.spec.ts (#5108)
* Refactor: Improve wait times and visibility checks in store-shard-3.spec.ts
2024-12-07 21:44:13 -03:00
anovazzi1
b682a26c26
Refactor: Improve wait times and visibility checks in twoEdges.spec.ts (#5109) 2024-12-07 17:05:31 +00:00
anovazzi1
c26a2d82e8
Refactor: Improve wait times in regression test (#5137)
* fix: Improve wait times in regression test

Improve the wait times in the regression test to ensure that the necessary elements are loaded before interacting with them. This prevents potential timing issues and improves the reliability of the test.

Refactor the test code to use `waitForSelector` instead of `waitForTimeout` to wait for the modal title and sidebar custom component button to appear. Increase the timeout for the sidebar custom component button to 30 seconds to allow for slower loading times.

Also, add a comment to indicate that the wait for the animation to propagate is intentional.

This commit addresses the issues identified in the regression test and improves the overall stability of the test suite.
2024-12-07 16:54:27 +00:00
anovazzi1
d55b405a6c
refactor: Remove unnecessary wait timeouts in chatInputOutputUser-shard-2.spec.ts (#5127)
* chore: Remove unnecessary wait timeouts in chatInputOutputUser-shard-2.spec.ts
2024-12-07 15:30:48 +00:00
anovazzi1
aa7ebb4ae3
Refactor: remove timeouts from generalbugs-shard10 (#5140)
remove timeouts from generalbugs-shard10
2024-12-07 15:18:44 +00:00
anovazzi1
979aaa7cae
refactor: Remove unnecessary wait for timeout in Travel Planning Agent test (#5143)
* refactor: Remove unnecessary wait for timeout in Travel Planning Agent test
2024-12-07 14:54:27 +00:00
anovazzi1
7114061f67
refactor: Improve page loading and element visibility in regression tests (#5136)
fix: Improve page loading and element visibility in regression tests
2024-12-07 04:14:08 +00:00
anovazzi1
6d252d34c6
Refactor: improve YouTube Transcripts integration tests (#5129)
fix: improve YouTube Transcripts integration tests

Improve the integration tests for the YouTube Transcripts feature by adding explicit wait conditions for modals and elements. This ensures that the tests are more reliable and less prone to timing issues.
2024-12-07 03:43:23 +00:00
anovazzi1
47d7004fc0
Refactor: Improve test stability and reliability (#5135)
fix: Improve test stability and reliability

Improve the stability and reliability of the tests in the generalBugs-shard-2.spec.ts file.
- Use waitForSelector instead of waitForTimeout to ensure that the modal and data elements are present before proceeding.
- Increase the timeout value to 3000 milliseconds for better reliability.
- Add a comment to indicate the purpose of the timeout.

This commit addresses the issue of intermittent failures in the tests and enhances the overall test stability.
2024-12-07 03:19:17 +00:00
anovazzi1
39335a7e47
refactor: Improve flow creation and search performance in test (#5139)
feat: Improve flow creation and search functionality

Improve the flow creation and search functionality by adding explicit wait conditions for modals and search results. This ensures that the necessary elements are loaded before interacting with them, preventing potential errors or timeouts.

Refactor the code in the 'generalBugs-shard-8.spec.ts' file to include the following changes:
- Add a timeout of 3000ms for the modal title selector
- Add a timeout of 3000ms for the dataAPI request selector

These changes enhance the reliability and stability of the tests in the 'generalBugs-shard-8.spec.ts' file.
2024-12-07 03:07:28 +00:00
anovazzi1
589358a7bd
Refactor: Improve wait times and visibility checks in stop-button-playground.spec.ts (#5104)
* Refactor: Improve wait times and visibility checks in stop-button-playground.spec.ts
2024-12-07 02:57:04 +00:00
anovazzi1
5c8bab57f1
Refactor: improve starter project modal test (#5098)
Refactor: Add search input for templates in TemplateContentComponent
2024-12-07 02:47:30 +00:00
anovazzi1
fa2ac6b9f0
Refactor: update remove unnecessary wait timeouts in regression test (#5132)
* refactor: Remove unnecessary wait timeouts in regression test
2024-12-07 02:36:50 +00:00
anovazzi1
56bcb85e03
fix: Improve test and add improve timeouts (#5142)
* fix: Improve  test and add missing timeouts

The test in the generalBugs-shard-13.spec.ts file was improved to include missing timeouts for better stability and reliability.
2024-12-07 02:25:40 +00:00
anovazzi1
678834dae8
refactor Improve Vector Store test (#5144)
* fix: Improve Vector Store test and use AsyncSession in memory
2024-12-07 01:26:00 +00:00
anovazzi1
3f4c8fb3c8
refactor: Improve page loading and element selection in DuckDuckGo integration test (#5128)
* fix: Improve page loading and element selection in DuckDuckGo integration test
2024-12-07 00:13:12 +00:00
anovazzi1
4ff748876d
feature: Add interactive reader to dictAreaModal (#5122)
* feat: add interactive reader to dictAreaModal
2024-12-06 23:56:46 +00:00
anovazzi1
70bb9cbb29
Refactor: remove unnecessary wait in component-as-tool-shortcut test (#5130)
refactor: Remove unnecessary wait in component-as-tool-shortcut test
2024-12-06 23:47:00 +00:00
anovazzi1
479cc3fa64
Refactor: remove unnecessary wait timeouts in regression test (#5133)
* refactor: Remove unnecessary wait timeouts in regression test
2024-12-06 23:36:44 +00:00
anovazzi1
5a42c82fc4
refactor: Remove unnecessary wait timeouts in chatInputOutputUser-shard-1.spec.ts (#5126)
fix: Remove unnecessary wait timeouts in chatInputOutputUser-shard-1.spec.ts
2024-12-06 23:21:03 +00:00
Vinícios Batista da Silva
3e5ab7e0f5
docs: enhance Google Cloud Vertex AI setup guide for Langflow (#4745)
* docs: enhance Google Cloud Vertex AI setup guide for Langflow

- Add detailed step-by-step instructions for creating a Google Cloud project
- Include instructions for creating and configuring a Service Account
- Add steps for generating and downloading a JSON key file
- Provide an example of the JSON key file structure
- Include instructions for enabling the Vertex AI API
- Add steps for configuring credentials in Langflow components
- Include relevant screenshots and GIFs to illustrate each step visually
- Improve overall clarity and completeness of the setup process

Co-authored-by: Vinícios Batista da Silva <vinicios.batsi@gmail.com>

* feat: Update Google Cloud Vertex AI integration documentation for clarity and structure

* remove-unused-images

* docs: update Google Cloud Vertex AI integration setup instructions

* docs: update Google Cloud Vertex AI integration setup instructions

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2024-12-06 22:35:27 +00:00
VICTOR CORREA GOMES
24ccb35a6b
feat(components): Add Webhook Icon to Component Definition (#5010)
* style: Add icon property to WebhookComponent class

* [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-06 11:38:23 -08:00
Rodrigo Nader
dee1439c78
feat: add tool mode to components that store and retrieve message history (#5110)
* add tool mode to components that store and retrieve message history

* [autofix.ci] apply automated fixes

* improve syntax

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2024-12-06 18:16:04 +00:00
Rodrigo Nader
121b7c6e39
feat: Add tool mode to the prompt component (#5113)
* Add tool mode to the prompt component

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2024-12-06 18:03:49 +00:00
Cristhian Zanforlin Lousa
6d83bc13b4
fix: improve vector store test (#5121)
* 📝 (.github/changes-filter.yaml): Add new path to starter-projects test category
🔧 (index.tsx, inputFileComponent): Add data-testid attribute to input element for testing purposes
🔧 (index.tsx, popover): Increase padding-right value for password input field
🔧 (Vector Store.spec.ts): Update test to click on correct element with data-testid attribute for file upload
🔧 (Vector Store.spec.ts): Remove redundant code related to filling input field and clicking on button

* 🔧 (index.tsx): Update styles for inputComponent popover to improve layout and alignment.
2024-12-06 16:33:47 +00:00
Christophe Bornet
79b03ba133
fix: Use AsyncSession in memory (#4665) 2024-12-06 16:25:59 +00:00
Lucas Oliveira
156597d3d1
fix: redirect to previous page after login (#5102)
* Added redirect handling to autologin and Protected Route

* Redirect after login on ProtectedLoginRoute
2024-12-06 15:01:13 +00:00
Cristhian Zanforlin Lousa
b2691eebce
feat: enhance slider component with labels and improved input handling (#5065)
* 📝 (openai.py): Update temperature slider range from 0-1 to 0-2 with step 0.01 for more precise control
📝 (sliderComponent/index.tsx): Update step value for slider component from 0.1 to 0.01 for smoother and more accurate adjustments
📝 (sliderComponent/index.tsx): Update MAX_LABEL from "Wild" to "Creative" for better semantic representation
📝 (sliderComponent/index.tsx): Add cursor-grabbing style when slider thumb is being grabbed to improve user experience

* 📝 (sliderComponent/index.tsx): improve styling and structure of the SliderComponent by refactoring the display value element to use a div container with appropriate classes and styles.

* 📝 (App.css): Add styles to hide spin buttons in input[type=number] elements for better UX
🔧 (sliderComponent/index.tsx): Add input element to allow users to directly edit the slider value for improved user experience

*  (slider-labels.tsx): Add SliderLabels component to display min and max labels with icons in SliderComponent for better user experience
📝 (index.tsx): Remove sliderInput prop and refactor SliderComponent to improve code readability and maintainability
🔧 (applies.css): Add styling for input-slider-text class to improve consistency in SliderComponent styling

* 📝 (applies.css): update hover:ring value to use variable hover:ring-slider-input-border for consistency and maintainability
📝 (index.css): add variable --slider-input-border to define the color value for slider input border
🔧 (tailwind.config.mjs): add slider-input-border custom property to map to the defined color value in the CSS variables

*  (build-color-by-name.ts): add function to dynamically build color based on input values to customize UI
 (get-min-max-value.ts): add function to get minimum or maximum value based on input constraints
🔧 (index.tsx): update import path for getMinOrMaxValue function
🔧 (index.tsx): add buildColorByName function to dynamically set thumb color based on percentage
🔧 (index.tsx): add logic to dynamically set background color gradient based on thumb color and percentage
🔧 (index.tsx): add logic to dynamically set thumb background color based on percentage and color calculation
2024-12-06 13:02:59 +00:00
Cristhian Zanforlin Lousa
78081be782
chore: update import paths and button icon styles in table component (#5094)
📝 (frontend): update import paths to use absolute paths for better module resolution
🔧 (frontend): refactor TableOptions component to improve styling and conditional class application
2024-12-06 12:50:25 +00:00
anovazzi1
9654ce7430
improve: improve pythonGenerationCodeAPI (#5080)
fix: update flow creation test to wait for modal title

The code changes update the flow creation test in the pythonApiGeneration.spec.ts file. The test now waits for the modal title to appear before proceeding. This ensures that the test is more reliable and avoids any timing issues.
2024-12-06 01:28:16 +00:00
anovazzi1
d92538e4e1
Refactor: Update wait selectors in outdated-actions.spec.ts (#5078)
* Refactor: update wait selectors in outdated-actions.spec.ts
2024-12-06 01:14:08 +00:00