Commit graph

3,620 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
0f9dccc4fd Refactor parameterComponent to use inline button_text 2024-03-25 10:27:42 -03:00
Gabriel Luiz Freitas Almeida
306d8f6715 Fix refresh button text handling 2024-03-23 18:51:31 -03: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
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
Gabriel Luiz Freitas Almeida
4cfb011dfc Fix handling of password input when copied from another input 2024-03-21 13:16:55 -03: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
725566d527 Make big view appear when chat not available 2024-03-20 14:05:30 +01:00
anovazzi1
acd56ce656
add duplicate flow functionality (#1541) 2024-03-19 18:10:42 -03:00
anovazzi1
a02b2e1776 Fix flow duplication and navigation bug in MenuBar component 2024-03-19 18:08:21 -03:00
anovazzi1
43023e55bf
Prevent esc to close Code Modal (#1544)
 (codeAreaModal/index.tsx): add event listener to prevent the Escape
key from closing the modal
📝 (codeAreaModal/index.tsx): improve code readability by adding line
breaks and indentation for better code organization
2024-03-19 17:58:21 -03:00
igorrCarvalho
19f60ba17a Feat: Add shortcut to group node (ctrl G) 2024-03-19 16:45:57 -03:00
cristhianzl
35198a3abb (codeAreaModal/index.tsx): add event listener to prevent the Escape key from closing the modal
📝 (codeAreaModal/index.tsx): improve code readability by adding line breaks and indentation for better code organization
2024-03-19 15:00:46 -03:00
anovazzi1
633881c652 Add setSuccessData function to handleAddFlow and add duplicate flow functionality 2024-03-18 16:39:24 -03:00
cristhianzl
a51dd38561 merge fix 2024-03-15 15:58:47 -03:00
cristhianzl
70c083451e 📝 (index.tsx): add data-testid attributes to the toolbar select items to improve testability
♻️ (toolbarSelectItem/index.tsx): remove unused import and refactor code to include data-testid attribute in the rendered element
📝 (index.ts): add dataTestId property to the toolbarSelectItemProps type to reflect the addition of data-testid attribute in the component
📝 (auto_login.spec.ts): increase timeout for page.waitForTimeout to 16 seconds and test.setTimeout to 140 seconds to accommodate slower test execution
📝 (keyPairListComponent.spec.ts): increase timeout for page.waitForTimeout to 20 seconds to accommodate slower test execution
2024-03-15 15:56:13 -03:00
anovazzi1
97f1e82cb0
Fix toolbar UI - Icons views (#1525)
♻️ (index.tsx): remove unused import of useEffect to improve code
cleanliness and readability
📝 (index.tsx): refactor toolbarSelectItem component to improve code
formatting and readability
2024-03-15 15:45:19 -03:00
cristhianzl
e13c451f66 Merge branch 'zustand/io/migration' into cz/testShortcuts 2024-03-15 15:42:56 -03:00
cristhianzl
62dea63482 📝 (nodeToolbarComponent/index.tsx): update styleObj for Share button to improve code readability and maintainability
📝 (nodeToolbarComponent/index.tsx): update styleObj for Docs button to improve code readability and maintainability
📝 (nodeToolbarComponent/index.tsx): update className for Command icon to improve code readability and maintainability
📝 (toolbarSelectItem/index.tsx): update className for Command icon to improve code readability and maintainability
2024-03-15 15:41:40 -03:00
anovazzi1
7dc34c9bc6 Update run-tests.sh to include environment file in backend startup 2024-03-15 15:07:44 -03:00
cristhianzl
85b5f80bba ♻️ (index.tsx): remove unused import of useEffect to improve code cleanliness and readability
📝 (index.tsx): refactor toolbarSelectItem component to improve code formatting and readability
2024-03-14 18:44:19 -03:00
cristhianzl
01ea9222b8 📝 (utils.ts): add support for retrieving output IDs from flow data to include in the curl code
📝 (utils.ts): update getCurlCode function to include the arrayOfOutputs in the curl code
2024-03-14 18:25:16 -03:00
anovazzi1
17302a825e Refactor IOOutputView component to use readOnly Textarea 2024-03-13 14:40:42 -03:00
cristhianzl
34f5a1300a merge fix 2024-03-13 11:12:42 -03:00
anovazzi1
b89439becb Fix event listener memory leak in RenameLabel component 2024-03-12 20:37:58 -03:00
anovazzi1
87a2c28e22
Title: Bugfix: Resolve Login Loop for Incorrect Username or Password (#1514)
This pull request addresses a critical bug where the login process
enters into a loop when users provide incorrect credentials,
specifically when the username or password is invalid. Prior to this
fix, the system would repeatedly prompt users to re-enter their
credentials without providing any indication of the error, leading to
frustration and confusion among users.
2024-03-12 19:04:45 -03:00
igorrCarvalho
1ce4193a99 Feat: Create ToolbarSelectItem to avoid duplicated code 2024-03-12 16:30:05 -03:00
cristhianzl
ff21ecc213 fix problem of retries on login page 2024-03-12 16:26:09 -03:00
cristhianzl
fa04f70b32 bugfix: login on loop when username or password is incorrect 2024-03-11 19:26:16 -03:00
cristhianzl
92aa159f39 add configuration to run all tests 2024-03-11 19:07:43 -03:00
anovazzi1
b3ed843140 Merge branch 'zustand/io/migration' of personal:logspace-ai/langflow into zustand/io/migration 2024-03-11 18:18:51 -03:00