Skip to content

Commit caa1c7c

Browse files
committed
Updates walkthrough
1 parent 6890c92 commit caa1c7c

File tree

9 files changed

+50
-20
lines changed

9 files changed

+50
-20
lines changed

package.json

Lines changed: 23 additions & 14 deletions
Large diffs are not rendered by default.

src/commands/walkthroughs.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1+
import type { WalkthroughSteps } from '../constants';
12
import { Commands } from '../constants';
23
import type { Container } from '../container';
34
import { command } from '../system/command';
45
import { openWalkthrough } from '../system/utils';
56
import { Command } from './base';
67

8+
export type GetStartedCommandArgs = WalkthroughSteps | undefined;
9+
710
@command()
811
export class GetStartedCommand extends Command {
912
constructor(private readonly container: Container) {
1013
super(Commands.GetStarted);
1114
}
1215

13-
execute(stepId?: string) {
16+
execute(stepId?: WalkthroughSteps) {
1417
const extensionId = this.container.context.extension.id;
1518
// If the walkthroughId param is the same as the extension id, then this was run from the extensions view gear menu
1619
if (stepId === extensionId) {

src/constants.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,3 +1112,17 @@ export type StoredSearchAndCompareItem = StoredComparison | StoredSearch;
11121112
export type StoredSearchAndCompareItems = Record<string, StoredSearchAndCompareItem>;
11131113
export type StoredStarred = Record<string, boolean>;
11141114
export type RecentUsage = Record<string, number>;
1115+
1116+
export type WalkthroughSteps =
1117+
| 'get-started'
1118+
| 'core-features'
1119+
| 'pro-features'
1120+
| 'pro-trial'
1121+
| 'pro-upgrade'
1122+
| 'pro-reactivate'
1123+
| 'pro-paid'
1124+
| 'visualize'
1125+
| 'launchpad'
1126+
| 'code-collab'
1127+
| 'integrations'
1128+
| 'more';

src/plus/focus/focusIndicator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { ConfigurationChangeEvent, StatusBarItem } from 'vscode';
22
import { Disposable, MarkdownString, StatusBarAlignment, ThemeColor, window } from 'vscode';
3+
import type { GetStartedCommandArgs } from '../../commands/walkthroughs';
34
import type { Colors } from '../../constants';
45
import { Commands, previewBadge } from '../../constants';
56
import type { Container } from '../../container';
@@ -464,7 +465,7 @@ export class FocusIndicator implements Disposable {
464465
this.storeFirstInteractionIfNeeded();
465466
switch (action) {
466467
case 'info': {
467-
void executeCommand(Commands.GetStarted, 'launchpad');
468+
void executeCommand<GetStartedCommandArgs>(Commands.GetStarted, 'launchpad');
468469
break;
469470
}
470471
case 'hide': {

src/views/draftsView.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { CancellationToken, TreeViewVisibilityChangeEvent } from 'vscode';
22
import { Disposable, TreeItem, TreeItemCollapsibleState, window } from 'vscode';
3+
import type { GetStartedCommandArgs } from '../commands/walkthroughs';
34
import type { DraftsViewConfig } from '../config';
45
import { Commands, previewBadge } from '../constants';
56
import type { Container } from '../container';
@@ -11,7 +12,6 @@ import { executeCommand } from '../system/command';
1112
import { configuration } from '../system/configuration';
1213
import { gate } from '../system/decorators/gate';
1314
import { groupByFilterMap } from '../system/iterable';
14-
import { openUrl } from '../system/utils';
1515
import { CacheableChildrenViewNode } from './nodes/abstract/cacheableChildrenViewNode';
1616
import { DraftNode } from './nodes/draftNode';
1717
import { GroupingNode } from './nodes/groupingNode';
@@ -119,7 +119,7 @@ export class DraftsView extends ViewBase<'drafts', DraftsViewNode, DraftsViewCon
119119
return [
120120
registerViewCommand(
121121
this.getQualifiedCommand('info'),
122-
() => openUrl('https://help.gitkraken.com/gitlens/side-bar/#drafts-☁%ef%b8%8f'),
122+
() => executeCommand<GetStartedCommandArgs>(Commands.GetStarted, 'code-collab'),
123123
this,
124124
),
125125
registerViewCommand(

src/views/workspacesView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class WorkspacesView extends ViewBase<'workspaces', WorkspacesViewNode, W
147147
return [
148148
registerViewCommand(
149149
this.getQualifiedCommand('info'),
150-
() => openUrl('https://help.gitkraken.com/gitlens/side-bar/#workspaces-☁%ef%b8%8f'),
150+
() => openUrl('https://gitkraken.com/solutions/workspaces'),
151151
this,
152152
),
153153
registerViewCommand(

src/webviews/apps/welcome/welcome.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ <h3 class="sticky">
368368
<a
369369
class="muted"
370370
data-org-requires="drafts"
371-
href="command:gitlens.getStarted?%22patchesAndSuggest%22"
371+
href="command:gitlens.getStarted?%22code-collab%22"
372372
aria-label="Learn more about Code Suggest"
373373
><gl-tooltip hoist content="Learn more about Code Suggest"
374374
><span>Code Suggest</span></gl-tooltip
File renamed without changes.

walkthroughs/welcome/pro-paid.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<figure align="center">
2+
<img src="power-up.png" alt="Power-up with Pro and the GitKraken DevEx Platform" />
3+
</figure>

0 commit comments

Comments
 (0)