Lucas Oliveira
1687824453
Optimized code
2023-07-31 14:01:54 -03:00
Lucas Oliveira
ac46fff761
Formattef code
2023-07-31 10:53:42 -03:00
Lucas Oliveira
2720d27e30
Fixed error showing when not supposed to
2023-07-31 10:53:03 -03:00
Lucas Oliveira
ce2f750626
Optimized code
2023-07-31 10:50:51 -03:00
Gabriel Luiz Freitas Almeida
566c48166e
🔀 refactor(custom_component.py): modify get_flow method to accept keyword arguments for flow_name and flow_id to improve flexibility and readability
2023-07-31 10:35:48 -03:00
Lucas Oliveira
5de0b2d5ad
Fixed input types logic on tooltip
2023-07-31 10:28:03 -03:00
Gabriel Luiz Freitas Almeida
9acb6fef36
🚀 feat(custom_component.py): add methods to retrieve flow by name and flow by id for CustomComponent
...
🐛 fix(custom_component.py): fix indentation issue in CustomComponent class
2023-07-31 10:26:27 -03:00
Lucas Oliveira
2ec4cf1a55
Fixed logic of getting tooltips, added description when tooltip is empty
2023-07-31 09:57:06 -03:00
Lucas Oliveira
3683c01102
Added scroll on tooltip, added logic to check base_classes in flow nodes before the /all list
2023-07-31 08:41:52 -03:00
Rodrigo Nader
7b12bb5e5b
review flow-runner example
2023-07-31 02:22:23 -03:00
Rodrigo Nader
060fa07398
change announcement color
2023-07-30 18:05:16 -03:00
Rodrigo Nader
1cba53fcc9
minor
2023-07-30 17:59:12 -03:00
Rodrigo Nader
5a12848e49
minor
2023-07-30 17:53:33 -03:00
Lucas Oliveira
1590aa491a
Optimized groupByFamily and implemented output tooltip showing the nodes that receive its output
2023-07-28 21:26:08 -03:00
gustavoschaedler
7f23334f97
🐛 fix(directory_reader.py): add check for usage of 'Optional' type hint without importing it
...
✨ feat(directory_reader.py): add methods to check if a specific type hint is imported and used in function arguments
✨ feat(directory_reader.py): add method to check if a type hint is used but not imported in the code
✨ feat(directory_reader.py): add check for usage of 'Optional' type hint without importing it in the process_file method
2023-07-28 23:24:17 +01:00
Rodrigo Nader
7b03dfabe6
change images
2023-07-28 17:37:28 -03:00
Rodrigo Nader
0bec0ab1db
update docs
2023-07-28 17:16:49 -03:00
anovazzi1
735f2556c2
Merge branch 'python_custom_node_component' of personal:logspace-ai/langflow into python_custom_node_component
2023-07-28 16:09:13 -03:00
Lucas Oliveira
115a784b66
Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component
2023-07-28 15:21:14 -03:00
Lucas Oliveira
5e78f6be79
Changed gitignore
2023-07-28 15:19:31 -03:00
Gabriel Luiz Freitas Almeida
bdc62ba725
🐛 fix(__main__.py): change default value of workers option from -1 to 2 to limit the number of worker processes
2023-07-28 15:17:03 -03:00
Lucas Oliveira
eaceee9480
GitIgnore changed
2023-07-28 15:07:03 -03:00
Lucas Oliveira
638f450ead
Fixed bug showing on console from Unknown
2023-07-28 15:05:10 -03:00
Lucas Oliveira
22faf54737
Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component
2023-07-28 15:01:08 -03:00
Rodrigo Nader
6be4799950
improve custom component docs
2023-07-28 15:00:57 -03:00
Lucas Oliveira
df8d84d07f
Fixed unknown node not showing
2023-07-28 14:59:40 -03:00
anovazzi1
48995ce849
Merge branch 'python_custom_node_component' of personal:logspace-ai/langflow into python_custom_node_component
2023-07-28 14:58:26 -03:00
anovazzi1
199052e754
fix(extraSidebarComponent): add useEffect hook to show components with errors on load
...
fix(extraSidebarComponent): update key prop in ShadTooltip component to use unique value
fix(extraSidebarComponent): update draggable attribute in component div to be disabled if there is an error
feat(api): add error property to APIClassType to indicate if there is an error in the component
2023-07-28 14:58:05 -03:00
Lucas Oliveira
148483ed56
Fixed key bug inside accordion
2023-07-28 14:51:06 -03:00
Lucas Oliveira
1ea05b3584
Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component
2023-07-28 14:49:11 -03:00
Lucas Oliveira
641bcb4a58
Fixed unique keys bug
2023-07-28 14:48:40 -03:00
Gabriel Luiz Freitas Almeida
208b5d4bb8
📝 docs(custom.mdx): improve formatting and add missing punctuation in the table description
...
🐛 fix(custom.mdx): add missing punctuation in the field descriptions
✨ feat(custom.mdx): add clarification to the field descriptions and provide examples for some fields
📝 docs(custom.mdx): add missing punctuation in the method description
🐛 fix(custom.mdx): add comment to clarify the purpose of the line
2023-07-28 14:45:05 -03:00
gustavoschaedler
859c9beaad
Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component
2023-07-28 18:34:19 +01:00
Gabriel Luiz Freitas Almeida
0d57263a0a
📝 docs(custom.mdx): fix typo in the comment, change "top level" to "top-level" for consistency
2023-07-28 14:33:53 -03:00
gustavoschaedler
2f0ce5fc1b
🐛 fix(types.py): change default value of "error" field in component_template to None for better consistency and readability
...
🐛 fix(base.py): change default value of "error" field in FrontendNode class to None for better consistency and readability
2023-07-28 18:32:03 +01:00
Gabriel Luiz Freitas Almeida
c6091444d5
📝 docs(custom.mdx): remove outdated information about loading flow and tweaks parameter in CustomComponent class
2023-07-28 14:31:48 -03:00
Gabriel Luiz Freitas Almeida
f82a97b010
📝 docs(prompt-customization.mdx): add line breaks for better readability and remove unnecessary empty lines
2023-07-28 14:26:40 -03:00
Gabriel Luiz Freitas Almeida
1b09ddf667
📝 docs(custom-component.mdx): add a tip admonition with a link to the FlowRunner Component example for more powerful usage of custom components
2023-07-28 14:26:17 -03:00
Gabriel Luiz Freitas Almeida
ab6d6bc803
📝 docs(flow-runner.mdx): update introduction to clarify the purpose of the CustomComponent
...
📝 docs(flow-runner.mdx): update example description to focus on creating a component to run other flows
2023-07-28 14:25:50 -03:00
Gabriel Luiz Freitas Almeida
231978d1df
🎨 style(docs): update image rendering in examples and guidelines files for better readability and consistency
...
🔧 chore(docs): fix formatting in chat-widget.mdx file
🎨 style(components.mdx): Remove unnecessary div wrapper and fix indentation
🎨 style(features.mdx): Remove unnecessary div wrapper and fix indentation
🎨 style(prompt-customization.mdx): Remove unnecessary div wrappers and fix indentation
🎨 style(index.mdx): Remove unnecessary div wrapper and fix indentation
2023-07-28 12:59:15 -03:00
gustavoschaedler
36772dac99
🐛 fix(types.py): add missing error field to component template in build_invalid_menu function
...
🐛 fix(base.py): add missing error field to FrontendNode class to match the template structure
2023-07-28 16:58:04 +01:00
Gabriel Luiz Freitas Almeida
6bf7612292
📚 docs(sidebars.js): add "flow-runner" example to the "Examples" section for better documentation coverage
2023-07-28 11:58:58 -03:00
Gabriel Luiz Freitas Almeida
90bb8535ec
📸 feat(docs): add screenshots of flow runner and flow runner code for documentation purposes
2023-07-28 11:57:44 -03:00
Gabriel Luiz Freitas Almeida
1d47d47c4d
📝 docs(custom.mdx): update table formatting and clarify field_type and options usage in custom component documentation
...
📝 docs(custom-component.mdx): remove is_list from function field and clarify options usage in build_config method
2023-07-28 11:57:13 -03:00
Gabriel Luiz Freitas Almeida
784f813dc5
📝 docs(flow-runner.mdx): update FlowRunner example to improve readability and add field customization in build_config method
2023-07-28 11:56:34 -03:00
Gabriel Luiz Freitas Almeida
734a91b913
✨ feat(flow-runner.mdx): add FlowRunner example to the documentation to demonstrate how to create a custom component that runs other flows
2023-07-28 11:26:50 -03:00
Gabriel Luiz Freitas Almeida
4ad226f35b
📚 docs(custom-component.mdx): remove unnecessary code and examples from the custom component guidelines
...
📚 docs(custom-component.mdx): remove unnecessary code and examples related to the FlowRunner component from the custom component guidelines
2023-07-28 11:24:16 -03:00
Gabriel Luiz Freitas Almeida
457453656a
📝 docs(custom.mdx): update documentation for Custom Component
...
The changes in this commit update the documentation for the Custom Component.
- Clarify that the code must be a class that inherits from the `langflow.CustomComponent` class.
- Explain that the type annotations of the `build` instance method are used to create the fields of the component.
- Provide a table of supported types for the `build` method.
- Introduce the `build_config` instance method for defining configuration fields.
- Describe the format and available keys for the `build_config` method.
- Add usage example for the `build` method.
These changes improve the clarity and completeness of the documentation for the Custom Component, making it easier for users to understand and utilize this feature.
2023-07-28 11:23:26 -03:00
Gabriel Luiz Freitas Almeida
98eca09270
🔧 fix(custom_component.py): add type hints to improve code readability and maintainability
...
🔧 fix(custom_component.py): add return type hint to 'load_flow' method for better code documentation
🔧 fix(custom_component.py): add return type hint to 'list_flows' method for better code documentation
2023-07-28 11:22:40 -03:00
Gabriel Luiz Freitas Almeida
25a59d745d
🔧 chore(types.py): refactor add_new_custom_field function to improve readability and maintainability
...
🔧 chore(types.py): refactor build_field_config function to improve readability and maintainability
2023-07-28 11:22:10 -03:00