Gabriel Luiz Freitas Almeida
c8f2469c9f
Refactor field handling in frontend nodes
2023-12-11 12:58:31 -03:00
Gabriel Luiz Freitas Almeida
a651d680ee
Refactor custom component template creation to use FrontendNode
2023-12-11 12:39:29 -03:00
Gabriel Luiz Freitas Almeida
d6ad55ca4a
Fix default value for name field
2023-12-11 12:35:08 -03:00
Gabriel Luiz Freitas Almeida
a0377c0ac7
🐛 fix(custom_component.py): rename build_template_config method to template_config for better naming consistency
...
🔧 chore(test_custom_component.py): update test_custom_component_build_template_config to use the renamed template_config property
2023-12-11 12:32:02 -03:00
Gabriel Luiz Freitas Almeida
0515ce4fb2
Add base class and output type to FrontendNode
...
model
2023-12-11 12:30:42 -03:00
Gabriel Luiz Freitas Almeida
17c6ed1db3
✨ feat(base.py): add methods to get, update, and upsert fields in the Template class for easier field manipulation
...
🔧 chore(base.py): refactor Template class to improve code readability and maintainability
2023-12-11 12:30:03 -03:00
Gabriel Luiz Freitas Almeida
468e6d5745
🐛 fix(__main__.py): replace deprecated session.query() method with session.exec() to fix superuser creation issue
2023-12-11 12:23:38 -03:00
Gabriel Luiz Freitas Almeida
163564dacc
Refactor serialize method in FrontendNode class
2023-12-11 08:25:10 -03:00
Gabriel Luiz Freitas Almeida
e2fe2364ea
✨ feat(base.py): add custom serialization method to FrontendNodeRequest class to remove unnecessary name field in the response
2023-12-11 08:24:18 -03:00
Lucas Oliveira
54064737e8
Merge branch 'bug/component_share' into dev
2023-12-10 22:35:20 -03:00
Gabriel Luiz Freitas Almeida
67ece64835
Fix options default value in TemplateField class
2023-12-10 20:45:56 -03:00
Gabriel Luiz Freitas Almeida
f055c99f5a
🔧 chore(field_typing): rename import_template_field() to _import_template_field() for internal use only
...
🐛 fix(field_typing): fix circular import issue by renaming import_template_field() to _import_template_field()
2023-12-10 20:33:55 -03:00
Gabriel Luiz Freitas Almeida
852afdc8a2
Refactor field_typing/__init__.py
2023-12-10 20:31:22 -03:00
Gabriel Luiz Freitas Almeida
7cfd5171d7
Import langflow.field_typing.constants in
...
__init__.py
2023-12-10 20:30:22 -03:00
Gabriel Luiz Freitas Almeida
3d4820144c
Refactor import statements in __init__.py
2023-12-10 20:27:12 -03:00
Gabriel Luiz Freitas Almeida
00f5772d17
Merge branch 'dev' into float_range
2023-12-10 16:52:52 -03:00
Gabriel Luiz Freitas Almeida
cebae56507
Merge branch 'dev' into build_config_with_templatefield
2023-12-10 16:52:21 -03:00
Gabriel Luiz Freitas Almeida
f4628db481
Fix range_spec to rangeSpec
2023-12-10 16:50:38 -03:00
Gabriel Luiz Freitas Almeida
0c2d7388db
Fix serialization issue with range_spec in
...
TemplateField
2023-12-10 16:48:24 -03:00
Gabriel Luiz Freitas Almeida
47b006c2b0
Merge remote-tracking branch 'origin/dev' into float_range
2023-12-10 16:11:08 -03:00
Gabriel Luiz Freitas Almeida
83392fe3b7
🔀 refactor(types.py): remove unnecessary "refresh" field assignment in update_field_dict function
2023-12-10 16:06:15 -03:00
Gabriel Luiz Freitas Almeida
9235cdfdb6
Add TemplateField to field_typing
2023-12-10 15:53:08 -03:00
Gabriel Luiz Freitas Almeida
a74b86e93b
Update options field in TemplateFieldCreator class
2023-12-10 15:48:05 -03:00
Gabriel Luiz Freitas Almeida
8324c40074
Refactor field configuration in
...
add_new_custom_field function
2023-12-10 15:47:40 -03:00
Gabriel Luiz Freitas Almeida
bbad9a81eb
Remove field_serializer method from
...
CustomComponentFrontendNode class
2023-12-10 12:10:46 -03:00
Gabriel Luiz Freitas Almeida
cdbf7b05eb
Merge remote-tracking branch 'origin/dev' into bug/component_share
2023-12-10 11:58:13 -03:00
Gabriel Luiz Freitas Almeida
6da73895be
Fix imports and add RangeSpec class
2023-12-10 11:17:39 -03:00
Gabriel Luiz Freitas Almeida
e440e73714
Update frontend node with raw frontend data
2023-12-10 10:08:43 -03:00
Gabriel Luiz Freitas Almeida
05f3faa055
Update display_name in CustomComponent
2023-12-10 09:33:31 -03:00
Lucas Oliveira
091ef74a75
formatting
2023-12-10 01:48:50 -03:00
Gabriel Luiz Freitas Almeida
61673d7bf9
Add field serializer for display name in
...
CustomComponentFrontendNode
2023-12-10 00:08:21 -03:00
Gabriel Luiz Freitas Almeida
af7c1c614d
🐛 fix(custom_components.py): change display_name attribute type from str to Optional[str] to allow for None value
...
🔀 refactor(custom_components.py): remove unused to_dict_nameless method and update to_dict method signature to specify return type
2023-12-09 23:37:52 -03:00
Gabriel Luiz Freitas Almeida
27b274c7ac
🔧 chore(types.py): remove unused import statement for logger to improve code cleanliness
...
🔧 chore(types.py): reformat import statements to improve readability and adhere to PEP8 guidelines
🔧 chore(types.py): remove unused optional parameter 'nameless' from build_frontend_node function
2023-12-09 23:37:44 -03:00
Gabriel Luiz Freitas Almeida
67fc507a96
🔨 refactor(endpoints.py): remove unnecessary 'nameless' parameter from build_custom_component_template function calls
2023-12-09 23:37:32 -03:00
Gabriel Luiz Freitas Almeida
72a16ef607
Refactor code by removing unused to_dict() methods
2023-12-09 23:23:06 -03:00
Gabriel Luiz Freitas Almeida
53a0566f8c
Refactor code to use model_dump method for adding
...
new custom field
2023-12-09 23:22:49 -03:00
Lucas Oliveira
9cfcdbad9e
Added nameless to dict
2023-12-09 22:50:34 -03:00
Lucas Oliveira
06e17ada01
Fixed name and description for Custom Component when they are empty
2023-12-09 21:58:20 -03:00
Gabriel Luiz Freitas Almeida
3c955de5e3
Refactor field serialization and add model
...
serialization in Template and FrontendNode classes
2023-12-09 18:11:51 -03:00
Gabriel Luiz Freitas Almeida
0cca8efebd
Update agent field types in agents.py
2023-12-09 18:11:38 -03:00
Gabriel Luiz Freitas Almeida
07d678042c
Fix variable naming in
...
update_components_with_user_data function
2023-12-07 18:22:36 -03:00
Gabriel Luiz Freitas Almeida
3b13c78b5e
Fix variable naming convention in StoreService
2023-12-07 18:22:16 -03:00
Gabriel Luiz Freitas Almeida
7caa4a6084
Add check_langflow_version function to validate
...
Langflow version
2023-12-07 18:21:56 -03:00
Gabriel Luiz Freitas Almeida
62697ac3a6
Refactor store API endpoints
2023-12-07 18:21:30 -03:00
Gabriel Luiz Freitas Almeida
67374445de
Update shared component API endpoint
2023-12-07 18:19:11 -03:00
Gabriel Luiz Freitas Almeida
0d22a3864f
Formatting
2023-12-07 17:29:29 -03:00
Gabriel Luiz Freitas Almeida
531be1e7ae
Fix file path value retrieval in
...
get_file_path_value function
2023-12-07 17:28:54 -03:00
Gabriel Luiz Freitas Almeida
77aea4d1a9
Refactor code formatting and add version display
...
option
2023-12-07 14:55:51 -03:00
Gabriel Luiz Freitas Almeida
8be28c947f
Import typing module and update default imports
2023-12-07 10:51:22 -03:00
Gabriel Luiz Freitas Almeida
5914381e84
Fix plugin loading issue
2023-12-07 09:59:29 -03:00