Commit graph

3,284 commits

Author SHA1 Message Date
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
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
Lucas Oliveira
6488750bc2 Started transition to Radix modal logic 2023-07-13 17:20:18 -03:00
Lucas Oliveira
202d80e7b5 Merge branch 'dev' into modalRefactor 2023-07-13 16:15:00 -03:00
Gabriel Luiz Freitas Almeida
5e8ac59a83
Bug Fixes and Style Updates (#643) 2023-07-13 18:53:23 +00:00
Gabriel Luiz Freitas Almeida
9f5fbbec45 🚀 chore(pyproject.toml): update package version from 0.2.13 to 0.3.0 to reflect new changes and improvements
⬆️ chore(pyproject.toml): update langchain dependency from version 0.0.229 to 0.0.232 to ensure compatibility with other packages
2023-07-13 15:51:49 -03:00
Gabriel Luiz Freitas Almeida
38da096245 🐛 fix(base.py): rename _remove_invalid_nodes() to _validate_nodes() for clarity and accuracy
🔥 chore(base.py): remove unnecessary check for single node and no edges in _validate_nodes()
🔥 chore(base.py): remove unused import statement
🔥 chore(base.py): remove unused _validate_node() method
🔥 chore(base.py): remove unused import statement
2023-07-13 15:01:08 -03:00
Cristhian Zanforlin Lousa
f2724f1116 🐛 fix(tabsContext.tsx): update stroke color of edges to use a shorter hex code for better readability
🐛 fix(tabsContext.tsx): update stroke color of edges to use a consistent color code for better consistency
2023-07-13 14:34:28 -03:00
Cristhian Zanforlin Lousa
0e40bb0a87 🐛 fix(index.css): swap colors for chat bot and chat user icons to match their respective roles 2023-07-13 13:37:33 -03:00
Cristhian Zanforlin Lousa
36844cdcdb 🔧 fix(constants.tsx): reduce MAX_WORDS_HIGHLIGHT from 110 to 79 to limit the number of highlighted words in tooltips
🔥 chore(genericModal/index.tsx): remove console.log statement
2023-07-13 12:17:22 -03:00
Cristhian Zanforlin Lousa
fe2525750e 🔧 chore(constants.tsx): add constant MAX_WORDS_HIGHLIGHT with a value of 110 for the maximum number of words to highlight in tooltips
🔧 chore(index.css): add CSS class .code-nohighlight with different max-height value for tooltips with fewer words to display
🔧 chore(genericModal/index.tsx): add logic to dynamically apply CSS class .code-nohighlight to tooltips with fewer words to display
2023-07-13 11:37:02 -03:00
Cristhian Zanforlin Lousa
cc11213a0f 🎨 style(index.css): update color variables for chat bot and user icons for better visual distinction
🎨 style(index.css): update class names for code block modal span and button for better readability
🎨 style(index.css): update class name for code highlight block to limit max height
🐛 fix(chatMessage/index.tsx): update max width classes for markdown content to improve responsiveness
🐛 fix(genericModal/index.tsx): add missing useRef declarations for divRef and divRefPrompt
🐛 fix(genericModal/index.tsx): update class name for code highlight textarea to fix styling issue
🐛 fix(genericModal/index.tsx): add missing ref prop to Textarea component
🐛 fix(genericModal/index.tsx): add missing ref prop to div element for prompt variables
🐛 fix(genericModal/index.tsx): add missing ref prop to div element for prompt variables
2023-07-13 10:53:04 -03:00
Rodrigo Nader
28a8b1f1da change input to border-border 2023-07-13 01:15:18 -03:00
Rodrigo Nader
5727dbde8f add border-border to input-edit 2023-07-13 01:09:15 -03:00
Cristhian Zanforlin Lousa
2e4228abb4 🔧 fix(EditFlowSettingsComponent): add div wrapper around description label for proper styling
🔧 fix(EditNodeModal): remove unused imports and update component structure to use BaseModal

🔧 fix(baseModal): add Footer component to BaseModal and update component structure to use Header and Footer

🔧 fix(exportModal): remove unused imports and update component structure to use BaseModal

🔧 fix(flowSettingsModal): import BaseModal component and refactor modal structure for better readability and maintainability
🔧 fix(genericModal): adjust margin-top for prompt variables description to improve spacing
2023-07-12 21:53:32 -03:00
Gabriel Luiz Freitas Almeida
6d72a561aa
Merge docs to dev (#638) 2023-07-12 19:37:21 -03:00
Gabriel Luiz Freitas Almeida
6a877a246b fix: add custom fields 2023-07-12 19:35:04 -03:00
Gabriel Luiz Freitas Almeida
04e3b42265 📦 chore(package.json): update "@mendable/search" dependency to version "^0.0.114" for bug fixes and improvements 2023-07-12 19:34:23 -03:00
Gabriel Luiz Freitas Almeida
2d148afd27 📝 docs(docusaurus.config.js): update title and tagline to use consistent naming convention for Langflow
🔧 chore(docusaurus.config.js): update logo alt text to match the updated title
🔧 chore(docusaurus.config.js): update announcementBar content to use consistent naming convention for Langflow
2023-07-12 19:31:03 -03:00
Gabriel Luiz Freitas Almeida
049ba108bb fix: LangFlow -> Langflow 2023-07-12 19:30:37 -03:00
Gabriel Luiz Freitas Almeida
5bf79a5b4a 🔀 chore(deploy_gh-pages.yml): update branch trigger from 'lf-docs-fix' to 'main' for GitHub Pages deployment workflow 2023-07-12 19:01:02 -03:00
Gabriel Luiz Freitas Almeida
27d4de3ed2 🔧 chore(docusaurus.config.js): remove deploymentBranch configuration to avoid confusion and improve clarity 2023-07-12 18:56:44 -03:00