* update components to update
* Added update all components
* Update the logic for updating all components
* Added dismiss functionality
* Removed node from components to update when updated
* ✨ (list/index.tsx): add data-testid attribute to list card component for testing purposes
✨ (reactflow): create edges to connect different nodes for data flow in the chatbot application.
📝 (Prompt): Update prompt template with dynamic variables for better customization and flexibility.
📝 (code): update code in ChatInput component to import necessary modules and classes for chat inputs handling
♻️ (code): refactor code in ChatInput component to improve readability and maintainability by organizing imports and defining class attributes clearly
📝 (input.py): Update input fields display names and information for better clarity and understanding
📝 (input.py): Update file input field to support multiple file types and be a list of files
📝 (input.py): Update sender options to be more descriptive as "Machine" and "User" instead of constants
📝 (input.py): Update sender_name input field information to clarify it is the name of the sender
📝 (input.py): Update session_id input field information to explain its purpose and usage
📝 (input.py): Update files input field information to clarify it is for files to be sent with the message
📝 (input.py): Update input_value input field information to clarify it is the text message to be passed as input
📝 (input.py): Update should_store_message input field information to explain its purpose of storing messages in history
📝 (input.py): Update message_response method to handle storing messages based on conditions and updating status
📝 (metadata): Update metadata fields in ChatInput component for better clarity and consistency
📝 (OpenAIModel): Add OpenAI API Key field to the template for configuring the OpenAI model usage
📝 (LCModelComponent): Update OpenAIModelComponent inputs and add support for new features and configurations to enhance text generation capabilities.
📝 (file.py): Update comments and documentation for better clarity and understanding of the code
♻️ (file.py): Refactor code to improve readability and maintainability by restructuring the logic and removing unnecessary code blocks
📝 (schema.json): Update schema for the Output of the model to enable JSON mode and improve functionality
📝 (ChatOutput): Display a chat message in the Playground for better user interaction and experience
📝 (ChatOutput): Update ChatOutput class inputs and outputs structure for better organization and readability.
✨ (frontend): Add a new file 'outdated_flow.json' to store outdated flow data for frontend tests.
✨ (outdated-actions.spec.ts): add test to ensure user can update outdated components in the application
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes
* fix tests
---------
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* Improve error messaging for missing message fields in memory module
* fix: Simplify return statement in NotDiamondComponent's chat result method
* Update .gitignore to exclude all .db files
* Handle IntegrityError specifically when assigning orphaned flows to superuser
* Add missing session.add(flow) to ensure flow is added to the session before commit
* 📝 (use-patch-update-flow.ts): export IPatchUpdateFlow interface for external use
✨ (use-update-node-code.tsx): add useFlowUpdate hook to update node in flow based on componentId and data
🔧 (index.tsx): import usePatchUpdateFlow and useFlowUpdate hooks, update node in flow when code is updated in CodeAreaModal
🔧 (index.tsx): pass componentId to CodeAreaModal to update node in flow based on componentId
🔧 (index.ts): add componentId prop to codeAreaModalPropsType for CodeAreaModal component
🔧 (index.ts): add componentId prop to codeAreaModalPropsType for CodeAreaModal component
* 🔧 (use-update-node-code.tsx): Remove unused code related to updating node code in a flow
🔧 (index.tsx): Remove unused import and function related to updating node code in a flow, refactor code to directly update node data in the nodes array instead of using a separate function.
* 📝 (use-patch-update-flow.ts): remove unnecessary export keyword from IPatchUpdateFlow interface to follow module structure conventions
* 📝 (codeAreaModal/index.tsx): remove unused import and variable 'usePatchUpdateFlow' to clean up code and improve maintainability
* add icons: wikipedia, serpapi, searchapi, glean, python, bing
* update glean icon
* formatting files
* ✨ (create_data.py): add an icon attribute with the value "ListFilter" to improve visual representation of the component
📝 (python_code_structured_tool.py): update the icon attribute value from "🐍" to "Python" for better clarity and consistency
---------
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
* ✨ (inputComponent): add 'autoComplete="off"' attribute to input components in popover and popoverObject to disable browser auto-fill feature
* ✨ (dropdownComponent/index.tsx): add autoComplete="off" attribute to input field to disable browser autocomplete feature
* ✨ (flowSidebarComponent/index.tsx): add 'autoComplete="off"' attribute to the search input field to disable browser autocomplete feature
* 📝 (inputComponent): Remove autoComplete="off" attribute from Input components to enable browser autocomplete feature
📝 (ui/input): Remove autoComplete="off" attribute from input element to enable browser autocomplete feature
📝 (extraSidebarComponent): Remove autoComplete="off" attribute from input element to enable browser autocomplete feature
📝 (flowSidebarComponent): Remove autoComplete="off" attribute from Input component to enable browser autocomplete feature
---------
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
* take 1 WIP
* remove firecrawl dep from langflow package, only usage appears to be in langflow-base
* langchain-google-genai to 2.0.1 which is what we have now in the lock file
* widen ranges based on old lock file
* lock
* fixing problem handling path type
* Add type check for 'path.text' in CSV utility function
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* Add documentation for configuring external databases with Langflow
* Update title in configuration documentation to 'External Database Configuration'
* Update PostgreSQL configuration docs to include .env file usage instructions
* more-context
* fix: improve clarity in instructions for starting services in custom database configuration
---------
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
* ✨ (playground-button.tsx): Add a new PlaygroundButton component to the flowToolbarComponent to handle the display of the Playground button based on the presence of Chat Input or Chat Output components.
📝 (index.tsx): Import and use the PlaygroundButton component in the FlowToolbar component to replace the previous implementation of the Playground button display.
🔧 (applies.css): Add styling for the playground-btn-flow-toolbar class to ensure consistent styling for the Playground button in the toolbar.
* 📝 (playground-button.tsx): update import path for IOModal to point to the newModal file instead of the old one
✨ (google_search_api.py): Add icon property to GoogleSearchAPIComponent for better visualization in the UI
✨ (google_serper_api.py): Add icon property to GoogleSerperAPIComponent for better visualization in the UI
📝 (styleUtils.ts): Add GoogleSearchAPI and GoogleSerperAPI icons to nodeIconsLucide for consistent styling in the frontend.
Improve the waiting logic in the tweksTest.spec.ts file to ensure that the necessary elements are loaded before interacting with them. This includes using the waitForSelector function with appropriate timeouts for the modal and popover elements.
* Fix node inputs not being captured, add runtime inputs as well to be captured by the tracers properly
* Fix outputs missing on traces due to them being reset before ending the traces because of race conditions
* Fallback to project name if none
* Remove 'dynamic inputs' to stop sending the component code every time
* fix: Add async flow name retrieval in graph building process
* fix: Retrieve flow name from database when building graph from data
* Fix: make session.exec call awaitable in chat API
* Refactor `_get_flow_name` to manage session internally
* Refactor session handling to use `async_session_scope` in chat API
* Refactor test cases to remove unnecessary async usage in mock functions
* [autofix.ci] apply automated fixes
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* Added use get types to fetch types from backend using tanstack
* Updated typesStore to use new set types
* Updated project to not use getTypes anymore
* deleted unused getTypes
* add tests
* [autofix.ci] apply automated fixes
* fix tests
---------
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* 🔧 (nodeToolbarComponent/index.tsx): improve positioning logic for node toolbar based on scale and tool mode to enhance user experience
* ✨ (GlobalVariableModal.tsx): Refactor type selection in GlobalVariableModal to use a dropdown select component for better user experience and consistency.
* Revert "🔧 (nodeToolbarComponent/index.tsx): improve positioning logic for node toolbar based on scale and tool mode to enhance user experience"
This reverts commit 322ba353a6984fcf870cba8c82c26689381842da.
* ✨ (GlobalVariableModal.tsx): Add data-testid attribute to SelectTrigger for testing purposes
🔧 (globalVariables.spec.ts, userSettings.spec.ts): Update test scripts to interact with the SelectTrigger using data-testid attribute for consistency and improved testing accuracy
* 📝 (userSettings.spec.ts): remove commented out code for focusElementsOnBoard function to improve code readability and maintainability
📝 (PageComponent/index.tsx): Remove redundant useEffect hook that sets notice data for old components
📝 (flowStore.ts): Remove unnecessary check for old components in selection nodes in useFlowStore function
Improve the wait time in the saveComponents.spec.ts file to ensure that the necessary elements are loaded before interacting with them. This helps prevent potential errors and improves the reliability of the test.
* Added warning color
* Implemented more colors
* Implemented warning button variant
* Added warning section to node
* Removed warning button and added warning outline to outdated components
* Added negative margin top to node for it to not move when updatable
* Fixed border to be consistent
* removed unused code
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* Implemented avoidCollisions on ShadTooltip
* Added type for avoidCollisions
* Changed tooltip position for buttons on IOModal
* Fix color of light theme switcher
* refactor: Improve time and use waitForSelector in freeze-path.spec.ts
* refactor: Improve time and use waitForSelector in freeze-path.spec.ts
* fromat code
* Refactor freeze.spec.ts: Remove unnecessary code