Commit graph

6,574 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
86ea5fe825 Refactor API key module 2023-11-27 17:15:43 -03:00
anovazzi1
f0652176c3 fix(dropdownComponent): fix dropdown width issue when not using apiModal by adding w-full class to options container 2023-11-27 17:13:52 -03:00
Gabriel Luiz Freitas Almeida
3e7195978a Fix refresh field in TemplateFieldCreator 2023-11-27 16:59:24 -03:00
cristhianzl
ea5ddc0ed5 fix(components): fix dropdown component id attribute to include index for uniqueness
fix(components): fix dict component id attribute to include index for uniqueness
fix(components): fix code area component id attribute to include id for uniqueness
fix(modals): fix edit node modal dict component id attribute to include id for uniqueness
fix(modals): fix dict area modal save button data-testid attribute for testing
fix(pages): fix node toolbar component class name for more options button
fix(types): add id property to dropdown component type
fix(types): add id property to dict component type
feat(tests): add end-to-end test for dropdown component
feat(tests): add end-to-end test for dict component
feat(tests): add end-to-end test for node toolbar component
feat(tests): add end-to-end test for nested component
feat(tests): add input component test
feat(tests): add toggle component test
2023-11-27 16:29:43 -03:00
cristhianzl
77665da9c7 fix(keyPairListComponent.spec.ts): fix incorrect key and value in test case to ensure accurate testing 2023-11-27 09:38:14 -03:00
Gabriel Luiz Freitas Almeida
9772fee9b8 Update pyproject.toml with new dependency 2023-11-27 08:43:52 -03:00
Gabriel Luiz Freitas Almeida
f9d496c382 Refactor logger configuration 2023-11-24 17:07:41 -03:00
Gabriel Luiz Freitas Almeida
a16725b6c7 Fix custom component index function 2023-11-24 16:21:17 -03:00
Gabriel Luiz Freitas Almeida
90ee49225b Refactor build_field_config function to update
specific field in build_config
2023-11-24 16:21:02 -03:00
cristhianzl
d35ce3d48b fix(SanitizedHTMLWrapper): add data-testid attribute to the div element for testing purposes
fix(genericIconComponent): add data-testid attribute to the TargetIcon component for testing purposes

fix(promptComponent): add data-testid attribute to the span element for testing purposes

fix(textAreaComponent): add data-testid attribute to the IconComponent component for testing purposes

fix(genericModal): add data-testid attribute to the Textarea component and the input element for testing purposes

fix(types/components): add id property to IconComponentProps type

test(flowPage.spec): update click actions to use getByTestId method for testing purposes

test(intComponent.spec): update fill action to set a different value for testing purposes

test(promptModalComponent.spec): update click and fill actions to use getByTestId method for testing purposes
2023-11-24 16:03:33 -03:00
Gabriel Luiz Freitas Almeida
2e12e5369a Add import statement for time module 2023-11-24 15:13:56 -03:00
Gabriel Luiz Freitas Almeida
cbe9d30ae2 Refactor CredentialService to include a new method
for listing credentials
2023-11-24 15:12:55 -03:00
Gabriel Luiz Freitas Almeida
ef257c3f96 Add list_key_names property to CustomComponent 2023-11-24 15:12:25 -03:00
Gabriel Luiz Freitas Almeida
b9a526b72e Add foreign key constraint to Credential table 2023-11-24 15:11:52 -03:00
Gabriel Luiz Freitas Almeida
ca9b6be8cb Fix logger import duplication 2023-11-24 14:36:28 -03:00
igorrCarvalho
04a69bbf74 Refactor: Add showModalAdvanced to useEffect dependencies to prevent EditNodeModal not updating bug 2023-11-24 13:25:48 -03:00
Gabriel Luiz Freitas Almeida
b3ea99ece3 Refactor user model imports 2023-11-24 12:52:33 -03:00
Gabriel Luiz Freitas Almeida
42bd345162 Merge branch 'dynamic_field' into feature/store 2023-11-24 12:51:41 -03:00
Gabriel Luiz Freitas Almeida
3cbb58e6e1 Add check for existing credential name in
create_credential
2023-11-24 12:47:12 -03:00
Gabriel Luiz Freitas Almeida
d61df94849 Add CredentialServiceFactory to utils.py 2023-11-24 12:47:11 -03:00
Gabriel Luiz Freitas Almeida
280b72adab Refactor frontend_node/base.py 2023-11-24 12:47:11 -03:00
Gabriel Luiz Freitas Almeida
eabafd4bab Refactor Credential model and update provider
field
2023-11-24 12:47:10 -03:00
Gabriel Luiz Freitas Almeida
2cc2fa3500 Update AcceptedProviders enum to CredentialType
enum
2023-11-24 12:47:10 -03:00
Gabriel Luiz Freitas Almeida
53a1aa57bc Fix user_id attribute modification in Component
class
2023-11-24 12:47:09 -03:00
Gabriel Luiz Freitas Almeida
26bc28b0e1 Reorder imports and fix import statements in
LLMChain.py
2023-11-24 12:47:09 -03:00
anovazzi1
5c3d064ad1 code format 2023-11-24 12:45:00 -03:00
anovazzi1
2438a8c658 fix(GenericNode/index.tsx): fix initial state of inputName to be false instead of true for better user experience
refactor(GenericNode/index.tsx): refactor tooltip div structure to improve readability and add pencil icon if node has flow
refactor(GenericNode/index.tsx): refactor color logic to use typesContext instead of accessing types directly
refactor(GenericNode/index.tsx): refactor output type title logic to use ternary operator for better readability
refactor(GenericNode/index.tsx): refactor validation status params rendering to use ternary operator for better readability
refactor(GenericNode/index.tsx): refactor generic node description rendering to use ternary operator for better readability
refactor(GenericNode/index.tsx): refactor template field rendering to use ternary operator for better readability
refactor(PageComponent/index.tsx): remove unnecessary empty line
2023-11-24 12:45:00 -03:00
Gabriel Luiz Freitas Almeida
2c6962b86d Fix user_id modification and add warning 2023-11-24 11:21:24 -03:00
Gabriel Luiz Freitas Almeida
c53775ddf9 Fix user_id modification in Component class 2023-11-24 11:19:25 -03:00
Gabriel Luiz Freitas Almeida
f52b7177f7 Refactor API router and add credentials router 2023-11-24 11:19:24 -03:00
Gabriel Luiz Freitas Almeida
5cd212a0f2 Add CredentialService to handle user credentials 2023-11-24 11:19:23 -03:00
Gabriel Luiz Freitas Almeida
74ac238a4e Adds Credential table 2023-11-24 11:19:23 -03:00
Gabriel Luiz Freitas Almeida
9d6cafd8a2 Update database model imports 2023-11-24 11:19:22 -03:00
cristhianzl
4f1d0b4683 fix(keypairListComponent): update input ids to include "editNode" prefix when editNode prop is true
fix(genericModal): add data-testid to save button for easier testing
fix(sideBarDraggableComponent): add data-testid to div element for easier testing
fix(nodeToolbarComponent): add empty fragment as ConfirmationModal.Trigger to fix warning
fix(types): add editNodeModal property to KeyPairListComponentType
fix(codeAreaModalComponent.spec): update locator for Python Function Tool
fix(floatComponent.spec): update locator for Python Function Tool
fix(intComponent.spec): update locator for GET Request Tool
fix(keyPairListComponent.spec): update locator for CSV Loader Tool
fix(promptModalComponent.spec): update locator for Prompt Template Tool
2023-11-24 11:06:57 -03:00
igorrCarvalho
7e4dd16881 Feat: Add option to replace saved component or create a new one using confirmation modal 2023-11-23 22:06:07 -03:00
anovazzi1
037f7f5b1b refactor for field types 2023-11-23 21:33:30 -03:00
cristhianzl
9e653f2bdc Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-23 18:41:25 -03:00
anovazzi1
8e47e7c9d7 fix(PageComponent): change position calculation to use screenToFlowPosition instead of project to fix incorrect node creation position 2023-11-23 18:41:13 -03:00
anovazzi1
0e078efee0 fix(shareModal): add support for disabled prop to prevent opening the modal when disabled
fix(extraSidebarComponent): pass disabled prop to ShareModal based on hasApiKey value to disable sharing when no API key is available
2023-11-23 18:28:07 -03:00
Gabriel Luiz Freitas Almeida
37e7c99ca2 Add metadata and comp_count variables 2023-11-23 17:43:30 -03:00
anovazzi1
bd74a16e47 fix(extraSidebarComponent): change variable name from hasApiKey to hasApiKey for consistency
fix(nodeToolbarComponent): add condition to show Share option only if `hasApiKey` is true
2023-11-23 17:39:28 -03:00
Gabriel Luiz Freitas Almeida
5dc419e25f Fix APIKeyError status code 2023-11-23 17:30:05 -03:00
Gabriel Luiz Freitas Almeida
595006cb77 Update AgentInitializerComponent to initialize a
Langchain Agent
2023-11-23 17:30:05 -03:00
anovazzi1
61ad880990 fix(shareModal/index.tsx): add conditional check for hasApiKey before calling handleGetTags and handleGetNames to prevent unnecessary API calls when there is no API key available 2023-11-23 17:22:43 -03:00
anovazzi1
b60fd7f04d fix(sideBarDraggableComponent): fix indentation and closing tag placement for IconComponent in SidebarDraggableComponent 2023-11-23 16:55:15 -03:00
anovazzi1
9db5f90acf fix(extraSidebarComponent): sort the keys in dataFilter object with a custom sorting function to prioritize "saved_components" key 2023-11-23 16:38:54 -03:00
Gabriel Luiz Freitas Almeida
cdb7c1a695 Update mypy version to 1.7.1 2023-11-23 15:55:34 -03:00
Gabriel Luiz Freitas Almeida
8b1895ccf3 Update AgentInitializerComponent documentation
link
2023-11-23 15:55:27 -03:00
Gabriel Luiz Freitas Almeida
29cef91e6f Add AgentInitializerComponent to initialize agents 2023-11-23 15:38:40 -03:00
Gabriel Luiz Freitas Almeida
4580d428e5 Fix import statement in constants.py 2023-11-23 15:38:24 -03:00