Commit graph

  • d7a3c10d3a 🔧 refactor(test_custom_component.py): improve readability by breaking long lines of code 🔨 refactor(test_custom_component.py): update import statement to reflect new file structure gustavoschaedler 2023-07-15 01:02:52 +01:00
  • 8101bbc21e feat: Change hard coded lucide icons to generic icon component Igor Carvalho 2023-07-14 20:55:24 -03:00
  • 0aab360629 🔨 refactor(langflow): improve code parsing and custom component handling gustavoschaedler 2023-07-15 00:41:31 +01:00
  • 82b973de43 🔧 fix(frontend_node/textsplitters.py): add is_list=True to the 'documents' parameter to indicate it is a list 🔧 fix(frontend_node/vectorstores.py): add is_list=True to the 'field' parameter to indicate it is a list Gabriel Luiz Freitas Almeida 2023-07-14 18:37:30 -03:00
  • cd94c47b0e fix bug of scroll on ace Editor anovazzi1 2023-07-14 18:11:29 -03:00
  • 24273e3931
    Hotfix: 0.3.1 (#648) Gabriel Luiz Freitas Almeida 2023-07-14 21:04:06 +00:00
  • 0450c4c8cc 🔖 chore(pyproject.toml): bump langchain version from 0.0.232 to 0.0.233 🔖 chore(pyproject.toml): bump package version from 0.3.0 to 0.3.1 Gabriel Luiz Freitas Almeida 2023-07-14 17:58:40 -03:00
  • 7048196682 Fixed tweaks appearing as list Lucas Oliveira 2023-07-14 17:53:08 -03:00
  • c332050788 feat[utils.ts]:Add hard-coded icons into lucide utils icon object Igor Carvalho 2023-07-14 17:05:27 -03:00
  • 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 Cristhian Zanforlin Lousa 2023-07-14 16:20:13 -03:00
  • 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 Cristhian Zanforlin Lousa 2023-07-14 16:06:55 -03:00
  • 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 Cristhian Zanforlin Lousa 2023-07-14 15:33:43 -03:00
  • 18820facbb added fallback icon in IconComponent anovazzi1 2023-07-14 15:27:53 -03:00
  • 2f1b675122 format code anovazzi1 2023-07-14 15:19:52 -03:00
  • 7c37c6d74f 🔧 refactor(conftest.py): remove unnecessary comments for cleaner code 🔧 refactor(conftest.py): reformat code for better readability 🔧 refactor(conftest.py): move import statements to new lines for better readability gustavoschaedler 2023-07-14 19:19:42 +01:00
  • 7d2f853630 added enum type for Icon method anovazzi1 2023-07-14 15:18:36 -03:00
  • 405191de22 ✨ feat(conftest.py): add fixtures for GET and POST request components to be used in tests Gabriel Luiz Freitas Almeida 2023-07-14 15:04:30 -03:00
  • f2687fa926 Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component gustavoschaedler 2023-07-14 18:36:23 +01:00
  • cc2dbe1490 🔧 refactor(constants.py, conftest.py): improve code structure and readability gustavoschaedler 2023-07-14 18:29:54 +01:00
  • 1863d463d0 🔨 refactor(conftest.py): change return type of build method in CSVLoaderComponent from List[Document] to Document to match the actual return type 🔧 chore(conftest.py): add new fixture filter_docs for testing DocumentFilterByLengthComponent Gabriel Luiz Freitas Almeida 2023-07-14 14:20:09 -03:00
  • 49029d6cda 🔧 chore(base.py): refactor TemplateFieldCreator class to improve code readability and maintainability Gabriel Luiz Freitas Almeida 2023-07-14 14:13:27 -03:00
  • 99ef7c728d 🔨 refactor(conftest.py): reformat code for better readability and maintainability ✨ feat(conftest.py): add MyCustomChain class as an example of a custom chain ✨ feat(conftest.py): add CustomChain class as a custom component for building a document ✨ feat(conftest.py): add CSVLoaderComponent class as a custom component for loading CSV files and converting rows to documents Gabriel Luiz Freitas Almeida 2023-07-14 14:05:57 -03:00
  • 10c0b3871c ✨ feat(conftest.py): add custom_chain fixture to provide a custom chain for testing purposes Gabriel Luiz Freitas Almeida 2023-07-14 13:10:06 -03:00
  • 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 Cristhian Zanforlin Lousa 2023-07-14 12:03:23 -03:00
  • 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 Cristhian Zanforlin Lousa 2023-07-14 11:46:48 -03:00
  • 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 Cristhian Zanforlin Lousa 2023-07-14 11:41:41 -03:00
  • 728c625407 🐛 fix(ApiModal/index.tsx): remove unused code and refactor useEffect dependencies for better performance and readability Cristhian Zanforlin Lousa 2023-07-14 11:39:07 -03:00
  • 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 Cristhian Zanforlin Lousa 2023-07-14 11:11:47 -03:00
  • 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 Cristhian Zanforlin Lousa 2023-07-14 11:02:55 -03:00
  • 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 Cristhian Zanforlin Lousa 2023-07-14 09:58:58 -03:00
  • 14d80b8f13 Merge branch 'modalRefactor' of https://github.com/logspace-ai/langflow into modalRefactor Cristhian Zanforlin Lousa 2023-07-14 09:49:03 -03:00
  • 8668e82fff 🔧 chore(EditNodeModal): refactor handleOnNewValue function to improve code readability and maintainability Cristhian Zanforlin Lousa 2023-07-14 09:48:56 -03:00
  • 88511f1016 🔧 fix(chatMessage): adjust className to fix layout issue in ChatMessage component 🔧 fix(genericModal): reformat import statements and fix indentation in GenericModal component 🔧 fix(genericModal): adjust className to fix layout issue in GenericModal component 🔧 fix(genericModal): fix indentation and add missing closing tag in GenericModal component Gabriel Luiz Freitas Almeida 2023-07-14 09:17:09 -03:00
  • 3effba2dbd 🐛 fix(API/index.ts): update examples API URL to use the 'main' branch instead of 'fix_examples' branch Gabriel Luiz Freitas Almeida 2023-07-14 09:16:15 -03:00
  • 4e3d67ac41 Fixed bug on EditNodeModal Lucas Oliveira 2023-07-14 08:51:18 -03:00
  • d008e53bef 🐛 fix(nodeToolbarComponent): change div element to button element for edit node button to improve accessibility and prevent default action when nodeLength is 0 Cristhian Zanforlin Lousa 2023-07-14 08:23:01 -03:00
  • 21f058d46d 🐛 fix(EditNodeModal): remove unnecessary code that closes the modal when nodeLength is 0 Cristhian Zanforlin Lousa 2023-07-14 08:17:30 -03:00
  • e90fd26984 🔥 remove(component.py): unnecessary blank line at the start of the file for cleaner code structure gustavoschaedler 2023-07-14 05:12:05 +01:00
  • 75452fb758 🔧 refactor(custom_component.py): make 'code' attribute optional in CustomComponent class to allow instances without explicit code value gustavoschaedler 2023-07-14 05:08:12 +01:00
  • b523533d98 Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component gustavoschaedler 2023-07-14 04:51:11 +01:00
  • 79d2d551ff 🔀 refactor(langflow): rename custom.py to custom_component.py for clarity 🔥 remove(langflow): delete custom.py as it's replaced by custom_component.py 📦 feat(langflow): add code_parser.py to parse Python source code 🐛 fix(langflow): update import paths due to file renaming 🎨 style(langflow): improve code formatting for readability 🐛 fix(langflow): correct handling of function arguments and return types in custom components 🔧 chore(langflow): update function calls due to changes in custom components gustavoschaedler 2023-07-14 04:49:42 +01:00
  • c6e7e9cad4 feat[genericIconComponent]: Add a lucide method to the icon component Igor Carvalho 2023-07-13 19:58:55 -03:00
  • c3bdc2c0a4 moved utils file to utils folder anovazzi1 2023-07-13 19:48:41 -03:00
  • 62dde544c1 moved some constants to constant file anovazzi1 2023-07-13 19:45:04 -03:00
  • 33cfb8600a validateNodes migration done anovazzi1 2023-07-13 19:34:32 -03:00
  • 28c0b35fd7 buildTweaks migration done anovazzi1 2023-07-13 19:31:00 -03:00
  • ffda93ee34 updateIds migration done anovazzi1 2023-07-13 19:22:18 -03:00
  • cd1d3c226a moved programmingLanguages to constant file anovazzi1 2023-07-13 19:11:34 -03:00
  • 85f0c3cda6 Removed closePopup from all of the components that used it Lucas Oliveira 2023-07-13 19:05:59 -03:00
  • 54b897ff13 Fixed forwardRef on EditNodeModal Lucas Oliveira 2023-07-13 18:56:31 -03:00
  • 75c14c67a5 remove dead code anovazzi1 2023-07-13 18:56:16 -03:00
  • ea94c3f9e8 Bug fixes of DOM nesting Lucas Oliveira 2023-07-13 18:49:40 -03:00
  • e72010ca40 Remove unnecessary imports Igor Carvalho 2023-07-13 18:49:18 -03:00
  • 23a7478b5a Merge branch 'dev' into python_custom_node_component Gabriel Luiz Freitas Almeida 2023-07-13 18:45:58 -03:00
  • 9a41ca9ce2 updateTemplate migration done anovazzi1 2023-07-13 18:43:57 -03:00
  • db8f5a74d3 updateTemplate migration done anovazzi1 2023-07-13 18:40:38 -03:00
  • 0ec0be6770
    Release 0.3.0 (#644) Gabriel Luiz Freitas Almeida 2023-07-13 21:39:30 +00:00
  • f40c4a88a2 Merge branch 'modalRefactor' of https://github.com/logspace-ai/langflow into modalRefactor Cristhian Zanforlin Lousa 2023-07-13 18:39:03 -03:00
  • 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 Cristhian Zanforlin Lousa 2023-07-13 18:38:57 -03:00
  • 2ea282eda9 Fixed bug on opening new flow Lucas Oliveira 2023-07-13 18:37:27 -03:00
  • 5d3a7f06a8 Docs - Grammar improvements Rodrigo Nader 2023-07-13 18:35:16 -03:00
  • 4c9dc55205 removeApiKeys migration done anovazzi1 2023-07-13 18:32:47 -03:00
  • aa86b623ef
    Add a SVG method to the icon component (#645) Igor Carvalho 2023-07-13 18:30:48 -03:00
  • d9af07b81b
    Merge branch 'generic_icon_component' into icon_conflits Igor Carvalho 2023-07-13 18:30:28 -03:00
  • 303f8c38ee Removed unused openPopups Lucas Oliveira 2023-07-13 18:28:50 -03:00
  • 6c9220ec1e feat[genericIconComponent]: Add a SVG method to the icon component Igor Carvalho 2023-07-13 18:28:10 -03:00
  • 81f25662f1 is validConnection migration done anovazzi1 2023-07-13 18:25:37 -03:00
  • 3cb2548614 refactor anovazzi1 2023-07-13 18:19:26 -03:00
  • 3dc89726a3 icons in styleUtils anovazzi1 2023-07-13 18:17:27 -03:00
  • 7dcc6f2b8c formatting code Cristhian Zanforlin Lousa 2023-07-13 18:08:36 -03:00
  • 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 Cristhian Zanforlin Lousa 2023-07-13 18:07:32 -03:00
  • 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 Cristhian Zanforlin Lousa 2023-07-13 18:05:16 -03:00
  • 6cde1f5f37 remove dead code anovazzi1 2023-07-13 18:00:49 -03:00
  • 08083ddc10 Merge branch 'modalRefactor' of https://github.com/logspace-ai/langflow into modalRefactor Cristhian Zanforlin Lousa 2023-07-13 17:59:52 -03:00
  • 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 Cristhian Zanforlin Lousa 2023-07-13 17:59:46 -03:00
  • 2aabf54b9d remove some constants from utils to constants anovazzi1 2023-07-13 17:55:21 -03:00
  • 8f006fc9c5 Changed trigger to be optional Lucas Oliveira 2023-07-13 17:50:03 -03:00
  • 3a9a89840d Changed flowSettings to new type of popup Lucas Oliveira 2023-07-13 17:44:21 -03:00
  • 1c769e54f9 update node names anovazzi1 2023-07-13 17:36:46 -03:00
  • d88be5dd99 remove dead code anovazzi1 2023-07-13 17:31:28 -03:00
  • 11e4bd3aa2 nodeColors passed tl styleUtils anovazzi1 2023-07-13 17:29:48 -03:00
  • e0f9b3419e formatting issues Lucas Oliveira 2023-07-13 17:21:04 -03:00
  • 6488750bc2 Started transition to Radix modal logic Lucas Oliveira 2023-07-13 17:20:18 -03:00
  • dfd7ecf667 remove dead code anovazzi1 2023-07-13 17:12:24 -03:00
  • f1c174e8db delete dead code anovazzi1 2023-07-13 17:08:48 -03:00
  • afaf2dac8c Add new documentation for chat interface and prompt customization carlosrcoelho 2023-07-13 16:58:47 -03:00
  • c86100b875 Change step-by-step guides names Rodrigo Nader 2023-07-13 16:44:27 -03:00
  • c2cd390d7d
    Adding docs for release (#640) Rodrigo Nader 2023-07-13 16:22:26 -03:00
  • 202d80e7b5 Merge branch 'dev' into modalRefactor Lucas Oliveira 2023-07-13 16:15:00 -03:00
  • 5e8ac59a83
    Bug Fixes and Style Updates (#643) Gabriel Luiz Freitas Almeida 2023-07-13 18:53:23 +00:00
  • 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 Gabriel Luiz Freitas Almeida 2023-07-13 15:51:49 -03:00
  • 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 Gabriel Luiz Freitas Almeida 2023-07-13 15:01:08 -03:00
  • 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 Cristhian Zanforlin Lousa 2023-07-13 14:34:28 -03:00
  • b0db72c9fd 📝 docs(chatprompttemplate_guide.mdx): update interactive guide URL and add step-by-step instructions for customization and building a chatbot with custom system messages 📝 docs(loading_document.mdx): update interactive guide URL and add step-by-step instructions for integrating a document into a PromptTemplate variable 📝 docs(sidebars.js): add "chatprompttemplate_guide" to the Guides section Gabriel Luiz Freitas Almeida 2023-07-13 14:07:10 -03:00
  • 495a806a32 📝 docs(chatprompttemplate_guide.mdx): add step-by-step guide to customize and build a chatbot with a custom system message Gabriel Luiz Freitas Almeida 2023-07-13 13:56:50 -03:00
  • 0e40bb0a87 🐛 fix(index.css): swap colors for chat bot and chat user icons to match their respective roles Cristhian Zanforlin Lousa 2023-07-13 13:37:33 -03:00
  • 36844cdcdb 🔧 fix(constants.tsx): reduce MAX_WORDS_HIGHLIGHT from 110 to 79 to limit the number of highlighted words in tooltips Cristhian Zanforlin Lousa 2023-07-13 12:17:22 -03:00
  • 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 Cristhian Zanforlin Lousa 2023-07-13 11:37:02 -03:00
  • 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 Cristhian Zanforlin Lousa 2023-07-13 10:53:04 -03:00
  • 5d81e2f2d8 📝 docs(loading_document.mdx): update title and content to provide a clearer and more comprehensive guide on how to populate a Prompt variable with a document Gabriel Luiz Freitas Almeida 2023-07-13 09:02:10 -03:00