* 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.
* fixed patch update flow
* fixed update flow patch to receive id by payload
* created save flow hook with auto save and manual save functions
* fix poetry lock
* added auto save check with environment variable
* removed unused user
* separated autosave and put the flow as a creation with nodes and edges
* removed set nodes that skipped saving
* implemented auto save hook
* removed autosave from setNodes and setEdges
* added auto save hook and saved on viewport move and added useEffect to save on nodes and edges changed
* changed type of setNodes
* removed unused var
* removed deletion of empty flow
* Added saving of flow on button when autoSave is disabled
* disable saving when the nodes are empty
* removed save loading as false when the access token is renewed
* implemented useDebounce
* added save loading to save flow hook
* removed setting nodes and edges on fetching, since they are set when the current flow is updated
* removed unused var
* use debounce hook to save flow
* set nodes and edges on current flow id change
* removed useplaygroundeffect
* removed unused import
* put set save loading before the If
* removed flow cleaning and inputs setting, since the inputs and outputs are set on the ResetFlow function
* updated to use ResetFlow function to update everything regarding flow
* removed flow pool get on resetFlow, for it to be fetched only if the user is inside the flow
* updated packagelock
* Changed router to outlet on app.tsx to use createRouter
* Created authSettingsGuard to guard the general settings
* Fixed routes to use createBrowserRouter to allow the use of useBlocker
* Changed index.tsx to use RouterProvider and the router just created
* Changed flowStore to have a local flow state
* Implemented setting the current flow state when saving the flow
* Added the update of current flow when auto saving
* changed current flow to use the current flow from Flow Store instead of Flows Manager Store
* Changed codeTabsComponent Tweaks check to show if its checked
* Removed unused variables
* Removed browser router from context wrapper
* Removed unused console.log
* Changed initialSetup to just run when opening the modal
* changed confirmationModal to have destructiveCancel and to only call onCancel if the other buttons were not pressed
* Created a SaveChangesModal that confirms if the user wants to save their changes
* Get folder by id when folder id changes too
* Changed reset flow calls to store whole flow
* Added check if user is exiting page to prevent him when there are unsaved changes
* Added new types on ConfirmationModalType
* Implement save on clicking the save button on the header
* added save component shortcut to use save shortcut as save flow
* added save component shortcut on shortcutsStore type
* changed save shortcut to save component on node toolbar
* added save shortcut to header menubar
* changed shortcuts name to be compatible with existing ones
* changed shortcuts to be backwards compatible
* changed save to changes to maintain retrocompatibility
* changed save_component to save to maintain retrocompatibility
* Changed time difference to unsaved changes
* changed the toolbar select item to get the right save shortcut
* Changed save flow to use current flow from useFlowStore instead of the previous saved flow
* changed changesNotSaved to include flow name and metadata
* Added way of saving the flow settings just locally instead of directly to database
* Changed shareModal to save flow with hook
* removed old auto saving on connect
* Removed save functions from flowsManagerStore
* refactor: Remove unused imports and state variables in EditFlowSettings component
* use current flow not saved one and refactored page to not receive flow
* added check of isFlowPage to display the menubar
* Added checks to render playground if API key is valid and if Flows exists
* Added check to not display X on chat on playground page
* Updated flows variable to be undefined by start to prevent things from loading before flows initialize
* Implemented log builds parameter to not allow the builds to be logged if user not on flowPage
* feat: Gmail Loader component created
* [autofix.ci] apply automated fixes
* Updated Gmail.py
ran make format and ran make lint
* [autofix.ci] apply automated fixes
* Update Gmail.py
Errors Resolved.
Suggestion from @ogabrielluiz added.
Note this is a ChatLoader, since GmailLoader uses the BaseChatloader as base class.
But this would be a highly useful feature. if required i could rewrite the component as document loader. but either way this would be an amazing feature.
Planning to publish gmails tools also in next steps mostly.
* solved lint issues in Gmail.py
Key Changes:
1. Added Optional to the import statement.
2. Updated the type hint of label_ids to Optional[List[str]] to allow it to be None or a list of strings.
* remove commented
* remove commented
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>
* fix: update value type in DefaultPromptField from str to Any for increased flexibility in input handling
* fix: replace _instantiate_input with instantiate_input for consistency in input instantiation across the codebase
* chore: update test durations
* update memory chatbot