Commit graph

843 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
aa4b7bfc32 🐛 fix(GenericNode): add conditional rendering to documentation link to prevent empty href
The documentation link was previously always rendered, even if the href was empty. This caused an issue where the link would be clickable but lead to nowhere. The fix adds a conditional rendering to the link, so it is only rendered if the href is not empty.
2023-06-24 16:38:11 -03:00
Gabriel Luiz Freitas Almeida
99f0b803e9 🔨 refactor(tabsContext.tsx): improve code readability by adding whitespace and consistent formatting
The code has been refactored to improve readability by adding whitespace and consistent formatting. The function names have been updated to use camelCase for consistency. The updateDisplay_name function has been updated to use a logical OR operator instead of a ternary operator for better readability. The updateNodeDocumentation function has been added to update the node documentation. The updateNodeBaseClasses, updateNodeEdges, updateNodeDescription, and updateNodeTemplate functions have been updated to use consistent parameter names and whitespace.
2023-06-24 16:32:48 -03:00
Gabriel Luiz Freitas Almeida
f52feac7e5 🎨 style(GenericNode/index.tsx): remove unused imports and add documentation link to node toolbar
🚀 feat(api/index.ts): add documentation field to APIClassType
The unused imports were removed to improve code readability. A documentation link was added to the node toolbar to allow users to easily access the documentation for the node. The documentation field was added to the APIClassType to allow for the storage of a link to the documentation for the API class.
2023-06-24 16:32:32 -03:00
Cristhian Zanforlin Lousa
27d7553fb6
Icons style - Lucide Icons (#529)
🎨 style(GenericNode): change nodeIcons import to nodeIconsLucide to
match the new icon library
🎨 style(NodeModal): change Icon type to any to fix type error
🎨 style(chatInput): remove unnecessary array brackets
🎨 style(DisclosureComponent): change Icon size to 22 to match the new
icon library
🎨 style(extraSidebarComponent): change nodeIcons import to
nodeIconsLucide to match the new icon library and add Search icon
🎨 style(components/index): add SVGProps to import and change Icon type
to any to fix type error

 feat(utils.ts): add support for Lucide icons to be used in the app to
improve UI and UX.
2023-06-23 18:34:52 -03:00
anovazzi1
1af05a2c97
Bugfix modals (#535) 2023-06-23 18:32:54 -03:00
Cristhian Zanforlin Lousa
f0476e20df 🎨 style(inputFileComponent): reduce size of FileSearch2 icon to improve UI aesthetics 2023-06-23 18:30:35 -03:00
Cristhian Zanforlin Lousa
b61c0ac23a 🐛 fix(modals): add unique key prop to TabsTrigger component to remove console warning
🎨 style(modals): add whitespace to Dialog component props for better readability
2023-06-23 18:27:51 -03:00
anovazzi1
faaa707722 Merge branch 'dev' of personal:logspace-ai/langflow into dev 2023-06-23 18:26:50 -03:00
anovazzi1
6abb03dfa1 refactor(tabsContext.tsx): add type annotations to function parameters and return types
feat(tabsContext.tsx): add support for display_name property in node templates to allow custom node names
fix(tabsContext.tsx): add null checks to prevent errors when processing flow edges and nodes
refactor(typesContext/index.ts): change template object type to APIClassType to match usage in tabsContext
2023-06-23 18:26:31 -03:00
Cristhian Zanforlin Lousa
3b20a40af8 Formatting code 2023-06-23 18:08:16 -03:00
Cristhian Zanforlin Lousa
eac1f7c922 Merge fix with dev 2023-06-23 18:06:51 -03:00
Cristhian Zanforlin Lousa
facfe6ac57 Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-06-23 18:03:17 -03:00
Cristhian Zanforlin Lousa
c788d4c200 🐛 fix(extraSidebarComponent): fix key prop in DisclosureComponent and TooltipComponent to use unique values 2023-06-23 18:02:07 -03:00
anovazzi1
46b247d1a1
Remove unnecessary text-sm class from message sender name to improve readability (#531)
🐛 fix(chatMessage): remove unnecessary text-sm class from message sender
name to improve readability
2023-06-23 17:53:38 -03:00
anovazzi1
247e911620 Merge branch 'dev' of personal:logspace-ai/langflow into dev 2023-06-23 17:30:09 -03:00
anovazzi1
49bbb41e98 feat(frontend): add size="small" to ModalField input to improve UI consistency
feat(frontend): add save function to TabsContext to enable saving of changes made to tabs
fix(frontend): add save function to TabsContext in ParameterComponent to enable saving of changes made to tabs
2023-06-23 17:29:26 -03:00
anovazzi1
fc17bc541b refactor(dropdownComponent): add useEffect hook to update internalValue when value prop changes to avoid stale data 2023-06-23 17:28:33 -03:00
Gabriel Luiz Freitas Almeida
3940c0959d
Gitloader (#533)
Added GitLoader
2023-06-23 20:24:24 +00:00
anovazzi1
d06e8aa517 refactor(extraSidebarComponent): change ShadTooltip content to display the display_name property of data object instead of the key name to improve readability and user experience 2023-06-23 17:11:08 -03:00
anovazzi1
9bee33fa18 refactor(extraSidebarComponent): change variable name 't' to 'displayName' for better readability and clarity of code 2023-06-23 17:09:12 -03:00
anovazzi1
019e2b2bb4 refactor(GenericNode): change data.type to data.node.display_name to improve semantics and readability
feat(api): add display_name field to APIClassType to provide a human-readable name for the class
2023-06-23 17:06:58 -03:00
Gabriel Luiz Freitas Almeida
d9ec262752 formatting 2023-06-23 16:51:54 -03:00
Gabriel Luiz Freitas Almeida
a0b81f6227
Upload File Endpoint / Better VectorStore Implementation (#525) 2023-06-23 19:09:26 +00:00
Gabriel Luiz Freitas Almeida
d9fa17189e 🎨 style(MongoDB icon): rename SlackSVG to MongoDBSVG for better naming
The SlackSVG component was renamed to MongoDBSVG to better reflect the actual icon being used. This improves the naming consistency and makes the code more readable.
2023-06-23 15:33:10 -03:00
Gabriel Luiz Freitas Almeida
81fb84b081 🎨 style(MongoDBIcon): add MongoDBIcon component to frontend app
The MongoDBIcon component was added to the frontend app to be used as an icon for MongoDB Atlas Vector Search. The icon was added as an SVG file and imported as a React component. The component was then added to the nodeIcons object in the utils.ts file.
2023-06-23 13:18:52 -03:00
Gabriel Luiz Freitas Almeida
0645693069 🐛 fix(utils.ts): simplify ternary operator in validateNode function
The ternary operator in the validateNode function was simplified by removing the unnecessary if statement. The code is now more concise and easier to read.
2023-06-23 10:54:34 -03:00
Gabriel Luiz Freitas Almeida
8cd8449034 🔥 refactor(inputFileComponent): remove unused import of RadialProgressComponent
The import of RadialProgressComponent was removed as it was not being used in the component.
2023-06-23 10:51:59 -03:00
Gabriel Luiz Freitas Almeida
713d2f19e5 🔨 refactor(utils.ts): simplify snakeToSpaces function
🔨 refactor(utils.ts): simplify getConnectedNodes function
🔨 refactor(utils.ts): remove unused variable in groupByFamily function
The snakeToSpaces function has been simplified by removing the unnecessary variable declaration. The getConnectedNodes function has been simplified by removing the unnecessary variable declaration and returning the result directly. The groupedObj variable in the groupByFamily function is no longer used, so it has been removed.
2023-06-23 10:51:29 -03:00
Gabriel Luiz Freitas Almeida
4dec5db45e 🔨 refactor(frontend): remove unnecessary empty object destructuring in LoadingSpinner component
🔨 refactor(frontend): simplify conditional rendering in InputFileComponent component
🔨 refactor(frontend): simplify arrow function in SupabaseIcon component
The empty object destructuring in the LoadingSpinner component is unnecessary and can be removed. The conditional rendering in the InputFileComponent component can be simplified by removing unnecessary parentheses. The arrow function in the SupabaseIcon component can be simplified by removing unnecessary parentheses.
2023-06-22 22:57:00 -03:00
Cristhian Zanforlin Lousa
7a61791058 🐛 fix(chatMessage): remove unnecessary text-sm class from message sender name to improve readability 2023-06-22 22:51:21 -03:00
Cristhian Zanforlin Lousa
bc1d6885ed 🔧 chore(frontend): fix formatting issues in multiple files
🚀 feat(frontend): add hover effect to file search icon in InputFileComponent
🚀 feat(frontend): add support for dark mode in alert icons
🚀 feat(frontend): add support for dark mode in dropdown chevron icon
🚀 feat(frontend): add support for dark mode in success alert icon
🚀 feat(frontend): add support for dark mode in notice alert icon
🚀 feat(frontend): add support for dark mode in error alert icon
🚀 feat(frontend): add support for process.env.PORT environment variable to be able to run app on a configurable port
🚀 feat(frontend): add parameter types to GenericNode component
🚀 feat(frontend): add hover effect to external link icon in CodeAreaComponent
🚀 feat(frontend): add hover effect to plus icon in MenuBar component
🚀 feat(frontend): add hover effect to settings icon in MenuBar component
🚀 feat(frontend): add hover effect to undo icon in MenuBar component
🚀 feat(frontend): add hover effect to redo icon in MenuBar component

🎨 style(inputListComponent): add space before self-closing tag to improve readability
🎨 style(promptComponent): add space before self-closing tag to improve readability
🎨 style(ApiModal): fix indentation to improve readability
🎨 style(chatInput): add space before self-closing tag to improve readability
🎨 style(chatMessage): remove unnecessary line breaks to improve readability
🎨 style(fileComponent): add space before self-closing tag to improve readability
🎨 style(chatModal): remove unnecessary line breaks to improve readability
🎨 style(codeAreaModal): fix indentation to improve readability
🎨 style(genericModal): fix indentation to improve readability
🎨 style(DisclosureComponent): add space before self-closing tag to improve readability
🎨 style(extraSidebarComponent): fix indentation to improve readability
2023-06-22 22:49:42 -03:00
Cristhian Zanforlin Lousa
198b2c6c75 🐛 fix(chatMessage): remove unnecessary text-sm class from message sender name to improve readability 2023-06-22 22:47:37 -03:00
Cristhian Zanforlin Lousa
0c4e1f11e7 🎨 style(frontend): replace heroicons with lucide-react icons for consistency and smaller bundle size
🐛 fix(chatMessage): replace ChatBubbleOvalLeftEllipsisIcon with MessageCircle icon for consistency and better semantics

🎨 style(frontend): replace heroicons with lucide-react icons for consistency and better performance
🐛 fix(ApiModal): replace CodeBracketSquareIcon with Code2 icon for better semantics and consistency

🎨 style(frontend): replace heroicons with lucide-react icons for consistency and better design

🎨 style(genericModal/index.tsx): replace DocumentTextIcon with FileText icon from lucide-react library
🎨 style(importModal/buttonBox/index.tsx): remove unused imports
🎨 style(DisclosureComponent/index.tsx): replace ChevronRightIcon with ChevronRight icon from lucide-react library
🎨 style(extraSidebarComponent/index.tsx): replace Bars2Icon with Menu icon from lucide-react library
🔥 chore(entities/index.ts): remove unused HomeIcon import from heroicons-react library
2023-06-22 22:43:21 -03:00
anovazzi1
1103a22870 feat(PageComponent): adjust minZoom and maxZoom values to improve user experience when zooming in and out of the flowchart. 2023-06-22 22:17:37 -03:00
anovazzi1
2d2d7e6c8c feat(PageComponent): add maxZoom prop to FlowChart to limit zooming to 4x to prevent visual artifacts and improve user experience 2023-06-22 22:16:31 -03:00
Gabriel Luiz Freitas Almeida
c4f3476646 🆕 feat(config.yaml, utils.ts): add support for SupabaseVectorStore in vectorstores and add SupabaseIcon to nodeIcons
The SupabaseVectorStore is now supported in the vectorstores configuration in the config.yaml file. The SupabaseIcon has been added to the nodeIcons object in the utils.ts file to be able to display the icon for the SupabaseVectorStore.
2023-06-22 21:01:40 -03:00
anovazzi1
4056cd09d4 fix(RadialProgress): round percentage value to nearest integer using Math.trunc() to improve display accuracy 2023-06-22 20:58:35 -03:00
anovazzi1
7050452473 feat(frontend): add SupabaseIcon component and its SVG file to the project to be used in the UI 2023-06-22 20:58:03 -03:00
anovazzi1
01545f316e fix(RadialProgress): round percentage value to nearest integer to improve readability and consistency 2023-06-22 20:53:52 -03:00
Cristhian Zanforlin Lousa
4470ca792c 🎨 style(inputFileComponent): add loading spinner to input file component to indicate file upload progress 2023-06-22 20:08:03 -03:00
Cristhian Zanforlin Lousa
f3e6db4df1 feat(chat.py): add error handling to stream_build function and improve log messages
 feat(schemas.py): add StreamData class to handle SSE messages
 feat(frontend): add RadialProgress and ProgressBar components
🔧 chore(frontend): add daisyui to project dependencies

🎨 style(headerComponent): comment out unused code
 feat(ui/progress.tsx): add Progress component to reuse in other components
 feat(types/components): add ProgressBarType and RadialProgressType to use in components
🎨 style(tailwind.config.js): add daisyui plugin to tailwind configuration to use in the project
2023-06-22 19:48:37 -03:00
Cristhian Zanforlin Lousa
6ac10679a4 🎨 style(DisclosureComponent): replace ChevronRightIcon with ChevronRight from lucide-react to improve consistency with other icons
🎨 style(extraSidebarComponent): remove unused import of MagnifyingGlassIcon from heroicons-react/outline to improve code readability
2023-06-22 19:35:00 -03:00
Cristhian Zanforlin Lousa
49a2935ab3 🐛 fix(parameterComponent): fix key prop warning by generating random key using new function getRandomKeyByssmm
 feat(parameterComponent): add support for dynamic rendering of parameter component by grouping data by family
🐛 fix(menuBar): fix DropdownMenuTrigger component by adding asChild prop
🐛 fix(card.tsx): change p tag to div tag to fix accessibility issue
🐛 fix(extraSidebarComponent): fix key prop warning by adding key prop to Tooltip component
 feat(utils.ts): add new function getRandomKeyByssmm to generate random keys for components
2023-06-22 19:22:04 -03:00
Gabriel Luiz Freitas Almeida
2bad404c62 🐛 fix(constants.tsx): change payload key from "message" to "inputs" to match API requirements
The payload key was changed from "message" to "inputs" to match the API requirements. This change ensures that the API can correctly parse the request payload.
2023-06-22 19:22:04 -03:00
Gabriel Luiz Freitas Almeida
176738987b 🔀 refactor(endpoints.py): rename predict_flow endpoint to process_flow and update its functionality
🔀 refactor(constants.tsx): update BASE_API_URL to reflect the changes in the predict_flow endpoint name
The predict_flow endpoint has been renamed to process_flow to better reflect its functionality. The inputs are now passed as a dictionary instead of a PredictRequest object. The tweaks parameter is now optional and is passed as a dictionary. The response model has been updated to reflect the changes in the response. The BASE_API_URL constant in constants.tsx has been updated to reflect the changes in the endpoint name.
2023-06-22 18:57:17 -03:00
Cristhian Zanforlin Lousa
9236ee21c8 🔨 refactor(NodeModal): add type any to Icon variable to avoid type conflict 2023-06-22 16:40:59 -03:00
anovazzi1
fe0aa91ed0 chore(GenericNode/index.tsx): import additional types from react to improve type safety 2023-06-22 16:37:06 -03:00
Cristhian Zanforlin Lousa
e7852bcd1a 🎨 style(parameterComponent): change nodeIcons import to nodeIconsLucide to match the new icon library
🎨 style(GenericNode): change nodeIcons import to nodeIconsLucide to match the new icon library
🎨 style(NodeModal): change Icon type to any to fix type error
🎨 style(chatInput): remove unnecessary array brackets
🎨 style(DisclosureComponent): change Icon size to 22 to match the new icon library
🎨 style(extraSidebarComponent): change nodeIcons import to nodeIconsLucide to match the new icon library and add Search icon
🎨 style(components/index): add SVGProps to import and change Icon type to any to fix type error

 feat(utils.ts): add support for Lucide icons to be used in the app to improve UI and UX.
2023-06-22 15:32:49 -03:00
Gabriel Luiz Freitas Almeida
2854633814 🔥 refactor(API): remove unused postValidateNode function
The postValidateNode function is not used in the codebase and has been removed to improve code readability and maintainability.
2023-06-22 11:45:55 -03:00
Gabriel Luiz Freitas Almeida
e5c6c92ecc feat(frontend): add Pinecone icon to nodeIcons
A new PineconeIcon component was added to the nodeIcons object in utils.ts. This allows the Pinecone icon to be used in the frontend application. The icon was added to improve the visual representation of the Pinecone node in the application.
2023-06-22 11:45:44 -03:00