Commit graph

1,417 commits

Author SHA1 Message Date
Gabriel Almeida
bd9d90786a 🔥 chore(base.py): remove unused process_field method from TemplateFieldCreator
The process_field method in the TemplateFieldCreator class is not used anywhere in the codebase and is therefore removed to improve code readability and maintainability.
2023-05-26 22:29:52 -03:00
Gabriel Almeida
342c2eaec7 🔨 refactor(base.py): refactor FrontendNode.format_field() method to improve readability and maintainability
This commit refactors the FrontendNode.format_field() method to improve its readability and maintainability. The method now uses helper methods to handle specific field types and values, and to determine whether a field should be shown, be a password field, or be multiline. The method also uses a dictionary to handle special fields and their respective handlers.
2023-05-26 22:20:08 -03:00
Lucas Oliveira
373b599a1a Removed pulse from edges 2023-05-25 20:00:34 -03:00
Lucas Oliveira
bef1cc096c Fixed Copy Paste issues by disabling it when the user clicks at the node 2023-05-25 19:56:42 -03:00
Lucas Oliveira
41b6a2c6fe Fixed visual bug at Import Flows modal cards 2023-05-25 18:20:17 -03:00
Gabriel Almeida
d89e4bc985 🐛 fix(__main__.py): pass dev flag to update_settings function
 feat(__main__.py): add serve_on_jcloud function to deploy Langflow server on Jina AI Cloud
🐛 fix(config.yaml): remove duplicate entries and fix indentation
The update_settings function now accepts a dev flag to enable running the app in development mode. The serve_on_jcloud function has been added to deploy the Langflow server on Jina AI Cloud. The config.yaml file has been cleaned up by removing duplicate entries and fixing indentation.
2023-05-25 09:03:28 -03:00
Gabriel Luiz Freitas Almeida
3791247545
add useEffect to prevent chat lock on fail of onClose method (#342) 2023-05-25 06:29:39 -03:00
anovazzi1
2866e4ea78 fix size of import on dev 2023-05-24 16:27:21 -03:00
anovazzi1
59951a3f68 add useEffect to prevent chat lock on fail of onClose method 2023-05-24 16:26:51 -03:00
anovazzi1
0c45186fcb
hot fix for dinamic size of font for buttonBox component (#337)
## Dynamic Font Size for ButtonBox Component

### Description
The ButtonBox component, which is used in the examples modal, has been
enhanced to have a dynamic font size that adjusts based on the length of
the text and the dimensions of its parent element. This improvement
ensures that the text within the ButtonBox component remains readable
and properly fits within its container.

### Changes Made
- Added a new `fontSize` state variable to track the font size within
the ButtonBox component.
- Utilized the `useEffect` hook to calculate and update the font size
dynamically.
- Implemented logic to check for both vertical and horizontal overflow
of the text within the parent container.
- Decreased the font size incrementally until the text fits within the
parent element's dimensions.
- Updated the component to apply the calculated font size to the text
element.

### Testing Done
- Manually tested the ButtonBox component with various text lengths and
parent container dimensions.
- Verified that the font size was adjusted correctly to fit the text
within the parent element without overflowing.
2023-05-24 01:41:20 -03:00
Lucas Oliveira
62701de9b8 Fixed Undo and Redo on different pages 2023-05-23 21:00:12 -03:00
anovazzi1
f7cf6a378f create min font size with truncate for buttonBox component 2023-05-23 19:28:27 -03:00
anovazzi1
3f854a88ae hot fix for dinamic size of font for buttonBox component 2023-05-23 16:31:20 -03:00
Gabriel Luiz Freitas Almeida
d24404eba9
Hotfix: Chroma does not raise NotEnoughElementsException anymore (#334) 2023-05-23 12:35:23 -03:00
Gabriel Almeida
311ebed676 🔥 chore(lint.yml): remove Python 3.8 and 3.11 from the matrix
🔥 chore(test.yml): remove Python 3.11 from the matrix
Python 3.8 and 3.11 were removed from the matrix in lint.yml to reduce the number of Python versions being tested. Python 3.11 was removed from the matrix in test.yml as it is not yet released and therefore not supported.
Chroma uses onnxruntime which does not support 3.11 as of yet. This will be added back in once onnxruntime supports 3.11.
2023-05-23 12:27:39 -03:00
Gabriel Almeida
a7d376a9de Merge branch 'dev' into fix_chroma 2023-05-23 12:06:53 -03:00
Gabriel Almeida
32b8b92614 Merge branch 'dev' into fix_chroma 2023-05-23 12:04:43 -03:00
Gabriel Almeida
ddf75d7eb9 🔥 refactor(run.py): remove NotEnoughElementsException import and exception handling
Chroma implemented a fix for this so this exception won't be thrown anymore.
2023-05-23 12:02:55 -03:00
Deepankar Mahapatro
59d0c5cbce
ci: test lcserve push job (#333) 2023-05-23 20:22:09 +05:30
Gabriel Almeida
5dfaa9a81a 🎨 style(tests): add display_name field to LLM in test_agents_template.py and test_chains_template.py
The display_name field was added to the LLM object in the test_agents_template.py and test_chains_template.py files. This field is used to display the name of the LLM in the UI.
2023-05-23 11:51:31 -03:00
Deepankar Mahapatro
accf284b30 ci: test lcserve push job 2023-05-23 20:15:13 +05:30
Gabriel Luiz Freitas Almeida
9d910b769a
Release 0.0.75 (#329)
🚀  Release 0.0.75
We are excited to announce the latest updates and features that have been added to Langflow! Here’s a summary of the recent changes:

New Features:
- Deploy Langflow using Langchain-Serve: Thanks to the hard work of @deepankarm, Langflow can now be deployed using Langchain-Serve to Jina AI Cloud. This integration brings enhanced functionality and improves the overall performance of Langflow. Just run `langflow --jcloud`.
- Copy and Paste Nodes and Flows: @anovazzi1 and @lucaseduoli have implemented the copy and paste functionality in Langflow. Now you can easily duplicate nodes and flows, improving productivity and workflow efficiency.
- Undo/Redo Functionality: @anovazzi1 and @lucaseduoli have also added an undo/redo feature to LangFlow, allowing you to easily revert and redo changes made to nodes and flows. This enhances the editing experience and provides greater control over your work.

Improvements and Fixes:
- Build: The latest update includes making Langchain-Serve optional, allowing for more flexibility in deployment.
- Documentation: The README has been updated to provide information about JCloud deployment.
- Validation Fixes: @ogabrielluiz has made several updates to improve validation in Langflow, including returning exception messages in responses and adding validation status icons and tooltips to node properties.
- Bug Fixes: Several bug fixes have been implemented, including resizing issues in the chat input, copy and paste bugs in the code area, and padding adjustments in the UI. Special thanks to @anovazzi1 and @lucaseduoli for their contributions in fixing these issues.

We appreciate the contributions from the following members:
- @deepankarm
- @anovazzi1
- @lucaseduoli

Thank you to everyone who has contributed to this release. Your efforts have made Langflow even better! If you have any feedback or suggestions, please don’t hesitate to reach out. Happy coding with Langflow! 🎉
2023-05-23 11:25:54 -03:00
Gabriel Almeida
7228274b0d Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-05-23 10:40:25 -03:00
anovazzi1
3a7644dd2c updating font size of import card based on title 2023-05-23 01:06:49 -03:00
anovazzi1
e3656f7998 update display_name of llm to LLM 2023-05-22 23:41:07 -03:00
anovazzi1
c46b1f67f3 new toogle using tailwindUI 2023-05-22 23:29:12 -03:00
Gabriel Almeida
14f27df3ae Merge branch 'main' into dev 2023-05-22 20:09:21 -03:00
Lucas Oliveira
c8594a16c3 Changed name of function to disable copy and paste 2023-05-22 20:02:35 -03:00
Lucas Oliveira
2b6b790f4a Fixed padding and disable copy and paste on chat input 2023-05-22 20:01:26 -03:00
Lucas Oliveira
610beb18dd Fixed Copy and Paste, refactored tabsContext code 2023-05-22 19:54:32 -03:00
Lucas Oliveira
f465d9712d Fixed Copy and Paste bug on Code Area 2023-05-22 19:38:31 -03:00
Rodrigo Nader
1c0626527a Refactor UI styles for better readability
- Modified UI styles in the app, making text more legible and buttons more visually appealing
- Changed chat trigger button to a gradient blue background to improve visibility and user experience
2023-05-22 18:24:52 -03:00
Rodrigo Nader
2d6d781e91 Refactor: Simplify span element code and rename 'documentloaders' to 'Loaders'
This commit simplifies the span element code by removing a padding and renames the 'documentLoaders' property in the object to 'Loaders'.
2023-05-22 17:47:17 -03:00
Gabriel Almeida
3ba7068500 🎨 style(App.tsx): adjust the position of the link to Logspace website
The position of the link to the Logspace website has been adjusted to be more centered on the page. The left margin has been increased by one unit to make it more visually appealing.
2023-05-22 17:39:18 -03:00
Gabriel Almeida
cfca98c2b2 Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-05-22 17:26:54 -03:00
Gabriel Almeida
b247ebcc40 🐛 fix(chatInput): fix chat input resizing issue
 feat(chatModal): add focus to chat input when modal is opened
The chat input was not resizing properly when the user typed more than one line of text. This was fixed by setting the height of the input to the scrollHeight of the input element. Additionally, the chat input is now focused when the chat modal is opened, which improves the user experience.

Fixes Text area is broken #328
2023-05-22 17:26:34 -03:00
Gabriel Almeida
af469d47e7 🐛 fix(chatInput): fix chat input resizing issue
 feat(chatModal): add focus to chat input when modal is opened
The chat input was not resizing properly when the user typed more than one line of text. This was fixed by setting the height of the input to the scrollHeight of the input element. Additionally, the chat input is now focused when the chat modal is opened, which improves the user experience.
2023-05-22 17:25:17 -03:00
Gabriel Almeida
802e5ec31a Format 2023-05-22 16:44:36 -03:00
Gabriel Almeida
13403de3fc 🚀 feat(App.tsx): add version number to the footer
The version number is now displayed in the footer of the application. The version number is fetched from the server using the /version endpoint and displayed in the footer. This allows users to easily identify which version of the application they are using.
2023-05-22 08:39:39 -03:00
Gabriel Almeida
3c3576e0ad Format 2023-05-22 08:39:03 -03:00
Gabriel Almeida
6dcd267bfa 🔖 chore(pyproject.toml): update langchain version to 0.0.176
🔖 chore(pyproject.toml): bump up package version to 0.0.75
The langchain package version has been updated to 0.0.176 to include the latest changes and improvements. The package version has also been bumped up to 0.0.75 to reflect the changes made to the dependencies.
2023-05-22 08:24:13 -03:00
Gabriel Almeida
5635a86f04 🐛 fix(tabsContext.tsx): add null check for flow.data to prevent errors
The code now checks if flow.data is null before iterating over its nodes. This prevents errors that would occur when flow.data is null.
2023-05-22 08:21:52 -03:00
Gabriel Almeida
4998838853 format 2023-05-22 08:21:29 -03:00
Gabriel Almeida
9860b12b91 remove line-clamp as it is in tailwind by default now 2023-05-22 08:19:59 -03:00
Gabriel Almeida
e4e0049c2b Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-05-22 08:02:45 -03:00
Gabriel Luiz Freitas Almeida
b277c0bf1a
node updating template, base classes and description (#326) 2023-05-22 08:02:00 -03:00
Gabriel Almeida
aeba16fa8a 🔥 chore(lcserve.py): remove unused import statements
The import statements for pathlib.Path and fastapi.staticfiles.StaticFiles were not used in the code and were therefore removed to improve code readability and maintainability.
2023-05-22 07:46:40 -03:00
anovazzi1
5090cdae7e
Retry_get_all (#324)
This commit adds retry logic to the getAll API call in the TypesProvider
component. The retry logic will attempt to make the API call up to 5
times with an increasing delay between each attempt. If the API call is
successful, the state of the component will be updated with the
retrieved data. If the component is unmounted before the API call
resolves, the state will not be updated.
2023-05-22 00:24:10 -03:00
anovazzi1
a6c9c28792 removed useless comment 2023-05-22 00:22:05 -03:00
anovazzi1
e85c918e6f node updating update node template, base classes and description 2023-05-19 17:18:41 -03:00