-
Notifications
You must be signed in to change notification settings - Fork 1.7k
UBERF-13241: Support gmail space config #9710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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>
|
Connected to Huly®: UBERF-13252 |
There was a problem hiding this 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>
Uh oh!
There was an error while loading. Please reload this page.