🔒 chore(auth.py): refactor get_current_user function to use database session instead of fake_users_db for retrieving user information
🔒 chore(auth.py): refactor get_current_active_user function to use database session instead of fake_users_db for retrieving user information
🔒 chore(user.py): refactor get_user function to use database session instead of fake_users_db for retrieving user information
🔒 chore(login.py): refactor login_for_access_token function to use database session instead of fake_users_db for authentication and token creation
🔒 feat(models.py): add User model to represent user data in the database
🔒 feat(base_control.py): add BaseControl model to represent common control fields in database models
The following changes were made:
- Removed unused imports from the file
- Removed the unused `get_load_custom_component_from_path` endpoint
- Removed the unused `get_load_custom_component_from_path_test` endpoint
🐛 fix(directory_reader.py): add the output types of the custom component to the component template to ensure correct behavior
🐛 fix(types.py): add the output types of the custom component to the component template to ensure correct behavior
feat(reactflowUtils.ts): add getConnectedNodes function to retrieve connected nodes based on an edge
fix(styleUtils.ts): remove unused getConnectedNodes function
🐛 fix(AccordionComponent/index.tsx): prevent default behavior of Backspace key to improve user experience
🐛 fix(floatComponent/index.tsx): prevent default behavior of Backspace key to improve user experience
🐛 fix(inputComponent/index.tsx): prevent default behavior of Backspace key to improve user experience
🐛 fix(inputListComponent/index.tsx): prevent default behavior of Ctrl+Backspace key combination to improve user experience
🐛 fix(intComponent/index.tsx): prevent default behavior of Backspace key to improve user experience
🐛 fix(genericModal/index.tsx): prevent default behavior of Backspace key to improve user experience
This commit adds a new file 'custom.py' under the 'src/backend/langflow/components/custom_components' directory. The file contains the implementation of a custom component called 'YourComponent'.
The 'YourComponent' class extends the 'CustomComponent' class from the 'langflow' library. It has a display name of "Custom Component" and a description of "My description".
The component has a 'build_config' method that returns a configuration object with a single property 'url'. The 'url' property is multiline and required.
The 'build' method of the component takes in a 'url' string, a 'llm' object of type 'BaseLLM', and a 'prompt' object of type 'PromptTemplate'. It makes a GET request to the provided 'url', runs the response text through an 'LLMChain' with the given 'llm' and 'prompt', and returns a 'Document' object with the resulting page content.
✨ feat(constants.py): update display name and description of the custom component to improve clarity and user experience
🔧 chore(custom_components.py): update display name of the custom component to improve clarity and user experience