Commit graph

6,926 commits

Author SHA1 Message Date
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
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
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
Lucas Oliveira
f83a8568a0 Removed minimize transition to fix handle position 2023-12-08 16:57:56 -03:00
anovazzi1
d11719b66a
update an existing flow/component in the Store is now possible (#1189)
feat(API): add updateFlowStore function to update an existing flow in
the Store

feat(shareModal): add functionality to update a shared component or flow
2023-12-08 16:52:20 -03:00
anovazzi1
75e7f7ab46 Merge branch 'dev' into update_component 2023-12-08 16:49:05 -03:00
Lucas Oliveira
d3e6a27d88 Fixed name of component and flow not being the same 2023-12-08 16:43:07 -03:00
anovazzi1
b88968f859 feat(API): add updateFlowStore function to update an existing flow in the Store
feat(shareModal): add functionality to update a shared component or flow
2023-12-08 16:28:51 -03:00
cristhianzl
80c6f7cec6 fix(shareModal/index.tsx): fix conditional rendering of button text to display loader when loadingNames is true
feat(shareModal/index.tsx): add loader animation to button when loadingNames is true to provide visual feedback to the user
2023-12-08 16:05:14 -03:00
cristhianzl
79d7d4ad4b fix(shareModal/index.tsx): make handleShareComponent function asynchronous to ensure proper flow saving before saving flow store 2023-12-08 15:51:42 -03:00
cristhianzl
907c2d7606 Merge branch 'dev' of github.com:logspace-ai/langflow into dev 2023-12-08 15:49:42 -03:00
cristhianzl
3976bbe619 fix(shareModal/index.tsx): fix typo in variable name 'unavaliableNames' to 'unavailableNames' for better readability
feat(shareModal/index.tsx): add loading state for getting names from API to provide better user experience
2023-12-08 15:49:34 -03:00
anovazzi1
944722713d
Update component (#1188)
add endpoint to update component
2023-12-08 15:38:02 -03:00
cristhianzl
e511fa1bae refactor(EditFlowSettingsComponent): remove unused code for displaying "Name already in use" message
The code for displaying the "Name already in use" message in the EditFlowSettingsComponent has been removed as it is no longer needed.
2023-12-08 15:25:05 -03:00
cristhianzl
eaa4954059 fix(ui/tooltip.tsx): update tooltip class name to improve styling and animation
feat(modals/shareModal/index.tsx): add ConfirmationModal component for updating components and show confirmation dialog before updating
fix(types/components/index.ts): make index property optional in ConfirmationModalType
2023-12-08 15:18:59 -03:00
Gabriel Luiz Freitas Almeida
f45dfda656 Refactor store service imports 2023-12-07 18:28:08 -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