* Added new confirmation modal for saving
* Fixed save button
* fixed header classes
* updated docs link
* Added different message to auto saving
* Changed tooltip to appear in saved text, not in button
* Changed tooltip back to previous when auto saving is enabled
* changed auto_save to auto_saving
* Fixed build not appearing and icons
* Changed modal when autosave is enabled
* 🐛 (menuBar/index.tsx): fix condition for disabling save button to include isBuilding flag to prevent saving during build process
* fix current flow not being updated on set nodes and edges and fix modal not letting user leave when flow is empty
* Removed console log
* Fix add flow not adding the flow that comes from the backend
---------
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: Cristhian Zanforlin Lousa <72977554+Cristhianzl@users.noreply.github.com>
* feat: Add optional description attribute to Graph class and handle description in serialization.
* refactor: Remove 'type' field from NodeData class.
* refactor: Set default graph name if not provided.
* fix: mypy error typeddict-item
---------
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
* feat: Add TableNodeComponent for rendering table data in ParameterRenderComponent
* refactor: Set default formatter type for columns in FormatColumns function
* [autofix.ci] apply automated fixes
* refactor: Improve object rendering in ObjectRender component
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* Changed the data type of number field from string to number
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* feat: Implement edge type based on cycles in the graph.
* refactor: Change next_runnable_vertices to a set to avoid duplicates.
* feat: Add property for cycles in Graph class.
* feat(graph): Add is_cyclic property to Graph class.
* refactor: Update test_memory_chatbot.py with new assertions and modifications.
* refactor: Update set_output_value to set_on_output in starter projects test vector store rag.
* feat: Add test for cyclic behavior in graph with max iterations.
* merge main
* refactor: Extract method to set params from normal edge in Vertex class.
* feat: Add method to retrieve value from template dict in Vertex class.
* feat: Add handling for cycle and contract edge targets in ComponentVertex build method.
* refactor: Update result retrieval logic in ComponentVertex class.
* refactor: Add condition to check flow_id before creating log transactions.
* refactor: Add missing `Edge` import and cast `cast` in types.py for better typing.
* refactor: improve function structure in _build_results
* fix: remove function call that overrides Component.outputs
* refactor: Add handling for outputs in __getattr__ method.
* refactor: add card store component
* refactor: use StoreCardComponent for displaying store cards
* refactor: Remove unused code
* refactor: Update Collection card to fit only to the my collection case
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* add separated component for prompt modal
* refactor: rename promptAreaModal to promptModal and update type import
* refactor: update promptComponent to use PromptModal instead of GenericModal
* refactor: update textarea-primary class in applies.css
* refactor: add ComponentTextModal for displaying and editing text areas
Add a new component, ComponentTextModal, for displaying and editing text areas. This component includes a textarea input, a title, and an icon. It also supports password visibility toggling. The ComponentTextModal is used within a BaseModal component and includes a save button for finishing the editing process. This commit refactors the code to add the ComponentTextModal and its related functionality.
* refactor: Add ComponentTextModal for displaying and editing text areas
* delete genericModal component and their references
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* feat: Add maximum iterations limit in Graph start method.
* feat: Add OutputConfigDict and StartConfigDict to schema.py.
* feat: Add ability to apply configuration before starting graph.
* feat: Add max_iterations parameter to async_start method and update schema imports.
* Removed unused code
* Separated folder sidebar from common sidebar
* Removed useOnFileDrop from common sidebar
* Added folderSidebarComponent that fetches the folders
* Added useOnFileDrop and SIdebarFoldersButton
* Make auth context not get folders
* Make delete folder refetch get folders
* Make folder mutations refetch the getFolder
* Create getFolder query
* Removed unused functions from useFolderStore
* Make isLoading from application depend only on flows
* Make main page not refetch folders
* Change types of folders store
* removed getFolders refetch on duplicateFolders
* Added loading from query into ComponentsComponent
* Made the flow page get the flows and types if they're not available
* Made the loading be the isLoading only
* Removed unused function
* Make cards appear even if it didnt load
* Removed setLoading of various pages
* Fixed loading happening every time the flow changes
* Added skeleton instead of loading on folders
* Added routing to contain folderId on both flows and initial page
* remove redirect of useFileDrop
* remove folderid getting from state
* removed setAllFlows
* chore: Remove unused variables and functions in useDuplicateFlows hook
* Added refetch of folders when the flow is deleted or added
* Changed redirectToLastLocation to redirect to last folder also
* Added upload flow to folder tanstack and refetched folders on upload
* Added loading of current folder on display of empty component
* Removed refetching folder on file drop
* Removed unused code
* Fixed add new flow from header not redirecting correctly
* Fixed unused code
* Added undefined on setting current flow as empty
* Added disable top bar and make it be displayed on the top of an empty folder
* Fixed select all checked when deleting all flows
* refactor: Add CycleEdge class and make necessary adjustments in base.py files.
* refactor: Change ContractEdge to CycleEdge for consistency in vertex class properties.
* [autofix.ci] apply automated fixes
* refactor: Update type hints in types.py and base.py.
* [autofix.ci] apply automated fixes
* refactor(base.py): Update imports in base.py.
* [autofix.ci] apply automated fixes
* refactor: Changed ContractEdge to CycleEdge for building and getting edges.
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* feat: Add functions to detect cycles in directed graphs.
* test: Add new test cases for cycle detection in graph utils.
* test: temporarily disable test
---------
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
* feat: Google Drive Search Component
feat: Google Drive Search Component
Ability to search Google Drive and get back the relevant Doc id or Doc urls
* Updated Google Drive Search.py
* test: add tests for global variable endpoints
* test: add unit tests variable service
* fix: anticipate checks to prevent the code from breaking
* feat: add a new method to interface
* feat: add method to update fields in variable service
* feat: replace variable api code
* fix: mypy error
* fix: mypy error
* feat(variable): Allow deleting variables by name or ID in DatabaseVariableService.
* refactor(api): Simplify delete method in variable router.
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* add onEscapeKeyDown
* refactor: Add ConfirmationModal to CodeAreaModal for better user experience
* refactor: Update CodeAreaModal to use ReactAce for code editing
* fix closing o x modal
* refactor: Update CodeAreaModal to use ReactAce for code editing
* [autofix.ci] apply automated fixes
* decompose object
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* feat: add initial implementation of dynamic state model creation and output getter in graph state module
* feat: implement _reset_all_output_values method to initialize component outputs in custom_component class
* feat: add state model management with lazy initialization and dynamic instance getter in custom_component class
* feat: Refactor Component class to use public method get_output_by_method
Refactor the Component class in the custom_component module to change the visibility of the method `_get_output_by_method` to public by renaming it to `get_output_by_method`. This change improves the accessibility and clarity of the method for external use.
* feat: add output setter utility to manage output values in state model properties
* feat: implement validation for methods' classes in output getter/setter utilities in state model to ensure proper structure
* feat: add state model creation from graph in state_model.py
* feat: enhance Graph class with lazy loading for state model creation from graph
* feat: add unit tests for state model creation and validation in test_state_model.py
* feat: add unit tests for state model creation and validation in test_state_model.py
* feat: add functional test for graph state update and validation in test_graph_state_model.py
* fix: update _instance_getter function to accept a parameter in component.py for state model instance retrieval
* refactor: rename test to clarify purpose in test_state_model.py for functional state update validation
* chore: import Finish constant in test_graph_state_model.py for improved clarity and usage in state model tests
* refactor: add optional validation in output getter/setter methods for improved method integrity in state model handling
* refactor: enhance state model creation with optional validation and error handling for output methods in model.py
* refactor: serialize and deserialize GraphStateModel in test_graph_state_model.py
* refactor: improve error message and add verbose mode for graph start in test_state_model.py
* refactor: remove verbose flag from graph.start in TestCreateStateModel for consistency in test_state_model.py
* refactor: disable validation when creating GraphStateModel in state_model.py for improved flexibility
* refactor: add validation documentation for method attributes in model.py to enhance code clarity and usability
* refactor: expand docstring for build_output_getter in model.py to clarify usage and validation details
* refactor: add detailed docstring for build_output_setter in model.py to improve clarity on functionality and usage scenarios
* refactor: add comprehensive docstring for create_state_model in model.py to clarify functionality and usage examples
* refactor: enhance docstring for create_state_model_from_graph in state_model.py to clarify functionality and provide examples
* test: add JSON schema validation in graph state model tests for improved structure and correctness verification
* refactor: Improve graph_state_model.json_schema unit test readability and structure.