Commit graph

6,039 commits

Author SHA1 Message Date
anovazzi1
82a6ad8d87 set auto_login to false to keep develop with login 2023-09-20 18:20:22 -03:00
Gabriel Luiz Freitas Almeida
7733904378 Merge remote-tracking branch 'origin/dev' into add_cli_options_superuser 2023-09-20 16:16:52 -03:00
Gabriel Luiz Freitas Almeida
aa4eca7ef1 🔧 chore(utils.py): remove redundant setup_superuser() call in initialize_session_manager() function
🔧 chore(utils.py): move setup_superuser() call to initialize_services() function for better organization and readability
2023-09-20 14:56:09 -03:00
Tiago Santos
8a0630652f
fix(util.py): fix IndentationError while parsing from source code. 2023-09-20 18:41:45 +01:00
Gabriel Luiz Freitas Almeida
82469752f8 🔧 fix(tests/conftest.py): remove unused imports and commented out code
🔧 fix(tests/conftest.py): remove unused fixture 'client'
🔧 fix(tests/conftest.py): remove unused import of 'langflow.main.create_app'
🔧 fix(tests/conftest.py): remove unused fixture 'client_fixture'
🔧 fix(tests/conftest.py): remove unused import of 'langflow.services.database.manager.DatabaseManager'
🔧 fix(tests/conftest.py): remove unused import of 'typer.testing.CliRunner'
🔧 fix(tests/conftest.py): remove unused import of 'sqlmodel.SQLModel'
🔧 fix(tests/conftest.py): remove unused import of 'sqlmodel.Session'
🔧 fix(tests/conftest.py): remove unused import of 'sqlmodel.create_engine'
🔧 fix(tests/conftest.py): remove unused import of 'sqlmodel.pool.StaticPool'
🔧 fix(tests/conftest.py): remove unused import of 'tempfile'
🔧 fix(tests/conftest.py): remove unused import of 'Path'
🔧 fix(tests/conftest.py): remove unused import of 'contextmanager'
🔧 fix(tests/test_custom_component.py): remove unused argument 'session_getter' from test functions
🔧 fix(tests/test_custom_component.py): remove unused import of 'db'
🔧 fix(tests/test_custom_component.py): remove unused import of 'Flow'
🔧 fix(tests/test_setup_superuser.py): remove unused import of 'DEFAULT_SUPERUSER_PASSWORD'
🔧 fix(tests/test_setup_superuser.py): remove unused import of 'Mock'
🔧 fix(tests/test_setup_superuser.py): remove unused import of 'User'
🔧 fix(tests/test_setup_superuser.py): remove unused import of 'reset_mock_credentials'
🔧 fix(tests/test_setup_superuser.py): remove unused import of 'mock_create_super_user'
🔧 fix(tests/test_setup_superuser.py): remove unused import of 'setup_superuser'
🔧 fix(tests/test_setup_superuser.py): remove unused import of 'mock_user'
🔧 fix(tests/test_setup_superuser.py): remove unused import of 'mock_get_session'
🔧 fix(tests/test_setup_superuser.py): remove unused import of 'mock_get_settings_manager'
2023-09-20 14:32:14 -03:00
Gabriel Luiz Freitas Almeida
916dd457e9 ⬆️ chore(pyproject.toml): add pytest-sugar as a development dependency to improve test reporting 2023-09-20 14:31:39 -03:00
Cristhian Zanforlin Lousa
e8524ea090 🐛 fix(extraSidebarComponent): update condition in useEffect to include search variable to properly reset filter data and edge when search is empty 2023-09-19 16:27:50 -03:00
Gabriel Luiz Freitas Almeida
f081a0079c Merge remote-tracking branch 'origin/main' into dev 2023-09-19 16:07:39 -03:00
Gabriel Luiz Freitas Almeida
f8b4116b6d
🔖 chore(pyproject.toml): update package version from 0.5.0a0 to 0.5.0a1 for development purposes (#937) 2023-09-19 15:34:02 -03:00
Gabriel Luiz Freitas Almeida
2d9116b388 🔖 chore(pyproject.toml): update package version from 0.5.0a0 to 0.5.0a1 for development purposes 2023-09-19 15:33:05 -03:00
Gabriel Luiz Freitas Almeida
311b0a57e9
Adding Support for Key-Value Pair Objects in Input Flows (#845) 2023-09-19 15:31:24 -03:00
Gabriel Luiz Freitas Almeida
2b454dc645 Formatting 2023-09-19 15:27:12 -03:00
igorrCarvalho
9163aee3ef Refactor: Change minimize icons 2023-09-19 15:24:39 -03:00
Gabriel Luiz Freitas Almeida
9f7e6f0fa2
Merge branch 'dev' into feat-dict 2023-09-19 15:13:52 -03:00
Gabriel Luiz Freitas Almeida
1e5ef1c8c0 🔥 refactor(test_llms_template.py): remove commented out code and unused import to improve code readability and maintainability 2023-09-19 15:13:03 -03:00
Gabriel Luiz Freitas Almeida
ce35caa59f 🐛 fix(base.py): fix variable name in if condition to correctly check field name for 'dict' type handling 2023-09-19 15:11:36 -03:00
Cristhian Zanforlin Lousa
5bb661dbb3 Merge branch 'feat-dict' of https://github.com/logspace-ai/langflow into feat-dict 2023-09-19 15:03:17 -03:00
Cristhian Zanforlin Lousa
2f63d29ce4 🎨 style(App.css): add padding to the .jv-card class to improve spacing and readability
🔥 refactor(parameterComponent/index.tsx): remove unnecessary code block in the value prop to improve code clarity and maintainability
2023-09-19 15:03:12 -03:00
Gabriel Luiz Freitas Almeida
a9034b6937 📝 docs(custom.mdx): add explanation about the difference between dict and langflow.field_typing.NestedDict types
📝 docs(custom.mdx): clarify that langflow.field_typing.NestedDict opens a more robust dictionary editor compared to dict type
2023-09-19 15:01:40 -03:00
Cristhian Zanforlin Lousa
c9126fdb62 🔀 refactor(parameterComponent): remove unused properties from default parameter value object to improve code readability and maintainability 2023-09-19 14:51:01 -03:00
Cristhian Zanforlin Lousa
fe92ce85f9 🐛 fix(parameterComponent): change default key-value pair in case of empty value to improve clarity
🐛 fix(keypairListComponent): update placeholder text to improve user guidance
2023-09-19 14:42:49 -03:00
Gabriel Luiz Freitas Almeida
e528b1363e 🐛 fix(parameterComponent): add condition to prevent setting state if tabId does not exist in previous state 2023-09-19 14:33:57 -03:00
Gabriel Luiz Freitas Almeida
0389d8ec1e 🐛 fix(documentloaders.py): change value of metadata from string to empty object to fix incorrect type assignment 2023-09-19 14:14:11 -03:00
Gabriel Luiz Freitas Almeida
1243c0b644 🐛 fix(test_llms_template.py): remove unused test_llms_settings function to improve code readability and maintainability
🐛 fix(test_template.py): update type annotation in test_format_dict function to reflect the correct type of the field
🐛 fix(test_prompts_template.py): update type annotation in test_prompt_template function to reflect the correct type of the field
2023-09-19 14:08:12 -03:00
Gabriel Luiz Freitas Almeida
01104e666c 🐛 fix(base.py): refactor handle_dict_type method to improve readability and semantics
 feat(base.py): add support for 'dict' type fields to be handled as 'dict' instead of 'code' or 'file'
🐛 fix(documentloaders.py): change field_type of metadata field to 'dict' instead of 'code'
🐛 fix(embeddings.py): change field_type of model_kwargs field to 'dict' instead of 'code'
🐛 fix(field_formatters.py): refactor DictCodeFileFormatter to handle 'dict' type fields as 'dict' instead of 'code' or 'file'
🐛 fix(prompts.py): call parent format_field method in PromptFrontendNode to ensure proper formatting
🐛 fix(vectorstores.py): change field_type of search_kwargs field to 'NestedDict' instead of 'code'
🐛 fix(util.py): remove unused replace_dict_type_with_code function
2023-09-19 14:07:58 -03:00
Gabriel Luiz Freitas Almeida
738bfa4812 🔨 refactor(PromptRunner.py): remove unused inputs field from the component configuration
🔨 refactor(MetalRetriever.py): remove field_type code from params field in the component configuration
🔨 refactor(GetRequest.py): remove field_type code from headers field in the component configuration
🔨 refactor(PostRequest.py): remove field_type code from headers field in the component configuration
2023-09-19 14:07:13 -03:00
Gabriel Luiz Freitas Almeida
2901fb0e94
fix) Fix combinedMemory (#935) 2023-09-19 13:41:51 -03:00
Gabriel Luiz Freitas Almeida
a63a79d90a 🔥 refactor(test_llms_template.py): remove unused test_llms_settings test case
The test_llms_settings test case is no longer needed as it is not being used and does not provide any value to the test suite. Removing it to improve code cleanliness and maintainability.
2023-09-19 11:30:03 -03:00
Gabriel Luiz Freitas Almeida
f788659278 ⬆️ chore(pyproject.toml): add pytest-sugar as a development dependency to improve test reporting 2023-09-19 11:29:51 -03:00
Gabriel Luiz Freitas Almeida
5a70aa04dd 🐛 fix(base.py): fix the assignment of params[key] in Vertex class to correctly handle nested dictionaries and lists
The previous implementation was not correctly handling nested dictionaries and lists. This fix updates the assignment of params[key] to correctly handle nested dictionaries and lists by using a dictionary comprehension.
2023-09-19 11:28:01 -03:00
Cristhian Zanforlin Lousa
094fe2cc0d merge fix 2023-09-19 11:18:46 -03:00
Johngdae
9b22030a73 fix) Fix combinedMemory 2023-09-19 12:02:18 +00:00
Cristhian Zanforlin Lousa
08c83fa555 🔧 fix(parameterComponent): remove unnecessary span element to improve code readability
🔧 fix(GenericNode): remove onClick event handler that resets filterEdge state to improve code simplicity
🔧 fix(PageComponent): add onPaneClick callback function to reset filterEdge state when clicking on the pane
2023-09-18 23:34:12 -03:00
Cristhian Zanforlin Lousa
83271fa0e8 🐛 fix(reactflowUtils.ts): remove unnecessary condition for template[t].type to improve code readability and maintainability 2023-09-18 22:59:40 -03:00
Cristhian Zanforlin Lousa
a6c80a8780 🐛 fix(reactflowUtils.ts): improve error message for empty key in validateNode function 2023-09-18 22:32:11 -03:00
Cristhian Zanforlin Lousa
52a8e6eeb5 🐛 fix(reactflowUtils.ts): fix validation logic for nested dictionaries in validateNode function
 feat(reactflowUtils.ts): add hasEmptyKey function to check for empty keys in dictionaries in validateNode function
2023-09-18 22:27:08 -03:00
Cristhian Zanforlin Lousa
b30f9ddf7f 🐛 fix(parameterComponent): convert parameter values to numbers before assigning them to improve data consistency
🔧 chore(reactflowUtils): add utility function to convert values to numbers in an array of objects
2023-09-18 21:51:22 -03:00
Cristhian Zanforlin Lousa
7d3f2377a5 🔧 fix(dictAreaModal/index.tsx): add useEffect hook to update dictObj state when value prop changes
🔧 fix(dictAreaModal/index.tsx): initialize dictObj state with value prop on component mount
2023-09-18 21:16:10 -03:00
Cristhian Zanforlin Lousa
71dd9821ea 🐛 fix(parameterComponent): handleOnNewValue now accepts Object[] as a valid parameter type to support dict and NestedDict types
🐛 fix(parameterComponent): remove unused state variables obj and dictArr
 feat(parameterComponent): add support for dict and NestedDict types in ParameterComponent
🐛 fix(dictComponent): call onChange when value prop changes to ensure proper synchronization
🐛 fix(keypairListComponent): call onChange when value prop changes to ensure proper synchronization
🐛 fix(dialog.tsx): add missing classes to prevent panning, dragging, undoing, and copying in DialogPortal and DialogOverlay components
2023-09-18 20:47:04 -03:00
anovazzi1
6e609c8dd0 fix(PageComponent): fix initial state of selectionEnded to be true instead of false to prevent unnecessary re-rendering 2023-09-18 20:38:56 -03:00
anovazzi1
fda2047fec code format 2023-09-18 20:37:01 -03:00
anovazzi1
1a8d522236 fix(reactflowUtils.ts): update generated node id to include "GroupNode" prefix for better identification
fix(utils.ts): truncate component name and display name to 15 characters for better readability
2023-09-18 20:36:29 -03:00
anovazzi1
fe85435488 format 2023-09-18 20:26:32 -03:00
anovazzi1
9e01aa1580 fix(parameterComponent): import extractIdFromLongId function to fix missing reference error
feat(parameterComponent): add proxy prop to ParameterComponentType to pass proxy information to the component
feat(GenericNode): pass proxy information from node template to ParameterComponent
feat(types): add proxy field to proxy object in ParameterComponentType
fix(reactflowUtils): remove unnecessary code for extracting node id
2023-09-18 20:25:42 -03:00
Igor Carvalho
9652551eb9
Merge branch 'dev' into minimizeNode 2023-09-18 19:58:25 -03:00
igorrCarvalho
1796d1aca0 Formated code 2023-09-18 19:52:27 -03:00
anovazzi1
59cd201ad9 refactor(GenericNode/index.tsx): use data from API response to display node name and description instead of local variables
The changes were made to improve consistency and ensure that the displayed node name and description are always in sync with the data received from the API response. By using the `data.node?.display_name` and `data.node?.description` properties, we can dynamically update the node name and description without relying on local variables. This also allows for easier maintenance and reduces the risk of displaying outdated or incorrect information.
2023-09-18 19:48:14 -03:00
igorrCarvalho
f41c2824e9 Refactor: Fix node minimizing animation 2023-09-18 19:43:06 -03:00
anovazzi1
15a2c95351 fix(PageComponent): update validateSelection function to include edges in the selection if only nodes are selected 2023-09-18 19:32:24 -03:00
Cristhian Zanforlin Lousa
8dd9cb29b5 🐛 fix(parameterComponent): add missing import for Button component
 feat(parameterComponent): add functionality to set filter edge when handle is clicked
🐛 fix(parameterComponent): fix type error in renderTooltips function
🐛 fix(GenericNode): add missing import for Button component
 feat(GenericNode): add functionality to reset filter edge when node title is clicked
🐛 fix(typesContext): add missing setFilterEdge and getFilterEdge to initial value
🐛 fix(ExtraSidebar): add missing import for cloneDeep function
 feat(ExtraSidebar): add functionality to reset filter edge and search input when blur event occurs
 feat(ExtraSidebar): add functionality to filter data based on filter edge
🐛 fix(ExtraSidebar): fix handleSearchInput function to reset filter data when search input is empty
🐛 fix(ExtraSidebar): fix handleBlur function to reset filter data, filter edge, and search input when filter edge is empty
🐛 fix(ExtraSidebar): fix useEffect to reset filter data, filter edge, and search input when filter edge is empty
🐛 fix(ExtraSidebar): fix useEffect to filter data based on filter edge when filter edge is not empty
2023-09-18 19:25:52 -03:00