Commit graph

2,678 commits

Author SHA1 Message Date
anovazzi1
3fd22bbbf3
Add style constants to index.css file (#601)
Improves code verbosity and organization of Tailwind classes.
2023-07-04 17:55:10 -03:00
Igor Carvalho
bfd830f1e4 feat: Change extra side bar buttons classes to tailwind constants 2023-07-04 17:45:47 -03:00
Igor Carvalho
a35529d59f feat: remove class button-div-style from constants.tsx file 2023-07-04 17:08:13 -03:00
Gabriel Luiz Freitas Almeida
9b185fada5 🐛 fix(GenericNode/index.tsx): fix incorrect class names for validation status indicators
The class names for the validation status indicators were incorrect, causing the wrong styles to be applied. The class names have been fixed to correctly display the validation status indicators based on the validation status and whether the node is building.
2023-07-04 10:41:14 -03:00
Gabriel Luiz Freitas Almeida
a3792577a8 🔄 refactor(vertex/base.py): rename Node class to Vertex class for better clarity and consistency
🔄 refactor(template/frontend_node/documentloaders.py): rename web_path variable to file_path for better clarity and consistency in the GutenbergLoader class
The Node class in the vertex/base.py file has been renamed to Vertex class to improve clarity and consistency in the naming conventions used throughout the codebase. In the template/frontend_node/documentloaders.py file, the web_path variable has been renamed to file_path in the GutenbergLoader class to provide better clarity and consistency in the naming conventions used within the class.
2023-07-04 10:08:41 -03:00
Gabriel Luiz Freitas Almeida
0cf94f37f6 🔒 chore(vectorstores.py): add password field to extra_fields in VectorStoreFrontendNode class
The password field is added to the extra_fields list in the VectorStoreFrontendNode class. This allows for the creation of a password input field in the frontend UI for this specific class.
2023-07-04 09:58:11 -03:00
Gabriel Luiz Freitas Almeida
7d098ab927 🔒 chore(vectorstores.py): add password field to extra_field2 in VectorStoreFrontendNode class
The password field is added to the extra_field2 in the VectorStoreFrontendNode class. This allows the field to be displayed as a password input in the frontend, enhancing security by hiding the input characters.
2023-07-04 09:56:52 -03:00
Gabriel Luiz Freitas Almeida
608145af9e 🔧 chore(documentloaders.py): moved GutenbergLoader to be used with web_path 2023-07-04 09:51:48 -03:00
anovazzi1
d91451cbfa
Implementing @layer components for CSS (#594)
This pull request introduces a new feature that enhances our CSS
architecture by adding support for @layer components. With this feature,
we can now organize and manage our CSS more efficiently, making it
easier to work with and maintain.
2023-07-03 17:59:34 -03:00
Cristhian Zanforlin Lousa
77c423fd0c 🔧 fix(ApiModal): update CSS classes for responsive layout and code readability 2023-07-03 17:08:58 -03:00
Cristhian Zanforlin Lousa
8e6c537d76 🐛 fix(ApiModal/index.tsx): fix indentation and spacing issues for better code readability
 feat(ApiModal/index.tsx): improve UI by adjusting the layout and styling of the modal components
2023-07-03 16:21:20 -03:00
Cristhian Zanforlin Lousa
c66939f7c2 🔧 chore(frontend): remove unused imports and constants from codeAreaComponent, dropdownComponent, floatComponent, inputComponent, inputFileComponent, inputListComponent, intComponent, promptComponent, and textAreaComponent
🔧 fix(index.css): add new styles for input components to improve consistency and usability
🔧 fix(ApiModal/index.tsx): fix potential null reference error when pushing tweaks to the current tweak ref
🔧 fix(chatInput/index.tsx): remove unused constant import and update input style class name
🔧 fix(genericModal/index.tsx): update class name for textarea to match new primary form style
🔧 fix(textAreaModal/index.tsx): update class name for textarea to match new primary form style
🔧 fix(extraSidebarComponent/index.tsx): remove unused constant imports and update input search class name
2023-07-03 16:17:57 -03:00
Cristhian Zanforlin Lousa
52e80c4875
Fix Styles in general (#577)
This pull request addresses issues related to the appearance of the
project in both dark mode and normal mode. It includes various fixes to
ensure a consistent and visually appealing user experience.

Replace text highlight when underlining (I think it's ring, strange) 
Check hovers (shadows and color changes) in dark mode 
Adjust spacing parameters in all components (padding between the param
name and the input) 
There are icons with incorrect sizes 
Icon thickness 
In exports, if you change the name, it doesn't take effect (maybe
someone already solved it? Check) 
Edit node modal resposive 
2023-07-03 10:58:33 -03:00
Cristhian Zanforlin Lousa
f3ae913891 🐛 fix(dialog.tsx): add missing gap-3 utility class to DialogContent component to fix layout issue
🐛 fix(EditNodeModal/index.tsx): remove unnecessary padding-bottom class from Parameters text span to fix layout issue
2023-07-03 10:25:47 -03:00
Cristhian Zanforlin Lousa
ece63913b0 merge conflicts 2023-07-03 10:06:23 -03:00
Cristhian Zanforlin Lousa
2f469afe69 🐛 fix(dialog.tsx): remove unnecessary animation classes to improve performance and simplify code
🐛 fix(EditNodeModal/index.tsx): adjust styling to improve layout and readability
2023-07-03 10:03:44 -03:00
Gabriel Luiz Freitas Almeida
5c5672949a 🔖 chore(pyproject.toml): update package version to 0.2.11
⬆️ chore(pyproject.toml): update fastapi dependency to version 0.99.0
The package version has been updated from 0.2.10 to 0.2.11. This change reflects the new version of the package. Additionally, the fastapi dependency has been updated from version 0.98.0 to 0.99.0 to ensure compatibility with the latest version of fastapi.
2023-07-03 09:43:09 -03:00
Gabriel Luiz Freitas Almeida
51b0ff2bb4 🔧 chore(chat.py): add missing build step for root node in graph
📝 docs(chat.py): explain the need for building the root node before the rest of the graph
The root node in the graph was not being built before the rest of the graph, which caused issues when certain nodes required parameters that were not connected to them. By adding the missing build step for the root node, we ensure that all necessary connections and parameters are properly set up before building the rest of the graph. This improves the overall functionality and reliability of the chat module.
2023-07-03 09:43:08 -03:00
Gabriel Luiz Freitas Almeida
f461670df8
Convert Tailwind CSS Classes to Constants for Improved Code Readability and Reusability (#584) 2023-07-03 09:35:40 -03:00
Cristhian Zanforlin Lousa
b3addfbeee merge fix dev 2023-07-03 09:15:40 -03:00
Cristhian Zanforlin Lousa
b27ec98b62 merge conflicts 2023-07-03 09:09:10 -03:00
Gabriel Luiz Freitas Almeida
ac1b095472
FIX: Preserve some colours during purging or our status lights go away. (#588) 2023-07-02 15:57:43 -03:00
Gabriel Luiz Freitas Almeida
f4a0e0a8d7 Merge remote-tracking branch 'origin/main' into dev 2023-07-02 15:54:55 -03:00
Gabriel Luiz Freitas Almeida
91fe9c653f Merge branch 'release' into dev 2023-07-02 15:54:38 -03:00
Gabriel Luiz Freitas Almeida
31a58b0e90
merging branch release into dev (#575) 2023-07-02 15:53:41 -03:00
Gabriel Luiz Freitas Almeida
ff254029bf style: apply tailwind formatting 2023-07-02 10:29:24 -03:00
Gabriel Luiz Freitas Almeida
032c616c00 ⚙️ chore(frontend): add Prettier and Prettier plugin for Tailwind CSS
The package.json file has been updated to include the dependencies for Prettier and the Prettier plugin for Tailwind CSS. Prettier is a code formatter that helps maintain consistent code style across the project. The Prettier plugin for Tailwind CSS ensures that the Tailwind CSS code is formatted correctly. Additionally, a new prettier.config.js file has been added to configure Prettier with the Tailwind CSS plugin. This will improve the code formatting and maintainability of the frontend codebase.
2023-07-02 10:28:44 -03:00
Snow
3251e753a1 FIX: Preserve some colours during purging or our status lights go away. 2023-07-02 07:52:57 +10:00
Gabriel Luiz Freitas Almeida
898ced7b02
Add PyPDFDirectoryLoader and fields to DirectoryLoader (#587) 2023-07-01 17:17:08 -03:00
Gabriel Luiz Freitas Almeida
6255932c8c Merge branch 'release' of https://github.com/logspace-ai/langflow into release 2023-07-01 17:15:09 -03:00
Gabriel Luiz Freitas Almeida
14dab7c0b9 🔖 chore(pyproject.toml): bump version to 0.2.10
The version of the package has been updated from 0.2.9 to 0.2.10. This change is made to reflect the latest changes and improvements in the package.
2023-07-01 17:14:24 -03:00
Gabriel Luiz Freitas Almeida
78f44b8e63
Merge branch 'main' into release 2023-07-01 17:12:46 -03:00
Gabriel Luiz Freitas Almeida
d6326979e6
Add PyPDFDirectoryLoader and improving DirectoryLoader (#586) 2023-07-01 17:11:32 -03:00
Gabriel Luiz Freitas Almeida
5333dbf021 📝 docs(config.yaml): add PyPDFDirectoryLoader documentation link
Added the documentation link for the PyPDFDirectoryLoader in the config.yaml file. This allows users to access the documentation on how to use the PyPDFDirectoryLoader for loading PDF documents.
2023-07-01 17:09:35 -03:00
Gabriel Luiz Freitas Almeida
30c9b4f5a9 🔧 chore(base.py): add debug logs when creating and creating database and tables
The logger.debug() statements are added to provide more visibility into the process of creating the database and tables. This can be helpful for debugging and troubleshooting purposes.
2023-07-01 17:09:26 -03:00
Gabriel Luiz Freitas Almeida
4c8c3528de 🔥 refactor(settings.py): remove commented out code for setting default database URL
The commented out code was unnecessary and cluttered the codebase. Removing it improves readability and maintainability of the code.
2023-07-01 17:09:15 -03:00
Gabriel Luiz Freitas Almeida
94cd8703b3 🐛 fix(App.tsx): improve code readability by formatting long conditional statements
The conditional statements in the useEffect hook were formatted to improve code readability. By breaking the statements into multiple lines and adding proper indentation, it is easier to understand the logic. This change does not affect the functionality of the code.
2023-07-01 17:09:04 -03:00
Gabriel Luiz Freitas Almeida
3506cb1311 🐛 fix(chatModal): refactor error handling in WebSocket connection to improve readability and error handling
The error handling in the WebSocket connection has been refactored to improve readability and error handling. Instead of nesting the `getHealth()` promise inside the `onerror` callback, it has been extracted to a separate `.then()` block. This allows for better separation of concerns and makes the code more readable. Additionally, the error handling logic has been updated to properly set the `setErrorData` state when the backend fails to respond.
2023-07-01 17:08:47 -03:00
Gabriel Luiz Freitas Almeida
e5eea2d9fb 🐛 fix(__main__.py): change logger.error to logger.exception to log full exception traceback
The change is made to improve the logging of exceptions. Using logger.exception instead of logger.error allows the logger to log the full traceback of the exception, providing more detailed information for debugging purposes.
2023-07-01 17:08:28 -03:00
Gabriel Luiz Freitas Almeida
d2609141ba 🔧 refactor(documentloaders.py): extract build_directory_loader_fields() function to improve code readability and maintainability
🔧 refactor(documentloaders.py): remove redundant code for adding fields in DocumentLoaderFrontNode class
The code in the DocumentLoaderFrontNode class has been refactored to extract the logic for building directory loader fields into a separate function called build_directory_loader_fields(). This improves code readability and maintainability by separating concerns and reducing duplication. The redundant code for adding fields in the DocumentLoaderFrontNode class has also been removed.
2023-07-01 17:08:23 -03:00
Cristhian Zanforlin Lousa
0b79aa023f 🐛 fix(constants.tsx): remove unnecessary focus:visible:outline-none class from INPUT_STYLE to fix styling issue 2023-07-01 13:16:31 -03:00
Gabriel Luiz Freitas Almeida
2112500a1c
VectorStoreRetrieverMemory fix, more names and descriptions (#583) 2023-07-01 10:10:38 -03:00
Gabriel Luiz Freitas Almeida
cff2a9d957
Merge branch 'main' into release 2023-07-01 10:09:25 -03:00
Gabriel Luiz Freitas Almeida
f046b303a9 Merge branch 'release' of https://github.com/logspace-ai/langflow into release 2023-07-01 10:02:10 -03:00
Gabriel Luiz Freitas Almeida
698b34429f 🔖 chore(pyproject.toml): update package version to 0.2.9
The package version has been updated from 0.2.8 to 0.2.9. This change is made to reflect the latest changes and improvements in the package.
2023-07-01 10:00:58 -03:00
Gabriel Luiz Freitas Almeida
a0920e7abd
Fix_vecstore_memory (#582) 2023-07-01 09:59:19 -03:00
Gabriel Luiz Freitas Almeida
bbec95ff13 refactor: 🎨 added new names and descriptions, moved that to separate file 2023-07-01 09:58:40 -03:00
Gabriel Luiz Freitas Almeida
156807b8e1 fix: replace old complex_example to fix tests 2023-07-01 09:52:45 -03:00
Gabriel Luiz Freitas Almeida
016c9983d6 🐛 fix(vectorstores.py): change default value of "Persist" extra field to False
The default value of the "Persist" extra field in the VectorStoreFrontendNode class has been changed from True to False. This change was made to align the default value with the desired behavior of the application.
2023-07-01 09:43:30 -03:00
Gabriel Luiz Freitas Almeida
e04eb0fd7e 🐛 fix(memories.py): add condition to only add output_key field if template type is not VectorStoreRetrieverMemory
The output_key field is now only added to the template if the template type is not VectorStoreRetrieverMemory. This ensures that the output_key field is not added unnecessarily for templates of this type.
2023-07-01 09:43:17 -03:00