Commit graph

7,638 commits

Author SHA1 Message Date
anovazzi1
056cf6f66d refactor(api/index.ts): remove unused variable property from APITemplateType
fix(utils/reactflowUtils.ts): import TemplateVariableType from types/api
feat(utils/reactflowUtils.ts): add mergeNodeTemplates function to merge node templates and update display names
feat(utils/reactflowUtils.ts): add isHandleConnected function to check if a handle is connected to an edge
refactor(utils/reactflowUtils.ts): remove TODO comments and update comments for mergeNodeTemplates and isHandleConnected functions
feat(utils/reactflowUtils.ts): add generateNodeTemplate function to generate node templates from a flow
2023-09-08 12:24:04 -03:00
anovazzi1
8cdfb00af6 chore(reactflowUtils.ts): add TODO comment to update to new types
feat(reactflowUtils.ts): add function to update group node template to set visibility of basic types to advanced true
feat(reactflowUtils.ts): add function to generate node template for group node based on flow data
feat(reactflowUtils.ts): add function to generate node from flow data
2023-09-08 12:17:28 -03:00
anovazzi1
e129b3c9f4 refactor(reactflowUtils.ts): extract validation logic into a separate function for better code organization and reusability
feat(reactflowUtils.ts): add validateSelection function to validate the selection of nodes and edges in the React Flow instance
2023-09-08 12:13:40 -03:00
anovazzi1
0df8427e3f refactor(api/index.ts): add FlowType import to improve code readability and maintainability
feat(reactflowUtils.ts): add concatFlows function to concatenate nodes and edges from a FlowType object to a ReactFlowInstance

feat(reactflowUtils.ts): add generateNodeFromFlow function to generate a NodeType object from a FlowType object
2023-09-08 12:11:06 -03:00
anovazzi1
2e7f362867 feat(reactflowUtils.ts): add findLastNodeType type to represent the input for findLastNode function
feat(reactflowUtils.ts): add filterFlow function to filter out selected nodes and edges from the flow
feat(reactflowUtils.ts): add updateFlowPosition function to update the position of nodes in the flow based on a new position
fix(reactflowUtils.ts): fix return type of generateFlow function to use generateFlowType type instead of inline type definition
2023-09-08 12:02:41 -03:00
anovazzi1
67e364ef35 fix(reactflowUtils.ts): import missing FlowType from "../flow" in reactflowUtils.ts
feat(reactflowUtils.ts): add generateFlow function to generate a new flow based on selected nodes and edges
2023-09-08 11:37:35 -03:00
anovazzi1
ccb8b0d323 feat(reactflowUtils.ts): add getMiddlePoint function to calculate the average position of multiple nodes
The getMiddlePoint function calculates the average position of multiple nodes by summing up the x and y coordinates of each node and dividing them by the total number of nodes. This allows us to find the middle point or center of a group of nodes. This function can be used to determine the position of a new node based on the average position of existing nodes.
2023-09-08 11:27:04 -03:00
Lucas Oliveira
b770622603 Added gradient and changed types of patch user 2023-09-08 11:23:57 -03:00
Cristhian Zanforlin Lousa
e6afd6704f 🐛 fix(floatComponent): fix typo in max variable assignment to remove unnecessary plus sign 2023-09-08 10:46:09 -03:00
Cristhian Zanforlin Lousa
ec7a5fdbd6 🐛 fix(floatComponent): update min and max values to -2 and +2 respectively for better range
🔧 chore(floatComponent): update placeholder text to reflect the new range of -2 to 2
2023-09-08 10:45:43 -03:00
Cristhian Zanforlin Lousa
0aa39d8a8e 🐛 fix(parameterComponent): import DictComponent from correct path to fix module not found error
🐛 fix(parameterComponent): remove unused import of CodeAreaComponent to improve code readability
🐛 fix(parameterComponent): remove unused import of TabsContext to improve code readability
🐛 fix(parameterComponent): remove unused import of typesContext to improve code readability
🐛 fix(parameterComponent): remove unused import of TabsState to improve code readability
🐛 fix(parameterComponent): remove unused import of nodeColors to improve code readability
🐛 fix(parameterComponent): remove unused import of nodeIconsLucide to improve code readability
🐛 fix(parameterComponent): remove unused import of nodeNames to improve code readability
🐛 fix(parameterComponent): remove unused import of classNames to improve code readability
🐛 fix(parameterComponent): remove unused import of groupByFamily to improve code readability
🐛 fix(parameterComponent): remove unused import of useUpdateNodeInternals to improve code readability
🐛 fix(parameterComponent): remove unused import of Position from reactflow to improve code readability
🐛 fix(parameterComponent): remove unused import of Handle from reactflow to improve code readability
🐛 fix(parameterComponent): remove unused import of types from reactflow to improve code readability
🐛 fix(parameterComponent): remove unused import of React from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useEffect from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useContext from react to improve code readability
🐛 fix(parameterComponent): remove unused import of ReactNode from react to improve code readability
🐛 fix(parameterComponent): remove unused import of forwardRef from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useEffect from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
2023-09-08 10:11:32 -03:00
Cristhian Zanforlin Lousa
afc1888d73 🎨 style(dictAreaModal): update BaseModal size prop value to "medium-h-full" for better UI layout 2023-09-08 10:00:59 -03:00
Gabriel Luiz Freitas Almeida
04544b172f 🚀 feat(alembic): add migration to add profile_image column to user table
🔧 chore(user.py): add profile_image field to User model for storing user profile images
2023-09-08 07:36:56 -03:00
Guangya Liu
86cf771d00 Fix lint error 2023-09-07 14:57:37 -04:00
igorrCarvalho
5cae58dead Refactor: Remove blank space when node has no description 2023-09-06 14:44:13 -03:00
Lucas Oliveira
512db102fa Change password implemented, but not working 2023-09-06 14:16:07 -03:00
igorrCarvalho
f44b0e33b1 remove unnused imports 2023-09-05 18:31:30 -03:00
igorrCarvalho
25949b97a7 Fix: user not having icon when id starts with a letter 2023-09-05 18:31:30 -03:00
Gabriel Luiz Freitas Almeida
a7db386277 🐛 fix(users.py): change route paths for user-related endpoints to improve consistency and readability
 feat(users.py): add support for resetting a user's password
🐛 fix(crud.py): fix update_user function to properly handle unchanged attributes and return 304 status code if nothing is updated
🐛 fix(user.py): change field name in UserUpdate model from 'username' to 'password' to reflect the intended functionality
🐛 fix(index.ts): update API routes in frontend controller functions to match the changed user-related endpoint paths
2023-09-05 17:19:11 -03:00
Gabriel Luiz Freitas Almeida
0d9d4856fb 🐛 fix(celery_app.py): ignore type error for Celery import to avoid linting issues
🐛 fix(base.py): ignore type error for AsyncResult import to avoid linting issues

🐛 fix(worker.py): ignore type error for SoftTimeLimitExceeded import to avoid linting issues
 feat(worker.py): add conditional clearing of session cache based on clear_cache flag to improve performance
2023-09-05 15:35:14 -03:00
Gabriel Luiz Freitas Almeida
44bd6e4787 🔥 refactor(process.py): remove unused clear_caches_if_needed function
🔀 refactor(process.py): refactor process_graph_cached function to use Result dataclass for return type and remove unused code
2023-09-05 15:34:56 -03:00
Gabriel Luiz Freitas Almeida
d13f0e77df 🔧 chore(utils.py): remove unused imports and classes
🔥 refactor(utils.py): remove unused Memoize class and its methods
2023-09-05 15:34:45 -03:00
Gabriel Luiz Freitas Almeida
ba9d57fa78 🔥 refactor(chat/manager.py): remove unused imports and code
🚀 feat(chat/manager.py): add import for pil_to_base64 function to support image encoding in chat messages
2023-09-05 15:34:35 -03:00
Gabriel Luiz Freitas Almeida
e74fc00442 🔧 chore(base.py): add Redis configuration options to base settings for better flexibility and customization 2023-09-05 15:34:20 -03:00
Gabriel Luiz Freitas Almeida
a6322461c0 🐛 fix(api_key/crud.py): fix variable name conflict in update_total_uses function to prevent overwriting the api_key parameter
🔒 chore(api_key/crud.py): add error handling to update_total_uses function to raise ValueError if API Key is not found
2023-09-05 15:34:08 -03:00
Gabriel Luiz Freitas Almeida
9721e9d6cf 🐛 fix(manager.py): add validation to check if task function has an apply method before calling it
 feat(manager.py): change return type of launch_task method to Any to allow for more flexibility in return values
2023-09-05 15:33:43 -03:00
Gabriel Luiz Freitas Almeida
779c021d78 🐛 fix(anyio.py): change return type annotation of result() method from 'any' to 'Any' for better type hinting
🐛 fix(anyio.py): change parameter type annotation of get_task() method from 'int' to 'str' to match the actual type of task_id
2023-09-05 15:33:31 -03:00
Gabriel Luiz Freitas Almeida
8a47fb75cb 🔨 refactor(base.py): remove unnecessary type hinting for task_id parameter in get_task method
🔨 refactor(base.py): remove unnecessary return type hinting for launch_task method
2023-09-05 15:33:11 -03:00
Gabriel Luiz Freitas Almeida
e50704a49f 🐛 fix(celery.py): fix type hinting error for AsyncResult import
🔒 chore(celery.py): add check for delay method existence in launch_task to prevent errors
🔒 chore(celery.py): change get_task return type hint to Any to match actual return type
2023-09-05 15:32:54 -03:00
Lucas Oliveira
7e0394a114 Merge branch 'dev' into feature/profilePage 2023-09-05 15:22:01 -03:00
Lucas Oliveira
b6c5fecae2 Fixed message not sending when closing db 2023-09-05 15:20:51 -03:00
Gabriel Luiz Freitas Almeida
18af716290 🐛 fix(chat.py): update variable name from in_memory_cache to cache_manager for better clarity and consistency 2023-09-05 14:54:03 -03:00
Gabriel Luiz Freitas Almeida
7a63b5635d 🔥 refactor(run.py): remove unused imports and commented out code in run.py
🔥 refactor(test_cache.py): remove unused imports and commented out code in test_cache.py
2023-09-05 14:53:38 -03:00
Gabriel Luiz Freitas Almeida
9615523a8d 🔧 refactor(manager.py): simplify update_session and clear_session methods by removing unnecessary data_graph parameter 2023-09-05 14:49:10 -03:00
Gabriel Luiz Freitas Almeida
5903378503 🐛 fix(process.py): remove unnecessary else statement to improve code readability and semantics
🐛 fix(process.py): update session_manager.update_session() method signature to match the new implementation
🐛 fix(worker.py): update session_manager.update_session() method signature to match the new implementation
🐛 fix(test_process.py): update session_manager.build_key() and session_manager.clear_session() method calls to match the new implementation
2023-09-05 14:46:55 -03:00
Lucas Oliveira
109b9a1172 Added error checking when file is not a JSON 2023-09-05 14:21:47 -03:00
Lucas Oliveira
2c99d2ce70 Implemented flow add when dropping json 2023-09-05 14:14:47 -03:00
Gabriel Luiz Freitas Almeida
5b6c732213 🔧 chore(manager.py): refactor load_session method to use a more descriptive variable name 'key' instead of 'session_id' for better readability
🔧 chore(manager.py): refactor generate_key method to use a separate build_key method for better separation of concerns
🔧 chore(manager.py): refactor update_session method to use the build_key method for better separation of concerns
🔧 chore(manager.py): refactor clear_session method to use the build_key method for better separation of concerns
🔧 chore(manager.py): add type hinting for cache_manager parameter in the __init__ method for better code clarity
2023-09-05 12:24:07 -03:00
Gabriel Luiz Freitas Almeida
8c8e26472d 🐛 fix(process.py): add missing else statement to properly assign session_id when not generating a new key 2023-09-05 12:23:33 -03:00
Gabriel Luiz Freitas Almeida
c68b9e39c7 🚀 feat(session): add session_id_generator utility function to generate a random session ID
🐛 fix(session): generate a 5 character session ID if session_id is None to ensure a unique key is created
2023-09-05 11:55:19 -03:00
Gabriel Luiz Freitas Almeida
e1800ff682 🔧 chore(api_key/crud.py): remove unused imports and variables for cleaner code
🐛 fix(api_key/crud.py): update_total_uses function now uses the same session as the caller to avoid thread safety issues
2023-09-05 11:54:53 -03:00
Gabriel Luiz Freitas Almeida
a6e9cce02f 🐛 fix(process.py): fix session_id assignment logic to ensure it is generated if not provided 2023-09-05 11:53:54 -03:00
Lucas Oliveira
539e508e12 Added style to file drop 2023-09-05 11:52:20 -03:00
Cristhian Zanforlin Lousa
20014f4937 merge dev 2023-09-05 11:44:16 -03:00
Lucas Oliveira
8119d5922b Merge branch 'dev' into feature/profilePage 2023-09-05 11:18:29 -03:00
Cristhian Zanforlin Lousa
628e6bace5 🐛 fix(EditNodeModal): remove unused state variable 'errorDuplicateKey' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused state variables 'dict' and 'dictArr' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused useEffect hook for 'dict' state variable to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused state variable 'obj' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused state variable 'myData' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused state variable 'setMyData' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused state variable 'setDict' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused state variable 'setDictArr' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused state variable 'setObj' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused state variable 'setTabsState' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused state variable 'tabId' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused state variable 'reactFlowInstance' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'typesContext' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'useState' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'useEffect' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'forwardRef' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'useContext' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'classNames' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'convertObjToArray' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'convertArrayToObj' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'hasDuplicateKeys' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'KeypairListComponent' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'TextAreaComponent' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'useState' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'useEffect' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'useContext' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'forwardRef' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'classNames' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'convertObjToArray' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'convertArrayToObj' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove unused import for 'hasDuplicateKeys' to improve code cleanliness and remove unnecessary complexity
🔥 chore(EditNodeModal): remove
2023-09-05 11:13:42 -03:00
Cristhian Zanforlin Lousa
28c8b3160e 🔧 fix(parameterComponent): remove unused errorDuplicateKey state variable
🔧 fix(parameterComponent): remove unused dict and dictArr state variables
🔧 fix(parameterComponent): remove unused useEffect hook
🔧 fix(parameterComponent): update onChange handler to setObj instead of setDict
🔧 fix(keypairListComponent): remove commented out code for future feature
🔧 fix(EditNodeModal): update condition to check for "keypairlist" type instead of "keypair" type
🔧 fix(types): update onChange type in DictComponentType to accept any value
🔧 fix(reactflowUtils): remove unnecessary comments and newline at end of file
2023-09-05 10:58:11 -03:00
anovazzi1
0a47163f9b
fix bug on open modals (#865) 2023-09-05 09:50:42 -03:00
Gabriel Luiz Freitas Almeida
ae2e993680 🐛 fix(manager.py): fix import statement to include Dict in typing module
 feat(manager.py): refactor check_table method in DatabaseManager class to use list comprehension for improved readability and performance
2023-09-05 09:34:45 -03:00
Cristhian Zanforlin Lousa
54e3fd15dc 🐛 fix(parameterComponent): fix incorrect type check for dict and keypair components in ParameterComponent
🐛 fix(dictComponent): fix import statement for DictComponentType in dictComponent
🐛 fix(keypairListComponent): fix import statement for KeyPairListComponentType in keypairListComponent
🐛 fix(EditNodeModal): fix incorrect type check for dict and keypair components in EditNodeModal
🐛 fix(types): rename KeyPairListComponent to KeyPairListComponentType and add DictComponentType
2023-09-05 08:34:15 -03:00