Commit graph

6,039 commits

Author SHA1 Message Date
anovazzi1
a046e3a141 chore(index.css): remove border-1 class from dropdown-component-outline to fix styling issue 2023-07-06 11:56:32 -03:00
anovazzi1
8f1b188775
Add modals tailwind constants (#620)
Improves code verbosity and organization of Tailwind classes.
2023-07-06 11:51:47 -03:00
anovazzi1
d3b2c905d9 Merge branch 'dev' into tailwind-modal-constants 2023-07-06 11:51:28 -03:00
Igor Carvalho
2a546b69c2 refactor: big tailwind class into smaller classes 2023-07-06 11:23:12 -03:00
Igor Carvalho
7fc86a52af feat: Add modals tailwind constants 2023-07-06 11:14:48 -03:00
Gabriel Luiz Freitas Almeida
c038247dcf
feat: Customize DB path for JCloud app (#619) 2023-07-06 10:31:25 -03:00
Gabriel Luiz Freitas Almeida
c5b5905a6a
Fix port issue in deploy_langflow_gcp_spot.sh (#617) 2023-07-06 10:30:44 -03:00
Gabriel Luiz Freitas Almeida
86de1ac480
Implementing Prompt Modal with Variables (#616) 2023-07-06 10:29:19 -03:00
Ikko Eltociear Ashimine
c609c19a75 🐛 fix(utils.ts): fix typo in utils.ts 2023-07-06 22:28:37 +09:00
Gabriel Luiz Freitas Almeida
7951ccfc77 🐛 fix(base.py): fix logic for checking and fixing input variables in check_input_variables function
🔍 refactor(base.py): refactor build_error_message function to improve readability and error message generation

The check_input_variables function now correctly handles empty variables and variables that start with a number. It removes invalid characters from the variables and adds them to the wrong_variables set. The build_error_message function has been refactored to generate a more informative error message, including details about invalid characters, wrong variables, empty variables, and duplicate variables. This improves the clarity of error messages when validating input variables.
2023-07-06 10:27:26 -03:00
Zac Li
6eea2d8d58 feat: Customize DB path for JCloud app 2023-07-06 17:00:21 +08:00
Ri
002db8bbb4
Update GCP_DEPLOYMENT.md correct url for opening spot 2023-07-06 04:16:24 -04:00
Ri
c6c86403ef
Update deploy_langflow_gcp_spot.sh 2023-07-06 04:14:54 -04:00
Lucas Oliveira
d6ec2a4713 🔧 fix(chatMessage/index.tsx): change margin-bottom class from "my-3" to "mb-3" and add margin-top class "mt-1" to improve spacing and alignment of chat message component 2023-07-06 01:34:37 -03:00
Lucas Oliveira
4f4e77838f 🐛 fix(accordion.tsx): remove unnecessary hover effect on AccordionTrigger to improve styling
🐛 fix(chatMessage/index.tsx): refactor chat message rendering to improve readability and remove unnecessary code
2023-07-06 01:32:36 -03:00
Lucas Oliveira
26ec9c5d85 Merge branch 'form_io' of github.com:logspace-ai/langflow into form_io 2023-07-06 00:29:37 -03:00
Lucas Oliveira
0bb664f3ad 🐛 fix(chatMessage): fix styling issue in ChatMessage component to ensure proper alignment and text wrapping
🐛 fix(chatMessage): add max height and overflow to AccordionContent in ChatMessage component to prevent content overflow
🐛 fix(formModal): adjust width of left panel in FormModal component to improve layout
🐛 fix(formModal): fix flexbox alignment issue in right panel of FormModal component
2023-07-06 00:29:05 -03:00
gustavoschaedler
38da799224 Add langchain imports and format error detail message
- Import new modules for langchain functionality
- Format error detail message for better readability and organization
2023-07-06 01:05:56 +01:00
gustavoschaedler
11cece92b8 Refactor code for CustomComponent class
- Refactored code to replace the deprecated is_valid property with the is_check_valid method.
- Added validation for the entrypoint function name and return type.
- Modified the error messages to provide more specific details.

This commit implements the necessary changes to refactor the CustomComponent class in the endpoints.py file. The is_valid property has been replaced with the is_check_valid method to check the validity of the custom component. Additionally, validation has been added to ensure the presence of a valid entrypoint function and a valid return type. If any of the validation checks fail, appropriate error messages are raised to provide detailed traceback information.
2023-07-06 01:02:34 +01:00
anovazzi1
5c6f35b4ac
Add generic node tailwind constants classes (#614)
Improves code verbosity and organization of Tailwind classes.
2023-07-05 21:01:04 -03:00
anovazzi1
8b35b4b44e Merge branch 'dev' into tailwind-constants 2023-07-05 20:57:16 -03:00
Gabriel Luiz Freitas Almeida
a8900c429d 🔧 chore(base.py): improve the representation of the built object in the Vertex class
The representation of the built object in the Vertex class has been improved to provide more meaningful information. Instead of returning the actual object representation, it now returns "Built successfully" if the object has been built, or "Not built yet" if the object has not been built yet. This change enhances the clarity and readability of the code.
2023-07-05 20:35:39 -03:00
Lucas Oliveira
ed17a621af Changed chat history to contain all keys unformatted, added accordion with all keys 2023-07-05 20:25:49 -03:00
Gabriel Luiz Freitas Almeida
9926edbbbf Merge remote-tracking branch 'origin/main' into dev 2023-07-05 20:24:02 -03:00
gustavoschaedler
f92fefba46 Refactor code for CustomComponent class and build_langchain_template_custom_component function
The code in the CustomComponent class has been refactored to improve readability and maintainability. The `_handle_function` method now handles function arguments correctly. Additionally, the `is_valid_class_template` method has been renamed to `_class_template_validation`, and it now raises an HTTPException with a detailed error message when the main class or the build function contains invalid information.

In the `build_langchain_template_custom_component` function, base classes are now retrieved from the `return_type` and added to the `template.base_classes` list. A try-except block is used to handle possible KeyError or AttributeError exceptions, and an HTTPException is raised with the corresponding error message and traceback if an error occurs.

These changes ensure more accurate validation and handle potential errors more gracefully.
2023-07-06 00:21:35 +01:00
Gabriel Luiz Freitas Almeida
0f97dfe678 Formatting 2023-07-05 20:18:04 -03:00
Gabriel Luiz Freitas Almeida
cd879912fe
Release (#615) 2023-07-05 20:13:05 -03:00
Gabriel Luiz Freitas Almeida
f84cd4026a 🐛 fix(validate.py): set the value of the template field to an empty string
The value of the template field is now set to an empty string to ensure consistency and avoid potential issues with undefined values.
2023-07-05 20:09:11 -03:00
Gabriel Luiz Freitas Almeida
605f7cecb2 🐛 fix(chat.py): handle case when artifacts is empty to prevent potential error
The code now handles the case when the `artifacts` variable is empty by setting `input_keys_response` to an empty dictionary. This prevents potential errors that could occur when trying to build the `input_keys_response` object.
2023-07-05 20:06:27 -03:00
anovazzi1
c9a2ba5821 fix(codeAreaComponent): add key prop to CodeAreaModal component to fix React warning
feat(baseModal): create a reusable BaseModal component to be used in different modals
fix(codeAreaModal): add missing imports and fix indentation in CodeAreaModal component
refactor(codeAreaModal): refactor handleClick function to handle dynamic and non-dynamic code validation and execution
refactor(codeAreaModal): refactor useEffect to update value prop when code state changes
2023-07-05 19:59:08 -03:00
Igor Carvalho
9d6d2fd88a feat: add header and input component tailwind constant classes 2023-07-05 19:54:10 -03:00
Lucas Oliveira
100419833f 🐛 fix(chatTrigger): update className condition to disable chat trigger button when isBuilt is false or canOpen is false 2023-07-05 19:40:52 -03:00
Lucas Oliveira
9f24f7830c 🐛 fix(codeAreaComponent): adjust classNames to fix styling issues and improve readability
🐛 fix(promptComponent): adjust classNames to fix styling issues and improve readability
🐛 fix(textAreaComponent): adjust classNames to fix styling issues and improve readability
2023-07-05 19:30:48 -03:00
Igor Carvalho
cbda5fc146 fix: commit saving error 2023-07-05 19:09:15 -03:00
Igor Carvalho
dccb9c27db feat: Add CodeArea and Dropdown component tailwind constant classes 2023-07-05 19:08:33 -03:00
Igor Carvalho
d0621efd1c feat: Add card component and unused extrasidebar tailwind constants classes 2023-07-05 18:13:32 -03:00
anovazzi1
6391cfd671 Merge branch 'python_custom_node_component' of personal:logspace-ai/langflow into python_custom_node_component 2023-07-05 18:01:27 -03:00
anovazzi1
f6f471cc53 fix(codeAreaComponent): update import path for CodeAreaModal to use v2 version
fix(codeAreaModal/v2): set open prop to true in TwoColumnsModal component
fix(twoColumnsModal): add missing import statement for PopUpContext
refactor(twoColumnsModal): remove unused code and add logic to close modal and reset state when modal is closed
2023-07-05 18:01:16 -03:00
anovazzi1
27776f473f subcomponents with type assertion 2023-07-05 17:49:44 -03:00
Gabriel Luiz Freitas Almeida
1dcb71b952 🐛 fix(base.py): handle case when base_type is None to avoid ValueError
The code now checks if the `base_type` attribute is None before attempting to instantiate a class. If `base_type` is None, a ValueError is raised with a descriptive error message. This fix prevents potential errors when the `base_type` is not found for a given node.
2023-07-05 17:21:03 -03:00
anovazzi1
e832711a1f first modal with subcomponents 2023-07-05 17:04:32 -03:00
Gabriel Luiz Freitas Almeida
d9891b9c86 🔧 chore(base.py): refactor code to improve readability and handle optional parameters
📝 chore(base.py): update comments and remove unused imports
The code in the `Vertex` class has been refactored to improve readability and handle optional parameters more effectively. The code now checks if a parameter is of type "code", "str", or "prompt" and if it is not already set in the `params` dictionary, it sets it to the corresponding value from the `value` dictionary. Additionally, if a parameter is not required and not set in the `params` dictionary, it checks if a default value is provided and sets it to the default value if available, otherwise it removes the parameter from the `params` dictionary. This change improves the handling of optional parameters and makes the code more maintainable.
2023-07-05 17:00:50 -03:00
Cristhian Zanforlin Lousa
6be38af44e merge fix 2023-07-05 16:48:44 -03:00
Gabriel Luiz Freitas Almeida
2fcc8296d2 formatting 2023-07-05 16:45:45 -03:00
Gabriel Luiz Freitas Almeida
df09f6119d 📝 docs(README.md): fix typo in Langflow to LangFlow for consistency
The typo in the word "LangFlow" has been fixed to ensure consistency in the naming convention used throughout the project.
2023-07-05 16:42:47 -03:00
Gabriel Luiz Freitas Almeida
b71913a0aa 🐛 fix(__main__.py): change word variable from "LangFlow" to "Langflow" for consistency
🐛 fix(schemas.py): change class name from "ExportedFlow" to "Exported flow from Langflow" for consistency
The word variable in __main__.py is changed from "LangFlow" to "Langflow" to maintain consistency in naming conventions. Similarly, the class name in schemas.py is changed from "ExportedFlow" to "Exported flow from Langflow" for consistency in naming conventions.
2023-07-05 16:42:13 -03:00
Gabriel Luiz Freitas Almeida
a73737435b 📝 docs(CONTRIBUTING.md): update project name to "Langflow" for consistency
📝 docs(README.md): update project name to "Langflow" for consistency
📝 chore(frontend): update project name in HTML title tag to "Langflow" for consistency
The project name "LangFlow" has been updated to "Langflow" for consistency throughout the documentation and codebase. This change improves readability and maintains a consistent naming convention.
2023-07-05 16:41:57 -03:00
Gabriel Luiz Freitas Almeida
90acee2273 🐛 fix(constants.tsx): fix typo in flow name from LangFlow to Langflow
🐛 fix(tabsContext.tsx): fix typo in variable name from LangFlowState to LangflowState
🐛 fix(flow_constants.tsx): fix typo in description from LangFlow to Langflow
🐛 fix(chatModal/index.tsx): fix typo in chat modal title from LangFlow Chat to Langflow Chat
🐛 fix(importModal/index.tsx): fix typo in import modal title from LangFlow Examples to Langflow Examples
🐛 fix(CommunityPage/index.tsx): fix typo in community page text from LangFlow to Langflow
🐛 fix(FlowPage/index.tsx): fix typo in flow page text from LangFlow to Langflow

The changes were made to fix typos in various parts of the codebase where the name "LangFlow" was misspelled as "Langflow". This improves consistency and ensures that the correct name is used throughout the application.
2023-07-05 16:41:35 -03:00
Lucas Oliveira
87061316b3 formatted code 2023-07-05 16:36:28 -03:00
Gabriel Luiz Freitas Almeida
14d50c878c 🔖 chore(pyproject.toml): update package version to 0.2.13
The package version has been updated from 0.2.12 to 0.2.13. This change is made to reflect the latest changes and improvements in the package.
2023-07-05 16:35:24 -03:00