Commit graph

11,423 commits

Author SHA1 Message Date
cristhianzl
84df4fd8e4 ♻️ (authContext.tsx): remove unused import and comment out unused code
🐛 (flowSettingsModal): fix potential null reference error in useEffect dependencies
2024-06-13 09:33:03 -03:00
ogabrielluiz
e98e3f5387 chore: Update package versions in pyproject.toml files 2024-06-13 01:08:28 -03:00
Jordan Frazier
061809a94e
[feat] add embedding dimensions parameters to openai models (#2146)
Add embedding dimensions parameters to openai models
2024-06-12 21:05:05 -07:00
Ítalo Johnny
5ce1192a1b
Improve makefile [edited] (#2141)
* ignore sqlite tmp files

* update many dependencies to be optional

* improve makefile help messagem

* chore: Update langflow-base dependency to use local path for development

* change postgres to mandatory dependency

* improve makefile readability

* Revert update many dependencies to be optional

This reverts commit 80780565df5bc63632e6971054670cee467542f9.

---------

Co-authored-by: ogabrielluiz <gabriel@langflow.org>
2024-06-12 21:04:13 -07:00
cristhianzl
b72ee8fab6 Merge branch 'dev' of https://github.com/langflow-ai/langflow into dev 2024-06-12 19:43:49 -03:00
cristhianzl
45963ffce0 ♻️ (index.tsx): remove unnecessary trailing commas to improve code readability
🐛 (index.tsx): fix conditional rendering of Download option in toolbar
 (ProfilePictureForm): add setLoading(false) after updating state to ensure loading state is reset
2024-06-12 19:43:41 -03:00
italojohnny
34ca9a6a00 Revert "Merge branch 'dev' of https://github.com/langflow-ai/langflow into dev"
This reverts commit 32f67f8dba, reversing
changes made to 716bd2f65b.
2024-06-12 19:22:49 -03:00
cristhianzl
32f67f8dba Merge branch 'dev' of https://github.com/langflow-ai/langflow into dev 2024-06-12 17:51:18 -03:00
cristhianzl
716bd2f65b Refactor code to handle artifacts in chat messages and improve error handling 2024-06-12 17:50:51 -03:00
italojohnny
12e36bc5d5 remove tmp sqlite files from version control 2024-06-12 16:37:31 -03:00
cristhianzl
148e7fb4ae ]Merge branch 'dev' of https://github.com/langflow-ai/langflow into dev 2024-06-12 15:49:09 -03:00
cristhianzl
5c9af97bb1 Refactor chatView component to handle artifacts in chat messages 2024-06-12 15:47:15 -03:00
cristhianzl
ca0f5112bc refactor: Fix condition for required fields in MessageModel 2024-06-12 15:47:03 -03:00
italojohnny
20405ffc01 change default openai model to gpt3.5 2024-06-12 15:21:44 -03:00
anovazzi1
fdf44f6bc8
Refactor chatView component and improve error handling (#2144)
* Refactor chatView component to handle artifacts in chat messages, fixing bug on streamed messages after refresh

* Improve error handling and error messages in CustomNodes hooks to provide more informative and user-friendly error messages. This ensures that users are aware of any unexpected errors that occur while updating or adding components, and prompts them to try again. This change also aligns with recent improvements in error handling across the codebase.

* ♻️ (utils.ts): remove unnecessary trailing commas in function parameters

*  (frontend): add constants for error messages in CustomNodes hooks
♻️ (frontend): refactor error handling in CustomNodes hooks to use constants

* feat: Add constants for error messages in CustomNodes hooks

Refactor error handling in CustomNodes hooks to use constants for error messages. This improves code readability and maintainability, ensuring consistent error messages are displayed to users. This change aligns with recent improvements in error handling across the codebase.

* refactor: Improve error handling and error messages in CustomNodes hooks

* refactor: Improve error handling and error messages in CustomNodes hooks

* refactor: Improve error handling and error messages in CustomNodes hooks

* refactor: Add missing click event in codeAreaModalComponent.spec.ts

* refactor: Update cURL code generation to use icon-Copy test ID for button click

* refactor: Improve error handling and error messages in CustomNodes hooks

* refactor: Remove unnecessary click event in logs.spec.ts

* refactor: Fix XPath selectors in textInputOutput.spec.ts

* fix python api test

* refactor: Update cURL code generation to use icon-Copy test ID for button click

* fix save component

* refactor: Update API key selection in userSettings.spec.ts

* refactor: Update promptModalComponent.spec.ts

* refactor: Update chatInputOutput.spec.ts for zoom out functionality

* refactor: Add return_message option to ChatInput build_config

* fix streaming

* update example

* update example name

* refactor: Update chatInputOutputUser.spec.ts test to improve readability and maintainability

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
2024-06-12 13:05:31 -03:00
cristhianzl
e86e698aa0 Merge branch 'dev' of https://github.com/langflow-ai/langflow into dev 2024-06-12 12:43:42 -03:00
cristhianzl
191fae732c ♻️ (GenericNode): refactor to use optional chaining for template fields
♻️ (count-handles): refactor to use optional chaining for template fields

♻️ (get-nodes-with-default-value): refactor to use optional chaining

♻️ (nodeToolbarComponent): refactor to use optional chaining for template fields

💡 (utils.ts): remove unnecessary trailing commas in function parameters to improve code readability and consistency
2024-06-12 12:43:35 -03:00
ogabrielluiz
e3d2b9ff28 chore: Update package versions in pyproject.toml and poetry.lock 2024-06-12 12:26:36 -03:00
cristhianzl
b48caa0b82 fix outdated component on memory conversation 2024-06-12 12:10:50 -03:00
cristhianzl
7fc92e2e9c 🐛 (flowSettingsModal): set isSaving to false on error to fix loading state 2024-06-12 10:59:22 -03:00
Nicolò Boschi
968ec28fbc
docker: force python version to 3.12.3 (#2148)
* docker: force python version to 3.12.3

* also fixes pydantic

* remove ci build - too slow

* use lock file for deps

* use poetry.lock

* use poetry.lock
2024-06-12 06:09:46 -07:00
Nicolò Boschi
9261bc0a6f
docker: add customizable port for frontend image (#2147) 2024-06-12 06:08:23 -07:00
ming
121b55231c
use Astra DB Application Token for all Astra token's display_name (#2143) 2024-06-11 16:34:54 -07:00
Lucas Oliveira
79e52d49b1 Changed info buttons to have Help cursor 2024-06-11 18:44:24 -03:00
Lucas Oliveira
1b23952026 Removed status when not built, adjusted Loading to have a Size 2024-06-11 18:42:34 -03:00
Gabriel Luiz Freitas Almeida
6716a90c0f
Update .gitignore and refactor ChatInput and ChatOutput (#2140)
This pull request includes two changes. First, the `.gitignore` file is
updated to include `*.db-shm` and `*.db-wal` files. Second, the
`ChatInput` and `ChatOutput` classes are refactored to include a new
`return_message` parameter. This parameter allows the caller to specify
whether they want the message to be returned as a `Message` object or
just the message text. These changes improve the functionality and
maintainability of the code.
2024-06-11 12:04:32 -07:00
ogabrielluiz
d92cc3bb50 chore: Update test_endpoints.py to use "result" instead of "text" in assertions 2024-06-11 16:03:51 -03:00
ogabrielluiz
f7b1040562 chore: Update package versions in pyproject.toml and poetry.lock 2024-06-11 15:55:14 -03:00
ogabrielluiz
4e6abc732b Merge remote-tracking branch 'origin/dev' into fix_chat 2024-06-11 15:51:18 -03:00
ogabrielluiz
e0cdd17811 Refactor ChatInput and ChatOutput to include return_message parameter 2024-06-11 15:50:07 -03:00
ogabrielluiz
15faceceb0 chore: Update .gitignore to include *.db-shm and *.db-wal files 2024-06-11 15:49:58 -03:00
cristhianzl
6c081d04d3 Merge branch 'dev' of https://github.com/langflow-ai/langflow into dev 2024-06-11 15:47:04 -03:00
cristhianzl
742f93e229 💡 (index.tsx): remove trailing commas for cleaner code formatting
 (tests): remove unnecessary keyboard press and fix formatting in chatInputOutputUser.spec.ts
 (tests): update selector for copy button in curl_api_generation.spec.ts
 (tests): fix formatting in intComponent.spec.ts

 (tests): update end-to-end tests for improved stability and clarity

- Remove redundant "Close" button clicks in logs and textInputOutput tests
- Add "more-options-modal" click in promptModalComponent and saveComponents tests
- Replace role-based selectors with test ID selectors for "Copy Code" button
- Update API key section text in userSettings test for consistency
2024-06-11 15:46:59 -03:00
Rodrigo
b7a63154c3 chore: Update ChatInput.py to include Text import and modify return type 2024-06-11 15:27:57 -03:00
Lucas Oliveira
5dd0df05a0 Changed status circle to icon 2024-06-11 15:16:26 -03:00
Lucas Oliveira
4f47bf11cb Formatted flows 2024-06-11 15:11:45 -03:00
Lucas Oliveira
20f4620860 Changed .gitignore 2024-06-11 15:11:27 -03:00
Gabriel Luiz Freitas Almeida
aa94e42e0d
Release -> Output Inspection, Session Management, General Bug Fixing and UI Improvements (#2104) 2024-06-11 09:08:24 -07:00
ogabrielluiz
901e22de66 chore: Update package versions in pyproject.toml and poetry.lock 2024-06-11 13:05:48 -03:00
ogabrielluiz
60f446cb76 Refactor memory components to use updated Record schema 2024-06-11 13:05:48 -03:00
ogabrielluiz
3a3055479f Fix streaming 2024-06-11 13:05:48 -03:00
Lucas Oliveira
8e50859222 Fixed package lock and added cursor pointer to status icon 2024-06-11 13:03:00 -03:00
ogabrielluiz
2b2812f4df Merge remote-tracking branch 'origin/dev' into cz/mergeAll 2024-06-11 12:49:47 -03:00
Lucas Oliveira
4cf5f3ae0f Merge remote-tracking branch 'origin/dev' into cz/mergeAll 2024-06-11 12:46:51 -03:00
ming
ad23cac117
Improve SQLite performance (#2111)
* tune sqlite upon connection

* catch operational error

* use wal for journal_mode for faster performance
2024-06-11 08:44:48 -07:00
ogabrielluiz
89faa251ef chore: Update package versions in pyproject.toml and poetry.lock 2024-06-11 12:43:44 -03:00
Lucas Oliveira
d7fd36fade
Extensive UI Enhancements, Bug Fixes, and Code Refactoring (#2129)
## Pull Request Description

This pull request includes a comprehensive set of changes aimed at
improving the user interface, fixing bugs, and refactoring the code for
better maintainability and performance. The modifications encompass a
wide range of components and functionalities within the application.

## Changes Made

### Node Interaction
- Changed click to double-click when editing node information.
- Added node play on hover of entire node again.

### Modal Improvements
- Removed function that prevents `esc` on `codeAreaModal`.
- Changed `Name` to `Field Name` on `editNodeModal`.
- Refactored `BaseModal` and fixed overflow issues in various modals.
- Fixed buttons not submitting on `baseModal`.
- Fixed submit action on `baseModal` and state issue on Edit Node Modal.
- Fixed modal size and removed default size definition.
- Added input component to DOM with an event listener.

### UI Enhancements
- Fixed border being cut on Node Settings dropdown component.
- Fixed scrollbar colors and dropdown color when not global.
- Changed loading color and images to lighter ones, added animation to
grid.
- Fixed header profile image being shrunk and header alignment.
- Fixed padding and margin issues on buttons.
- Added gap to button and grabbing cursor when grabbing node.
- Added Status button and adjusted positioning of Node Header elements.
- Removed hover background from outline badge.

### Bug Fixes
- Fixed unused `console.log` statements and reset grid `console.log`.
- Fixed bug on `dictAreaModal` where state is kept without saving.
- Fixed dictionary component not being full width.
- Fixed scrollIntoView not always working.
- Fixed update shortcut not working.
- Fixed accordion not being disabled with no data on output.
- Fixed Memories badge overflow.
- Disabled output if it’s not valid.
- Removed pagination when it’s on the left side and fixed bug on opening
pagination.
- Fixed global variables not setting on EditNodeModal.
- Fixed Add New Variable button not working at the dropdown.

### Refactoring
- Updated `ChromaComponent` to show status.
- Refactored advanced options in `ChatComponent`, `URLComponent`, and
other components.
- Improved handling of `message.text` in `chat.py` to prevent errors.

### New Features
- Added image preloading hook and suspense image component.
- Added `EmbedComponent` and `PromptComponent` to langflow components.
- Added `Message` and `StoreMessage` components.

### Code Cleanup
- Removed unused classes and scale on hover.
- Added type definitions to global variables.
- Increased route history slice size for better navigation.

### Merge Details
- Merged multiple branches including `origin/cz/mergeAll` into
`fix/minor_ui_adjustments`.

### Contributors
- @lucaseduoli
- @rodrigosnader
- @Cristhianzl

---

These changes are crucial for improving the overall functionality and
user experience of the application. Please review and merge the pull
request. Thank you!
2024-06-11 12:42:45 -03:00
Lucas Oliveira
23e25cad7a Merge remote-tracking branch 'origin/cz/mergeAll' into fix/minor_ui_adjustments 2024-06-11 12:39:08 -03:00
Lucas Oliveira
af56de33e9 Fixed padding on buttons 2024-06-11 12:35:52 -03:00
Lucas Oliveira
c13800de5f Added grabbing cursor when grabbing node 2024-06-11 12:33:15 -03:00