Skip to content

Conversation

@ArtyomSavchenko
Copy link
Member

No description provided.

Signed-off-by: Artem Savchenko <armisav@gmail.com>
@huly-github-staging
Copy link

Connected to Huly®: UBERF-13042

Copy link
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 implements the ability to send messages from Gmail threads as part of UBERF-12966. The feature allows outgoing Gmail messages to be sent when messages are created in Huly threads that are connected to Gmail channels.

Key changes include:

  • Added message sending capabilities from Gmail threads with proper header identification
  • Implemented markdown to HTML conversion for email formatting
  • Added queue consumer to listen for new message events and trigger Gmail sending

Reviewed Changes

Copilot reviewed 19 out of 21 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
services/mail/mail-common/src/utils.ts Added utility functions for message metadata, sync detection, and reply subject generation
services/mail/mail-common/src/types.ts Extended types to support message metadata and communication domain
services/mail/mail-common/src/txHandler.ts Added transaction handler to convert platform transactions to message events
services/mail/mail-common/src/send.ts Added placeholder functions for message sending logic
services/mail/mail-common/src/person.ts Enhanced person cache with email lookup by social ID
services/mail/mail-common/src/message.ts Updated message creation to include extra metadata
services/mail/mail-common/src/md.ts Added markdown to HTML conversion utilities
services/mail/mail-common/src/index.ts Exported new modules
services/mail/mail-common/src/tests/md.test.ts Added comprehensive tests for markdown conversion
services/mail/mail-common/package.json Added markdown-it dependency
services/gmail/pod-gmail/src/workspaceClient.ts Added message handling delegation to Gmail clients
services/gmail/pod-gmail/src/utils.ts Added Gmail search query builder for message deduplication
services/gmail/pod-gmail/src/types.ts Added Gmail-specific constants and headers
services/gmail/pod-gmail/src/message/v2/send.ts Implemented Gmail message sending with proper headers and formatting
services/gmail/pod-gmail/src/message/v2/message.ts Enhanced message processing to skip Huly-sent messages
services/gmail/pod-gmail/src/gmailController.ts Added queue consumer for handling new message events
services/gmail/pod-gmail/src/gmail.ts Implemented core Gmail message sending logic with deduplication
services/gmail/pod-gmail/src/client.ts Added communication client creation utilities
services/gmail/pod-gmail/package.json Added required dependencies
Files not reviewed (1)
  • common/config/rush/pnpm-lock.yaml: Language not supported

ArtyomSavchenko and others added 5 commits August 11, 2025 11:14
Signed-off-by: Artem Savchenko <armisav@gmail.com>
…cter sanitization

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Artyom Savchenko <armisav@gmail.com>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
@ArtyomSavchenko ArtyomSavchenko marked this pull request as ready for review August 11, 2025 05:39
Signed-off-by: Artem Savchenko <armisav@gmail.com>
@aonnikov aonnikov merged commit 880c302 into develop Aug 11, 2025
14 checks passed
@aonnikov aonnikov deleted the UBERF-12966/mail-send branch August 11, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants