Commit graph

12,533 commits

Author SHA1 Message Date
anovazzi1
6ee309ab22 formated code 2023-07-17 19:31:12 -03:00
Cristhian Zanforlin Lousa
0db3ed20d8 🐛 fix(AccordionComponent): change trigger prop type to accept string or ReactElement to improve flexibility
 feat(AccordionComponent): add keyValue prop to uniquely identify each accordion item for better performance and stability
🐛 fix(ApiModal): add keyValue prop to AccordionComponent to uniquely identify each accordion item for better performance and stability
🐛 fix(formModal): remove unused imports and replace Accordion, AccordionContent, AccordionItem, and AccordionTrigger with AccordionComponent
 feat(formModal): add keyValue prop to AccordionComponent to uniquely identify each accordion item for better performance and stability
🐛 fix(types): change trigger prop type in AccordionComponentType to accept string or ReactElement to improve flexibility
2023-07-17 19:30:39 -03:00
Igor Carvalho
2fc55105db refactor: Remove unnused code 2023-07-17 19:21:26 -03:00
Igor Carvalho
7a9abc2af5 refactor[GenericNode]: Remove unnused code 2023-07-17 19:06:46 -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
Igor Carvalho
010f502adc refactor[tabsContext]: Remove unnused code 2023-07-17 15:57:29 -03:00
Igor Carvalho
3249f0153e refactor[promptComponent]: Remove unnused code 2023-07-17 15:54:40 -03:00
Cristhian Zanforlin Lousa
69380447b0 🎨 style(AccordionComponent): change border style of AccordionItem to improve visual consistency 2023-07-17 15:46:25 -03:00
Igor Carvalho
b156d68cac refactor[src/components/ExtraSideBarComponent/index.tsx]: Remove duplicate side bar component 2023-07-17 15:29:00 -03:00
Cristhian Zanforlin Lousa
8317fecc24 🎨 style(index.css): add animation for accordion content to slide down and slide up for better user experience
🔧 chore(tailwind.config.js): remove unused keyframes and animations related to accordion
2023-07-17 15:27:15 -03:00
Igor Carvalho
709e3ef0e7 refactor[cardComponent]: Remove unnused code 2023-07-17 14:40:08 -03:00
Igor Carvalho
c6ffb9a698 refactor<genericIconComponent>: Remove unnused SVG icon method 2023-07-17 14:14:33 -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
9788ca6c2e FIxed gap in modal and errors not displaying at CodeAreaModal 2023-07-17 10:19:13 -03:00
Igor Carvalho
1dcabe6751 Remove console.log 2023-07-16 17:51:30 -03:00
Igor Carvalho
5486e31d14 feat[GenericNode]: Change GenericNode icon to generic icon 2023-07-16 17:50:13 -03:00
Lucas Oliveira
e4f5df9bad Removed unused file 2023-07-16 17:10:09 -03:00
Lucas Oliveira
8e6e2e9708 Merge branch 'modalRefactor' into python_custom_node_component 2023-07-16 17:09:56 -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
43b23e4ef6 Added check to execute code when first rendering modal. To work, it must merge with ModalRefactor 2023-07-16 16:18:40 -03:00
Lucas Oliveira
dc07b3c690 Removed output handle if baseclasses not present 2023-07-16 16:03:08 -03:00
Lucas Oliveira
034a8f0641 Fixed tooltip not working on CustomComponent 2023-07-16 15:55:22 -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
gustavoschaedler
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
2023-07-15 01:02:52 +01:00
Igor Carvalho
8101bbc21e feat: Change hard coded lucide icons to generic icon component 2023-07-14 20:55:24 -03:00
gustavoschaedler
0aab360629 🔨 refactor(langflow): improve code parsing and custom component handling
- Refactor code parsing in `code_parser.py` to handle imports, function definitions, and class attributes more robustly and cleanly.
- Add new methods in `component.py` to parse Assign and AnnAssign statements, and FunctionDef statements.
- Refactor `custom_component.py` to improve the handling of custom components, including better extraction of main class name and template configuration.
- Update `types.py` to better handle the building of custom component templates, including handling of field configurations and error handling.
- Minor formatting fix in `conftest.py` test fixture.

These changes improve the robustness and readability of the code, and provide better handling and validation of custom components.
2023-07-15 00:41:31 +01:00
Gabriel Luiz Freitas Almeida
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
2023-07-14 18:37:30 -03:00
anovazzi1
cd94c47b0e fix bug of scroll on ace Editor 2023-07-14 18:14:04 -03:00
Gabriel Luiz Freitas Almeida
24273e3931
Hotfix: 0.3.1 (#648) 2023-07-14 21:04:06 +00:00
Gabriel Luiz Freitas Almeida
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
2023-07-14 17:58:40 -03:00
Lucas Oliveira
7048196682 Fixed tweaks appearing as list 2023-07-14 17:53:08 -03:00
Igor Carvalho
c332050788 feat[utils.ts]:Add hard-coded icons into lucide utils icon object 2023-07-14 17:05:27 -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
anovazzi1
18820facbb added fallback icon in IconComponent 2023-07-14 15:27:53 -03:00
anovazzi1
2f1b675122 format code 2023-07-14 15:19:52 -03:00
gustavoschaedler
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
2023-07-14 19:19:42 +01:00
anovazzi1
7d2f853630 added enum type for Icon method 2023-07-14 15:18:36 -03:00