Commit graph

6,750 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
fb99529636 Update jina version 2023-12-01 21:53:59 -03:00
anovazzi1
bc7e612cfb code format 2023-12-01 18:19:11 -03:00
anovazzi1
a368991d39 fix(GenericNode): change icon name from "Ungroup" to "group_components" to match the corresponding icon component
fix(GradientSparkles): add new icon component "GradientUngroup" to render the "Ungroup" icon with gradient stroke
fix(ComponentsComponent): add TODO comment to create a placeholder for when there are no components created yet
fix(styleUtils): import and use the new "GradientUngroup" icon component for the "group_components" icon in nodeIconsLucide
2023-12-01 18:18:18 -03:00
Gabriel Luiz Freitas Almeida
9cf6e93fe5 Add utility functions for API and component
validation
2023-12-01 17:54:27 -03:00
Gabriel Luiz Freitas Almeida
e8830901ab Add validate_is_component function to read_flows 2023-12-01 17:54:15 -03:00
anovazzi1
7d2e67ec77 refactor(flowsContext.tsx): remove file name from components before creating data URI
The `removeFileNameFromComponents` function is added to remove the file name from the components in the `clonedFlow` object before creating the data URI. This ensures that the file name is not included in the exported flow data.

refactor(genericModal/index.tsx): fix formatting of genericModalPropsType

The formatting of the `genericModalPropsType` interface is fixed to improve readability and maintain consistency with the codebase.
2023-12-01 17:23:46 -03:00
Gabriel Luiz Freitas Almeida
2a8c972d49 Fix autogenerate diffs error handling 2023-12-01 17:02:37 -03:00
cristhianzl
99f0943f23 Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-12-01 16:44:43 -03:00
cristhianzl
c8c899d1ad fix(parameterComponent): import cloneDeep from lodash to fix missing import error
feat(parameterComponent): add support for process.env.PORT environment variable to be able to run app on a configurable port
fix(PageComponent): add conditional logic to fit the view based on the number of nodes in the flow
2023-12-01 16:44:37 -03:00
Gabriel Luiz Freitas Almeida
dcefb8363c Fix migration error and initialize database in
utils.py
2023-12-01 16:37:11 -03:00
Gabriel Luiz Freitas Almeida
8f04139ddd Fix migration and add confirmation prompt 2023-12-01 16:30:59 -03:00
Gabriel Luiz Freitas Almeida
ab212a046f Fix migration issue with autogenerate diffs 2023-12-01 16:30:54 -03:00
Gabriel Luiz Freitas Almeida
be5cdc9c47 Remove store_api_key and is_component columns from
user and flow tables
2023-12-01 16:30:43 -03:00
Gabriel Luiz Freitas Almeida
cb6228cea1 Fix imports and initialize services with
fix_migration option
2023-12-01 16:30:35 -03:00
Gabriel Luiz Freitas Almeida
163ef6973b Fix database initialization and migration 2023-12-01 16:30:26 -03:00
Gabriel Luiz Freitas Almeida
6aa1698383 Fix ValueError in Vertex class 2023-12-01 16:27:15 -03:00
Gabriel Luiz Freitas Almeida
1bdbbd12c0 Fix store_api_key column type 2023-12-01 15:46:16 -03:00
Gabriel Luiz Freitas Almeida
9a5b57a65a 🔥 refactor(types.py): remove unused import and variable 'custom_component_creator' to improve code cleanliness and maintainability 2023-12-01 15:12:19 -03:00
Gabriel Luiz Freitas Almeida
13135d3948 Update langflow imports in validate.py 2023-12-01 15:10:34 -03:00
Gabriel Luiz Freitas Almeida
4d6973ad19 Remove redundant base types from
CUSTOM_COMPONENT_SUPPORTED_TYPES
2023-12-01 15:10:24 -03:00
Gabriel Luiz Freitas Almeida
0bff0407b8 Remove unused import and commented code 2023-12-01 15:10:16 -03:00
Gabriel Luiz Freitas Almeida
a62d0bbb6b Refactor import statements in constants.py 2023-12-01 14:35:22 -03:00
Gabriel Luiz Freitas Almeida
ead79e802d Fix import statements and add missing Prompt class 2023-12-01 13:14:17 -03:00
Gabriel Luiz Freitas Almeida
b1224ddb63 feat(custom_component.py): add _tree attribute to store code tree for better performance
🔧 refactor(custom_component.py): refactor get_code_tree method to use the _tree attribute
🔧 refactor(custom_component.py): refactor get_build_method method to use the tree attribute
🔧 refactor(custom_component.py): refactor get_main_class_name method to use the tree attribute
🔧 refactor(custom_component.py): refactor build_template_config method to use the tree attribute
🔧 refactor(custom_component.py): refactor load_flow method to use import statement on separate lines for better readability
2023-12-01 13:12:48 -03:00
Gabriel Luiz Freitas Almeida
7a2ba97b4c Add has_return attribute to CallableCodeDetails
class
2023-12-01 13:12:35 -03:00
Gabriel Luiz Freitas Almeida
4583d30f4c feat(code_parser.py): add support for parsing return statement in function or method nodes
🐛 fix(code_parser.py): fix import formatting to improve readability
 feat(code_parser.py): add support for parsing function arguments and body in function or method nodes
2023-12-01 13:12:19 -03:00
Gabriel Luiz Freitas Almeida
90621f509b Refactor necessary_imports in validate.py 2023-11-30 18:06:27 -03:00
cristhianzl
7bfce4cd1d feat(StorePage): add resetPagination function to reset page index and page size when changing tabs 2023-11-30 17:38:54 -03:00
Lucas Oliveira
b9b8937eda formatting 2023-11-30 17:34:40 -03:00
Lucas Oliveira
b8f8ec9c90 Fixed disabled not disabling text input 2023-11-30 17:33:47 -03:00
Gabriel Luiz Freitas Almeida
1f4712d7ae Fix frontend template update bug 2023-11-30 17:09:39 -03:00
Gabriel Luiz Freitas Almeida
c8404520fe Add CustomComponent class to langflow components 2023-11-30 17:09:12 -03:00
Gabriel Luiz Freitas Almeida
d2966c37df Refactor code_parser.py to remove kwargs from
showing up as fields in the frontend
2023-11-30 17:08:50 -03:00
Gabriel Luiz Freitas Almeida
831f665e06 🐛 fix(validate.py): fix spacing and formatting issues in the code to improve readability
 feat(validate.py): add support for default imports in the dynamic class constructor to improve usability and reduce code duplication
🔧 chore(validate.py): refactor prepare_global_scope function to accept code string as an argument for better modularity and reusability
🔧 chore(validate.py): refactor build_class_constructor function to improve readability and remove unnecessary imports
2023-11-30 16:55:10 -03:00
anovazzi1
67e520cfd6 fix(shareModal): import removeFileNameFromComponents function to fix compilation error
feat(shareModal): add logic to remove file names from flows before sharing to improve privacy and security
feat(reactflowUtils): add removeFileNameFromComponents function to recursively remove file names from flow components
2023-11-30 16:43:28 -03:00
anovazzi1
ab56d48002 fix(inputFileComponent): handle case when fileTypes prop is undefined to prevent error when checking file type
The checkFileType function in the InputFileComponent component now handles the case when the fileTypes prop is undefined. This prevents an error from occurring when checking the file type of the selected file.
2023-11-30 16:17:35 -03:00
anovazzi1
d26b6e36b2 fix(inputFileComponent): handle case when fileTypes is undefined to prevent error when joining the array 2023-11-30 16:16:17 -03:00
Gabriel Luiz Freitas Almeida
98d1eecd40 Refactor code and fix custom_fields bug 2023-11-30 15:42:41 -03:00
anovazzi1
ed47a20c3d fix(inputComponent): remove unnecessary console.log statement
fix(tagsSelectorComponent): reformat code for better readability
fix(styleUtils): remove unused import for GradientGroup from GradientSparkles icons
2023-11-30 15:15:44 -03:00
anovazzi1
14cd1b30fd fix(storeContext.tsx): set initial value of hasStore to false instead of true to fix incorrect initial state
fix(shareModal/index.tsx): import has function from lodash to fix missing import error
fix(shareModal/index.tsx): add hasStore to the list of dependencies in useEffect to fix missing dependency warning
fix(extraSidebarComponent/index.tsx): add hasStore to the list of dependencies in useEffect to fix missing dependency warning
fix(extraSidebarComponent/index.tsx): disable share button if hasStore is false to prevent sharing without a store
fix(extraSidebarComponent/index.tsx): disable share button in ShareModal if hasStore is false to prevent sharing without a store
fix(extraSidebarComponent/index.tsx): disable share button in ShareModal if hasStore is false to prevent sharing without a store
fix(nodeToolbarComponent/index.tsx): add hasStore to the list of dependencies to fix missing dependency warning
fix(nodeToolbarComponent/index.tsx): disable share option in SelectItem if hasStore is false to prevent sharing without a store
2023-11-30 14:58:02 -03:00
igorrCarvalho
2d21535e2a Refactor: Change node description pencil editor color 2023-11-29 22:03:20 -03:00
igorrCarvalho
ba85fd1f7f Fix: Make vectorStore tag stop braking button box 2023-11-29 21:51:42 -03:00
igorrCarvalho
d9cc89860c Fix: Header with wrong colors 2023-11-29 20:45:39 -03:00
anovazzi1
2916502c71 fix(tagsSelectorComponent): remove unnecessary conditional class assignment for fade-container
fix(applies.css): update fade-container::before and fade-container::after background gradient to match the new design
2023-11-29 19:10:38 -03:00
Lucas Oliveira
4911c7196c Fixed glitch on my components, testing needed 2023-11-29 18:50:53 -03:00
Lucas Oliveira
1fd2931e4c Fix delete not deleting when searching for something 2023-11-29 18:45:31 -03:00
Lucas Oliveira
6b691dc47d Fixed context menu on sidebar 2023-11-29 18:35:54 -03:00
anovazzi1
030c19808e chore(genericModal/index.tsx): add comments to indicate that the validatePrompt function needs review
fix(genericModal/index.tsx): fix condition for checking if inputVariables is empty or null
refactor(genericModal/index.tsx): remove unnecessary code and reorganize code logic in the validatePrompt function
2023-11-29 18:00:57 -03:00
Lucas Oliveira
a0c5887d9a Fixed custom component only updating when dragging it 2023-11-29 18:00:24 -03:00
anovazzi1
a2d278b52d refactor(PageComponent): remove unnecessary code that sets the viewport in the useEffect hook
The code was removed because it was not being used and was unnecessary for the functionality of the PageComponent.
2023-11-29 17:44:34 -03:00