Commit graph

3,645 commits

Author SHA1 Message Date
Lucas Oliveira
f35cbde38a Changed color to specific one 2023-07-25 17:56:02 -03:00
Gabriel Luiz Freitas Almeida
4e5850da3a 🔀 chore(base.py): add "beta" field to the serialized representation of FrontendNode class
📝 docs(base.py): update documentation for FrontendNode class to include information about the "beta" field
2023-07-25 17:49:30 -03:00
Lucas Oliveira
11bad4d07d Added classes to index.css 2023-07-25 17:43:51 -03:00
Lucas Oliveira
ae2707d7c3 Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component 2023-07-25 17:38:49 -03:00
Lucas Oliveira
c9e13eb359 Changed color 2023-07-25 17:38:24 -03:00
Lucas Oliveira
6749fb4475 Changed disposition of Beta div 2023-07-25 17:30:03 -03:00
Gabriel Luiz Freitas Almeida
74e263811b 🔨 refactor(types.py): import CustomComponentFrontendNode from custom_components module to improve code organization and readability
🔨 refactor(types.py): change usage of CustomComponentNode to CustomComponentFrontendNode to align with updated module structure

🔨 refactor(frontend_node/base.py): add beta flag to FrontendNode class to indicate if a node is in beta stage

🔨 refactor(custom_components.py): add beta flag to CustomComponentFrontendNode class to indicate it is in beta stage

🔨 refactor(tools.py): remove unused import of DEFAULT_CUSTOM_COMPONENT_CODE

🔨 refactor(tools.py): remove CustomComponentNode class as it is no longer used
2023-07-25 17:22:02 -03:00
Lucas Oliveira
19c714a7d5 Added Beta badge 2023-07-25 17:14:12 -03:00
Gabriel Luiz Freitas Almeida
b76141b3df 🔄 refactor(custom_component.py): rename list_flow_names method to list_flows for better clarity and consistency
🐛 fix(custom_component.py): fix return value of list_flows method to return the actual flow objects instead of just their names
🔥 chore(custom_component.py): remove unused build method as it is not implemented
2023-07-25 17:12:48 -03:00
Gabriel Luiz Freitas Almeida
95f69442d6 📝 docs(README.md): add documentation for deploying on Railway and Render platforms
📝 docs(README.md): add documentation for the `component-path` command line option to specify custom components directory path
2023-07-25 15:37:12 -03:00
Gabriel Luiz Freitas Almeida
46c6afd85f 🔥 refactor(main.py): remove commented out code for getting log level in create_app() function
🔒 chore(main.py): configure logger in create_app() function to ensure proper logging setup
2023-07-25 15:13:43 -03:00
Gabriel Luiz Freitas Almeida
a928005b7b 🐛 fix(endpoints.py): change import statement for typing module to import Annotated from typing module to fix type hinting error
 feat(endpoints.py): add support for clear_cache parameter in process_flow endpoint to allow clearing the cache before processing the flow
🐛 fix(process.py): add logic to clear cache if clear_cache parameter is True in process_graph_cached function to fix caching issue
2023-07-25 15:04:41 -03:00
Gabriel Luiz Freitas Almeida
c83060ed58 🐛 fix(base.py): import CLASSES_TO_REMOVE constant from constants module to fix NameError
🔀 chore(constants.py): add CLASSES_TO_REMOVE constant to store classes to be removed from base.py module
2023-07-25 14:21:43 -03:00
Gabriel Luiz Freitas Almeida
f64d0a2ae4 🐛 fix(parameterComponent): remove unnecessary empty lines for better code readability
🐛 fix(utils): remove unnecessary empty lines for better code readability
2023-07-25 14:21:14 -03:00
Gabriel Luiz Freitas Almeida
12933ccf52 🔧 chore(__main__.py): add debug logs to update_settings function for better troubleshooting
 feat(__main__.py): add support for loading settings from a specified config file
 feat(__main__.py): add support for setting remove_api_keys flag
 feat(__main__.py): add support for setting cache flag
 feat(__main__.py): add support for adding component path
2023-07-25 13:53:39 -03:00
Cristhian Zanforlin Lousa
418e132da1 Merge branch 'python_custom_node_component' of https://github.com/logspace-ai/langflow into python_custom_node_component 2023-07-25 12:48:32 -03:00
Cristhian Zanforlin Lousa
75e19b4339 🐛 fix(parameterComponent): remove unnecessary if condition and code block
🐛 fix(utils): remove unnecessary if condition and code block
 feat(parameterComponent): add fallback logic to display a custom component when no grouped objects are found
2023-07-25 12:48:24 -03:00
Gabriel Luiz Freitas Almeida
0095fc4753 🔧 chore(settings.py): add BASE_COMPONENTS_PATH constant to improve code readability and maintainability
🔧 chore(settings.py): add support for LANGFLOW_COMPONENT_PATH environment variable to allow custom component paths to be added
2023-07-25 12:16:06 -03:00
Gabriel Luiz Freitas Almeida
aebdfad63c 🔀 chore(config.yaml): rename 'custom' section to 'custom_components' for better clarity and consistency 2023-07-25 12:03:28 -03:00
Gabriel Luiz Freitas Almeida
9736dab3c7 🔧 chore(parameterComponent): fix indentation and replace single quotes with double quotes for consistency
📝 docs(parameterComponent): update placeholder text for custom component to be more descriptive
2023-07-25 11:47:43 -03:00
Gabriel Luiz Freitas Almeida
aa387f89b3 🐛 fix(types.py): add error handling when building custom components to prevent crashes and log the error message 2023-07-25 11:47:21 -03:00
Gabriel Luiz Freitas Almeida
eb94b957b5 🐛 fix(endpoints.py): fix merging of custom component dictionaries from multiple paths
 feat(endpoints.py): add support for merging custom component dictionaries from multiple paths to build the final dictionary of all components
2023-07-25 11:46:57 -03:00
Gabriel Luiz Freitas Almeida
61d8f8edcc 🔧 chore(launch.json): update uvicorn args to use --factory flag and specify the correct app factory function 2023-07-25 11:42:05 -03:00
Gabriel Luiz Freitas Almeida
ac0aa71c10 🐛 fix(__main__.py): add support for component_path parameter to update_settings function
 feat(__main__.py): add component_path option to serve command to specify the directory containing custom components
🐛 fix(settings.py): modify update_settings function to handle list attributes correctly
2023-07-25 10:58:08 -03:00
Gabriel Luiz Freitas Almeida
17e84e4b2e 🔨 refactor(endpoints.py): rename directory_loader module to directory_reader for better naming consistency
🔨 refactor(endpoints.py): rename directory_loader import to directory_reader for better naming consistency
🔨 refactor(directory_reader.py): rename directory_loader module to directory_reader for better naming consistency
🔨 refactor(types.py): rename directory_loader import to directory_reader for better naming consistency
2023-07-25 10:58:07 -03:00
Cristhian Zanforlin Lousa
94ccb79564 🐛 fix(parameterComponent): update placeholder text for custom component to provide clearer instructions 2023-07-25 10:43:20 -03:00
Cristhian Zanforlin Lousa
4677dcfad2 🐛 fix(parameterComponent): add fallback custom component when groupedObj is empty to prevent rendering issues 2023-07-25 10:27:45 -03:00
Gabriel Luiz Freitas Almeida
eece41a69a 🔨 refactor(endpoints.py): rename 'load_custom_component_from_path' module to 'directory_loader' for better clarity and consistency
🔨 refactor(types.py): rename 'load_custom_component_from_path' module to 'directory_loader' for better clarity and consistency
2023-07-25 10:06:26 -03:00
Lucas Oliveira
59ef06ab79 Fixed flow not creating after creating custom component 2023-07-25 10:01:21 -03:00
Lucas Oliveira
e6e96b6f96 Formatting fixes 2023-07-25 09:53:05 -03:00
Lucas Oliveira
07ff2cc52f Changed tooltip handler to not use PopupContext 2023-07-25 09:52:27 -03:00
Lucas Oliveira
d283ce5600 Merge branch 'dev' into python_custom_node_component 2023-07-25 09:41:01 -03:00
Lucas Oliveira
53caa41531 Merge branch 'dev' into python_custom_node_component 2023-07-25 09:39:52 -03:00
Lucas Oliveira
2d9081403f
Modal refactor (#647)
This PR is about the transition from PopupContext to the Radix native
way of handling popups, as well as applying a BaseModal to all of the
modals to improve modularity.
2023-07-25 08:43:59 -03:00
Gabriel Luiz Freitas Almeida
e8c0eda048
Implementing Custom Tooltips for Custom Components Feature (#680) 2023-07-24 19:04:04 -03:00
Cristhian Zanforlin Lousa
fb6caaa6bc 🔥 refactor(parameterComponent): remove unnecessary console.log statement 2023-07-24 18:20:12 -03:00
Gabriel Luiz Freitas Almeida
83fa1502a4 🔧 chore(pre-release.yml): update POETRY_VERSION to 1.5.1 to use the latest version of Poetry
🔧 chore(release.yml): update POETRY_VERSION to 1.5.1 to use the latest version of Poetry
2023-07-24 17:20:18 -03:00
Gabriel Luiz Freitas Almeida
18c2674395 📦 chore(pre-release.yml): add pre-release workflow to automate the release process 2023-07-24 17:17:00 -03:00
Lucas Oliveira
ddfb534a03 Fixed message not appearing when code is displayed 2023-07-24 15:51:28 -03:00
Cristhian Zanforlin Lousa
078626052f formatting 2023-07-24 15:30:00 -03:00
Cristhian Zanforlin Lousa
891abae528 🐛 fix(parameterComponent): fix linting issues and add missing import
 feat(parameterComponent): add support for custom components in groupByFamily function
 feat(utils): add groupByFamilyCustom function to handle custom components in groupByFamily function
2023-07-24 15:10:55 -03:00
Lucas Oliveira
edf570f314 Added indicator of chat thinking when message is empty. 2023-07-24 11:32:36 -03:00
Lucas Oliveira
ada32b6a48 Refactored state management from tweaks 2023-07-24 10:58:48 -03:00
Gabriel Luiz Freitas Almeida
1910a03d71 ⬆️ chore(pyproject.toml): update gunicorn and langchain dependencies
- Upgrade gunicorn from version 20.1.0 to 21.1.0
- Upgrade langchain from version 0.0.237 to 0.0.240
2023-07-24 10:27:48 -03:00
Cristhian Zanforlin Lousa
530d416735 🔧 fix(parameterComponent): import 'flow' function from lodash to fix missing reference error
🔧 fix(parameterComponent): add 'flows' to the list of destructured variables from TabsContext to fix missing reference error
🔧 fix(parameterComponent): remove unused console.log statements to clean up code
2023-07-24 10:09:53 -03:00
Lucas Oliveira
169a20ab97 Fixed all bugs with tweaks on API modal 2023-07-24 09:55:42 -03:00
Lucas Oliveira
b6ee0ff800 Merge branch 'modalRefactor' into python_custom_node_component 2023-07-23 19:50:51 -03:00
Lucas Oliveira
66cec7d545 Formatting on merge 2023-07-23 19:49:13 -03:00
Lucas Oliveira
7239223481 Merge branch 'dev' into modalRefactor 2023-07-23 19:48:41 -03:00
Cristhian Zanforlin Lousa
c21cf4bb56 🐛 fix(inputListComponent): import useContext from react to fix missing import error
🐛 fix(inputListComponent): import set from lodash to fix missing import error
 feat(inputListComponent): add PopUpContext import to use closeEdit function
🐛 fix(inputListComponent): add useEffect to update inputList state when value prop changes
🐛 fix(EditNodeModal): import getRandomKeyByssmm from utils to fix missing import error
 feat(EditNodeModal): add PopUpContext import to use setCloseEdit function
🐛 fix(EditNodeModal): add useEffect to reset myData state when modalOpen prop changes
2023-07-22 09:43:17 -03:00