Skip to content

feat: Add Composio Outlook component#7987

Merged
ogabrielluiz merged 17 commits into
langflow-ai:mainfrom
ComposioHQ:feat/outlook-component
Jun 3, 2025
Merged

feat: Add Composio Outlook component#7987
ogabrielluiz merged 17 commits into
langflow-ai:mainfrom
ComposioHQ:feat/outlook-component

Conversation

@abhishekpatil4
Copy link
Copy Markdown
Contributor

@abhishekpatil4 abhishekpatil4 commented May 12, 2025

This pull request introduces a new Outlook component to the langflow project, 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 for ComposioOutlookAPIComponent .

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 for ComposioOutlookAPIComponent , including tests for initialization, action execution, data conversion, and configuration updates.

Summary by CodeRabbit

  • New Features

    • Introduced Outlook integration with actions for sending emails, replying, listing messages and events, creating calendar events, and managing drafts.
    • Added a new Outlook icon and sidebar entry for improved navigation and visual consistency.
  • Tests

    • Added extensive tests covering Outlook component initialization, action execution, error handling, and configuration updates.

@dosubot dosubot Bot added size:XL This PR changes 500-999 lines, ignoring generated files. enhancement New feature or request labels May 12, 2025
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels May 12, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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" },
Copy link

Copilot AI May 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There appears to be a duplicate Outlook entry in SIDEBAR_BUNDLES; consider removing one to avoid redundancy.

Suggested change
{ display_name: "Outlook", name: "outlook", icon: "Outlook" },
// Removed duplicate "Outlook" entry to avoid redundancy.

Copilot uses AI. Check for mistakes.
@edwinjosechittilappilly
Copy link
Copy Markdown
Collaborator

@abhishekpatil4 can you fix the conflicts?

@abhishekpatil4
Copy link
Copy Markdown
Contributor Author

@abhishekpatil4 can you fix the conflicts?

will do

@dosubot dosubot Bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels May 13, 2025
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels May 13, 2025
@dosubot dosubot Bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:XXL This PR changes 1000+ lines, ignoring generated files. labels May 13, 2025
@autofix-ci
Copy link
Copy Markdown
Contributor

autofix-ci Bot commented May 13, 2025

Hi! I'm autofix logoautofix.ci, a bot that automatically fixes trivial issues such as code formatting in pull requests.

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:

  1. Allow edits by maintainers for your pull request, and then re-trigger CI (for example by pushing a new commit).
  2. Manually fix the issues identified for your pull request (see the GitHub Actions output for details on what I would like to change).

@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels May 13, 2025
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels May 13, 2025
Copy link
Copy Markdown
Collaborator

@edwinjosechittilappilly edwinjosechittilappilly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jun 2, 2025
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Jun 2, 2025
Comment thread src/frontend/src/icons/outlook/outlook.jsx Outdated
@dosubot dosubot Bot removed the lgtm This PR has been approved by a maintainer label Jun 3, 2025
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Jun 3, 2025
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Jun 3, 2025
@ogabrielluiz ogabrielluiz dismissed their stale review June 3, 2025 15:54

Outdated

@ogabrielluiz ogabrielluiz added fast-track Skip tests and sends PR into the merge queue lgtm This PR has been approved by a maintainer labels Jun 3, 2025
@edwinjosechittilappilly edwinjosechittilappilly added this pull request to the merge queue Jun 3, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 3, 2025
@ogabrielluiz ogabrielluiz added this pull request to the merge queue Jun 3, 2025
Merged via the queue into langflow-ai:main with commit f835a6b Jun 3, 2025
32 of 35 checks passed
ogabrielluiz added a commit to bkatya2001/langflow that referenced this pull request Jun 24, 2025
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request fast-track Skip tests and sends PR into the merge queue lgtm This PR has been approved by a maintainer size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants