Commit graph

10,192 commits

Author SHA1 Message Date
anovazzi1
341b2cb778 Update component names in ShortcutsPage 2024-04-30 18:45:20 -03:00
anovazzi1
b054b4e427 🐛 (inputGlobalComponent/index.tsx): Fix condition to include disabled check in if statement 2024-04-30 18:42:47 -03:00
anovazzi1
093384fcb7 Update component names and shortcuts in ShortcutsPage 2024-04-30 18:37:12 -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
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
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
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
igorrCarvalho
c23943017d Refactor: Global Variables table are now populated by backend and delete button works 2024-04-30 01:20:46 -03:00
anovazzi1
8e78e23a9a Refactored addNewVariableButton.tsx to use useTypesStore for componentFields 2024-04-29 23:29:06 -03:00
anovazzi1
fe5f6560e7 Refactored globalVariables.ts and globalVariables/index.ts to extract and store component fields 2024-04-29 23:27:23 -03:00
anovazzi1
a2885a86bc Refactored globalVariables.ts and globalVariables/index.ts to use Set for availableFields 2024-04-29 22:59:02 -03:00
anovazzi1
ec3425e3d9 Refactored globalVariables.ts and globalVariables/index.ts to add support for unavailable fields 2024-04-29 22:53:37 -03:00
Lucas Oliveira
7309a36aa8 Added own dropdown to Type 2024-04-30 02:01:44 +02:00
Lucas Oliveira
db9cc5e052 Added badge as renderer of type on Global Variables 2024-04-30 01:36:56 +02:00
Lucas Oliveira
7e337c7f65 Added selection and trash 2024-04-30 01:26:25 +02:00
Lucas Oliveira
1f7c697158 Added padding bottom on Global Variables 2024-04-30 01:11:05 +02:00
Lucas Oliveira
1dcb151c61 Added shortcuts into a card in the Shortcuts page 2024-04-30 01:10:22 +02:00
Lucas Oliveira
de5116a6bf Fixed pagination that cant be changed on table 2024-04-30 01:02:12 +02:00