Commit graph

5,500 commits

Author SHA1 Message Date
anovazzi1
06dc663467 change TWstyle to className 2023-07-18 11:48:49 -03:00
anovazzi1
3aaeee42fe fix bug on tooltip with div wrapping 2023-07-18 11:43:59 -03:00
anovazzi1
13770a87f3 refactor(genericIconComponent): remove console.log statement in IconComponent function to improve code cleanliness and remove unnecessary logging 2023-07-18 11:20:07 -03:00
anovazzi1
9cf639841f update name from style to TWstyle to avoid conflicts 2023-07-18 11:15:25 -03:00
Cristhian Zanforlin Lousa
cef7ceb2c9 🐛 fix(AccordionComponent): change comparison operator from '==' to '===' to ensure strict equality comparison 2023-07-18 10:44:08 -03:00
Gabriel Luiz Freitas Almeida
ab61890997 🔀 refactor(main.py): extract get_static_files_dir() function to improve code readability and reusability
🔀 refactor(main.py): simplify setup_app() function by using get_static_files_dir() function to get static files directory
2023-07-18 07:26:30 -03:00
gustavoschaedler
cee4740b0f 🔧 fix(custom_component.py): add line break to improve readability of TODO comment
🔧 fix(index.tsx): remove unused imports to clean up code

🔧 fix(utils.ts): add space before opening parenthesis to improve code style

🔧 fix(test_custom_component.py): add line breaks to improve readability of test cases
2023-07-18 02:05:37 +01:00
gustavoschaedler
11f7846e0a 🔥 refactor(conftest.py): remove unused fixtures and custom chain classes
The following changes were made:
- Removed the `custom_chain` fixture and the `MyCustomChain` and `CustomChain` classes as they were not being used.
- Removed the `data_processing`, `filter_docs`, `get_request`, and `post_request` fixtures as they were not being used.

🔧 fix(test_agents_template.py): set "dynamic" property to False for all template variables to ensure consistency and improve clarity

🐛 fix(test_chains_template.py): add missing "dynamic" field to template dictionaries to ensure consistency and avoid potential bugs

🔧 fix(test_custom_component.py): fix import statements and remove unused imports to improve code readability and maintainability
 feat(test_custom_component.py): add tests for the initialization of the CodeParser, Component, and CustomComponent classes
🔧 fix(test_custom_component.py): fix test names and add missing test cases for the Component and CustomComponent classes

🔨 refactor: refactor server.ts to use uppercase PORT variable for improved semantics
 feat: add support for process.env.PORT environment variable to run app on configurable port

🔨 refactor: refactor CustomComponent tests for improved readability and maintainability

🔨 refactor: refactor CodeParser tests for improved readability and maintainability

🔨 refactor: refactor Component tests for improved readability and maintainability

🐛 fix: fix CustomComponent class template validation to raise HTTPException when code is None

🔧 fix(tests): fix syntax error in custom_component._class_template_validation
 feat(tests): add test_custom_component_get_code_tree_syntax_error to test CustomComponent.get_code_tree method for raising CodeSyntaxError when given incorrect syntax
 feat(tests): add test_custom_component_get_function_entrypoint_args_no_args to test CustomComponent.get_function_entrypoint_args property with a build method with no arguments
 feat(tests): add test_custom_component_get_function_entrypoint_return_type_no_return_type to test CustomComponent.get_function_entrypoint_return_type property with a build method with no return type
 feat(tests): add test_custom_component_get_main_class_name_no_main_class to test CustomComponent.get_main_class_name property when there is no main class
 feat(tests): add test_custom_component_build_not_implemented to test CustomComponent.build method for raising NotImplementedError
 feat(tests): add fixtures for custom_chain, data_processing, filter_docs, and get_request

🔧 fix(tests): remove commented out code and unused imports to improve code readability and maintainability

🐛 fix(test_llms_template.py): set "dynamic" property to False for all template properties to ensure static values are used

🐛 fix(test_prompts_template.py): set "dynamic" property to False for all template properties to ensure consistency and improve readability
2023-07-18 01:59:19 +01:00
Cristhian Zanforlin Lousa
40b656c8d4 🔀 merge(AccordionComponent/index.tsx): resolve merge conflict in AccordionComponent/index.tsx file
🐛 fix(AccordionComponent/index.tsx): remove unnecessary code after resolving merge conflict
2023-07-17 19:55:00 -03:00
Cristhian Zanforlin Lousa
c602fe5347 🐛 fix(AccordionComponent): resolve merge conflict in AccordionComponent/index.tsx
🐛 fix(AccordionComponent): add missing className to AccordionContent in AccordionComponent/index.tsx
🔧 chore(tailwind.config.js): fix syntax error in tailwind.config.js
2023-07-17 19:54:32 -03:00
Cristhian Zanforlin Lousa
0669a3e148 🎨 style(formModal): add custom-scroll class to Textarea component for custom styling
🎨 style(tailwind.config.js): add cursor: auto to scrollbar styles for better user experience
2023-07-17 19:50:52 -03:00
Igor Carvalho
56eb70674a refactor[genericIconComponent]: Remove unnecessary svg method function 2023-07-17 19:47:15 -03:00
Igor Carvalho
5af49e5a36 refactor[genericIconComponent]: Remove unnecesary switch case 2023-07-17 19:43:46 -03:00
Cristhian Zanforlin Lousa
662d4e81ae 🔧 chore(AccordionComponent): reformat code to improve readability and maintain consistent code style 2023-07-17 19:41:04 -03:00
Cristhian Zanforlin Lousa
f9fdc6786c 🐛 fix(AccordionComponent/index.tsx): remove border from AccordionItem to improve visual consistency
 feat(AccordionComponent/index.tsx): add className "AccordionContent" to AccordionContent component for styling purposes
2023-07-17 19:40:23 -03:00
Cristhian Zanforlin Lousa
eb76a51266 formatting 2023-07-17 19:32:37 -03:00
Cristhian Zanforlin Lousa
d0f477e605 formatting code 2023-07-17 19:31:50 -03:00
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