Skip to content

Conversation

@ArtyomSavchenko
Copy link
Member

@ArtyomSavchenko ArtyomSavchenko commented Aug 22, 2025

Screenshot 2025-08-22 at 12 04 47 Screenshot 2025-08-22 at 12 04 26

Signed-off-by: Artem 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>
@huly-github-staging
Copy link

Connected to Huly®: UBERF-13252

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 adds support for gmail space configuration, allowing users to select a specific space where Gmail messages should be stored instead of using only PersonSpace. It introduces a v2 configuration system that requires users to explicitly configure their Gmail integration.

  • Adds space configuration functionality to Gmail integration with backwards compatibility
  • Introduces version-aware integration handling (v2 requires space configuration)
  • Updates type system to use generic Space instead of PersonSpace throughout the codebase

Reviewed Changes

Copilot reviewed 31 out of 31 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
services/mail/mail-common/src/types.ts Updates type definitions to use generic Space instead of PersonSpace
services/mail/mail-common/src/thread.ts Updates ThreadLookupService to work with generic Space references
services/mail/mail-common/src/personSpaces.ts Modifies PersonSpacesCache to return generic Space array
services/mail/mail-common/src/message.ts Updates message creation logic to support configurable space selection
services/mail/mail-common/src/channel.ts Updates ChannelCache to work with generic Space references
services/gmail/pod-gmail/src/utils.ts Adds utility function to extract spaceId from integration config
services/gmail/pod-gmail/src/types.ts Adds isConfigured field to SyncState interface
services/gmail/pod-gmail/src/main.ts Adds new /start-sync endpoint for manual sync triggering
services/gmail/pod-gmail/src/integrations.ts Updates integration creation with version information
services/gmail/pod-gmail/src/gmailController.ts Adds startSyncForClient method for targeted sync operations
services/gmail/pod-gmail/src/gmail.ts Implements configuration validation and space-aware sync logic
plugins/gmail/src/index.ts Adds isConfigured field to GmailSyncState interface
plugins/gmail-resources/src/utils.ts Adds utility to detect new Gmail integration version
plugins/gmail-resources/src/plugin.ts Adds new localization strings for configuration UI
plugins/gmail-resources/src/components/icons/GmailColor.svelte Adds size prop to Gmail icon component
plugins/gmail-resources/src/components/IntegrationState.svelte Updates integration state display for configuration status
plugins/gmail-resources/src/components/ConfigureV2.svelte New component for v2 Gmail integration configuration
plugins/gmail-resources/src/components/Configure.svelte Updates to route between v1 and v2 configuration
plugins/gmail-resources/src/api.ts Adds startSync API function
plugins/gmail-resources/package.json Adds card package dependency
plugins/gmail-assets/lang/*.json Adds localization strings in multiple languages
packages/integration-client/src/utils.ts Adds utility to extract integration configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Signed-off-by: Artem Savchenko <armisav@gmail.com>
@ArtyomSavchenko ArtyomSavchenko marked this pull request as ready for review August 22, 2025 06:24
@haiodo haiodo merged commit cdceb8c into develop Aug 22, 2025
25 of 26 checks passed
@haiodo haiodo deleted the UBERF-13241/gmail-space branch August 22, 2025 10:37
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.

3 participants