Commit graph

6,726 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
7a2ba97b4c Add has_return attribute to CallableCodeDetails
class
2023-12-01 13:12:35 -03:00
Gabriel Luiz Freitas Almeida
4583d30f4c feat(code_parser.py): add support for parsing return statement in function or method nodes
🐛 fix(code_parser.py): fix import formatting to improve readability
 feat(code_parser.py): add support for parsing function arguments and body in function or method nodes
2023-12-01 13:12:19 -03:00
Gabriel Luiz Freitas Almeida
90621f509b Refactor necessary_imports in validate.py 2023-11-30 18:06:27 -03:00
cristhianzl
7bfce4cd1d feat(StorePage): add resetPagination function to reset page index and page size when changing tabs 2023-11-30 17:38:54 -03:00
Lucas Oliveira
b9b8937eda formatting 2023-11-30 17:34:40 -03:00
Lucas Oliveira
b8f8ec9c90 Fixed disabled not disabling text input 2023-11-30 17:33:47 -03:00
Gabriel Luiz Freitas Almeida
1f4712d7ae Fix frontend template update bug 2023-11-30 17:09:39 -03:00
Gabriel Luiz Freitas Almeida
c8404520fe Add CustomComponent class to langflow components 2023-11-30 17:09:12 -03:00
Gabriel Luiz Freitas Almeida
d2966c37df Refactor code_parser.py to remove kwargs from
showing up as fields in the frontend
2023-11-30 17:08:50 -03:00
Gabriel Luiz Freitas Almeida
831f665e06 🐛 fix(validate.py): fix spacing and formatting issues in the code to improve readability
 feat(validate.py): add support for default imports in the dynamic class constructor to improve usability and reduce code duplication
🔧 chore(validate.py): refactor prepare_global_scope function to accept code string as an argument for better modularity and reusability
🔧 chore(validate.py): refactor build_class_constructor function to improve readability and remove unnecessary imports
2023-11-30 16:55:10 -03:00
anovazzi1
67e520cfd6 fix(shareModal): import removeFileNameFromComponents function to fix compilation error
feat(shareModal): add logic to remove file names from flows before sharing to improve privacy and security
feat(reactflowUtils): add removeFileNameFromComponents function to recursively remove file names from flow components
2023-11-30 16:43:28 -03:00
anovazzi1
ab56d48002 fix(inputFileComponent): handle case when fileTypes prop is undefined to prevent error when checking file type
The checkFileType function in the InputFileComponent component now handles the case when the fileTypes prop is undefined. This prevents an error from occurring when checking the file type of the selected file.
2023-11-30 16:17:35 -03:00
anovazzi1
d26b6e36b2 fix(inputFileComponent): handle case when fileTypes is undefined to prevent error when joining the array 2023-11-30 16:16:17 -03:00
Gabriel Luiz Freitas Almeida
98d1eecd40 Refactor code and fix custom_fields bug 2023-11-30 15:42:41 -03:00
anovazzi1
ed47a20c3d fix(inputComponent): remove unnecessary console.log statement
fix(tagsSelectorComponent): reformat code for better readability
fix(styleUtils): remove unused import for GradientGroup from GradientSparkles icons
2023-11-30 15:15:44 -03:00
anovazzi1
14cd1b30fd fix(storeContext.tsx): set initial value of hasStore to false instead of true to fix incorrect initial state
fix(shareModal/index.tsx): import has function from lodash to fix missing import error
fix(shareModal/index.tsx): add hasStore to the list of dependencies in useEffect to fix missing dependency warning
fix(extraSidebarComponent/index.tsx): add hasStore to the list of dependencies in useEffect to fix missing dependency warning
fix(extraSidebarComponent/index.tsx): disable share button if hasStore is false to prevent sharing without a store
fix(extraSidebarComponent/index.tsx): disable share button in ShareModal if hasStore is false to prevent sharing without a store
fix(extraSidebarComponent/index.tsx): disable share button in ShareModal if hasStore is false to prevent sharing without a store
fix(nodeToolbarComponent/index.tsx): add hasStore to the list of dependencies to fix missing dependency warning
fix(nodeToolbarComponent/index.tsx): disable share option in SelectItem if hasStore is false to prevent sharing without a store
2023-11-30 14:58:02 -03:00
igorrCarvalho
2d21535e2a Refactor: Change node description pencil editor color 2023-11-29 22:03:20 -03:00
igorrCarvalho
ba85fd1f7f Fix: Make vectorStore tag stop braking button box 2023-11-29 21:51:42 -03:00
igorrCarvalho
d9cc89860c Fix: Header with wrong colors 2023-11-29 20:45:39 -03:00
anovazzi1
2916502c71 fix(tagsSelectorComponent): remove unnecessary conditional class assignment for fade-container
fix(applies.css): update fade-container::before and fade-container::after background gradient to match the new design
2023-11-29 19:10:38 -03:00
Lucas Oliveira
4911c7196c Fixed glitch on my components, testing needed 2023-11-29 18:50:53 -03:00
Lucas Oliveira
1fd2931e4c Fix delete not deleting when searching for something 2023-11-29 18:45:31 -03:00
Lucas Oliveira
6b691dc47d Fixed context menu on sidebar 2023-11-29 18:35:54 -03:00
anovazzi1
030c19808e chore(genericModal/index.tsx): add comments to indicate that the validatePrompt function needs review
fix(genericModal/index.tsx): fix condition for checking if inputVariables is empty or null
refactor(genericModal/index.tsx): remove unnecessary code and reorganize code logic in the validatePrompt function
2023-11-29 18:00:57 -03:00
Lucas Oliveira
a0c5887d9a Fixed custom component only updating when dragging it 2023-11-29 18:00:24 -03:00
anovazzi1
a2d278b52d refactor(PageComponent): remove unnecessary code that sets the viewport in the useEffect hook
The code was removed because it was not being used and was unnecessary for the functionality of the PageComponent.
2023-11-29 17:44:34 -03:00
Lucas Oliveira
cfdb3f5220 Fixed not updated flow being sent to store 2023-11-29 17:40:19 -03:00
Gabriel Luiz Freitas Almeida
9c02aa5fc9 Fix condition for removing empty keys in
TemplateFieldCreator
2023-11-29 17:11:27 -03:00
Lucas Oliveira
4ec6ee8fd5 Fixed str handles being able to connect to everything 2023-11-29 17:01:36 -03:00
Lucas Oliveira
bd243d9f80 Fix flows being called unnecessarily 2023-11-29 16:55:22 -03:00
anovazzi1
93ec12beb7 fix(promptComponent): remove unused useEffect hook that was causing unnecessary API calls and re-rendering 2023-11-29 16:47:38 -03:00
Lucas Oliveira
8cdae5f45f fixed formatting 2023-11-29 16:43:15 -03:00
Lucas Oliveira
47885cd5f0 Removed unused console.log and fixed takeSnapshot logic 2023-11-29 16:42:45 -03:00
Lucas Oliveira
61504d8702 Fixed delete not updating node internal 2023-11-29 14:47:29 -03:00
Gabriel Luiz Freitas Almeida
1b5e1cce99 Fix import formatting in CustomComponent class 2023-11-29 14:35:25 -03:00
Lucas Oliveira
596ea19e5c Fixed undo not working on node 2023-11-29 14:12:32 -03:00
Lucas Oliveira
1186ee26f4 Updated backend to contain docs to CustomComponent 2023-11-29 14:06:32 -03:00
Lucas Oliveira
5e3bdfbb24 fixed parameterComponent with the new state management 2023-11-29 14:04:16 -03:00
Lucas Oliveira
ab57b14c52 Fixed className not appearing 2023-11-29 14:02:41 -03:00
Lucas Oliveira
9ed9a9dd49 Fixed icon not colorful on nodes 2023-11-29 14:01:26 -03:00
Lucas Oliveira
7638ee9547 Fixed updated component not being saved 2023-11-29 13:48:33 -03:00
Lucas Oliveira
766fd2b08f Formatting 2023-11-29 13:44:41 -03:00
Lucas Oliveira
0857d1f665 Fixed not being able to copy notifications text 2023-11-29 13:44:16 -03:00
Gabriel Luiz Freitas Almeida
7700a72506 Remove backward compatibility code for suffixes in
InputFileComponent
2023-11-29 12:48:03 -03:00
Gabriel Luiz Freitas Almeida
0737b578d1 Add Optional import to documentloaders.py 2023-11-29 10:13:55 -03:00
Gabriel Luiz Freitas Almeida
2532581e02 🐛 fix(base.py): change 'suffixes' to 'fileTypes' in Vertex and LangChainTypeCreator classes to improve consistency and readability
🐛 fix(base.py): remove 'suffixes' attribute from TemplateFieldCreator class as it is duplicate and not used

🐛 fix(base.py): change 'suffixes' to 'file_types' in TOOL_INPUTS dictionary to improve consistency and readability

🐛 fix(base.py): remove 'suffixes' attribute from TemplateFieldCreator class as it is duplicate and not used

🐛 fix(frontend_node/base.py): remove 'suffixes' attribute from FrontendNode class as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from build_file_field function as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from file_path_templates dictionary as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from build_file_field function as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from file_path_templates dictionary as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from build_file_field function as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from file_path_templates dictionary as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from build_file_field function as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from file_path_templates dictionary as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from build_file_field function as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from file_path_templates dictionary as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from build_file_field function as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from
2023-11-29 10:13:08 -03:00
anovazzi1
0f9827564e refactor(parameterComponent): remove unused 'suffixes' prop from ParameterComponent
refactor(codeTabsComponent): remove unused 'suffixes' prop from CodeTabsComponent
refactor(inputFileComponent): remove unused 'suffixes' prop from InputFileComponent
refactor(editNodeModal): remove unused 'suffixes' prop from EditNodeModal
refactor(types): remove unused 'suffixes' prop from FileComponentType
2023-11-29 10:12:40 -03:00
Gabriel Luiz Freitas Almeida
9735fa2abe Fix backward compatibility issue with suffixes in
InputFileComponent
2023-11-29 10:12:24 -03:00
cristhianzl
20a99ed418 chore(tagsSelectorComponent): add useContext hook to import statement to use darkContext
chore(tagsSelectorComponent): add darkContext to useContext hook to access dark mode state
chore(tagsSelectorComponent): add className conditionally based on dark mode state to fade-container div
chore(shareModal): change initial state of checked variable to false
chore(shareModal): add saveFlow function to useContext hook to access saveFlow function from FlowsContext
chore(shareModal): add saveFlow function call to saveFlowStore function call to save flow data to store
chore(shareModal): add saveFlow function call to addFlow function call to add flow to FlowsContext
chore(shareModal): set checked variable to false when sharePublic state changes
chore(shareModal): disable save with my API keys checkbox when sharePublic is true
chore(shareModal): add warning message about deselecting save with my API keys checkbox
chore(components): add resetFilter function to reset filter state variables and set allData to original flows data
chore(components): call resetFilter function when flow is deleted to reset filter state variables and set allData to original flows data
chore(applies.css): rearrange classes in community-page-arrangement to match order of properties
chore(applies.css): add fade-container-dark class to handle dark mode for fade-container div
chore(applies.css): add linear gradient background color for fade-container-dark class to handle dark mode
2023-11-29 10:04:10 -03:00
Gabriel Luiz Freitas Almeida
024ca2540f Merge remote-tracking branch 'origin/dev' into feature/store 2023-11-29 07:47:37 -03:00