Commit graph

1,567 commits

Author SHA1 Message Date
Gabriel Almeida
ad9c2a270c 🔥 chore(config.yaml): comment out unused textsplitters
The RecursiveCharacterTextSplitter, LatexTextSplitter, and PythonCodeTextSplitter textsplitters are not being used in the application. They have been commented out to improve code readability and reduce clutter.
2023-05-30 11:58:30 -03:00
Gabriel Almeida
429d8043d7 🔥 chore(utils.ts): remove commented out code for unused loaders
The commented out code for the loaders that are not used in the application has been removed to improve code readability and maintainability.
2023-05-30 11:55:34 -03:00
Gabriel Almeida
bea040f31a 🐛 fix(GenericNode): fix validation status colors
The validation status colors were swapped, causing the wrong color to be displayed for the wrong status. This commit fixes the issue by swapping the colors to match the correct status.
2023-05-30 11:48:13 -03:00
Gabriel Almeida
4ae1ef0faa 🚀 feat(utils.ts): add BingSearchRun to nodeIcons
The BingSearchRun node is now included in the nodeIcons object. This allows the application to display the BingSearchRun icon in the UI.
2023-05-30 11:48:13 -03:00
Gabriel Luiz Freitas Almeida
460a92040d
Merge branch 'main' into dev 2023-05-30 11:45:45 -03:00
Gabriel Luiz Freitas Almeida
188ae61c79
UI Improvements: tooltip, classes icons e icons (#404) 2023-05-30 11:14:05 -03:00
Lucas Oliveira
a0996e3420 Fixed line breaks not appearing on messages 2023-05-30 11:06:20 -03:00
Lucas Oliveira
f6fac380bb Fixed node moving when trying to select text 2023-05-30 10:50:29 -03:00
Lucas Oliveira
fe653c9841 Merge branch 'feat/uiAdjusts' of github.com:logspace-ai/langflow into feat/uiAdjusts 2023-05-30 10:44:53 -03:00
Lucas Oliveira
bc198bd237 Removed Markdown from user message on chat 2023-05-30 10:44:47 -03:00
Gabriel Almeida
7d014f0372 🎨 style(modals): simplify modal titles
The modal titles were simplified to remove the unnecessary "as" preposition and to make them more concise. The "Export as" and "Import from" titles were changed to "Export" and "Import" respectively.
2023-05-30 10:44:10 -03:00
Gabriel Almeida
ea59375ba5 🔥 chore(template): delete unused files and imports
This commit removes unused files and imports from the template directory. The deleted files are base.py, fields.py, and nodes.py. The deleted imports are from langflow.template.constants. This improves the codebase by removing unnecessary code and reducing clutter.

 feat(frontend_node): add constants module
This commit adds a new module called constants to the frontend_node directory. The module contains constants used in the frontend_node module. The constants are FORCE_SHOW_FIELDS, DEFAULT_PROMPT, SYSTEM_PROMPT, and HUMAN_PROMPT. This improves the codebase by centralizing the constants in one module.

🐛 fix(frontend_node): use ast.literal_eval instead of eval
This commit fixes a security vulnerability by replacing the use of eval with ast.literal_eval in the UtilitiesFrontendNode class. The method converts a string representation of a list to an actual list. The use of eval is dangerous as it can execute arbitrary code. This improves the codebase by making it more secure.
2023-05-30 10:41:48 -03:00
Lucas Oliveira
9c8bd4b0a5 Fixed node moving when selecting with arrow 2023-05-30 10:38:59 -03:00
Lucas Oliveira
6fa08264df Fixed copy paste on int and float parameters 2023-05-30 10:36:56 -03:00
Lucas Oliveira
6ac4e427ee Added stroke fix on Paste and Add Flow 2023-05-30 10:21:26 -03:00
Lucas Oliveira
6f80c7a6c2 Fixed stroke color on dark mode 2023-05-30 10:16:20 -03:00
Gabriel Luiz Freitas Almeida
263274d266
added custom icon pack for special cases (#405) 2023-05-30 01:16:24 -03:00
anovazzi1
1981321b1a format 2023-05-30 00:41:07 -03:00
anovazzi1
82a8b633a6 new save function to prevent break with large files 2023-05-30 00:40:50 -03:00
anovazzi1
8a2cf0f721 format 2023-05-30 00:16:30 -03:00
anovazzi1
ca151c6661 fix refresh error 2023-05-30 00:16:19 -03:00
Cristhian Zanforlin Lousa
c9403b6433 Adding the trash icon and height icons 2023-05-30 00:03:27 -03:00
Gabriel Almeida
44faf64e09 🔨 refactor(utils.ts): rename nodeIcons keys to improve semantics
The keys of the nodeIcons object have been renamed to improve semantics and readability. The new names are more descriptive of the functionality of the corresponding icons.
2023-05-29 23:45:13 -03:00
Cristhian Zanforlin Lousa
9f27a3e1cc Changing edge colors dark mode 2023-05-29 23:45:02 -03:00
Cristhian Zanforlin Lousa
95eab00a5e Removing trash icon 2023-05-29 22:56:26 -03:00
anovazzi1
8b5a443880 added custom icons for companies, first version 2023-05-29 22:54:30 -03:00
anovazzi1
46ffbb5d9d added custom icons for companies, first version 2023-05-29 22:54:22 -03:00
Gabriel Luiz Freitas Almeida
09cb59d9d6
Added format_instructions to ZeroShotPrompt (#402) 2023-05-29 22:45:55 -03:00
Cristhian Zanforlin Lousa
7a6c15fc3d merge fix 2023-05-29 22:19:34 -03:00
Cristhian Zanforlin Lousa
92668daf19 UI Improvements: tooltip, classes icons e icons 2023-05-29 22:11:03 -03:00
Lucas Oliveira
9f1d64b93f Dropdown and input width set to full 2023-05-29 19:59:03 -03:00
Lucas Oliveira
6f984ca77f Fixed node dragging image 2023-05-29 19:52:49 -03:00
anovazzi1
3e9c44a10d Merge branch 'dev' of personal:logspace-ai/langflow into dev 2023-05-29 19:28:42 -03:00
anovazzi1
254ed68eaa edges with the right color 2023-05-29 19:28:32 -03:00
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
1cdc0b5161
Add Icons module (#368)
Added Chroma Icon and structure to add mode icons
2023-05-29 19:10:59 -03:00
anovazzi1
3e3fff7dd1
Merge branch 'dev' into new_icons 2023-05-29 19:10:50 -03:00
Gabriel Almeida
c05b94e4e9 🚀 feat(test_prompts_template.py): change type of "suffix" and "prefix" fields to "prompt" and update "format_instructions" field
The "suffix" and "prefix" fields have been changed from type "str" to "prompt" to allow for more flexibility in the input. The "format_instructions" field has been updated to be required and multiline, and to show the instructions by default. This change will make it easier for users to understand the expected input format.
2023-05-29 18:57:56 -03:00
Gabriel Almeida
46959acaa9 🔨 refactor(prompts.py): swap suffix and format_instructions fields
🔨 refactor(util.py): add format_instructions to the list of fields to format in format_dict function
The suffix and format_instructions fields in the ZeroShotPromptNode class were swapped to improve the readability of the code. The format_instructions field is now above the suffix field, which makes more sense as it is a required field. In the util.py file, the format_instructions field was added to the list of fields to format in the format_dict function. This ensures that the format_instructions field is properly formatted when the function is called.
2023-05-29 18:52:47 -03:00
Gabriel Luiz Freitas Almeida
a0da588537
feat: SlackDirectoryLoader (#383) 2023-05-29 18:36:40 -03:00
Gabriel Luiz Freitas Almeida
8db30348d8
Merge branch 'dev' into feat/slack-directory-loader 2023-05-29 18:36:32 -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