Commit graph

2,427 commits

Author SHA1 Message Date
anovazzi1
d0cdcc0f22 feat(typesContext.tsx): add deleteComponent function to typesContext to allow deleting components from savedComponentsJSON
fix(extraSidebarComponent/index.tsx): update references to data object to use dataFilter object to prevent errors when filtering data
fix(sideBarDraggableComponent/index.tsx): add deleteComponent function from typesContext to handleSelectChange function to delete components
2023-10-03 17:42:05 -03:00
anovazzi1
3abbd5c5e4 refactor(sideBarDraggableComponent): remove unused useRef and useState hooks to simplify code
feat(sideBarDraggableComponent): add right-click functionality to open the select menu for additional options
2023-10-03 17:19:20 -03:00
anovazzi1
65d3b2113b fix(applies.css): add max-w-full class to .api-modal-tabs to ensure it takes up the full width on smaller screens 2023-10-03 16:32:09 -03:00
anovazzi1
d49059b28a ui for sidebar node handle implemented 2023-10-02 19:53:28 -03:00
anovazzi1
5d4b971252 refactor(sideBarDraggableComponent): improve code readability and add support for edit mode with select options
feat(sideBarDraggableComponent): add functionality to edit the sidebar component with select options
2023-10-02 19:30:28 -03:00
anovazzi1
d950b6e252 refactor(extraSidebarComponent): extract SidebarDraggableComponent to a separate file for reusability and better organization
The `ExtraSidebar` component in `extraSidebarComponent/index.tsx` has been refactored to extract the `SidebarDraggableComponent` into a separate file. This was done to improve code organization and reusability. The extracted component takes props such as `display_name`, `itemName`, `error`, `color`, and `onDragStart` to render the draggable sidebar component.
2023-10-02 18:19:43 -03:00
anovazzi1
7ec7af587d fix(typesContext.tsx): import the missing removeCountFromString function from utils/utils to fix a reference error
fix(typesContext.tsx): update the display name of the component node to remove the count and add the increment value
fix(typesContext.tsx): clone the component node before assigning it to newData to prevent reference error
fix(extraSidebarComponent/index.tsx): import the missing removeCountFromString function from utils/utils to fix a reference error
fix(extraSidebarComponent/index.tsx): update the type of the dragged item to remove the count from the name
feat(utils.ts): add removeCountFromString function to remove the count from a string
2023-10-02 17:36:23 -03:00
anovazzi1
6e60a4b859 update node packages 2023-10-02 16:11:14 -03:00
anovazzi1
b19565385b fix paste function 2023-10-02 15:18:58 -03:00
anovazzi1
765db810c7 fix(genericModal/index.tsx): handle case when field_name is an empty string in GenericModal component
fix(genericModal/index.tsx): handle case when field_name is an empty string in GenericModal component
2023-09-29 18:32:46 -03:00
Gabriel Luiz Freitas Almeida
f38692c9df 🐛 fix(genericModal/index.tsx): set field_name to the first key of custom_fields object if it is an empty string
🐛 fix(genericModal/index.tsx): update template value based on field_name instead of hardcoding "template"
 feat(api/index.ts): add CustomFieldsType to represent custom fields in APIClassType
2023-09-29 18:32:46 -03:00
anovazzi1
2b1c77aed7 fix(formModal): fix issue with template not being updated correctly when receiving prompt data
feat(formModal): add support for clearing chat history and resetting template to initial value
2023-09-29 15:59:48 -03:00
anovazzi1
746f2b6799 refactor(formModal): rename 'template' prop to 'prompt' for better clarity and consistency
fix(formModal): update 'template' prop value to use the correct value from tabsState for each chatItem
2023-09-29 10:50:26 -03:00
anovazzi1
1b5b36a96d retrievin key from backend 2023-09-29 10:50:26 -03:00
anovazzi1
8344bf7fe2 send chatKey to backend 2023-09-29 10:50:26 -03:00
anovazzi1
faec3f3e56 refactor(formModal): refactor code to improve readability and remove unnecessary code duplication 2023-09-28 23:41:38 -03:00
anovazzi1
fcaa0ca833 fix for infinity loading 2023-09-28 23:41:38 -03:00
anovazzi1
9352a07571 chore(authContext.tsx): add console log statement for error handling in the catch block of the promise
fix(EditNodeModal/index.tsx): add key prop to BaseModal component to fix React warning
chore(formModal/index.tsx): add console log statement for error handling in the onerror event handler
chore(LoginPage/index.tsx): add console log statement for error handling in the catch block of the promise
chore(loginPage/index.tsx): add console log statement for error handling in the catch block of the promise
2023-09-28 23:41:38 -03:00
anovazzi1
588805fe64 add ws close wen component unmount 2023-09-28 23:41:38 -03:00
Cristhian Zanforlin Lousa
4e48360e2a 🐛 fix(keypairListComponent): fix bug where onChange event was not updating the correct value in the ref object
 feat(keypairListComponent): add support for dataValue prop to pass down initial data value to the component
 feat(EditNodeModal): add support for dataValue state to store the current data value
 feat(EditNodeModal): pass down dataValue prop to KeypairListComponent to initialize the component with the current data value
 feat(types): add dataValue property to KeyPairListComponentType to reflect the changes in the component
2023-09-28 21:32:42 -03:00
Cristhian Zanforlin Lousa
9d9a1177f2 🐛 fix(EditNodeModal): setAdv state variable to null initially to avoid undefined value
🐛 fix(types): change advanced prop type in KeyPairListComponentType to allow null value
2023-09-28 18:41:26 -03:00
Lucas Oliveira
9e6b52281b removed unused imports 2023-09-28 11:56:39 -03:00
Lucas Oliveira
8c4a1db472 Fixed websocket not updating 2023-09-28 11:55:04 -03:00
Gabriel Luiz Freitas Almeida
d8eabdb7b9 🐛 fix(formModal): update last message prompt when data type is "stream" and isStream is true to display the correct prompt 2023-09-28 09:25:12 -03:00
Gabriel Luiz Freitas Almeida
2a783d34a9 Merge remote-tracking branch 'origin/dev' into fix_display_prompt 2023-09-28 09:13:14 -03:00
Gabriel Luiz Freitas Almeida
00c1a946c0 🐛 fix(formModal): add support for prompt in updateLastMessage function to update chat message template
🔀 merge(types): add prompt property to ChatMessageType to support chat message templates
2023-09-28 09:12:33 -03:00
Lucas Oliveira
eb9fe02ab4 Added other prompt templates to skipNodeUpdate 2023-09-27 23:55:32 -03:00
Cristhian Zanforlin Lousa
3f964ea60b Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-09-27 23:51:29 -03:00
Cristhian Zanforlin Lousa
b76dfba5a0 🐛 fix(auth.py): decrease ACCESS_TOKEN_EXPIRE_MINUTES to 1 minute for faster token expiration
🐛 fix(API/index.ts): add null check for response object in updateFlowInDatabase function to prevent potential error
🐛 fix(formModal/index.tsx): close chat and websocket connection when user is redirected to login page
2023-09-27 23:51:24 -03:00
Lucas Oliveira
5d0d43184c Fixed formatting 2023-09-27 23:44:28 -03:00
Lucas Oliveira
a82925b760 Fixed bugs on Prompt modals 2023-09-27 23:42:09 -03:00
Lucas Oliveira
242d7cdd72 Fixed custom node field on PromptTemplate not saving 2023-09-27 23:16:51 -03:00
Cristhian Zanforlin Lousa
0fc7e2ee47 Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-09-27 23:05:18 -03:00
Cristhian Zanforlin Lousa
61e50ac68e 🔧 fix(codeTabsComponent): remove unnecessary max-h-48 class from codeTabsComponent to fix overflow issue
🔧 fix(keypairListComponent): add mx-2 class to keypairListComponent when there are multiple key-value pairs to improve spacing
🔧 fix(keypairListComponent): remove ref parameter from onChange function in keypairListComponent to fix unnecessary re-rendering
🔧 fix(keypairListComponent): add mx-2 class to keypairListComponent when there are multiple key-value pairs to improve spacing
🔧 fix(editNodeModal): add my-3 class to keypairListComponent when there are multiple key-value pairs to improve spacing
🔧 fix(types): add advanced property to KeyPairListComponentType to support advanced mode in keypairListComponent
2023-09-27 23:05:10 -03:00
Lucas Oliveira
5ee7da93d3 Fixed keyless tooltip map that showed at Console.log 2023-09-27 22:21:28 -03:00
Lucas Oliveira
a7a52755ec Fixed nodes not deleting all at once 2023-09-27 22:13:33 -03:00
Lucas Oliveira
79215995fd Fixed bug where textarea could not be selected 2023-09-27 22:05:48 -03:00
Cristhian Zanforlin Lousa
f6eafa7f0f Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-09-27 21:57:31 -03:00
Cristhian Zanforlin Lousa
1e99cce899 🐛 fix(keypairListComponent): pass ref to onChange function to ensure updated value is used
🎨 style(applies.css): adjust width of api-modal-tabs to be responsive on different screen sizes
2023-09-27 21:57:25 -03:00
Lucas Oliveira
721d04a729 Remove solution of christian to implement more general way 2023-09-27 21:43:15 -03:00
Lucas Oliveira
bf75bdbd59 Added nodelete class to not delete node when not selecting a text on modal 2023-09-27 21:36:47 -03:00
Lucas Oliveira
e9a1f10502 Fixed skeleton lines changing 2023-09-27 21:04:01 -03:00
Cristhian Zanforlin Lousa
f5601a6208 🐛 fix(extraSidebarComponent): fix handleBlur function to only reset filter data, filter edge, and search if search is empty 2023-09-27 19:37:08 -03:00
Cristhian Zanforlin Lousa
4e613117d6 🚀 chore(package.json): update reactflow package version to 11.9.2 for bug fixes and improvements
🐛 fix(dictAreaModal/index.tsx): prevent delete Node and close modal when user presses backspace key to improve user experience
2023-09-27 19:19:04 -03:00
Cristhian Zanforlin Lousa
ee800abb3a 🔧 chore(applies.css): reorganize CSS class properties for better readability and maintainability 2023-09-27 19:02:09 -03:00
Cristhian Zanforlin Lousa
65cb7d97d7 🔧 fix(parameterComponent): remove unused 'save' variable to improve code readability and maintainability 2023-09-27 18:34:48 -03:00
anovazzi1
a3c2a0d13a Merge remote-tracking branch 'origin/dev' into fix_csv_loader 2023-09-27 15:34:15 -03:00
Cristhian Zanforlin Lousa
e183d8f4e4 🔧 fix(parameterComponent): remove console.log statement for newValue variable to clean up code
🔧 fix(keypairListComponent): refactor handleChangeKey and handleChangeValue functions to use useRef hook for value comparison and update
2023-09-27 15:30:22 -03:00
anovazzi1
f7bc0d8e0e Merge branch 'dev' into fix_csv_loader 2023-09-27 14:40:16 -03:00
Cristhian Zanforlin Lousa
b4ea2478e8 Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-09-27 14:35:53 -03:00