* 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>
♻️ (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
* 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
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.
✅ (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
## 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!
* Create PythonStructuredTool
This draft involves receiving two 'Code' types as inputs and creating a structured tool.
* Delete src/backend/base/langflow/components/experimental/PythonStructuredTool
* Create PythonCodeStructuredTool.py
* feat: Update Couchbase component to handle import errors
* chore: Update package versions in pyproject.toml and poetry.lock
* refactor: Fix encoding issue in read_text_file function
* 🐛 (parse.py): fix issue where method was always set to "post" when data or data binary was provided in curl command
* refactor: Fix string formatting in MonitorService delete_messages method
* fix: Update Couchbase import instructions in CouchbaseComponent
* refactor: Fix encoding issue in read_text_file function