Commit graph

2,059 commits

Author SHA1 Message Date
Lucas Oliveira
f4dcc5da5c Merge branch 'db' of github.com:logspace-ai/langflow into db 2023-06-15 15:45:08 -03:00
Lucas Oliveira
8d72cad17c deleted unused gradients 2023-06-15 15:45:06 -03:00
anovazzi1
2811bc57c4 Merge branch 'db' of personal:logspace-ai/langflow into db 2023-06-15 15:36:22 -03:00
anovazzi1
312766a598 redirect to home page on wrong url 2023-06-15 15:36:10 -03:00
Lucas Oliveira
d72f24a859 Merge branch 'db' of github.com:logspace-ai/langflow into db 2023-06-15 15:33:25 -03:00
Lucas Oliveira
ef00bdea14 Fixed flow name on MenuBar 2023-06-15 15:33:22 -03:00
Gabriel Luiz Freitas Almeida
d3d7392104 🐛 fix(extraSidebarComponent): fix Save button color when isPending is true
The Save button was not being displayed correctly when the isPending variable was true. The fix changes the order of the classes to correctly display the button as intended.
2023-06-15 15:33:12 -03:00
Gabriel Luiz Freitas Almeida
7d897929b3 Merge branch 'db' of https://github.com/logspace-ai/langflow into db 2023-06-15 15:31:43 -03:00
Gabriel Luiz Freitas Almeida
f21bc80359 🔨 refactor(buildTrigger): remove unused state variable 'valid' and simplify streamNodeData function
The 'valid' state variable was not being used, so it was removed. The 'streamNodeData' function was simplified by removing the 'onStreamComplete' callback and instead using a while loop to wait for the stream to finish. The function now returns a boolean indicating whether all nodes in the flow are valid or not.
2023-06-15 15:30:51 -03:00
Lucas Oliveira
6275f904bc Merge branch 'db' of github.com:logspace-ai/langflow into db 2023-06-15 15:24:45 -03:00
Lucas Oliveira
82b5b450bc Changed code modal 2023-06-15 15:24:42 -03:00
Gabriel Luiz Freitas Almeida
cb7c8b45cd 🔨 refactor(API): add type to updateFlowInDatabase function and format code
The updateFlowInDatabase function now has a type added to it, which improves the readability of the code. The code has also been formatted to improve consistency with the rest of the codebase.
2023-06-15 15:08:39 -03:00
Gabriel Luiz Freitas Almeida
265646ded3 🐛 fix(chat.py): change the prefix of the error message to 'data' to fix the server response
The error message prefix was changed from 'data' to 'error' to fix the server response.
2023-06-15 15:08:38 -03:00
Gabriel Luiz Freitas Almeida
03076b3577 🔨 refactor(flows.py): change response model of update_flow endpoint to FlowRead
🔨 refactor(parameterComponent): remove unused imports and refactor onChange function to handleOnNewValue
 feat(tabsContext): add tabsState and setTabsState to TabsContextType and TabsProvider
🔨 refactor(flowSettingsModal): refactor handleSaveFlow function to update flow and setTabsState with isPending false
The update_flow endpoint now returns a FlowRead response model instead of FlowReadWithStyle. The parameterComponent file has been refactored to remove unused imports and to use a handleOnNewValue function to handle onChange events. The TabsContextType and TabsProvider have been updated to include tabsState and setTabsState. The flowSettingsModal has been refactored to update the flow and setTabsState with isPending false.

🔨 refactor(extraSidebarComponent): add tabsState and setTabsState to TabsContextType
🐛 fix(extraSidebarComponent): disable save button when flow is not pending
🐛 fix(extraSidebarComponent): update flow state after saving
The TabsContextType now includes tabsState and setTabsState to allow for the management of the state of each tab. The save button is now disabled when the flow is not pending. The flow state is now updated after saving to reflect the changes made.
2023-06-15 15:08:37 -03:00
Gabriel Luiz Freitas Almeida
499d5238e3 🔥 refactor(chatModal): remove unused function getWebSocketUrl
The function getWebSocketUrl was not being used in the code and was therefore removed to improve code readability and maintainability.
2023-06-15 15:08:36 -03:00
Lucas Oliveira
78a0ed60e9 changed button color 2023-06-15 14:54:12 -03:00
Lucas Oliveira
3e4bfc99b8 deleted function and changed button color 2023-06-15 14:52:26 -03:00
Lucas Oliveira
ded204efc9 Merge branch 'db' of github.com:logspace-ai/langflow into db 2023-06-15 14:43:04 -03:00
Lucas Oliveira
a74f026dad Fixed New Project not redireting on MenuBar 2023-06-15 14:43:01 -03:00
Gabriel Luiz Freitas Almeida
40a61649df feat(chatComponent): add state to track if all nodes are valid during build trigger
The build trigger component now tracks if all nodes are valid during the build process. This is done by adding a state variable called `valid` which is set to true by default. If any node is invalid, the `valid` state is set to false. This ensures that the error message is displayed when there are invalid nodes. The `streamNodeData` function now takes a callback function `onStreamComplete` which is called when the SSE stream is complete. This callback function is used to set the `isBuilt` state variable.
🐛 fix(chatComponent): fix bug where build trigger would not show error message when nodes are invalid
2023-06-15 14:32:08 -03:00
Cristhian Zanforlin Lousa
559edf5c50 Adding nowheel to scroll inside a node 2023-06-15 13:27:59 -03:00
Gabriel Luiz Freitas Almeida
1565490953 🐛 fix(buildTrigger): prevent multiple build requests from being sent simultaneously
 feat(buildTrigger): add error handling to build request
Previously, multiple build requests could be sent simultaneously, which could cause issues. The fix prevents multiple requests from being sent at the same time. Additionally, error handling has been added to the build request to catch any errors that may occur.
2023-06-15 11:40:45 -03:00
Gabriel Luiz Freitas Almeida
5ce9fa17cf 📝 docs(chains.py): update description of CombineDocsChainNode
The description of CombineDocsChainNode was updated to reflect the actual functionality of the node. The node is now used to load a question answering chain instead of constructing a chain from combined documents.
2023-06-15 11:40:29 -03:00
Gabriel Luiz Freitas Almeida
d51219583e 🔥 refactor(chatComponent): remove console.log statement and unused imports
The console.log statement in the Chat component has been removed as it is no longer needed. Unused imports have also been removed from the BuildTrigger and Chat components to improve code readability and maintainability.
2023-06-15 10:58:21 -03:00
Lucas Oliveira
8198d63302 Merge branch 'db' of github.com:logspace-ai/langflow into db 2023-06-15 10:55:15 -03:00
Lucas Oliveira
3568c9993c Fixed file name truncation 2023-06-15 10:54:02 -03:00
Gabriel Luiz Freitas Almeida
f6f9ef5a27 🔧 chore(frontend): update dependencies and formatting in package.json and postcss.config.js
🐛 fix(frontend): add missing semicolon in EditFlowSettingsComponent
The package.json and postcss.config.js files were updated to improve formatting and update dependencies. The EditFlowSettingsComponent had a missing semicolon which was added.

🔧 chore: fix formatting issues in multiple files
The changes in this commit are purely cosmetic and do not affect the functionality of the application. The changes include fixing formatting issues such as indentation, whitespace, and semicolons in multiple files. These changes improve the readability and maintainability of the codebase.
2023-06-15 10:20:14 -03:00
Gabriel Luiz Freitas Almeida
61a6710adf 🔒 chore(llms.py): set password field to False for fields not containing 'key' or 'token' in their name
The openai_api_version field value is no longer set as it is not needed. The password field is now set to False for fields not containing 'key' or 'token' in their name to improve security.
🐛 fix(llms.py): remove setting of openai_api_version field value
2023-06-15 09:45:15 -03:00
Lucas Oliveira
39926381f1 Fixed visual bugs on header 2023-06-15 09:03:51 -03:00
Lucas Oliveira
c260ffe316 Fixed export popup not closing 2023-06-15 08:58:30 -03:00
Lucas Oliveira
788213a38f Curl logo added 2023-06-15 08:37:16 -03:00
Lucas Oliveira
435927df8e Fixed flow settings modal not editing description and not closing 2023-06-15 08:34:17 -03:00
Gabriel Luiz Freitas Almeida
a23121aa54 🐛 fix(chat.py): yield error message when an exception occurs during stream_build
🔧 chore(base.py): fix typo in docstring
The fix in chat.py ensures that an error message is yielded when an exception occurs during stream_build. This helps to provide more information to the client-side when an error occurs. The typo in base.py's docstring is fixed to improve readability.
2023-06-15 07:44:11 -03:00
Gabriel Luiz Freitas Almeida
ef5623e1b3 📝 docs(API): add documentation for postBuildInit function
 feat(API): add postBuildInit function to post the build init of a flow
The postBuildInit function has been added to post the build init of a flow. The function takes in a flow object and returns a promise that resolves to an AxiosResponse containing the build status. Documentation has been added to the function to improve code readability and maintainability.
2023-06-15 07:43:53 -03:00
Gabriel Luiz Freitas Almeida
d28d7483dd 🚀 feat(contexts): add SSEProvider to ContextWrapper
The SSEProvider is added to the ContextWrapper to provide a context for the Server-Sent Events (SSE) functionality. This allows the frontend to receive real-time updates from the server without the need for constant polling.
2023-06-15 07:38:35 -03:00
Gabriel Luiz Freitas Almeida
3920eb50d6 Merge remote-tracking branch 'origin/validation_fix' into db 2023-06-15 07:37:26 -03:00
Rodrigo Nader
5e0afbde39 revert sidebar width to 52 2023-06-15 00:09:41 -03:00
Rodrigo Nader
fd59bd77b3 Refactor SQL agent and related nodes
- Rename `VectorStoreAgent` to `Vector store agent` in `custom.py`
- Replace "Construct a sql agent from an LLM and tools." with "Construct an SQL agent from an LLM and tools." in `custom.py`
- Update descriptions of `SQLAgentNode`, `TimeTravelGuideChainNode`, `CombineDocsChainNode`, and `ToolNode` in related files
- Increase width of `ExtraSidebarComponent` container in `index.tsx` from 52 to 56
2023-06-14 23:54:39 -03:00
Rodrigo Nader
d9e3390a99 Refactor: Adjusted the width of the extra sidebar component to 52px and the width of the search input to 100%. 2023-06-14 23:22:05 -03:00
anovazzi1
fe6cf3149c fix truncate width 2023-06-14 23:04:35 -03:00
anovazzi1
62793681b2 remove sidebar truncate 2023-06-14 22:57:30 -03:00
anovazzi1
f5870de256 icon on settings 2023-06-14 22:53:47 -03:00
anovazzi1
23a7e556e0
Merge/mp (#490) 2023-06-14 21:59:15 -03:00
anovazzi1
524a927fff Merge branch 'db' into merge/mp 2023-06-14 21:57:56 -03:00
Rodrigo Nader
5dbf3e1b0a Initiate repository & update frontend CSS
The code changes update the frontend index.css and cardComponent/index.tsx files. 'bg-colors', 'gradients', and CSS variables have been modified, including the addittion of copilot generated gradients for optimization. The 'utils.ts' file has also been updated.
2023-06-14 21:49:38 -03:00
Cristhian Zanforlin Lousa
3d69d76c6f Merge branch 'db' into merge/mp 2023-06-14 21:47:53 -03:00
Cristhian Zanforlin Lousa
86eb9af794 Formatting project 2023-06-14 21:22:45 -03:00
Cristhian Zanforlin Lousa
1a9ed4d94b Adjust on changing components on edit mode 2023-06-14 21:19:27 -03:00
anovazzi1
1cf0c204a7 update gray 500 and slate 2023-06-14 20:57:26 -03:00
anovazzi1
0980d41ac5 update bg-gray-500 to bg-ring 2023-06-14 20:51:12 -03:00