Commit graph

3,537 commits

Author SHA1 Message Date
gustavoschaedler
eb7158ad26 🔨 refactor(custom_component.py): remove unused imports and unused load_flow method parameters for better code cleanliness
🔨 refactor(custom_component.py): update load_flow method to use the process_flow function from the api endpoints module for improved modularity and separation of concerns
2023-07-20 18:56:46 +01:00
gustavoschaedler
a4cfe9e1e4 🔧 chore(custom_component.py): reformat code for better readability and maintainability
🔧 chore(custom_component.py): reformat code to improve code style and adhere to PEP 8 guidelines
2023-07-20 18:44:32 +01:00
gustavoschaedler
df77c25138 Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component 2023-07-20 18:42:04 +01:00
gustavoschaedler
2513cbcdd9 🔧 chore(custom_component.py): reformat code for better readability and maintainability
🚀 feat(custom_component.py): add `load_flow` method to load a flow from the database using session and flow_id
2023-07-20 18:35:53 +01:00
Lucas Oliveira
08c63dbd73 Removed cleanEdges on handleClick 2023-07-20 14:00:00 -03:00
Gabriel Luiz Freitas Almeida
8b3fe49e51 🎨 style(styleUtils.ts): replace Sparkles icon with GradientSparkles icon for custom_components in nodeIconsLucide object to improve visual consistency 2023-07-20 11:52:57 -03:00
Gabriel Luiz Freitas Almeida
162036cbc7 Merge remote-tracking branch 'refs/remotes/origin/python_custom_node_component' into python_custom_node_component 2023-07-20 11:52:14 -03:00
Gabriel Luiz Freitas Almeida
a4d4e5cde4 🎨 chore(GradientSparkles): add GradientSparkles icon component
🔧 fix(utils.ts): replace Sparkles icon with GradientSparkles icon component in nodeIconsLucide object
2023-07-20 11:45:53 -03:00
Gabriel Luiz Freitas Almeida
72a3316fad css formatting 2023-07-20 11:45:16 -03:00
Lucas Oliveira
b013f84896 Merge branch 'modalRefactor' into python_custom_node_component 2023-07-20 11:29:32 -03:00
Lucas Oliveira
d0300a197c added generic icon onto custom tab code 2023-07-20 11:16:45 -03:00
Lucas Oliveira
fb22ec701f Merge branch 'dev' into modalRefactor 2023-07-20 11:16:03 -03:00
Lucas Oliveira
f1b8760a02 merge fixes 2023-07-20 10:16:58 -03:00
Lucas Oliveira
5f375d4c2a fix merge 2023-07-20 10:16:28 -03:00
Lucas Oliveira
6a0de25b80 Merge branch 'modalRefactor' into python_custom_node_component 2023-07-20 10:14:49 -03:00
Lucas Oliveira
8f6e8f9e91 Fixed bug that has been fixed at CustomComponents 2023-07-20 10:12:29 -03:00
Lucas Oliveira
2022f4b31b Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component 2023-07-20 10:05:06 -03:00
Lucas Oliveira
af63dd02da Removed unused console.log 2023-07-20 10:04:45 -03:00
Lucas Oliveira
efd58383b9 Fixed unnecessary calls 2023-07-20 10:04:05 -03:00
Lucas Oliveira
19aca4a031 Fixed bug where edges are not maintained after refreshing custom component; Fixed bug where handles are not refreshed on custom component; 2023-07-20 10:03:11 -03:00
Gabriel Luiz Freitas Almeida
583eca137a feat(logger.py): configure default logger with optional log level and log file parameters for better customization
🔧 chore(logger.py): remove unnecessary blank lines and comments for cleaner code
2023-07-20 09:09:17 -03:00
Igor Carvalho
9a75153125 refactor[utils.ts]: Change arrow functions to normal functions 2023-07-19 18:23:34 -03:00
Igor Carvalho
6d5ef2647a Formated code 2023-07-19 18:23:34 -03:00
Igor Carvalho
3aeb590264 refactor[constants.ts]: Remove functions, enums, icons and interfaces from constants file 2023-07-19 18:23:34 -03:00
Igor Carvalho
c20541fc37 refactor[src/constants]: Create a constants and enums directorie 2023-07-19 18:23:34 -03:00
anovazzi1
1a5f33ddd4 chore(codeAreaModal): import cleanEdges function from reactflowUtils to improve code readability and maintainability
feat(codeAreaModal): add typesContext to access reactFlowInstance for cleaning edges before processing code
2023-07-19 18:14:22 -03:00
Gabriel Luiz Freitas Almeida
0b283f8703 🐛 fix(types.py): convert avg_length to an integer to improve readability in DocumentLoaderVertex and TextSplitterVertex 2023-07-19 17:59:04 -03:00
Igor Carvalho
21d63be4b4 Add inline code documentation 2023-07-19 17:48:12 -03:00
Igor Carvalho
6867984659 Add pages functions documentation 2023-07-19 17:48:12 -03:00
gustavoschaedler
9adff855fb 🔧 chore(constants.py): update class attribute names to follow Langflow naming convention for better consistency and clarity
 feat(load_custom_component_from_file.py): add functionality to compress and decompress code, validate code syntax, validate build function presence, read file content, get list of .py files in a directory, find menu by name in response, process file by validating content and returning result and content/error message, and build component menu list from .py files in a directory
2023-07-19 21:16:36 +01:00
Lucas Oliveira
62bcfdeaa9 Fixed bug where prompt modal not saving, but there is no Clean Edges now 2023-07-19 11:03:44 -03:00
Lucas Oliveira
b46a967452 Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component 2023-07-19 11:01:53 -03:00
Lucas Oliveira
be712a45af Fixed bug where PromptComponent does not save, but there is no Clean Edges now 2023-07-19 11:01:23 -03:00
Gabriel Luiz Freitas Almeida
58d7491d83 🔨 refactor(endpoints.py): rename langchain_types_dict import to build_langchain_types_dict for clarity and consistency
🔨 refactor(types.py): remove unused langchain_types_dict variable to improve code cleanliness
2023-07-19 10:00:47 -03:00
Gabriel Luiz Freitas Almeida
4827c99368 🐛 fix(code_parser.py): handle case when code parameter is a class by getting its source code using inspect module
 feat(code_parser.py): add support for parsing class source code in addition to string source code to improve flexibility and usability
2023-07-19 07:03:54 -03:00
anovazzi1
0e477428b5
Add generic icon component (#637)
Add a generic component to generate all project icons
2023-07-18 18:55:20 -03:00
anovazzi1
d14d7fcc92 fix codacity issues 2023-07-18 18:51:15 -03:00
Lucas Oliveira
d668640791 Fixed code not saving 2023-07-18 18:40:53 -03:00
anovazzi1
1be753149d fix(AccordionComponent): add keyValue prop to AccordionComponent to fix missing key error
fix(AccordionComponent): remove unused import statements from AccordionComponent
fix(accordion.tsx): remove unnecessary className from AccordionContent component
fix(index.css): remove unnecessary cursor property from .AccordionContent class
fix(ApiModal): add keyValue prop to AccordionComponent in ApiModal to fix missing key error
fix(formModal): remove unused import statements from formModal
fix(formModal): replace Accordion, AccordionContent, AccordionItem, and AccordionTrigger components with AccordionComponent in formModal
fix(formModal): add keyValue prop to AccordionComponent in formModal to fix missing key error
fix(index.ts): add keyValue prop to AccordionComponentType to fix missing key error
fix(tailwind.config.js): remove unused keyframes and animation properties from tailwind.config.js
2023-07-18 18:38:19 -03:00
Lucas Oliveira
0560c966f6 Merge branch 'modalRefactor' into python_custom_node_component 2023-07-18 18:23:05 -03:00
Lucas Oliveira
dbb9b8ab81 Fixed disableCopyPaste on modals 2023-07-18 18:22:22 -03:00
Igor Carvalho
5f8efd244e formated code 2023-07-18 18:22:20 -03:00
Igor Carvalho
1ff7dca09e feat: Add remaining icons (Slack, Wikipedia and Wolfram) 2023-07-18 18:21:03 -03:00
Lucas Oliveira
02cff362f0 Merge branch 'modalRefactor' into python_custom_node_component 2023-07-18 18:13:26 -03:00
anovazzi1
8d4031dec0
Refactor Accordion Component for Shared Usage (#653)
This pull request aims to refactor the Accordion Component to enable its
shared usage by both the formModal (chat) component and the Tweaks
component. By making the necessary modifications, we can eliminate code
duplication and improve maintainability across the application.
2023-07-18 16:15:31 -03:00
Gabriel Luiz Freitas Almeida
5d4aae9ba3 🐛 fix(codeAreaModal/index.tsx): update condition in useEffect to check if nodeClass.template has more than 2 fields instead of 1
 feat(codeAreaModal/index.tsx): refactor handleClick function to call processCode function instead of directly calling postValidateCode function
 feat(codeAreaModal/index.tsx): add support for processing non-dynamic fields by calling postValidateCode function and updating success and error data accordingly
 feat(codeAreaModal/index.tsx): add support for processing dynamic fields by calling postCustomComponent function and updating nodeClass and error data accordingly
2023-07-18 15:39:43 -03:00
Gabriel Luiz Freitas Almeida
e0d086e85a 🔥 refactor(codeAreaModal/index.tsx): simplify useEffect logic and add conditional check to prevent unnecessary handleClick execution 2023-07-18 15:29:29 -03:00
Gabriel Luiz Freitas Almeida
1f9e84d8c2 🔥 refactor(codeAreaModal/index.tsx): comment out unused useEffect hook and handleClick function
🔥 refactor(codeAreaModal/index.tsx): remove unused useEffect hook and handleClick function
2023-07-18 15:17:49 -03:00
anovazzi1
c77048c7ca chore(genericIconComponent): update import path for nodeIconsLucide in IconComponent to reflect new location in styleUtils 2023-07-18 15:05:05 -03:00
anovazzi1
d8acf8cb8d fix import 2023-07-18 14:53:08 -03:00