diff --git a/src/commands/remoteProviders.ts b/src/commands/remoteProviders.ts index 0a7c85dc44909..defb5a4f164ac 100644 --- a/src/commands/remoteProviders.ts +++ b/src/commands/remoteProviders.ts @@ -13,7 +13,7 @@ import type { CommandContext } from './commandContext'; import { isCommandContextViewNodeHasRemote } from './commandContext.utils'; export interface ConnectRemoteProviderCommandArgs { - remote: string; + remote?: string; repoPath: string; } diff --git a/src/webviews/apps/shared/components/repo-button-group.ts b/src/webviews/apps/shared/components/repo-button-group.ts index 6467112b0dd5b..9f0c2d6019b8b 100644 --- a/src/webviews/apps/shared/components/repo-button-group.ts +++ b/src/webviews/apps/shared/components/repo-button-group.ts @@ -2,7 +2,7 @@ import { css, html, nothing } from 'lit'; import { customElement, property } from 'lit/decorators.js'; import { ifDefined } from 'lit/directives/if-defined.js'; import { when } from 'lit/directives/when.js'; -import type { ConnectCloudIntegrationsCommandArgs } from '../../../../commands/cloudIntegrations'; +import type { ConnectRemoteProviderCommandArgs } from '../../../../commands/remoteProviders'; import type { Source } from '../../../../constants.telemetry'; import type { RepositoryShape } from '../../../../git/models/repositoryShape'; import { createCommandLink } from '../../../../system/commands'; @@ -198,9 +198,9 @@ export class GlRepoButtonGroup extends GlElement { return html` ( - 'gitlens.plus.cloudIntegrations.connect', - { integrationIds: [provider.integration!.id], source: this.source }, + href=${createCommandLink( + 'gitlens.connectRemoteProvider', + { repoPath: repo.path }, )} > Connect to ${repo.provider!.name} @@ -227,10 +227,9 @@ export class GlRepoButtonGroup extends GlElement { ( - 'gitlens.plus.cloudIntegrations.connect', - { integrationIds: [provider.integration.id], source: this.source }, - )} + href=${createCommandLink('gitlens.connectRemoteProvider', { + repoPath: repo.path, + })} > diff --git a/src/webviews/home/homeWebview.ts b/src/webviews/home/homeWebview.ts index d5480c2efc584..a1923712c5590 100644 --- a/src/webviews/home/homeWebview.ts +++ b/src/webviews/home/homeWebview.ts @@ -54,6 +54,7 @@ import type { SubscriptionChangeEvent } from '../../plus/gk/subscriptionService' import { isAiAllAccessPromotionActive } from '../../plus/gk/utils/-webview/promo.utils'; import { isSubscriptionTrialOrPaidFromState } from '../../plus/gk/utils/subscription.utils'; import type { ConfiguredIntegrationsChangeEvent } from '../../plus/integrations/authentication/configuredIntegrationService'; +import type { ConnectionStateChangeEvent } from '../../plus/integrations/integrationService'; import { providersMetadata } from '../../plus/integrations/providers/models'; import type { LaunchpadCategorizedResult } from '../../plus/launchpad/launchpadProvider'; import { getLaunchpadItemGroups } from '../../plus/launchpad/launchpadProvider'; @@ -175,6 +176,7 @@ export class HomeWebviewProvider implements WebviewProvider