Commit graph

3,197 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
a4c432a64b Move call to reset InactiveNodes to the end of the function 2024-02-22 23:45:55 -03:00
Gabriel Luiz Freitas Almeida
2a7a5e728a Skip building inactive nodes in buildVertices function 2024-02-22 23:40:05 -03:00
Gabriel Luiz Freitas Almeida
bd2767b1a5 Add setInactiveNodes function to FlowStore 2024-02-22 23:39:13 -03:00
Gabriel Luiz Freitas Almeida
9cfb03fbc9 Fix styleUtils import and remove unnecessary lines 2024-02-22 17:07:36 -03:00
anovazzi1
e68fdc06c4 Update nodeIconsLucide in styleUtils.ts 2024-02-22 17:03:59 -03:00
anovazzi1
701571b858 Fix build button condition and prevent sending messages during build 2024-02-22 16:43:43 -03:00
Gabriel Luiz Freitas Almeida
8f8b921ead Fix code field visibility in group node template 2024-02-22 16:27:57 -03:00
Gabriel Luiz Freitas Almeida
b1e7485ec6 Refactor parameterComponent to hide code based on name 2024-02-22 16:26:53 -03:00
anovazzi1
165491e60b refactor(GenericNode/index.tsx): import Loading component for better code organization and readability
fix(GenericNode/index.tsx): update the button onClick logic to prevent building flow when the build status is already set to 'BUILDING'
2024-02-22 15:49:24 -03:00
Cristhian Zanforlin Lousa
e2a79a57e1
Bugfix: saving all the time, scroll on chat IO / Feat: Changing building status on navigation bar (#1460)
* 🐛 fix(menuBar/index.tsx): add isBuilding state to handle display of build status
 feat(menuBar/index.tsx): add printByBuildStatus function to display appropriate build status based on isBuilding and saveLoading states
🐛 fix(api.tsx): set isBuilding state to false when encountering a 500 error response
🐛 fix(buildUtils.ts): set isBuilding state to true before building vertices and set it to false after build completion

* 🐛 fix(chatMessage): scroll to last chat message when rendering a new message to improve user experience
🔥 refactor(chatMessage): remove unused state and variables to improve code readability and maintainability
🔥 refactor(flowsManagerStore): remove redundant code and improve code readability

* Add logger and session imports, and update build_vertex function

* Fix conditional rendering bug in IOView component

* Remove unused imports from chat.py

* add last message to end

* 🔧 fix(chatMessage): add useEffect hook to scroll to last chat message after rendering
🔧 fix(chatMessage): add dependency array to useEffect hook to prevent unnecessary re-renders

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@logspace.ai>
2024-02-22 14:44:35 -03:00
Gabriel Luiz Freitas Almeida
4d07537031 Fix conditional rendering in IOView component 2024-02-22 11:56:02 -03:00
Lucas Oliveira
138aa1c5fe Removed prompt template from outputs 2024-02-22 13:08:52 +01:00
Lucas Oliveira
b0a2d625af Made chat button 2024-02-22 13:08:28 +01:00
Lucas Oliveira
cce060968f Fixed input and output view 2024-02-22 13:03:11 +01:00
Lucas Oliveira
a94b5b9657 Fixed chat button 2024-02-22 12:57:07 +01:00
Lucas Oliveira
1e3cdd3f32 Made categories 2024-02-22 12:53:15 +01:00
Lucas Oliveira
0ae6596dbd Fixed bug at frontend 2024-02-21 21:50:53 +01:00
Lucas Oliveira
4feec62cb5 fixed constants made just for testing 2024-02-21 21:45:57 +01:00
Lucas Oliveira
33a82cad06 Changed open input link 2024-02-21 21:13:44 +01:00
Lucas Oliveira
f39cd72cc8 Changed icon to play 2024-02-21 21:12:28 +01:00
Lucas Oliveira
5b5813932d Removed repetition 2024-02-21 21:11:56 +01:00
Lucas Oliveira
5b000e6078 Changed view to not show chat 2024-02-21 21:10:00 +01:00
anovazzi1
c319e18e15 Refactor Page component 2024-02-21 16:57:40 -03:00
anovazzi1
9ffea8f988 Merge branch 'zustand/io/migration' of personal:logspace-ai/langflow into zustand/io/migration 2024-02-21 16:55:55 -03:00
anovazzi1
00ca2023a1 Update chat trigger icon and add Sliders icon 2024-02-21 16:55:50 -03:00
Lucas Oliveira
f446ce5a0b Changed tabs layout to existing tabs 2024-02-21 20:49:22 +01:00
anovazzi1
4e8de33f75 Add stopBuild functionality to buildVertices function 2024-02-21 16:43:28 -03:00
anovazzi1
f58c2d4964 Refactor flowStore.ts: Comment out unused code and remove unnecessary variables 2024-02-21 16:28:30 -03:00
anovazzi1
6b1ab43de6 Update pin tooltip text 2024-02-21 16:07:52 -03:00
anovazzi1
e2ba143171 prevent save on buid using isBuilding 2024-02-21 14:47:45 -03:00
Gabriel Luiz Freitas Almeida
85f905f0e4 Remove unnecessary code in ChatMessage component 2024-02-20 23:11:35 -03:00
Gabriel Luiz Freitas Almeida
9adb4b97d4 is_ai is set to true if sender is null 2024-02-20 23:11:18 -03:00
Gabriel Luiz Freitas Almeida
4ad215e4cd Update Markdown library import and variable usage 2024-02-20 22:53:30 -03:00
Gabriel Luiz Freitas Almeida
11970f9188 Remove console.log statements 2024-02-20 22:53:22 -03:00
Gabriel Luiz Freitas Almeida
9966b4a8dc Refactor buildUtils to use flat() instead of flatMap() 2024-02-20 20:58:53 -03:00
Gabriel Luiz Freitas Almeida
c7ae2a5eae Refactor variable name in buildUtils.ts 2024-02-20 20:57:12 -03:00
Gabriel Luiz Freitas Almeida
391ff85a59 Remove unnecessary comments in buildUtils.ts 2024-02-20 20:51:55 -03:00
Gabriel Luiz Freitas Almeida
a40dc03a93 Refactor buildVertices function to improve performance and update UI during vertex building 2024-02-20 20:51:39 -03:00
cristhianzl
103ab84bc3 merge fix 2024-02-20 19:55:16 -03:00
cristhianzl
1a5a6ba35b 🐛 fix(api.tsx): import missing BuildStatus enum from constants/enums to fix compilation error
 feat(api.tsx): add support for renewing access token and handling authentication errors to improve user experience
 feat(api.tsx): add support for updating build status of vertices to keep track of build progress
🐛 fix(flowStore.ts): add missing updateVerticesBuild function to update the list of vertices being built
🐛 fix(flowStore.ts): initialize verticesBuild array to an empty array to avoid undefined errors
🐛 fix(flowStore.ts): fix typo in updateVerticesBuild function name
🐛 fix(flowStore.ts): fix typo in updateBuildStatus function parameter name
🐛 fix(flowStore.ts): fix typo in updateBuildStatus function parameter type
 feat(flowStore.ts): add verticesBuild property to store the list of vertices being built
🐛 fix(index.ts): fix typo in updateBuildStatus function parameter name
🐛 fix(index.ts): fix typo in updateBuildStatus function parameter type
 feat(index.ts): add updateVerticesBuild function to update the list of vertices being built
🐛 fix(buildUtils.ts): update build status and vertices build list when building vertices to keep track of build progress
2024-02-20 19:52:43 -03:00
Lucas Oliveira
ad6f362d8b Added "Saved" tooltip at header 2024-02-20 22:52:03 +01:00
Gabriel Luiz Freitas Almeida
c0ee093854 Refactor buildVertices function to extract buildVertex logic 2024-02-20 16:01:41 -03:00
cristhianzl
b4dbe90212 🐛 fix(buildUtils.ts): refactor buildVertices function to improve readability and error handling
The buildVertices function has been refactored to improve readability and error handling. Instead of using Promise.all with map, it now uses a for loop to iterate over the vertices and perform the build process for each vertex. This change allows for better error handling and reporting. Additionally, the onBuildError callback is now called with the correct parameters when there is an error building a component.
2024-02-20 15:08:19 -03:00
Gabriel Luiz Freitas Almeida
790a9bc112 Fix build status typo and update build status in flowStore 2024-02-20 12:17:25 -03:00
cristhianzl
b3f82872b0 🐛 fix(GenericNode/index.tsx): rename getIconComponent to getIconPlayOrPauseComponent for better clarity and semantics
🐛 fix(GenericNode/index.tsx): rename renderIconComponents to renderIconPlayOrPauseComponents for better clarity and semantics
🐛 fix(GenericNode/index.tsx): rename getSpecificClass to getSpecificClassFromBuildStatus for better clarity and semantics
🐛 fix(GenericNode/index.tsx): rename getNodeClassName to getNodeBorderClassName for better clarity and semantics
2024-02-20 10:48:32 -03:00
cristhianzl
a32c3a3730 🔨 refactor(GenericNode/index.tsx): extract helper functions to improve code readability and maintainability
🐛 fix(GenericNode/index.tsx): fix incorrect class name in getNodeClassName function
 feat(GenericNode/index.tsx): add renderIconComponents function to render different icon components based on build and validation status
 feat(GenericNode/index.tsx): add getSpecificClass function to determine specific class based on build and validation status
 feat(GenericNode/index.tsx): add getStatusClassName function to determine status class based on validation status and build status
 feat(GenericNode/index.tsx): add getIconComponent function to render icon component with name and class name
 feat(GenericNode/index.tsx): add getNodeClassName function to determine node class name based on selected, showNode, build status, and validation status
 feat(GenericNode/index.tsx): add getBaseBorderClass function to determine base border class based on selected state
 feat(GenericNode/index.tsx): add getNodeSizeClass function to determine node size class based on showNode state
2024-02-20 10:48:19 -03:00
cristhianzl
e395107473 add status on building components 2024-02-19 20:43:58 -03:00
igorrCarvalho
11651303ee Refactor: bring back play button 2024-02-19 19:41:04 -03:00
Gabriel Luiz Freitas Almeida
aa6d57d134 Refactor GenericNode component and add duration string 2024-02-19 18:52:56 -03:00
cristhianzl
7901ba35be merge with dev 2024-02-19 18:36:30 -03:00