feat: Add Composio Outlook component#7987
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new Outlook component to expand both backend and frontend support within the langflow project by adding a new API component, corresponding icon components, and unit tests.
- Added Outlook entry to SIDEBAR_BUNDLES and nodeIconToDisplayIconMap in the frontend.
- Introduced new Outlook icon components with lazy and eager import support.
- Registered the new Outlook API component in the backend and provided comprehensive unit tests.
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/frontend/src/utils/styleUtils.ts | Added duplicate Outlook entry in SIDEBAR_BUNDLES and updated icon mapping. |
| src/frontend/src/icons/outlook/outlook.jsx | Added a new SVG icon component for Outlook. |
| src/frontend/src/icons/outlook/index.tsx | Created a forwardRef wrapper for the Outlook icon component. |
| src/frontend/src/icons/lazyIconImports.ts | Added lazy import support for the Outlook icon. |
| src/frontend/src/icons/eagerIconImports.ts | Added eager import support for the Outlook icon. |
| src/backend/tests/unit/components/bundles/composio/test_outlook.py | Introduced comprehensive unit tests for the Outlook API component. |
| src/backend/base/langflow/components/composio/init.py | Registered the Outlook API component for backend support. |
| { display_name: "Outlook", name: "outlook", icon: "Outlook" }, | ||
| { display_name: "Amazon", name: "amazon", icon: "Amazon" }, | ||
| { display_name: "Gmail", name: "gmail", icon: "Gmail" }, | ||
| { display_name: "Outlook", name: "outlook", icon: "Outlook" }, |
There was a problem hiding this comment.
There appears to be a duplicate Outlook entry in SIDEBAR_BUNDLES; consider removing one to avoid redundancy.
| { display_name: "Outlook", name: "outlook", icon: "Outlook" }, | |
| // Removed duplicate "Outlook" entry to avoid redundancy. |
|
@abhishekpatil4 can you fix the conflicts? |
will do |
|
Hi! I'm I would like to apply some automated changes to this pull request, but it looks like I don't have the necessary permissions to do so. To get this pull request into a mergeable state, please do one of the following two things:
|
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* feat: add Composio Outlook component * feat: add Composio Outlook component * feat: add outlook test file * chore: remove file * fix: format * fix: add result_field to improve toolcall response * Update src/frontend/src/icons/outlook/outlook.jsx Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org> --------- Co-authored-by: Edwin Jose <edwin.jose@datastax.com> Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This pull request introduces a new Outlook component to the
langflowproject, including backend support, unit tests, and frontend icon integration. The most important changes are:Backend support:
src/backend/base/langflow/components/composio/__init__.py: Added import and registration forComposioOutlookAPIComponent.Frontent support:
src/frontend/src/icons: Added a new SVG icon component for Outlook, created a forwardRef wrapper & updated sidebar bundles to include the new Outlook component with its icon.Unit tests:
src/backend/tests/unit/components/bundles/composio/test_outlook.py: Added comprehensive unit tests forComposioOutlookAPIComponent, including tests for initialization, action execution, data conversion, and configuration updates.Summary by CodeRabbit
New Features
Tests