Commit graph

3,313 commits

Author SHA1 Message Date
Lucas Oliveira
f1b8760a02 merge fixes 2023-07-20 10:16:58 -03:00
Lucas Oliveira
8f6e8f9e91 Fixed bug that has been fixed at CustomComponents 2023-07-20 10:12:29 -03:00
Lucas Oliveira
62bcfdeaa9 Fixed bug where prompt modal not saving, but there is no Clean Edges now 2023-07-19 11:03:44 -03:00
Lucas Oliveira
dbb9b8ab81 Fixed disableCopyPaste on modals 2023-07-18 18:22:22 -03:00
Lucas Oliveira
d1f744e4d4 Formatting 2023-07-17 17:07:45 -03:00
Lucas Oliveira
8c49bcfaa5 Styling fixes on both applications of codeTabsComponent 2023-07-17 17:06:59 -03:00
Lucas Oliveira
eebad04f52 Merge branch 'modalRefactor' of github.com:logspace-ai/langflow into modalRefactor 2023-07-17 13:31:20 -03:00
Lucas Oliveira
14a0669c99 Normailzed code modals 2023-07-17 13:27:04 -03:00
Cristhian Zanforlin Lousa
1ff4ef514f 🔧 fix(AccordionComponent): add className "AccordionContent" to AccordionContent component for styling purposes
🔧 fix(formModal): add className "AccordionContent" to AccordionContent component for styling purposes
🔧 fix(index.css): add styles for AccordionContent component to handle animation for opening and closing
🔧 fix(tailwind.config.js): remove unused keyframes and animations related to accordion
2023-07-17 10:48:45 -03:00
Lucas Oliveira
207e76a09d Fixed dropdown component on editNode 2023-07-16 16:22:01 -03:00
Lucas Oliveira
72baa7c2be Merge branch 'dev' into modalRefactor 2023-07-16 16:19:36 -03:00
Lucas Oliveira
99f59d4dbf Fixed node not being saved 2023-07-16 13:06:05 -03:00
Lucas Oliveira
d5ba08f776 Refactored data state management on parameter components and editnode modal, bug on saving(not storing changes on ReactFlowInstance) 2023-07-16 00:55:22 -03:00
Lucas Oliveira
31588c4e42 Optimized nodeToolbar and EditNodeModal 2023-07-15 23:49:12 -03:00
Lucas Oliveira
f3b4e6e76f Removed closePopup from API modal 2023-07-15 23:17:38 -03:00
Cristhian Zanforlin Lousa
eaa4f1343a 🐛 fix(tailwind.config.js): change height value from 100 to '100vh' to ensure full viewport height for slideDown animation 2023-07-14 22:14:17 -03:00
Cristhian Zanforlin Lousa
de519d81a4 🐛 fix(AccordionComponent): remove console.log statement for open variable
🐛 fix(ApiModal): set open accordion to empty array if there are no accordions to open
2023-07-14 22:09:02 -03:00
Cristhian Zanforlin Lousa
f8de3a5265 🔧 fix(index.css): adjust width of .api-modal-tabs to be 75vw on small screens to improve responsiveness
🔧 fix(ApiModal/index.tsx): remove unnecessary whitespace
2023-07-14 21:58:13 -03:00
Cristhian Zanforlin Lousa
de2a24fa5d 🐛 fix(ApiModal/index.tsx): fix startState function to properly reset tweak and tweaksList variables
 feat(ApiModal/index.tsx): add logic to reset tweak and tweaksList variables when flow data nodes length is 0
2023-07-14 21:52:26 -03:00
Cristhian Zanforlin Lousa
2161e62e4f 🐛 fix(ApiModal/index.tsx): fix tabs state initialization and update logic to handle different scenarios
 feat(ApiModal/index.tsx): add support for dynamic tabs based on tweaksCode presence and set active tab to "cURL" when tweaksCode is present
2023-07-14 16:20:13 -03:00
Cristhian Zanforlin Lousa
ee4c465aba 🐛 fix(ApiModal/index.tsx): fix bug where tweak.current was not being properly reset when getTweak, tweak.current, and flow["data"]["nodes"] were all empty
 feat(ApiModal/index.tsx): add useEffect dependency on flow["data"]["nodes"] to trigger filterNodes function when nodes data changes
2023-07-14 16:06:55 -03:00
Cristhian Zanforlin Lousa
e74f3c9dd5 🔨 refactor(ApiModal/index.tsx): import PopUpContext from correct file path to fix module import error
🔨 refactor(ApiModal/index.tsx): remove unused imports and variables to improve code readability and maintainability
🔨 refactor(ApiModal/index.tsx): add missing dependency to useEffect to fix missing dependency warning
🔨 refactor(ApiModal/index.tsx): add setOpen function to closePopUp when modal is opened
2023-07-14 15:33:43 -03:00
Cristhian Zanforlin Lousa
ca03da9ee2 🐛 fix(ApiModal/index.tsx): remove unnecessary empty line
 feat(ApiModal/index.tsx): add support for displaying tweaks code in a new tab if tweaksCode object is not empty
2023-07-14 12:03:23 -03:00
Cristhian Zanforlin Lousa
032e48ac7f 🐛 fix(ApiModal/index.tsx): add missing condition to check if getTweak array is empty before pushing a new tweak to the tweak ref
 feat(ApiModal/index.tsx): automatically build and push a new tweak to the tweak ref if getTweak array is empty
2023-07-14 11:46:48 -03:00
Cristhian Zanforlin Lousa
e0e2be6d27 🔨 refactor(ApiModal/index.tsx): remove unused imports and variables for cleaner code
🔥 chore(ApiModal/index.tsx): remove unused PopUpContext and related code
🔧 chore(ApiModal/index.tsx): remove unused setOpen function
🔧 chore(ApiModal/index.tsx): remove unnecessary useEffect dependency on flow["data"]["nodes"]
🔧 chore(ApiModal/index.tsx): remove unnecessary setOpenAccordion and tweakList.current assignments
🔧 chore(ApiModal/index.tsx): remove unnecessary setIsCopied assignment in copyToClipboard function
🔧 chore(ApiModal/index.tsx): remove unnecessary setCloseEdit calls in setOpen function
🔧 chore(ApiModal/index.tsx): remove unnecessary setOpen function argument in BaseModal component
2023-07-14 11:41:41 -03:00
Cristhian Zanforlin Lousa
728c625407 🐛 fix(ApiModal/index.tsx): remove unused code and refactor useEffect dependencies for better performance and readability 2023-07-14 11:39:07 -03:00
Cristhian Zanforlin Lousa
663c5b1c4e 🔨 refactor(ApiModal/index.tsx): import PopUpContext from correct file path to fix module import error
 feat(ApiModal/index.tsx): add closeEdit and setCloseEdit functions to PopUpContext to handle closing of edit modal
🔨 refactor(ApiModal/index.tsx): remove unused imports and variables to improve code readability
🔨 refactor(ApiModal/index.tsx): remove commented out code to clean up codebase
🔨 refactor(ApiModal/index.tsx): remove unused useEffect dependencies to improve code readability
🔨 refactor(ApiModal/index.tsx): remove unused setOpen function parameter to clean up codebase
2023-07-14 11:11:47 -03:00
Cristhian Zanforlin Lousa
dde4ed07ef 🐛 fix(ApiModal/index.tsx): fix conditional check for empty nodes array in useEffect hook
 feat(ApiModal/index.tsx): add startTweaks function to initialize tweaks when nodes array is not empty
2023-07-14 11:02:55 -03:00
Cristhian Zanforlin Lousa
290ef87247 🔨 refactor(EditNodeModal/index.tsx): add closePopUp function to close the pop-up when the modal is closed
🔨 refactor(EditNodeModal/index.tsx): refactor setOpen function to close the pop-up when the modal is closed
2023-07-14 09:58:58 -03:00
Cristhian Zanforlin Lousa
14d80b8f13 Merge branch 'modalRefactor' of https://github.com/logspace-ai/langflow into modalRefactor 2023-07-14 09:49:03 -03:00
Cristhian Zanforlin Lousa
8668e82fff 🔧 chore(EditNodeModal): refactor handleOnNewValue function to improve code readability and maintainability 2023-07-14 09:48:56 -03:00
Lucas Oliveira
4e3d67ac41 Fixed bug on EditNodeModal 2023-07-14 08:51:18 -03:00
Cristhian Zanforlin Lousa
d008e53bef 🐛 fix(nodeToolbarComponent): change div element to button element for edit node button to improve accessibility and prevent default action when nodeLength is 0 2023-07-14 08:23:01 -03:00
Cristhian Zanforlin Lousa
21f058d46d 🐛 fix(EditNodeModal): remove unnecessary code that closes the modal when nodeLength is 0 2023-07-14 08:17:30 -03:00
Lucas Oliveira
85f0c3cda6 Removed closePopup from all of the components that used it 2023-07-13 19:05:59 -03:00
Lucas Oliveira
54b897ff13 Fixed forwardRef on EditNodeModal 2023-07-13 18:56:31 -03:00
Lucas Oliveira
ea94c3f9e8 Bug fixes of DOM nesting 2023-07-13 18:49:40 -03:00
Cristhian Zanforlin Lousa
f40c4a88a2 Merge branch 'modalRefactor' of https://github.com/logspace-ai/langflow into modalRefactor 2023-07-13 18:39:03 -03:00
Cristhian Zanforlin Lousa
7672bc3c3e 🔧 fix(exportModal/index.tsx): change function component to forwardRef component to support ref forwarding
🔧 fix(exportModal/index.tsx): update usage of children prop to use props.children for better readability
2023-07-13 18:38:57 -03:00
Lucas Oliveira
2ea282eda9 Fixed bug on opening new flow 2023-07-13 18:37:27 -03:00
Rodrigo Nader
5d3a7f06a8 Docs - Grammar improvements 2023-07-13 18:35:16 -03:00
Lucas Oliveira
303f8c38ee Removed unused openPopups 2023-07-13 18:28:50 -03:00
Cristhian Zanforlin Lousa
7dcc6f2b8c formatting code 2023-07-13 18:08:36 -03:00
Cristhian Zanforlin Lousa
2f469ca964 🔧 fix(promptComponent): remove unused import of TypeModal from utils
🔧 fix(textAreaComponent): remove unused import of TypeModal from utils
🔧 fix(genericModal): remove unused import of TypeModal from utils
🔧 fix(utils.ts): remove unused enum TypeModal
2023-07-13 18:07:32 -03:00
Cristhian Zanforlin Lousa
76fb935e63 🐛 fix(EditNodeModal/index.tsx): change variable name from 'open' to 'modalOpen' for better clarity
 feat(EditNodeModal/index.tsx): add 'open' and 'setOpen' props to BaseModal component to control modal visibility
🐛 fix(EditNodeModal/index.tsx): change variable name from 'open' to 'modalOpen' in onClick event handler for better consistency
2023-07-13 18:05:16 -03:00
Cristhian Zanforlin Lousa
08083ddc10 Merge branch 'modalRefactor' of https://github.com/logspace-ai/langflow into modalRefactor 2023-07-13 17:59:52 -03:00
Cristhian Zanforlin Lousa
607e57d4d9 🔧 fix(ApiModal): import ReactNode from react to fix missing type error
 feat(ApiModal): add BaseModal component as a wrapper for the modal to improve code organization and reusability
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop name from children to flow in ApiModal component for better clarity
🔧 fix(ApiModal): change prop

🐛 fix(extraSidebarComponent): remove unnecessary onClick event handlers for Export and Code buttons
 feat(extraSidebarComponent): wrap Export and Code buttons with ExportModal and ApiModal components respectively to handle click events and display modals
🐛 fix(nodeToolbarComponent): remove unnecessary onClick event handler for Edit button
 feat(nodeToolbarComponent): wrap Edit button with EditNodeModal component to handle click events and display modal
2023-07-13 17:59:46 -03:00
Lucas Oliveira
8f006fc9c5 Changed trigger to be optional 2023-07-13 17:50:03 -03:00
Lucas Oliveira
3a9a89840d Changed flowSettings to new type of popup 2023-07-13 17:44:21 -03:00
Lucas Oliveira
e0f9b3419e formatting issues 2023-07-13 17:21:04 -03:00