Commit graph

10,329 commits

Author SHA1 Message Date
cristhianzl
d057dc1600 🔧 (FileInput.py, JsonInput.py, KeyPairInput.py, StringListInput.py, CSVOutput.py, ImageOutput.py, JsonOutput.py, KeyPairOutput.py, PDFOutput.py, StringListOutput.py): delete unused input and output components
The input and output components FileInput.py, JsonInput.py, KeyPairInput.py, StringListInput.py, CSVOutput.py, ImageOutput.py, JsonOutput.py, KeyPairOutput.py, PDFOutput.py, and StringListOutput.py were deleted as they were no longer being used in the project. This cleanup improves code organization and reduces unnecessary dependencies.
2024-05-02 18:28:24 -03:00
cristhianzl
c9248d253a 📝 (addNewVariableButton.tsx): reformat code for better readability and maintainability
📝 (addNewVariableButton.tsx): fix typo in variable name 'unavaliableFields' to 'unavailableFields'
📝 (addNewVariableButton.tsx): add id attribute to InputComponent for better accessibility
📝 (headerComponent/index.tsx): add data-testid attribute to user-profile-settings button for easier testing
📝 (inputComponent/index.tsx): add data-testid attribute to popover anchor element for easier testing
 (userSettings.spec.ts): add end-to-end tests for user settings page, including testing profile gradient, interacting with global variables, and checking shortcuts
2024-05-02 18:08:39 -03:00
cristhianzl
67322a40c8 pattern on page 2024-05-02 16:32:07 -03:00
cristhianzl
081c17651e normalize names 2024-05-02 16:30:19 -03:00
cristhianzl
9727c04e70 Merge branch 'dev' of https://github.com/langflow-ai/langflow into dev 2024-05-02 16:22:10 -03:00
cristhianzl
8b36a27056 fix components names 2024-05-02 16:22:03 -03:00
Cristhian Zanforlin Lousa
be8693ed2c
Feature/UI settings (#1826) 2024-05-02 16:09:57 -03:00
cristhianzl
8303d367a7 Merge branch 'dev' into feature/ui_settings 2024-05-02 16:09:10 -03:00
cristhianzl
820c0c3712 🐛 (chat.py): fix type annotation for 'data' parameter in retrieve_vertices_order function to allow None as a value
🐛 (constants.py): fix import statement for JsonSpec from langchain.tools.json.tool to langchain_community.tools.json.tool
🐛 (index.tsx): add data-testid attribute to the div element to improve testability
🐛 (buildUtils.ts): add debugger statement for debugging purposes
🐛 (chatInputOutput.spec.ts): fix click event target from "Run" to "Playground"
🐛 (fileUploadComponent.spec.ts): fix click event target from "Run" to "Playground"
🐛 (textInputOutput.spec.ts): fix click event target from "Run" to "Playground"
2024-05-02 15:54:16 -03:00
Cristhian Zanforlin Lousa
bdca2e3a40
Feature/UI table (#1825) 2024-05-02 14:57:39 -03:00
cristhianzl
5042c0a750 merge dev on feature/ui-table 2024-05-02 14:57:10 -03:00
Cristhian Zanforlin Lousa
79e1d538ca
Playground (#1824) 2024-05-02 14:46:11 -03:00
Gabriel Luiz Freitas Almeida
ba513c1593 New lock 2024-05-02 14:41:43 -03:00
Rodrigo Nader
2785a8bc3a
Refactor store_message function and add StoreMessageComponent (#1817)
* Refactor store_message function in chat.py and memory.py

* Refactor store_message function in chat.py and memory.py

* Add StoreMessageComponent to langflow components

* Refactor store_message function in chat.py and memory.py to require session_id, sender, and sender_name

* Refactor StoreMessageComponent to use Optional[str] for sender_name and session_id parameters

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-05-02 14:29:54 -03:00
cristhianzl
101a045cba merge dev on playground 2024-05-02 13:59:52 -03:00
Lucas Oliveira
4657d95bde Removed workaround for IDs 2024-05-02 18:54:38 +02:00
Gabriel Luiz Freitas Almeida
0648e3f2ac Update component descriptions to reflect Playground instead of Interaction Panel 2024-05-02 13:50:01 -03:00
Cristhian Zanforlin Lousa
bbe72887eb
Introducing Versatile IO Components: JSON Viewer, DictionaryIO, and InputListIO (#1822)
In our ongoing commitment to enhancing user experience and streamlining
data interaction, we are thrilled to introduce a trio of powerful IO
components: JSON Viewer, DictionaryIO, and InputListIO. These components
are meticulously crafted to empower developers with seamless data
handling capabilities, enabling efficient processing and visualization
of JSON data structures, dictionaries, and input lists.
2024-05-02 13:47:43 -03:00
Gabriel Luiz Freitas Almeida
e3edc54d64 Refactor get_id_from_search_string function to convert UUID to string in service.py 2024-05-02 12:56:57 -03:00
cristhianzl
1df3fe7ad6 📝 (StringListInput.py): update parameter name from "param" to "input_value" to improve clarity and consistency
📝 (StringListOutput.py): update parameter name from "param" to "input_value" to improve clarity and consistency
📝 (index.tsx): add InputListComponent to handle StringListInput and StringListOutput components in IOFieldView
📝 (index.tsx): update InputListComponent props to include value, onChange, disabled, and playgroundDisabled
📝 (index.tsx): update IOFieldView to render InputListComponent for StringListInput and StringListOutput components
2024-05-02 11:39:41 -03:00
cristhianzl
aa3ea07c6a merge playground 2024-05-02 10:39:46 -03:00
Lucas Oliveira
0cee24dfbe Added error handling to allow ID to be searchable 2024-05-02 14:53:50 +02:00
Rodrigo Nader
08797ee592 Refactor TextOperatorComponent in TextOperator.py to improve code readability and maintainability 2024-05-01 22:37:26 -03:00
dependabot[bot]
48c740623d
Bump actions/upload-artifact from 2 to 4 (#1812)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-01 12:34:50 -03:00
dependabot[bot]
36c92e133f
Bump actions/download-artifact from 2 to 4 (#1811)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 4.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-01 12:34:40 -03:00
dependabot[bot]
0f37569c87
Bump actions/setup-node from 3 to 4 (#1810)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-01 12:34:29 -03:00
dependabot[bot]
46a5b882f8
Bump peaceiris/actions-gh-pages from 3 to 4 (#1813)
Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) from 3 to 4.
- [Release notes](https://github.com/peaceiris/actions-gh-pages/releases)
- [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-gh-pages/compare/v3...v4)

---
updated-dependencies:
- dependency-name: peaceiris/actions-gh-pages
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-01 12:34:05 -03:00
Gabriel Luiz Freitas Almeida
0dc5cff33e Add id search from search string 2024-05-01 11:41:51 -03:00
Gabriel Luiz Freitas Almeida
f9f1d9ba14 Bump version to 1.0.0a30 in pyproject.toml 2024-05-01 11:34:33 -03:00
Lucas Oliveira
ee6faf5a90 Fixed gradient selector not appearing with autologin on 2024-05-01 05:17:49 +02:00
Lucas Oliveira
a551308297 Added playground button on Store card 2024-05-01 05:12:26 +02:00
cristhianzl
595de1eae8 Merge branch 'feature/ui_table' of https://github.com/langflow-ai/langflow into feature/ui_table 2024-04-30 22:01:33 -03:00
cristhianzl
4726341ec8 📝 (inputGlobalComponent/index.tsx): remove unnecessary console.log statement 2024-04-30 22:01:29 -03:00
Lucas Oliveira
fe8fc5bd32 Fixed bug of clicking on IO Modal 2024-05-01 02:04:54 +02:00
anovazzi1
c63b949a44 update playground icon 2024-04-30 20:19:01 -03:00
anovazzi1
38d1e37023 Refactor component styles and icons 2024-04-30 19:14:49 -03:00
anovazzi1
2295754942 Refactor component styles and icons 2024-04-30 19:10:19 -03:00
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
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