* feat: create usePostLikeComponent hook to handle store like API
* refactor: use usePostLikeComponent hook to handle store likes
* [autofix.ci] apply automated fixes
* refactor: use mutate loading instead of managing loading with react state
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* add new test for bug on output inspection + grouped components
* [autofix.ci] apply automated fixes
* 🔧 (typescript_test.yml): increase shard count from 14 to 15 to distribute tests more evenly
🔧 (typescript_test.yml): fix syntax issues in conditional expressions
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
🐛 (use-preload-images.tsx): add null check for profilePictures to prevent errors when profilePictures is undefined
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
* 🐛 (reactflowUtils.ts): fix addVersionToDuplicates to exclude the updated flow from existing names to prevent naming conflicts
* ✅ (menuBar): add data-testid to flow configuration button for testing
✅ (sideBarFolderButtons): add data-testid to delete folder button for testing
✅ (folders.spec.ts): update test to use new data-testid for delete folder button
✅ (generalBugs-shard-4.spec.ts): add new end-to-end test for flow operations
---------
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Refactor the filtering logic in the useFlowStore hook to optimize the performance. The code changes ensure that the nextVertices array is filtered correctly by excluding vertices that already exist in the last layer.
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
* feat: optimize filtering of messages in SessionView component
The code changes in this commit optimize the filtering of messages in the SessionView component. The useMemo hook is used to memoize the filteredMessages array, which improves performance by avoiding unnecessary re-rendering.
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
The HuggingFace Spaces build script has been updated to use the correct space name "Langflow/Langflow" instead of "Langflow/Langflow-Preview". This ensures that the correct space is restarted when triggered.
This commit updates the dependencies for the Google Authentication Library and Google Calendar API. It includes the following changes:
- Upgraded google-auth to version 2.15.0
- Added google-auth-oauthlib version 1.2.1
- Added langchain-google-calendar-tools version 0.0.1
These updates ensure compatibility with the latest versions of the libraries and improve the functionality of the application.
* refactor: extract method from class to new func
* test: add new tests
* refactor: simplify funcs to improve readability
* refactor: extract new func from larger func
* refactor: remove recursion from func
* refactor: remove coupling with graph and vertex
* refactor: create adapter funcs to use new code
* refactor: add test for sorting up to vertex N with is_start=True
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* feat: add Maritalk icon
* feat: add Maritalk model component
* fix: update icon size
* feat: optimize MaritalkModelComponent initialization
This commit optimizes the initialization of the MaritalkModelComponent class in the Maritalk.py file. It updates the default value for the 'temperature' parameter to be within the range of 0 to 1, using the RangeSpec class. This ensures that the temperature value is valid and improves the overall functionality of the component.
* style: format maritalk svg
* feat: optimize MaritalkModelComponent initialization
This commit optimizes the initialization of the MaritalkModelComponent class in the Maritalk.py file. It updates the default value for the 'temperature' parameter to be within the range of 0 to 1, using the RangeSpec class. This ensures that the temperature value is valid and improves the overall functionality of the component.
* feat: update 'stream' parameter to be advanced in MaritalkModelComponent
This commit updates the 'stream' parameter in the MaritalkModelComponent class to be an advanced option. By setting the 'advanced' attribute to True, the 'stream' parameter will only be visible to advanced users. This change improves the usability of the component by hiding this option from regular users who do not need it.
* ThreadingInMemoryCache usage is broken. This commit addresses those issues along with missing documentation about the caching options.
* make lint & make unit_tests fixes
* removing unnecessary changes from unclear test results in last run
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* feat: improve is_vertex_runnable method in RunnableVerticesManager
This commit improves the `is_vertex_runnable` method in the `RunnableVerticesManager` class. It adds an additional parameter `activated_vertices` to the method signature and updates the logic to check if a vertex is runnable based on the presence of activated vertices. This enhancement improves the accuracy of determining whether a vertex is runnable or not.
* fix: add predecessors to vertices_to_run
* style: fix lint issues
* feat: optimize vertex filtering in useFlowStore
This commit optimizes the vertex filtering logic in the `useFlowStore` function in `flowStore.ts`. It introduces a more efficient way to filter out vertices that are already being built, resulting in improved performance and accuracy.
* refactor: add is_active method to Vertex class
This commit adds the `is_active` method to the `Vertex` class in the `base.py` file. The `is_active` method checks if the state of the vertex is set to `ACTIVE` and returns a boolean value accordingly. This enhancement improves the readability and maintainability of the codebase.
* refactor: improve is_vertex_runnable method in RunnableVerticesManager
* refactor: improve find_runnable_predecessors_for_successors method in Graph class
* refactor: move test_create_function
* ✨ (ProfilePictureForm): add loading state to handle initial loading state
* ♻️ (use-get-profile-pictures.ts): refactor profile pictures query to process data on the server side
♻️ (ProfilePictureForm): simplify state management by removing redundant loading state
* ♻️ (use-get-profile-pictures.ts): rename ProfilePicturesResponse to ProfilePicturesQueryResponse for clarity
♻️ (use-preload-images.tsx): add loading check to useEffect to prevent unnecessary execution
♻️ (profilePictureChooserComponent): update profilePictures prop type to handle undefined and add loading to usePreloadImages
♻️ (ProfilePictureForm): remove unnecessary state and use response directly from useGetProfilePicturesQuery
* 🐛 (use-preload-images.tsx): add missing dependency 'loading' to useEffect dependency array to ensure images are preloaded correctly
feat: Update custom component attributes with load from DB fields
This commit updates the `custom_component_update` endpoint in `endpoints.py` to include the logic for updating custom component attributes with load from DB fields. The `cc_instance` is checked for the presence of a `set_attributes` method, and if it exists, the template and parameters are extracted from the code request. The load from DB fields are identified and used to update the parameters. Finally, the `set_attributes` method is called with the updated parameters. This enhancement improves the flexibility and functionality of custom components.
* chore: Update langchain-nvidia-ai-endpoints dependency to version 0.1.2
* feat: Add NVIDIAEmbeddingsComponent for generating embeddings using NVIDIA models
* feat: Add NVIDIAModelComponent for generating text using NVIDIA LLMs
* feat: Add NvidiaRerankComponent for reranking documents using the NVIDIA API and a retriever
* fix: add type ignore
* chore: Update NVIDIAEmbeddingsComponent and NVIDIAModelComponent to handle type ignore
* chore(poetry.lock): update lock