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
2703dd06d3
Add RangeSpec class and functionality in the UI ( #1192 )
2023-12-10 16:53:00 -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
58d91d99e1
Refactor field configuration in add_new_custom_field function ( #1194 )
2023-12-10 16:52:28 -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
1a348bb220
Fix range_spec key in test_llms_template.py
2023-12-10 16:51:00 -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
32ac91e43f
Update build_config field value type
2023-12-10 16:00:28 -03:00
Gabriel Luiz Freitas Almeida
d82b98c58b
Update import statement for TemplateField
2023-12-10 15:54:33 -03:00
Gabriel Luiz Freitas Almeida
9235cdfdb6
Add TemplateField to field_typing
2023-12-10 15:53:08 -03:00
Gabriel Luiz Freitas Almeida
d670d0fd93
Add test for custom component with TemplateField
2023-12-10 15:48:51 -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
49d715814e
Remove to_dict method in favor or pydantic implementation ( #1190 )
2023-12-10 11:57:07 -03:00
Gabriel Luiz Freitas Almeida
6ea7454fe3
Add range_spec to llms_template.py
2023-12-10 11:41:01 -03:00
Gabriel Luiz Freitas Almeida
6d8d0cbe73
Add range_spec field to CustomComponent class
2023-12-10 11:21:28 -03:00
Gabriel Luiz Freitas Almeida
154205b0cd
Add rangeSpec to FloatComponent
2023-12-10 11:18:25 -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
f275471285
Remove redundant code and update default values
...
for template fields
2023-12-10 00:08:28 -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
628855c50d
Update template files with new fileTypes field
2023-12-09 23:23:14 -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
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
cristhianzl
e269fdf986
fix(shareModal/index.tsx): fix typo in variable name 'unavaliableNames' to 'unavailableNames' for better readability
...
feat(shareModal/index.tsx): add confirmation modal to prompt user to replace existing component with current one if name already exists
2023-12-09 11:41:04 -03:00
cristhianzl
76adfda7fe
fix(parameterComponent): fix missing dependency in useEffect hook causing stale data reference
...
fix(parameterComponent): update data reference when value changes to ensure consistency
fix(EditNodeModal): set modal context open state when modal opens to trigger re-rendering
2023-12-09 11:29:14 -03:00
cristhianzl
3b988da630
fix(shareModal/index.tsx): fix typo in unavailableNames variable name to unavailableNames for better readability
...
refactor(shareModal/index.tsx): update ConfirmationModal title to "Replace" and remove titleHeader prop for consistency
refactor(shareModal/index.tsx): update ConfirmationModal confirmationText to "Replace" for better clarity
refactor(shareModal/index.tsx): update ConfirmationModal icon to "SaveAll" for better visual representation
refactor(shareModal/index.tsx): update ConfirmationModal size to "x-small" for better UI consistency
refactor(shareModal/index.tsx): update ConfirmationModal index to 6 for proper positioning in the modal stack
refactor(shareModal/index.tsx): update ConfirmationModal onCancel prop to an empty function for consistency
2023-12-09 10:43:50 -03:00
Lucas Oliveira
7d833b1f97
Fixed not being able to delete more than one component on the sidebar
2023-12-09 01:05:20 -03:00
Lucas Oliveira
31c40cbe19
Cleaned search bar when filtering by edge
2023-12-09 01:01:45 -03:00
Lucas Oliveira
eee8a4591f
Fixed overflow at card description
2023-12-09 00:53:40 -03:00
Lucas Oliveira
82ef6bc72a
Fixed state handling of Prompt Component, undo working
2023-12-09 00:33:51 -03:00
Lucas Oliveira
fb3c1df882
added is_component field to allow store component overwrite
2023-12-08 23:28:25 -03:00
Lucas Oliveira
47ba7bbc6a
Change onMove to set tabs state
2023-12-08 23:23:41 -03:00
cristhianzl
2ecadca58f
fix(components): fix loading screen logic and add delay to improve user experience
...
The loading screen was not working correctly due to incorrect logic. The variable `loadingScreen` was not being properly set to `false` when the data was loaded. This has been fixed by changing the condition in the JSX code from `isLoading` to `loadingScreen`.
Additionally, a delay of 600 milliseconds has been added to the loading screen using the `useEffect` hook. This delay gives the user a better visual experience by showing the loading screen for a short period of time before displaying the data.
These changes improve the user experience by providing a more accurate loading screen and a smoother transition when loading data.
2023-12-08 19:59:29 -03:00
cristhianzl
c6eb90c00c
fix(GenericNode/index.tsx): import alertContext from correct file path to fix compilation error
...
feat(alertContext.tsx): add modalContextOpen state and setModalContextOpen function to manage modal context open state
fix(genericModal/index.tsx): add useEffect to update modalContextOpen state when modalOpen prop changes
feat(typesContext/index.ts): add modalContextOpen state and setModalContextOpen function to typesContext
2023-12-08 19:45:25 -03:00
Lucas Oliveira
8e4c701ff3
Save Flow - update name and description for actual flow too
2023-12-08 19:19:54 -03:00
Lucas Oliveira
6bb94faeb4
Merge branch 'bug/minimize_handle' into dev
2023-12-08 19:14:06 -03:00
Lucas Oliveira
d6ea72cbea
Fixed Flows state not being updated always
2023-12-08 19:10:32 -03:00
cristhianzl
6470a46008
refactor(flowsContext.tsx): remove unnecessary console.log statement
...
The console.log statement was removed as it was not providing any useful information and was cluttering the code.
2023-12-08 18:25:24 -03:00
cristhianzl
37f434426f
feat(API): add updateFlowStore function to update an existing flow in the Store
...
fix(shareModal): fix handleShareComponent function to update a component instead of sharing it
2023-12-08 18:18:02 -03:00
cristhianzl
1f81f1a057
fix(flowsContext.tsx): remove unnecessary console.log statement
...
fix(shareModal/index.tsx): remove unused state variable and update saveFlow function call to use flow variable instead of finding flow by id
2023-12-08 18:17:06 -03:00
Lucas Oliveira
154d77b579
Removed unused console log
2023-12-08 17:11:02 -03:00
Lucas Oliveira
02f68b63a0
Added check when is_component equals null
2023-12-08 17:09:43 -03:00
Lucas Oliveira
5b2ad174f3
Merge remote-tracking branch 'origin/dev' into bug/minimize_handle
2023-12-08 17:01:57 -03:00