Commit graph

3,666 commits

Author SHA1 Message Date
Lucas Oliveira
d123d5b64f Added editNode variable on global variables for inputs 2024-03-26 22:28:42 +02:00
Lucas Oliveira
1315137ab8 put optional label on type 2024-03-26 22:03:13 +02:00
Lucas Oliveira
ae7d827483 Fixed type to always exist 2024-03-26 21:54:08 +02:00
Lucas Oliveira
42739a29cf Added types 2024-03-26 21:52:23 +02:00
Lucas Oliveira
5db74fbf5a Changed provider to type and hid field 2024-03-26 21:50:44 +02:00
Gabriel Luiz Freitas Almeida
8292cb8cfa Update global variable type in API and store 2024-03-25 09:59:10 -03:00
Gabriel Luiz Freitas Almeida
2ba305bc7a Add Variable model and remove Credential model 2024-03-25 09:46:53 -03:00
Lucas Oliveira
7aa3c5f494 Added type into new Global input component 2024-03-22 17:48:19 +01:00
Lucas Oliveira
fe2f30d5c5 Added global input component to modularize 2024-03-22 17:18:45 +01:00
Gabriel Luiz Freitas Almeida
b121a03a0b Update description for AddNewVariableButton component 2024-03-22 12:49:00 -03:00
Lucas Oliveira
0f867dc485 Merge remote-tracking branch 'origin/zustand/io/migration' into globalVariables 2024-03-22 16:21:02 +01:00
Lucas Oliveira
ad8e016ab8 Fixed error message appearing when deleting field 2024-03-22 16:19:46 +01:00
Lucas Oliveira
df621707f7 Implemented error alerts and function to clean deleted global variables 2024-03-22 16:18:11 +01:00
Cristhian Zanforlin Lousa
496c2aae3e
Add a new handle when the backend application is offline (#1550)
 (App.tsx): Import the `useNavigate` hook from `react-router-dom` to enable programmatic navigation within the app.
📝 (App.tsx): Add comments to explain the purpose of the `isLoadingHealth` state variable and the `checkApplicationHealth` function.
📝 (App.tsx): Add comments to explain the purpose of the `onHealthCheck` function.
🐛 (App.tsx): Fix a bug where the `checkApplicationHealth` function was not being called when the component mounts.
🐛 (App.tsx): Fix a bug where the `onHealthCheck` function was not being called when the health check was successful.
📝 (App.tsx): Add comments to explain the purpose of the `checkApplicationHealth` function and the `onHealthCheck` function.
 (fetchErrorComponent/index.tsx): Import the `BaseModal` component from the `modals/baseModal` module to display the fetch error component in a modal.
 (fetchErrorComponent/index.tsx): Import the `Button` component from the `ui/button` module to display a retry button in the fetch error component.
 (fetchErrorComponent/index.tsx): Add a retry button to the fetch error component to allow the user to retry the failed request.
 (ui/dialog-with-no-close.tsx): Create a new file `ui/dialog-with-no-close.tsx` to define a custom dialog component without a close button.
 (ui/dialog-with-no-close.tsx): Define the `Dialog`, `DialogTrigger`, `DialogPortal`, `DialogOverlay`, `DialogContent`, `DialogHeader`, `DialogFooter`, `DialogTitle`, and `DialogDescription` components for the custom dialog component.

📝 (baseModal/index.tsx): add support for a new type prop to switch between modal and dialog mode
🐛 (baseModal/index.tsx): fix typo in import statement for Modal and ModalContent components
♻️ (baseModal/index.tsx): refactor BaseModal component to conditionally render either Modal or Dialog based on the type prop
🐛 (flowsManagerStore.ts): fix issue where isLoading state was not being set to false after catching an error
🐛 (typesStore.ts): fix issue where error alert was not being shown when fetching types failed
🐛 (typesStore.ts): remove unnecessary error alert when fetching types failed
 (components/index.ts): add new properties to fetchErrorComponentType to support opening a modal, retrying, and showing loading state
2024-03-22 09:34:59 -03:00
Gabriel Luiz Freitas Almeida
fd7a0fcbff Add field_name prop to PromptAreaComponent 2024-03-22 09:32:04 -03:00
Gabriel Luiz Freitas Almeida
f4c3d445c4 Fix function calls and formatting in PageComponent and NodeToolbarComponent 2024-03-21 17:06:22 -03:00
Gabriel Luiz Freitas Almeida
b2c6f67a48 Add Error status to nodes that fail validateNodes 2024-03-21 17:06:05 -03:00
Gabriel Luiz Freitas Almeida
43894dee01 Add ERROR status to BuildStatus enum 2024-03-21 17:04:46 -03:00
Gabriel Luiz Freitas Almeida
0a1ee6994e Refactor inputComponent onChange event handler 2024-03-21 16:56:39 -03:00
Gabriel Luiz Freitas Almeida
60a83d1f6a Refactor validateNode function in reactflowUtils.ts 2024-03-21 16:39:37 -03:00
igorrCarvalho
461a0fabfa Refactor: Make group/ungroup happen on the same key (ctrl g) 2024-03-21 14:11:45 -03:00
Gabriel Luiz Freitas Almeida
fbe346ccee Refactor globalVariables key names in GlobalVariablesStore 2024-03-21 14:02:37 -03:00
Gabriel Luiz Freitas Almeida
7f34516a52 Change key to name 2024-03-21 14:02:08 -03:00
Gabriel Luiz Freitas Almeida
69735b070f Refactor addNewVariableButtonComponent and API registerGlobalVariable 2024-03-21 14:01:05 -03:00
igorrCarvalho
ef9fdce774 Merge branch 'zustand/io/migration' of github.com:logspace-ai/langflow into zustand/io/migration 2024-03-21 13:58:24 -03:00
igorrCarvalho
2c6d9ee520 Refactor: Group with shortcut and click should call The same function, it shouldnt use it directly 2024-03-21 13:58:13 -03:00
Lucas Oliveira
178db4b95f Fix merge bug 2024-03-21 17:26:28 +01:00
Gabriel Luiz Freitas Almeida
4cfb011dfc Fix handling of password input when copied from another input 2024-03-21 13:16:55 -03:00
Lucas Oliveira
1604680ab9 Formatting 2024-03-21 15:35:58 +01:00
Lucas Oliveira
99561d0d4c Merge remote-tracking branch 'origin/zustand/io/migration' into globalVariables 2024-03-21 15:35:52 +01:00
Lucas Oliveira
ba9124cc4e Formatting 2024-03-21 15:31:09 +01:00
Lucas Oliveira
ca460443d1 Fixed position on command when filtering 2024-03-21 15:30:58 +01:00
Lucas Oliveira
ea211060b3 Implemented Delete function 2024-03-21 15:11:27 +01:00
Gabriel Luiz Freitas Almeida
1bfa6d2a32 Add debounce to autoSaveCurrentFlow function 2024-03-21 10:19:03 -03:00
Gabriel Luiz Freitas Almeida
bd1bf4b16e Remove unused code and update save debounce time 2024-03-21 10:18:54 -03:00
Gabriel Luiz Freitas Almeida
fe7fc3927e Refactor code for better readability and maintainability 2024-03-20 20:48:47 -03:00
Gabriel Luiz Freitas Almeida
3a2808003c Add error handling for password input in InputComponent 2024-03-20 20:48:17 -03:00
anovazzi1
797934b944 Merge branch 'zustand/io/migration' of personal:logspace-ai/langflow into zustand/io/migration 2024-03-20 20:33:12 -03:00
anovazzi1
483802f680 Add updateGroupRecursion function to flowStore.ts and reactflowUtils.ts 2024-03-20 20:33:09 -03:00
Gabriel Luiz Freitas Almeida
949cc83283 Refactor useFlowStore to update build status on build start 2024-03-20 20:23:22 -03:00
Gabriel Luiz Freitas Almeida
a6625bbad5
Update node and edge IDs, refactor node ID generation, and fix async bug in build_vertex_stream function (#1546)
* Update node and edge IDs in PageComponent and reactflowUtils

* Merge remote-tracking branch 'origin/zustand/io/migration' into fixGroup

* Refactor node ID generation and update node IDs in selection

* Update flowStore.ts and reactflowUtils.ts

* Fix async bug in build_vertex_stream function

* Add check for missing id in vertex data

* Fix exception message for missing vertex id

* Update code: Added VertexLayerElementType type and modified updateIds function
2024-03-20 20:06:25 -03:00
Gabriel Luiz Freitas Almeida
c175395cd7 Add top_level_vertices to getInactiveVertexData function 2024-03-20 17:56:52 -03:00
Gabriel Luiz Freitas Almeida
8376cd1a5b Remove unused import and fix formatting in IOOutputView, MenuBar, RenameLabel, and PageComponent 2024-03-20 16:13:51 -03:00
Gabriel Luiz Freitas Almeida
0d15491d36 Update useFlowStore to use top_level_vertices instead of next_vertices_ids 2024-03-20 16:13:49 -03:00
Gabriel Luiz Freitas Almeida
efc66b014b Refactor reconnectEdges function to fix bug 2024-03-20 16:13:48 -03:00
Gabriel Luiz Freitas Almeida
5b0b101f37 Add display name to error message in validateNode function 2024-03-20 16:13:46 -03:00
Lucas Oliveira
41cbd918b7 Deleted variables page 2024-03-20 18:32:52 +01:00
Lucas Oliveira
6dc4599a9b Changed icons for other options that are not global variable 2024-03-20 18:28:59 +01:00
Lucas Oliveira
1b6102524a Fixed logic when options are present but its not global variables. 2024-03-20 18:26:05 +01:00
Lucas Oliveira
d003be4fe2 Updated global variables to ShadCN and updated logic to show variables as different things 2024-03-20 18:05:16 +01:00