Commit graph

4,997 commits

Author SHA1 Message Date
anovazzi1
b1ad21626a edges with the right color 2023-05-29 19:28:26 -03:00
Lucas Oliveira
f9cee99652 Fixed dark mode on input components 2023-05-29 19:26:21 -03:00
anovazzi1
53fa5cb2e5 Merge branch 'dev' of personal:logspace-ai/langflow into dev 2023-05-29 19:23:35 -03:00
anovazzi1
2ba5678a1c remove classname from edges on import 2023-05-29 19:23:24 -03:00
anovazzi1
19d5445813 remove classname from edges on import 2023-05-29 19:22:59 -03:00
Lucas Oliveira
12ebe5fa17 Merge branch 'dev' of github.com:logspace-ai/langflow into dev 2023-05-29 19:20:49 -03:00
Lucas Oliveira
cc21fb66a7 Import flows nodes id fixed 2023-05-29 19:20:47 -03:00
anovazzi1
3e3fff7dd1
Merge branch 'dev' into new_icons 2023-05-29 19:10:50 -03:00
anovazzi1
77c00c7894
Adding scrollbar on overflow itens modal (#400)
Description:
This pull request proposes the addition of a scrollbar to the modal
window containing advanced settings when the number of input fields
exceeds the limit of the screen. This enhancement aims to improve user
experience by providing a convenient way to access all settings, even
when the available screen space is limited.
The number of inputs in the screen is limited by a variable on Utils
that can be easily changed in the future if It's needed.
2023-05-29 18:34:03 -03:00
Cristhian Zanforlin Lousa
a33a4f418c Adding scrollbar on overflow itens modal 2023-05-29 18:25:10 -03:00
anovazzi1
3a34412585 update utils with updateIds function 2023-05-29 18:24:54 -03:00
anovazzi1
c05056c34d added code deleted by mistake that update base classes 2023-05-29 18:21:54 -03:00
Lucas Oliveira
35fd7dabbb Copy Paste bug fixed 2023-05-29 17:14:08 -03:00
Gabriel Almeida
20a438428f 🔧 chore(frontend): format code with prettier
The changes in this commit are purely cosmetic, as the code has been formatted with prettier to improve its readability and consistency. No functional changes have been made.
2023-05-29 14:35:41 -03:00
Gustavo Schaedler
2f3f4193cc
Merge branch 'dev' into new_icons 2023-05-29 15:20:20 +01:00
Cristhian Zanforlin Lousa
acec690457 Title case on names/title, fixing/changing icons, cursor on chat 2023-05-29 08:45:42 -03:00
Rodrigo Nader
1e0e5545ae
Error Handling for Modal Calls in Different Flows Prompt/Text (#390)
This pull request resolves a bug related to error handling when
components attempt to call the same modals within different flows. The
issue occurs due to a lack of proper validation and error handling in
the existing codebase. This bugfix aims to provide a comprehensive
solution to mitigate the problem and ensure a smoother user experience.
2023-05-29 00:26:39 -03:00
Cristhian Zanforlin Lousa
46813e5c3f Fixing modal trattative error when is Prompt/Text 2023-05-28 20:37:07 -03:00
Gabriel Almeida
4c71b1d17f 🔇 chore(tabsContext.tsx): comment out code that was causing issues with file upload
The code that was causing issues with file upload has been commented out for now. The code was resetting the content of a file, which was causing issues with the file upload.
2023-05-28 20:34:01 -03:00
Gabriel Almeida
ece9530973 🎨 style(inputComponent): change input placeholder text to be more descriptive
🎨 style(inputListComponent): change input placeholder text to be more descriptive
The placeholder text for both input components has been changed to "Type something..." to be more descriptive and provide better guidance to the user.
2023-05-28 17:57:33 -03:00
Gabriel Almeida
c4159f3af4 🐛 fix(utilities.py): use ast.literal_eval instead of eval to improve security
🐛 fix(GenericNode): add semicolon to console.log statement
The use of eval in the code can be a security risk as it can execute arbitrary code. Using ast.literal_eval instead of eval is a safer alternative as it only evaluates a subset of Python expressions. The semicolon was added to the console.log statement to improve code consistency.
2023-05-28 11:55:00 -03:00
Gabriel Almeida
e2345dbe1d Merge remote-tracking branch 'origin/dev' into FileSizeFix 2023-05-28 11:16:47 -03:00
anovazzi1
129088d61e hotfix for file nodes and save on localStorage 2023-05-28 10:49:23 -03:00
anovazzi1
af2a8b743e added clone deep to saveFlow 2023-05-28 10:34:39 -03:00
Gabriel Almeida
bf0ab14f67 🎨 style(promptComponent, textAreaComponent): fix indentation and whitespace
The changes in these files are purely cosmetic, fixing indentation and whitespace to improve code readability.

🔨 refactor(genericModal/index.tsx): improve code readability and add destructuring to props
The code has been refactored to improve readability and make it easier to understand. Destructuring has been added to the props to make it easier to access the values.
2023-05-27 17:04:12 -03:00
Gabriel Luiz Freitas Almeida
1d441474fd
Merge branch 'dev' into new_icons 2023-05-27 14:14:07 -03:00
Cristhian Zanforlin Lousa
12ca5c9b88 first version of generic modal 2023-05-27 13:37:22 -03:00
Gabriel Almeida
a7749323e4 🔧 chore(frontend): add prettier formatting script to package.json
The `format` script has been added to the `package.json` file in the `frontend` directory. This script uses `prettier` to format all files with the extensions `.js`, `.jsx`, `.ts`, `.tsx`, `.json`, and `.md` in the `src` directory. This ensures that the codebase is consistent and follows a standard formatting style.
2023-05-27 13:03:25 -03:00
Gabriel Almeida
276a06976d Formatting 2023-05-27 13:01:20 -03:00
Gabriel Almeida
3f12363adc Format and add ChromaIcon 2023-05-27 11:58:15 -03:00
Gabriel Almeida
fbe6e2beb8 Format 2023-05-27 11:57:16 -03:00
Gabriel Almeida
c772a4dcdd 🚀 chore(package.json): add vite-plugin-svgr dependency to both root and frontend package.json
 feat(GenericNode): add ChromaIcon and fix validation status icons
🎨 style(GenericNode): refactor GenericNode component to improve readability
🐛 fix(vite.config.ts): add svgr plugin to the frontend Vite configuration
The vite-plugin-svgr dependency was added to both the root and frontend package.json files to enable the use of SVG files as React components. The GenericNode component was updated to include the ChromaIcon component and to fix the validation status icons. The component was also refactored to improve readability. The svgr plugin was added to the frontend Vite configuration to enable the use of SVG files as React components.
2023-05-27 11:55:41 -03:00
Gabriel Almeida
b42b4e5868 Merge remote-tracking branch 'origin/main' into dev 2023-05-27 09:38:52 -03:00
anovazzi1
7e8eea5e87 fix crash when upload large file, not saving files on browser storage 2023-05-26 22:05:47 -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
b53eb683bf Hotfix for Import Flows modal 2023-05-25 18:29:00 -03:00
Lucas Oliveira
41b6a2c6fe Fixed visual bug at Import Flows modal cards 2023-05-25 18:20:17 -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 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
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