🔨 refactor(constants.py): make YourComponent inherit from CustomComponent for better code reuse and structure
🔨 refactor(conftest.py): restructure custom_chain fixture for better readability and maintainability
🔥 remove(langflow): delete custom.py as it's replaced by custom_component.py
📦 feat(langflow): add code_parser.py to parse Python source code
🐛 fix(langflow): update import paths due to file renaming
🎨 style(langflow): improve code formatting for readability
🐛 fix(langflow): correct handling of function arguments and return types in custom components
🔧 chore(langflow): update function calls due to changes in custom components
🔧 chore(index.css): add CSS class .code-nohighlight with different max-height value for tooltips with fewer words to display
🔧 chore(genericModal/index.tsx): add logic to dynamically apply CSS class .code-nohighlight to tooltips with fewer words to display
🎨 style(index.css): update class names for code block modal span and button for better readability
🎨 style(index.css): update class name for code highlight block to limit max height
🐛 fix(chatMessage/index.tsx): update max width classes for markdown content to improve responsiveness
🐛 fix(genericModal/index.tsx): add missing useRef declarations for divRef and divRefPrompt
🐛 fix(genericModal/index.tsx): update class name for code highlight textarea to fix styling issue
🐛 fix(genericModal/index.tsx): add missing ref prop to Textarea component
🐛 fix(genericModal/index.tsx): add missing ref prop to div element for prompt variables
🐛 fix(genericModal/index.tsx): add missing ref prop to div element for prompt variables
✨ feat(components.py): add support for `create_at` and `update_at` fields in Component model to track creation and update timestamps
🔥 refactor(components.py): remove unused imports and variables in components.py
🔥 refactor(component.py): remove unused imports and variables in component.py
🔥 refactor(component.py): remove commented out code in component.py
✨ feat(components.py): refactor create_component endpoint to use the Component model directly instead of ComponentCreate model
✨ feat(components.py): refactor read_component endpoint to return a Component model instead of ComponentRead model
✨ feat(components.py): refactor read_components endpoint to return a list of Component models instead of a list of ComponentRead models
✨ feat(components.py): refactor update_component endpoint to use the Component model directly instead of ComponentUpdate model
✨ feat(components.py): refactor delete_component endpoint to use the Component model directly instead of ComponentUpdate model
🔧 fix(component.py): remove unused imports and commented out code
✨ feat(component.py): add missing import for orjson
✨ feat(component.py): add missing import for FastAPI, HTTPException, and Depends
✨ feat(component.py): add missing import for List and Optional
✨ feat(component.py): add missing import for datetime
✨ feat(component.py): add missing import for uuid
✨ feat(component.py): add missing import for StaticPool
✨ feat(component.py): add missing import for create_engine
✨ feat(component.py): add missing import for select
✨ feat(component.py): add missing import for orjson
✨ feat(component.py): add missing import for SQLModel
✨ feat(component.py): add missing import for Session
✨ feat(component.py): add missing import for orjson
✨ feat(component.py): add missing import for orjson_dumps function
✨ feat(component.py): add missing import for Component model
✨ feat(component.py): add missing import for Field
✨ feat(component.py): add missing import for SQLModel
✨ feat(component.py): add missing import for Session
✨ feat(component.py): add missing import for create_engine
✨ feat(component.py): add missing import for select
✨ feat(component.py): add missing import for Optional
✨ feat(component.py): add missing import for List
✨ feat(component.py): add missing import for datetime
✨ feat(component.py): add missing import for uuid
✨ feat(component.py): add missing import for StaticPool
✨ feat(component.py): add missing import for orjson
✨ feat(component.py): add missing import for orjson_dumps function
✨ feat(component.py): add missing import for Component model
✨ feat(component
📦 chore(__init__.py): add component_router to __all__ list to expose component routes
📦 feat(components.py): add routes for creating, reading, updating, and deleting components
📦 chore(endpoints.py): import Component model from database.models.component
📦 chore(schemas.py): add ComponentListCreate and ComponentListRead schemas
📦 feat(models/component.py): add Component model with fields for name, description, and data
📦 feat(models/component.py): add ComponentCreate, ComponentRead, and ComponentUpdate models for CRUD operations on components
🐛 fix(loading.py): add handle_parsing_errors=True to instantiate_agent and load_agent_executor functions to handle parsing errors during agent instantiation and loading
The code in the `ChatMessage` component has been refactored to improve code readability and fix a rendering issue.
- In line 10, the `div` element has been updated to include the `flex flex-col` class for better styling.
- In lines 16-18, the conditional rendering of the `template` has been simplified by removing unnecessary ternary operator and curly braces.
- In lines 21-34, the rendering of the `template` has been updated to correctly split the text into lines and replace placeholders with values.
- In lines 37-39, a line break element (`<br />`) has been added for better visual separation.
- In lines 41-43, the rendering of the `chat.message[chat.chatKey]` has been moved outside the `span` element for correct rendering.
These changes improve the readability of the code and fix the rendering issue in the `ChatMessage` component.
✨ feat(tailwind.config.js): update animation durations for "accordion-down" to 300ms ease-out and "accordion-up" to 300ms ease-in for smoother transitions