Commit graph

12,533 commits

Author SHA1 Message Date
Sam Arbid
5d0b6aa65c
Docs: Correct Formatting and Syntax (#1803)
docs: fix typo
2024-04-30 18:36:03 -03:00
cristhianzl
b8b978431d 📝 (inputComponent/index.tsx): improve code readability by formatting if statement
📝 (inputComponent/index.tsx): improve code readability by formatting if statement
📝 (inputGlobalComponent/index.tsx): add delay before resetting input value and setting db flag to improve user experience
📝 (inputGlobalComponent/index.tsx): add delay before resetting input value and setting db flag to improve user experience
📝 (inputGlobalComponent/index.tsx): add console.log for debugging purposes
📝 (inputGlobalComponent/index.tsx): improve code readability by formatting if statement
2024-04-30 17:56:12 -03:00
igorrCarvalho
0cad2e1978 Merge feature/ui_table into feature/ui_table 2024-04-30 17:11:06 -03:00
igorrCarvalho
2fa7df09dc Refactor: make global variables search input case insensitive 2024-04-30 17:09:03 -03:00
Cristhian Zanforlin Lousa
e65ae37175
add handle error on requests - global variables (#1808)
📝 (index.tsx): Remove unused import and update dependencies in
InputGlobalComponent
📝 (index.tsx): Add async/await to handleDelete function in
InputGlobalComponent
📝 (index.tsx): Add try/catch block to registerGlobalVariable function in
API controller
📝 (index.tsx): Add try/catch block to deleteGlobalVariable function in
API controller
📝 (index.tsx): Add try/catch block to updateGlobalVariable function in
API controller
📝 (index.tsx): Remove unused import and add deleteGlobalVariable import
in GlobalVariablesPage
📝 (index.tsx): Add setErrorData and getVariableId hooks to
GlobalVariablesPage
📝 (index.tsx): Add async/await to removeVariables function in
GlobalVariablesPage
📝 (globalVariables.ts): Remove unused import in globalVariables store
📝 (globalVariables.ts): Remove async/await from removeGlobalVariable
function in globalVariables store
2024-04-30 16:34:38 -03:00
Gabriel Luiz Freitas Almeida
95813de618
Fixes State management and first implementation of vertex inactivation (#1805)
* Refactor RoutingVertex class in types.py to include a new step in the steps list

* Refactor Graph class to update run_manager.run_predecessors when activating vertices

* Refactor ShouldRunNextComponent class in ShouldRunNext.py to improve error handling and readability

* Refactor error handling in get_lifespan function in main.py and fix mismatch between models and database in DatabaseService class in service.py

* Fix vertex inactivation

* Fix inactivation of vertices and update buildUtils

* Refactor ShouldRunNextComponent class to improve error handling and readability

* Refactor langflow.graph.vertex.types imports in base.py

* Fix nullable constraint in langflow migration script

* Fix condition check in ShouldRunNextComponent class

* Refactor build_graph_maps function in base.py to accept optional parameters for edges and vertices

* Apply grayscale effect to ring-muted-foreground in applies.css

* Apply grayscale effect to ring-muted-foreground in applies.css
2024-04-30 16:33:53 -03:00
Lucas Oliveira
ee6aa0c6dd
Fixed glitches that don't affect usability (#1800)
* Fixed bug of main page showing Empty page before showing components

* Added timeout to generic icon lazy loading

* Create an abort signal for the program to not fetch twice at the beginning

* Removed global variables functionality at tweaks
2024-04-30 16:33:30 -03:00
anovazzi1
21342d0d0b Merge branch 'feature/ui_table' of personal:logspace-ai/langflow into feature/ui_table 2024-04-30 15:47:56 -03:00
anovazzi1
e82d8f4826 Update InputGlobalComponent to handle unavaliableFields in useGlobalVariablesStore 2024-04-30 15:47:52 -03:00
Gabriel Luiz Freitas Almeida
4bbba570fe Fix validation for empty variable name and value in create_variable function 2024-04-30 15:18:36 -03:00
cristhianzl
edc0d79c28 (inputGlobalComponent/index.tsx): add useEffect hook to handle unavailable fields in the input component
🐛 (inputGlobalComponent/index.tsx): fix typo in the variable name 'unavailableFields'
2024-04-30 15:12:40 -03:00
anovazzi1
6261c71e01 Update InputGlobalComponent to handle unavaliableFields in useGlobalVariablesStore 2024-04-30 15:11:26 -03:00
cristhianzl
2326ae9a0f 📝 (1f4d6df60295_add_default_fields_column.py): remove unused variable table_names to improve code readability
📝 (1f4d6df60295_add_default_fields_column.py): remove unused variable `table_names` to improve code readability
 (c153816fd85f_set_name_and_value_to_not_nullable.py): add migration to set `name` and `value` columns in the `variable` table to be not nullable
📝 (AzureOpenAIModel.py): remove unused import `BaseLanguageModel` from `langchain.llms.base`
📝 (ChatLiteLLMModel.py): remove unused import `BaseLanguageModel` from `langflow.field_typing`
📝 (schema.py): remove unused import `BaseMessage` from `langchain_core.messages`
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required and remove `Optional` type
♻️ (model.py): change `name` and `value` fields in `VariableBase` model to be required

📝 (App.tsx): Remove unused import statement
♻️ (App.tsx): Refactor code to use destructuring assignment for imported functions
♻️ (App.tsx): Refactor code to use arrow function syntax for event handlers
♻️ (App.tsx): Refactor code to use template literals for console log message
📝 (addNewVariableButton.tsx): Remove unused import statement
♻️ (addNewVariableButton.tsx): Refactor code to use destructuring assignment for imported functions
♻️ (addNewVariableButton.tsx): Refactor code to use arrow function syntax for event handlers
♻️ (addNewVariableButton.tsx): Refactor code to use template literals for console log message
♻️ (dropdownComponent/index.tsx): Refactor code to use destructuring assignment for useRef
♻️ (dropdownComponent/index.tsx): Refactor code to use ternary operator for PopoverContentDropdown
♻️ (dropdownComponent/index.tsx): Refactor code to use template literals for style property
♻️ (index.ts): Refactor code to use destructuring assignment for imported functions
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters
♻️ (index.ts): Refactor code to use template literals for URL
♻️ (index.ts): Refactor code to use destructuring assignment for function parameters

📝 (index.tsx): update CardDescription in ShortcutsPage to improve code readability and remove unnecessary line break
📝 (routes.tsx): remove unused import of ProfileSettingsPage in routes.tsx
♻️ (flowsManagerStore.ts): refactor useFlowsManagerStore to improve code readability and maintainability by extracting common code into a separate function
♻️ (globalVariables.ts): refactor useGlobalVariablesStore to improve code readability and maintainability by removing unused code and using object instead of Set for unavaliableFields
♻️ (typesStore.ts): refactor useTypesStore to improve code readability and maintainability by removing unused imports and formatting code
♻️ (globalVariables/index.ts): refactor GlobalVariablesStore to use object instead of Set for unavaliableFields
♻️ (reactflowUtils.ts): refactor extractFieldsFromComponenents to improve code readability and maintainability by using object instead of Set for fields

 (utils.ts): add new function getUnavailableFields to retrieve unavailable fields from variables object
📝 (utils.ts): add comments to explain the purpose of the upperCaseWords and checkUpperWords functions
2024-04-30 15:10:04 -03:00
anovazzi1
ec490a78a8 update UnavaliableFields structure 2024-04-30 14:56:51 -03:00
Gabriel Luiz Freitas Almeida
354a7b5985 Refactor Alembic migration scripts to set name and value columns as not nullable 2024-04-30 14:46:45 -03:00
cristhianzl
40aa305279 📝 (index.tsx): Remove unused import and update dependencies in InputGlobalComponent
📝 (index.tsx): Add async/await to handleDelete function in InputGlobalComponent
📝 (index.tsx): Add try/catch block to registerGlobalVariable function in API controller
📝 (index.tsx): Add try/catch block to deleteGlobalVariable function in API controller
📝 (index.tsx): Add try/catch block to updateGlobalVariable function in API controller
📝 (index.tsx): Remove unused import and add deleteGlobalVariable import in GlobalVariablesPage
📝 (index.tsx): Add setErrorData and getVariableId hooks to GlobalVariablesPage
📝 (index.tsx): Add async/await to removeVariables function in GlobalVariablesPage
📝 (globalVariables.ts): Remove unused import in globalVariables store
📝 (globalVariables.ts): Remove async/await from removeGlobalVariable function in globalVariables store
2024-04-30 14:45:01 -03:00
anovazzi1
c04ce90085 Merge branch 'feature/ui_table' of personal:logspace-ai/langflow into feature/ui_table 2024-04-30 14:40:40 -03:00
anovazzi1
d4a516c2eb Refactor useGlobalVariablesStore to update unavaliableFields in globalVariables.ts 2024-04-30 14:40:36 -03:00
Gabriel Luiz Freitas Almeida
c56733f3a4 Add .prettierignore file and update package.json to include ignore path for Prettier 2024-04-30 14:38:07 -03:00
anovazzi1
854afe02ac code format 2024-04-30 14:37:12 -03:00
anovazzi1
301696292d Merge branch 'feature/ui_table' of personal:logspace-ai/langflow into feature/ui_table 2024-04-30 14:35:32 -03:00
anovazzi1
56342f4489 Refactor globalVariables.ts to include unavaliableFields in useGlobalVariablesStore 2024-04-30 14:35:28 -03:00
Gabriel Luiz Freitas Almeida
027cfe81fc format 2024-04-30 14:35:09 -03:00
Gabriel Luiz Freitas Almeida
90f1efb18b Refactor Alembic migration scripts and Variable model 2024-04-30 14:34:54 -03:00
anovazzi1
242bd55a24 Update AddNewVariableButton component to set default type value 2024-04-30 14:26:15 -03:00
anovazzi1
ca1bb8dd36 remove console.logs 2024-04-30 14:21:51 -03:00
anovazzi1
df6924c73e Refactor GlobalVariablesPage component to include default_fields in rowData 2024-04-30 14:20:38 -03:00
anovazzi1
15de984bb6 Refactor GlobalVariablesPage component to include default_fields in rowData 2024-04-30 13:59:55 -03:00
anovazzi1
839822a308 Merge branch 'feature/ui_table' of personal:logspace-ai/langflow into feature/ui_table 2024-04-30 13:34:49 -03:00
anovazzi1
17403d8172 Refactored GlobalVariablesStore to include a value property in globalVariables object 2024-04-30 13:34:44 -03:00
Gabriel Luiz Freitas Almeida
71a9051727 Add default_fields attribute to VariableRead model and update create_variable method in VariableService 2024-04-30 13:34:27 -03:00
cristhianzl
edabb31112 (StringListInput.py): add a new custom component called "StringListInput" to handle string list inputs
 (KeyPairOutput.py): add a new custom component called "KeyPairOutput" to handle dictionary outputs
 (StringListOutput.py): add a new custom component called "StringListOutput" to handle string list outputs
🚀 (constants.ts): add "StringListInput" and "StringListOutput" to the list of supported input and output types
♻️ (index.tsx): refactor IOKeyPairInput component to accept an additional prop "isInputField" and disable input fields if it's false
♻️ (index.tsx): refactor IOFieldView component to handle rendering of "StringListInput" and "StringListOutput" components
2024-04-30 13:33:37 -03:00
anovazzi1
de1d5ddf00 Refactored InputGlobalComponent to use removeGlobalVariable instead of deleteGlobalVariable 2024-04-30 13:23:00 -03:00
anovazzi1
2625e320c9 Refactored GlobalVariablesPage component to use useEffect hook for populating rows dynamically 2024-04-30 12:54:59 -03:00
Lucas Oliveira
239a24ac16 Fixed badge showing blank when no type is selected 2024-04-30 17:01:26 +02:00
Lucas Oliveira
252641ca6c Fixed shortcuts page to display two different categories 2024-04-30 16:54:27 +02:00
Lucas Oliveira
e773227e4a Added fields to request for creating new variable 2024-04-30 16:49:26 +02:00
Lucas Oliveira
a556f686e2 Added multiple inputs possibility to InputComponent 2024-04-30 16:46:19 +02:00
Lucas Oliveira
89517181c2 Fixed playground button at store 2024-04-30 15:25:06 +02:00
Lucas Oliveira
b21b45fd67 Fixed merge problems 2024-04-30 15:09:46 +02:00
Lucas Oliveira
f403d8e8b4 Fixed merge bug 2024-04-30 15:07:52 +02:00
Lucas Oliveira
74d0e2ed10 Fixed name of Run button 2024-04-30 15:07:20 +02:00
Lucas Oliveira
6b72b41b86 Fixed playground name and collection card 2024-04-30 15:07:20 +02:00
Sam Arbid
b097efe94b
Docs: Clearing Cache to Resolve Setup Errors (#1802)
docs: how to clear cache on error

* Detailed description found here <https://github.com/langflow-ai/langflow/issues/1783>
2024-04-30 09:51:09 -03:00
Cristhian Zanforlin Lousa
9c0ae350bf
Fix modal opening bug when not supposed to (#1795)
* fix opening modal error

* Fix cleanOnClose behavior in IOModal component

* Refactor useEffect dependency in CollectionCardComponent

* remove console

* add console.log for debugging

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-04-30 09:39:50 -03:00
Mendon Kissling
cc70a11572
[Docs] - Refactor folders and leftnav (#1781)
* refactor-leftnav

* bump-whats-new

* comment-out-some-tutorials

* links

* guidelines

* comma

* starter-projects

* try-links

* add-new-component-location
2024-04-30 09:28:59 -03:00
Steve Becht
a812b6ce48
docker-compose: remove trailing comma (#1796) 2024-04-30 09:27:19 -03:00
Gabriel Luiz Freitas Almeida
3978d98845
Fix nullable column in apikey table (#1801)
* Fix nullable column in apikey table

* Update package versions in pyproject.toml and poetry.lock
2024-04-30 09:26:21 -03:00
anovazzi1
bd0e928efe temp fix for default fields 2024-04-30 08:22:32 -03:00
anovazzi1
9ebc319ea4 Merge branch 'feature/ui_table' of personal:logspace-ai/langflow into feature/ui_table 2024-04-30 08:16:09 -03:00