Commit graph

4,785 commits

Author SHA1 Message Date
Cristhian Zanforlin Lousa
321024fd4c 🔥 refactor(keypairListComponent): remove commented out code and unused imports for cleaner code
🐛 fix(reactflowUtils.ts): add space before key in flattenedObject to prevent ordering when adding new keys to the object
2023-09-15 14:02:21 -03:00
Cristhian Zanforlin Lousa
55513a34a3 🐛 fix(parameterComponent): fix logic for setting default value in ParameterComponent
🐛 fix(dictComponent): fix class name for disabled input in DictComponent
🐛 fix(keypairListComponent): remove unnecessary disabled prop from Input component in KeypairListComponent
2023-09-15 09:27:48 -03:00
Cristhian Zanforlin Lousa
a6751d4a17 🐛 fix(parameterComponent): fix nullish coalescing operator usage to prevent potential error when accessing nested object properties 2023-09-15 08:48:23 -03:00
Cristhian Zanforlin Lousa
dd556c518d 🐛 fix(parameterComponent): remove unnecessary useEffect hook that sets dictArr state
🐛 fix(parameterComponent): update value prop of KeypairListComponent to use convertObjToArray(dict) instead of dict
2023-09-15 08:47:51 -03:00
Cristhian Zanforlin Lousa
83e48f0728 🐛 fix(parameterComponent): fix issue with undefined values in DictComponent and KeypairListComponent 2023-09-14 19:57:33 -03:00
Cristhian Zanforlin Lousa
1c1d6d2c02 🔧 fix(parameterComponent): remove unused longString variable to improve code readability and reduce unnecessary code
🔧 fix(parameterComponent): move DictComponent and KeypairListComponent rendering logic to the correct position to fix rendering issues
🔧 fix(keypairListComponent): remove unused imports and fix formatting to improve code readability
🔧 fix(keypairListComponent): fix handleChangeKey function name to improve code clarity
🔧 fix(keypairListComponent): fix className prop in Input component to improve code readability
🔧 fix(keypairListComponent): remove unused GenericModal component and fix formatting to improve code readability
🔧 fix(reactflowUtils.ts): fix formatting and remove unnecessary whitespace to improve code readability
🔧 fix(reactflowUtils.ts): fix function names and formatting to improve code readability
🔧 fix(reactflowUtils.ts): fix formatting and remove unnecessary whitespace to improve code readability
🔧 fix(reactflowUtils.ts): fix formatting and remove unnecessary whitespace to improve code readability
2023-09-14 19:53:39 -03:00
Cristhian Zanforlin Lousa
81bd366654 🔨 refactor(parameterComponent): update initial state of dict to include a default key-value pair for better clarity and consistency
🔨 refactor(EditNodeModal): update initial state of dict to include a default key-value pair for better clarity and consistency
2023-09-14 14:39:07 -03:00
Cristhian Zanforlin Lousa
dc2ff9a91c Merge branch 'feat-dict' of https://github.com/logspace-ai/langflow into feat-dict 2023-09-14 14:32:26 -03:00
Cristhian Zanforlin Lousa
9e4f30f774 🔀 refactor(parameterComponent): remove initial values from dict state and dictArr state to improve code readability and maintainability 2023-09-14 14:32:11 -03:00
Cristhian Zanforlin Lousa
6b129b4d44 🐛 fix(dictComponent): fix placeholder text in input field to improve clarity and user experience
🔀 refactor(dictComponent): reorganize imports for better readability and maintainability
2023-09-14 14:32:03 -03:00
Gabriel Luiz Freitas Almeida
fbedf7f734 feat(field_typing): add NestedDict type alias to improve code readability and maintainability 2023-09-14 14:09:18 -03:00
Gabriel Luiz Freitas Almeida
70d9742d16 🐛 fix(parameterComponent): fix type comparison for "NestedDict" to improve accuracy and consistency
🐛 fix(EditNodeModal): fix type comparison for "NestedDict" to improve accuracy and consistency
2023-09-14 14:09:06 -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
Cristhian Zanforlin Lousa
20014f4937 merge dev 2023-09-05 11:44:16 -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
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
Cristhian Zanforlin Lousa
e50b593681 🐛 fix(API/index.ts): handle potential undefined response object properties to prevent errors 2023-09-04 20:18:10 -03:00
Cristhian Zanforlin Lousa
1beca4ed12 📦 chore(frontend): add react18-json-view package to package.json dependencies
🎨 style(App.css): reformat CSS code for better readability and consistency
🚀 feat(App.css): add styles for json-view component
🔨 refactor(parameterComponent): extract DictComponent to a separate file for reusability
🔧 chore(constants): add constant for CODE_DICT_DIALOG_SUBTITLE
🔨 refactor(EditNodeModal): extract DictComponent to a separate file for reusability
🔧 chore(constants): add constant for CODE_DICT_DIALOG_SUBTITLE
🔨 refactor(codeAreaModal): remove unused isTweakPage variable

🚀 feat(dictAreaModal): add DictAreaModal component to allow editing of dictionaries
🔧 chore(styleUtils.ts): import and add BookMarked icon to nodeIconsLucide for future use
2023-09-04 20:15:23 -03:00
anovazzi1
25f7814fea refactor(codeTabsComponent): wrap code tabs in a div with flex column layout for better styling and readability 2023-09-04 19:33:21 -03:00
anovazzi1
8acdd1abff fix animation 2023-09-04 19:29:20 -03:00
anovazzi1
0fe46a3909 revert to default animation of radixUI 2023-09-04 18:48:50 -03:00
Lucas Oliveira
5df8b11d9f Changed autocomplete to only fill when on form 2023-09-04 16:37:43 -03:00
anovazzi1
82368bbe76
Login enhancements (#847)
This pull request introduces a series of enhancements to our recently
revamped login page, streamlining the user experience. These changes
were meticulously designed and developed to ensure a seamless login
process for our users while adhering to the highest standards of
usability and privacy.
2023-09-04 16:20:18 -03:00
anovazzi1
2112f6152e Merge remote-tracking branch 'origin/dev' into login_improvements 2023-09-04 16:19:13 -03:00
Gabriel Luiz Freitas Almeida
4efab50916
Replace logging with loguru (#863) 2023-09-04 19:18:50 +00:00
Gabriel Luiz Freitas Almeida
e8846fc568
Merge branch 'dev' into implement_loguru 2023-09-04 19:17:21 +00:00
Gabriel Luiz Freitas Almeida
28b487dc33 🔧 fix(manager.py): change logger.warn to logger.warning for consistency and clarity
🔧 fix(logger.py): change log_file parameter type annotation to Optional[Path] to indicate that it is an optional argument
2023-09-04 16:15:41 -03:00
Gabriel Luiz Freitas Almeida
7e336bbee6 🐛 fix(logger.py): change log_level variable to uppercase to improve consistency and semantics 2023-09-04 16:13:01 -03:00
Gabriel Luiz Freitas Almeida
3c153c8b1b
Improves endpoint dependency usage (#862) 2023-09-04 19:06:31 +00:00
Gabriel Luiz Freitas Almeida
58c3e5e9dc refactor: replace loggers with loguru 2023-09-04 11:38:39 -03:00
Gabriel Luiz Freitas Almeida
87eb8b1a95 🔧 chore(logger.py): refactor logger configuration to use loguru library and improve log formatting 2023-09-04 11:35:22 -03:00
Gabriel Luiz Freitas Almeida
5f98f0bbd9 📦 chore(pyproject.toml): add loguru package as a dependency for improved logging capabilities 2023-09-04 11:34:38 -03:00
Gabriel Luiz Freitas Almeida
2ab3fcb28a 🐛 fix(base.py): set default value of frontend_node to None in ValidatePromptRequest class to avoid potential NoneType errors
🐛 fix(validate.py): set frontend_node to None instead of an empty dictionary in post_validate_prompt function to align with the default value in ValidatePromptRequest class
2023-09-04 10:04:21 -03:00
Gabriel Luiz Freitas Almeida
dc1a5c81a1
added missing backslashes to api key request definition and bugfix to migration script (#858) 2023-09-04 12:36:17 +00:00
root
b1c24054c6 added indent to index dropping on non-existing table 2023-09-04 11:41:34 +00:00
Gabriel Luiz Freitas Almeida
53c5a3ccde 🐛 fix(base.py): make frontend_node field in PromptValidationResponse optional to handle cases where it is not provided 2023-09-04 07:05:10 -03:00
Gabriel Luiz Freitas Almeida
833fb4ad8f 🔀 chore(utils.py): add type hint for get_session() function to indicate it returns a generator instead of a Session object 2023-09-04 07:01:05 -03:00
Gabriel Luiz Freitas Almeida
43864904ef 🔧 chore(Makefile): update mypy command to only check files in src/backend/langflow directory to improve performance and reduce noise in the output 2023-09-04 07:00:38 -03:00
Gabriel Luiz Freitas Almeida
37ebbf4e65 Formatting 2023-09-04 06:42:41 -03:00
Gabriel Luiz Freitas Almeida
84a0d3acb3 🔧 fix(chat.py): remove unused imports and type hints to improve code readability
 feat(chat.py): add dependency injection for ChatManager in chat and init_build routes to improve modularity and testability
🔧 fix(chat.py): remove duplicate instantiation of ChatManager in chat and init_build routes to improve efficiency
🔧 fix(chat.py): remove duplicate instantiation of ChatManager in stream_build route to improve efficiency
🔧 fix(utils.py): add missing import for ChatManager in get_chat_manager function
2023-09-04 06:42:01 -03:00
Gabriel Luiz Freitas Almeida
2bbbf44b39 🐛 fix(endpoints.py): change get_all function signature to include settings_manager as a dependency to improve code readability
🐛 fix(flows.py): change update_flow function signature to include settings_manager as a dependency to improve code readability
🐛 fix(login.py): change auto_login function signature to include settings_manager as a dependency to improve code readability
🐛 fix(users.py): change add_user function signature to include session as a dependency to improve code readability
🐛 fix(users.py): change read_all_users function signature to include session as a dependency to improve code readability
🐛 fix(users.py): change patch_user function signature to include session as a dependency to improve code readability
🐛 fix(users.py): change delete_user function signature to include session as a dependency to improve code readability
🐛 fix(users.py): change add_super_user_for_testing_purposes_delete_me_before_merge_into_dev function signature to include session as a dependency to improve code readability
2023-09-04 06:41:34 -03:00
root
6d6ab9a874 added missing backslashes to api key request definition 2023-09-02 21:36:49 +00:00
Cristhian Zanforlin Lousa
1b317ee4c9 Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-08-31 16:07:53 -03:00
Cristhian Zanforlin Lousa
d16456d795 🎨 style(headerComponent): add cursor-pointer class to admin page and logout menu items for better user experience 2023-08-31 16:07:48 -03:00
Gabriel Luiz Freitas Almeida
cde00160b8
Adds teardown logic for database and other services (#852) 2023-08-31 14:51:44 +00:00
Gabriel Luiz Freitas Almeida
594dfb13c1 🔀 chore(manager.py): ignore type error for session_manager_factory import to prevent linting errors 2023-08-31 11:49:51 -03:00
Lucas Oliveira
06e5e7dc4c Formatting issues 2023-08-31 11:49:00 -03:00