Skip to content

Commit a83c128

Browse files
committed
Clean up previous walkthrough
1 parent 5b4fbd3 commit a83c128

27 files changed

+30
-1146
lines changed

package.json

Lines changed: 8 additions & 124 deletions
Large diffs are not rendered by default.

src/constants.telemetry.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { Config, GraphBranchesVisibility, GraphConfig } from './config';
2+
import type { WalkthroughSteps } from './constants';
23
import type { AIModels, AIProviders } from './constants.ai';
34
import type { Commands } from './constants.commands';
45
import type { IntegrationId, SupportedCloudIntegrationIds } from './constants.integrations';
@@ -388,19 +389,7 @@ export type TelemetryEvents = {
388389

389390
/** Sent when the walkthrough is opened */
390391
walkthrough: {
391-
step?:
392-
| 'get-started'
393-
| 'core-features'
394-
| 'pro-features'
395-
| 'pro-trial'
396-
| 'pro-upgrade'
397-
| 'pro-reactivate'
398-
| 'pro-paid'
399-
| 'visualize'
400-
| 'launchpad'
401-
| 'code-collab'
402-
| 'integrations'
403-
| 'more';
392+
step?: WalkthroughSteps;
404393
};
405394
} & Record<`${WebviewTypes | WebviewViewTypes}/showAborted`, WebviewShownEventData> &
406395
Record<

src/constants.ts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,11 @@ export const urls = Object.freeze({
173173
});
174174

175175
export type WalkthroughSteps =
176-
| 'get-started'
177-
| 'core-features'
178-
| 'pro-features'
179-
| 'pro-trial'
180-
| 'pro-upgrade'
181-
| 'pro-reactivate'
182-
| 'pro-paid'
183-
| 'visualize'
184-
| 'launchpad'
185-
| 'code-collab'
186-
| 'integrations'
187-
| 'more';
176+
| 'welcome-in-trial'
177+
| 'welcome-paid'
178+
| 'welcome-in-trial-expired'
179+
| 'get-started-community'
180+
| 'visualize-code-history'
181+
| 'accelerate-pr-reviews'
182+
| 'streamline-collaboration'
183+
| 'improve-workflows-with-integrations';

src/plus/gk/account/subscriptionService.ts

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -280,35 +280,30 @@ export class SubscriptionService implements Disposable {
280280
switch (subscription.state) {
281281
case SubscriptionState.VerificationRequired:
282282
case SubscriptionState.Community:
283-
case SubscriptionState.ProPreview:
284-
case SubscriptionState.ProPreviewExpired:
285283
void executeCommand<OpenWalkthroughCommandArgs>(Commands.OpenWalkthrough, {
286284
...source,
287-
step: 'pro-features',
285+
step: 'get-started-community',
288286
});
289287
break;
290288
case SubscriptionState.ProTrial:
289+
case SubscriptionState.ProPreview:
291290
void executeCommand<OpenWalkthroughCommandArgs>(Commands.OpenWalkthrough, {
292291
...source,
293-
step: 'pro-trial',
294-
});
295-
break;
296-
case SubscriptionState.ProTrialExpired:
297-
void executeCommand<OpenWalkthroughCommandArgs>(Commands.OpenWalkthrough, {
298-
...source,
299-
step: 'pro-upgrade',
292+
step: 'welcome-in-trial',
300293
});
301294
break;
302295
case SubscriptionState.ProTrialReactivationEligible:
296+
case SubscriptionState.ProTrialExpired:
297+
case SubscriptionState.ProPreviewExpired:
303298
void executeCommand<OpenWalkthroughCommandArgs>(Commands.OpenWalkthrough, {
304299
...source,
305-
step: 'pro-reactivate',
300+
step: 'welcome-in-trial-expired',
306301
});
307302
break;
308303
case SubscriptionState.Paid:
309304
void executeCommand<OpenWalkthroughCommandArgs>(Commands.OpenWalkthrough, {
310305
...source,
311-
step: 'pro-paid',
306+
step: 'welcome-paid',
312307
});
313308
break;
314309
}

src/plus/launchpad/launchpad.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ export class LaunchpadCommand extends QuickCommand<State> {
832832
iconPath: new ThemeIcon('rocket'),
833833
onDidSelect: () =>
834834
void executeCommand<OpenWalkthroughCommandArgs>(Commands.OpenWalkthrough, {
835-
step: 'launchpad',
835+
step: 'accelerate-pr-reviews',
836836
source: 'launchpad',
837837
detail: 'info',
838838
}),

src/plus/launchpad/launchpadIndicator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ export class LaunchpadIndicator implements Disposable {
541541
switch (action) {
542542
case 'info': {
543543
void executeCommand<OpenWalkthroughCommandArgs>(Commands.OpenWalkthrough, {
544-
step: 'launchpad',
544+
step: 'accelerate-pr-reviews',
545545
source: 'launchpad-indicator',
546546
detail: 'info',
547547
});

src/views/draftsView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class DraftsView extends ViewBase<'drafts', DraftsViewNode, DraftsViewCon
122122
this.getQualifiedCommand('info'),
123123
() =>
124124
executeCommand<OpenWalkthroughCommandArgs>(Commands.OpenWalkthrough, {
125-
step: 'code-collab',
125+
step: 'streamline-collaboration',
126126
source: 'cloud-patches',
127127
detail: 'info',
128128
}),

src/views/launchpadView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export class LaunchpadView extends ViewBase<'launchpad', LaunchpadViewNode, Laun
238238
this.getQualifiedCommand('info'),
239239
() =>
240240
executeCommand<OpenWalkthroughCommandArgs>(Commands.OpenWalkthrough, {
241-
step: 'launchpad',
241+
step: 'accelerate-pr-reviews',
242242
source: 'launchpad-view',
243243
detail: 'info',
244244
}),

src/webviews/home/homeWebview.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,7 @@ export class HomeWebviewProvider implements WebviewProvider<State, State, HomeWe
205205
doneCount: this.container.walkthrough.doneCount,
206206
progress: this.container.walkthrough.progress,
207207
},
208-
showWalkthroughProgress:
209-
!this.getWalkthroughDismissed() && configuration.getAny('gitlens.test.newWalkthrough'),
208+
showWalkthroughProgress: !this.getWalkthroughDismissed(),
210209
};
211210
}
212211

-318 KB
Binary file not shown.

0 commit comments

Comments
 (0)