Commit graph

1,965 commits

Author SHA1 Message Date
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
anovazzi1
6eda94b9dc update bg-gray-200 to accent 2023-06-14 20:47:44 -03:00
anovazzi1
1589bc3662 fix chat background color 2023-06-14 20:46:27 -03:00
Rodrigo Nader
aaef0fd25c Add colorcode comments to CSS variables
Added comments to CSS variables to make it easier to read and understand the purpose of each color code for future code maintainability.
2023-06-14 20:39:22 -03:00
anovazzi1
3898c1823f upload flow filter not json files 2023-06-14 20:27:14 -03:00
anovazzi1
e8e92a7ec5 Merge branch 'db' of personal:logspace-ai/langflow into db 2023-06-14 20:02:51 -03:00
anovazzi1
057a02c90c fit view 2023-06-14 20:02:38 -03:00
Gabriel Luiz Freitas Almeida
f8bf008878 🐛 fix(constants.tsx): change node type id format to include the type name in uppercase
 feat(constants.tsx): add support for tweaks in getPythonApiCode and getCurlCode functions
🎨 style(ApiModal/index.tsx): remove unused imports and components
🎨 style(PageComponent/index.tsx): change node type id format to include the type name in uppercase
 feat(utils.ts): add buildTweaks function to create an empty tweaks object for each node
The node type id format is now changed to include the type name in uppercase, which improves consistency with the naming conventions. Support for tweaks is added to the getPythonApiCode and getCurlCode functions, which allows the API to apply tweaks to the flow. Unused imports and components are removed from the ApiModal component. The buildTweaks function is added to create an empty tweaks object for each node.
2023-06-14 20:01:12 -03:00
Cristhian Zanforlin Lousa
339ed2060e tooltip showing 2023-06-14 19:58:35 -03:00
anovazzi1
b5f10b68d0 updated ids 2023-06-14 19:46:59 -03:00
anovazzi1
bba2942d37 format code 2023-06-14 19:33:21 -03:00
Cristhian Zanforlin Lousa
e0ec58bc75 general css adjusts 2023-06-14 18:52:51 -03:00
anovazzi1
7aa437e92f smaller icons 2023-06-14 18:31:55 -03:00
anovazzi1
c1b4b1d360 Merge branch 'db' of personal:logspace-ai/langflow into db 2023-06-14 18:23:00 -03:00
anovazzi1
e3a29fe41f node description using text-muted-foreground 2023-06-14 18:22:47 -03:00
anovazzi1
7538a1e37a using shadToggle to node too 2023-06-14 18:17:35 -03:00
Lucas Oliveira
bef0761416 Changed button to primary 2023-06-14 18:05:02 -03:00
anovazzi1
063fc6cc6b Merge branch 'db' of personal:logspace-ai/langflow into db 2023-06-14 17:35:24 -03:00
anovazzi1
04cf77ffd6 fix code box on APIMdal 2023-06-14 17:34:39 -03:00
Gabriel Luiz Freitas Almeida
56b16dac60 🔨 refactor(documentloaders.py): move build_template function outside of DocumentLoaderFrontNode class
The build_template function is now outside of the DocumentLoaderFrontNode class to improve code organization and make it more modular. This change also makes it easier to reuse the function in other parts of the codebase.
2023-06-14 17:15:54 -03:00
anovazzi1
429cf52c63 removed bold from text title and description 2023-06-14 17:15:52 -03:00
anovazzi1
6921b3855a Merge branch 'db' of personal:logspace-ai/langflow into db 2023-06-14 17:08:58 -03:00
anovazzi1
109b071d6c removed edark mode button 2023-06-14 17:08:52 -03:00
anovazzi1
6e554dc2e5 removed icon on settings 2023-06-14 17:06:15 -03:00
Gabriel Luiz Freitas Almeida
f18b42ef44 🎨 style(menuBar, nodeToolbarComponent): add margin to the right of the icon to improve spacing
The changes add a margin to the right of the icon in the menu bar and node toolbar components. This improves the spacing between the icon and the text. The dark:text-gray-300 class is added to ensure that the icon is visible in both light and dark mode.
2023-06-14 17:02:54 -03:00
Gabriel Luiz Freitas Almeida
5a91643619 🎨 style(MainPage): rename download and upload buttons to use the word Collection instead of Database
The download and upload buttons were renamed to use the word Collection instead of Database to improve the semantics of the application.
2023-06-14 16:35:39 -03:00
Gabriel Luiz Freitas Almeida
5ba6084f08 feat(EditNodeModal): use node description instead of constant for dialog subtitle
The constant EDIT_DIALOG_SUBTITLE was not being used, so it was removed. The node description is now being used instead of the constant for the dialog subtitle, which makes the code more dynamic and easier to maintain.
🔥 refactor(EditNodeModal): remove unused constant
2023-06-14 16:27:45 -03:00
Gabriel Luiz Freitas Almeida
e30cd6f610 🎨 style(frontend): capitalize button text in EditNodeModal and change placeholder text in ExtraSidebar search bar
💄 style(frontend): improve readability by capitalizing the button text in EditNodeModal and changing the placeholder text in ExtraSidebar search bar to improve consistency with the rest of the application.
2023-06-14 15:55:17 -03:00
Gabriel Luiz Freitas Almeida
0b2d3deabb 🎨 style(nodeToolbarComponent): replace icons from heroicons with lucide-react icons
The heroicons package was replaced with lucide-react icons to improve consistency with the rest of the application. The icons were replaced with the following lucide-react icons: Settings2, Copy, and Trash2.
2023-06-14 15:47:31 -03:00
Gabriel Luiz Freitas Almeida
e229510907 💄 style(tabsContext.tsx): add save function to TabsContextInitialValue
🚀 feat(tabsContext.tsx): add save function to save the current state of the flows to local storage
The save function was added to TabsContextInitialValue to provide a default value for the save function. The save function was added to save the current state of the flows to local storage. The function uses lodash's cloneDeep to avoid mutating the original object. It also looks for file fields to prevent saving the content and breaking the flow for exceeding the data limit for local storage. The function then saves the tabId, flows, and id to local storage.
2023-06-14 15:47:18 -03:00
Gabriel Luiz Freitas Almeida
b16f04d543 🎨 style(modals): add 'ID:' prefix to the node id badge in EditNodeModal
🎨 style(PageComponent): add lowercase type prefix to the generated node id
The 'ID:' prefix was added to the node id badge in EditNodeModal to improve readability and semantics. In PageComponent, a lowercase prefix was added to the generated node id to improve consistency with the naming conventions.
2023-06-14 15:47:05 -03:00
Gabriel Luiz Freitas Almeida
68f278553f 🚀 feat(tabs): add save function to TabsContextType
The save function is added to TabsContextType to allow the saving of changes made to the flows in the tabs.
2023-06-14 15:46:48 -03:00
Gabriel Luiz Freitas Almeida
2bd3d6b3de 🐛 fix(launch.json): remove wildcard from url property to fix debugging issue
The wildcard in the url property was causing issues with debugging the frontend. Removing the wildcard ensures that the debugger is attached to the correct URL.
2023-06-14 15:12:19 -03:00
Gabriel Luiz Freitas Almeida
1a1746cf12 🔨 refactor(PageComponent): add type prefix to new node IDs
🔨 refactor(ExtraSidebarComponent): remove Separator component
The PageComponent now generates new node IDs with a prefix that matches the type of the node. This improves the readability of the IDs and makes it easier to identify the type of node by looking at its ID. The ExtraSidebarComponent no longer uses the Separator component, as it is no longer needed.
2023-06-14 15:04:20 -03:00
Gabriel Luiz Freitas Almeida
83b9c3239a 🚚 chore(frontend): move nameInputComponent to EditFlowSettingsComponent
🔨 refactor(frontend): update import paths for EditFlowSettingsComponent
🔨 refactor(frontend): remove unused id property from createNewFlow function in tabsContext
🔨 refactor(frontend): replace nameInputComponent with EditFlowSettingsComponent in exportModal and flowSettingsModal
The nameInputComponent has been renamed to EditFlowSettingsComponent to better reflect its purpose. The import paths have been updated accordingly. The id property is no longer needed in the createNewFlow function in tabsContext, so it has been removed. The exportModal and flowSettingsModal components have been updated to use the new EditFlowSettingsComponent instead of the old nameInputComponent.
2023-06-14 15:02:38 -03:00
Gabriel Luiz Freitas Almeida
b761621751 🎉 feat(EditFlowSettingsComponent): add EditFlowSettingsComponent to allow editing of flow settings
This commit adds a new component called EditFlowSettingsComponent which allows the user to edit the name and description of a flow. The component receives the current name and description of the flow, the maximum length of the name, an array of all flows, the id of the current flow, and three functions to update the name, description, and flow. The component renders two input fields, one for the name and one for the description, and updates the flow and name when the user types in the input fields. The name input field has a character limit of maxLength and displays an error message when the limit is reached.
2023-06-14 14:57:25 -03:00
Gabriel Luiz Freitas Almeida
de81941b5f 🔥 chore(utils.ts): remove unused imports and variables
The commit removes unused imports and variables from the utils.ts file. This improves the code's readability and maintainability by removing unnecessary code.
2023-06-14 14:57:08 -03:00
Gabriel Luiz Freitas Almeida
49e094cd32 🚀 feat(vite.config.ts): add /health route to apiRoutes array
The /health route is added to the apiRoutes array to allow the frontend to check the health of the backend server. This is useful for monitoring and debugging purposes.
2023-06-14 14:56:52 -03:00