Commit graph

10,231 commits

Author SHA1 Message Date
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
a551308297 Added playground button on Store card 2024-05-01 05:12:26 +02: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
Sam Arbid
5d0b6aa65c
Docs: Correct Formatting and Syntax (#1803)
docs: fix typo
2024-04-30 18:36:03 -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
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
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
cristhianzl
b06501a4c9 (JsonInput.py): add a new component called "JsonInput" to handle JSON input data in the language flow system
 (KeyPairInput.py): add a new component called "KeyPairInput" to handle dictionary input data in the language flow system
 (CSVOutput.py): add a new component called "CSVOutput" to handle CSV output data in the language flow system
 (ImageOutput.py): add a new component called "ImageOutput" to handle image output data in the language flow system
 (JsonOutput.py): add a new component called "JsonOutput" to handle JSON output data in the language flow system
 (PDFOutput.py): add a new component called "PDFOutput" to handle PDF output data in the language flow system
📝 (App.css): update CSS to improve readability and formatting
📝 (parameterComponent/index.tsx): fix a bug where rangeSpec is not properly accessed in the FloatComponent
📝 (cardComponent/index.tsx): update the CollectionCardComponent to include a new button for opening the playground and handle the opening and closing of the IOModal

📝 (codeTabsComponent/index.tsx): fix conditional rendering of InputListComponent by using optional chaining operator to check if the list property exists in the template object
📝 (keypairListComponent/index.tsx): refactor the initialization of the ref variable to handle both empty and non-empty values correctly
📝 (constants.ts): add "JsonInput" and "JsonOutput" to the INPUT_TYPES and OUTPUT_TYPES constants to support JSON input and output components
📝 (editNodeModal/index.tsx): fix conditional rendering of InputListComponent by using optional chaining operator to check if the list property exists in the template object
📝 (ioFieldView/components/JSONInput/index.tsx): add JSONInput component to handle JSON input in the IOFieldView component
📝 (ioFieldView/components/keyPairInput/index.tsx): add keyPairInput component to handle key-value pair input in the IOFieldView component

 (IOFieldView/index.tsx): add useState import to use state hook in functional component
 (IOFieldView/index.tsx): add support for KeyPairInput component in IOFieldView
 (IOFieldView/index.tsx): add support for JsonInput component in IOFieldView
 (IOFieldView/index.tsx): add support for JsonOutput component in IOFieldView
📝 (dictAreaModal/index.tsx): add useDarkStore import to use dark mode state in DictAreaModal component
📝 (classes.css): add CSS classes for json-view component in different themes
📝 (types/components/index.ts): remove duplicate InputGlobalComponentType definition
2024-04-29 18:07:53 -03:00
Gabriel Luiz Freitas Almeida
c6b4101d69
Update Docker image references to langflowai in GitHub workflows and Docker Compose files (#1793)
* Update Docker image references to langflowai in GitHub workflows and Docker Compose files
2024-04-29 13:38:18 -03:00
Gabriel Luiz Freitas Almeida
350a62d032 Update package versions in pyproject.toml and poetry.lock 2024-04-29 11:28:47 -03:00
Gabriel Luiz Freitas Almeida
3f07a39f5b
Fix created_at field type in Variable and ApiKey models (#1792)
* Fix created_at field type in Variable model

* Fix created_at field type in ApiKey model

* Fix error handling in add_row_to_table function

#1790

* Apply type hinting to nest_asyncio import in load.py
2024-04-29 11:26:45 -03:00
anovazzi1
736ce22546
Add ExportModal component to ShareModal (#1789)
* Add ExportModal component to ShareModal

* Refactor ShareModal component to conditionally render ExportModal and Export button based on is_component flag
2024-04-29 11:22:57 -03:00
anovazzi1
dfc62752f3 Add uniqueId function from lodash to cloneFLowWithParent in storeUtils.ts 2024-04-27 20:53:29 -03:00
Gabriel Luiz Freitas Almeida
8f46ea04ef Update package versions in pyproject.toml and poetry.lock 2024-04-27 18:24:25 -03:00
Rodrigo Nader
02b68daea1
Apply nest_asyncio to enable asyncio event loop nesting in process.py (#1784)
* Apply nest_asyncio to enable asyncio event loop nesting in process.py

* Apply nest_asyncio to enable asyncio event loop nesting in load.py

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@logspace.ai>
2024-04-27 18:22:16 -03:00
Rodrigo Nader
082c02ff18 Add CombineTextsUnsortedComponent to langflow components 2024-04-27 16:39:08 -03:00
anovazzi1
32bfca24d0 Fix useEffect dependency in PlaygroundPage component 2024-04-26 17:59:05 -03:00
anovazzi1
171ebb2321 fix api call 2024-04-26 17:57:29 -03:00
anovazzi1
48ec18b6e5 Refactor API index.ts to pass data object as a parameter in getVerticesOrder function 2024-04-26 17:43:43 -03:00
anovazzi1
84dc98db4b Fix useEffect dependency in PlaygroundPage component 2024-04-26 17:35:19 -03:00
anovazzi1
c5b9419e52 Fix useEffect dependency in PlaygroundPage component 2024-04-26 17:33:56 -03:00
anovazzi1
4a6b13a7c7 first attempt playground page 2024-04-26 17:23:40 -03:00
Gabriel Luiz Freitas Almeida
c77d458b25 Refactor retrieve_vertices_order function in chat.py to use Annotated type hinting for data parameter 2024-04-26 16:41:22 -03:00