Skip to content

Commit 9c03cec

Browse files
committed
Updates whats new notification
1 parent bf61966 commit 9c03cec

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

src/constants.telemetry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,7 @@ export type Sources =
625625
| 'scm-input'
626626
| 'subscription'
627627
| 'walkthrough'
628+
| 'whatsnew'
628629
| 'worktrees';
629630

630631
export type Source = {

src/constants.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ export const urls = Object.freeze({
168168
browserExtension: `https://gitkraken.com/browser-extension?${utm}`,
169169
desktop: `https://gitkraken.com/git-client?${utm}`,
170170

171-
releaseNotes: 'https://help.gitkraken.com/gitlens/gitlens-release-notes-current/',
172-
releaseAnnouncement: `https://www.gitkraken.com/blog/gitkraken-launches-devex-platform-acquires-codesee?${utm}`,
171+
releaseNotes: `https://help.gitkraken.com/gitlens/gitlens-release-notes-current/?${utm}`,
173172
});
174173

175174
export type WalkthroughSteps =

src/extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ export async function activate(context: ExtensionContext): Promise<GitLensApi |
109109
},
110110
});
111111

112+
void showWhatsNewMessage('17');
113+
112114
// Ensure that this pre-release version hasn't expired
113115
if (prerelease) {
114116
const v = fromString(gitlensVersion);

src/messages.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Commands } from './constants.commands';
66
import type { BlameIgnoreRevsFileError } from './git/errors';
77
import { BlameIgnoreRevsFileBadRevisionError } from './git/errors';
88
import type { GitCommit } from './git/models/commit';
9+
import { createMarkdownCommandLink } from './system/commands';
910
import { Logger } from './system/logger';
1011
import { executeCommand, executeCoreCommand } from './system/vscode/command';
1112
import { configuration } from './system/vscode/configuration';
@@ -231,22 +232,24 @@ export function showIntegrationRequestTimedOutWarningMessage(providerName: strin
231232

232233
export async function showWhatsNewMessage(version: string) {
233234
const confirm = { title: 'OK', isCloseAffordance: true };
234-
const announcement = { title: 'Read Announcement', isCloseAffordance: true };
235+
const releaseNotes = { title: 'View Release Notes' };
235236
const result = await showMessage(
236237
'info',
237238
`Upgraded to GitLens ${version}${
238-
version === '15'
239-
? `, with a host of new [Pro features](${urls.proFeatures}) including [Launchpad](${urls.codeSuggest}), [Code Suggest](${urls.codeSuggest}), and more`
240-
: ''
241-
} — [see what's new](${urls.releaseNotes} "See what's new in GitLens ${version}").`,
239+
version === '16'
240+
? ` with an all new [Home view](${createMarkdownCommandLink(Commands.ShowHomeView, {
241+
source: 'whatsnew',
242+
})} "Show Home view") reimagined as a hub for your current, future, and recent work, consolidated Source Control views, and much more.`
243+
: " — see what's new."
244+
}`,
242245
undefined,
243246
null,
247+
releaseNotes,
244248
confirm,
245-
announcement,
246249
);
247250

248-
if (result === announcement) {
249-
void openUrl(urls.releaseAnnouncement);
251+
if (result === releaseNotes) {
252+
void openUrl(urls.releaseNotes);
250253
}
251254
}
252255

0 commit comments

Comments
 (0)