Skip to content

Commit 9e78c0e

Browse files
committed
update trial messaging
1 parent a271ecc commit 9e78c0e

File tree

6 files changed

+41
-43
lines changed

6 files changed

+41
-43
lines changed

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19198,7 +19198,7 @@
1919819198
},
1919919199
{
1920019200
"view": "gitlens.views.drafts",
19201-
"contents": "Cloud Patches ᴘʀᴇᴠɪᴇᴡ — easily and securely share code with your teammates or other developers, accessible from anywhere, streamlining your workflow with better collaboration."
19201+
"contents": "Cloud Patches ᴘʀᴇᴠɪᴇᴡ — easily and securely share code with your teammates and other developers without adding noise to your repository."
1920219202
},
1920319203
{
1920419204
"view": "gitlens.views.drafts",
@@ -19210,10 +19210,6 @@
1921019210
"contents": "[Start Pro Trial](command:gitlens.plus.signUp?%7B%22source%22%3A%22cloud-patches%22%7D)\n\nStart your free 7-day Pro trial to try Cloud Patches and other Pro features, or [sign in](command:gitlens.plus.login?%7B%22source%22%3A%22cloud-patches%22%7D).",
1921119211
"when": "!gitlens:plus"
1921219212
},
19213-
{
19214-
"view": "gitlens.views.drafts",
19215-
"contents": "Preview feature ☁️ — requires an account and may require a paid plan in the future."
19216-
},
1921719213
{
1921819214
"view": "gitlens.views.launchpad",
1921919215
"contents": "[Launchpad](command:gitlens.views.launchpad.info \"Learn about Launchpad\") — organizes your pull requests into actionable groups to help you focus and keep your team unblocked."
@@ -19343,7 +19339,7 @@
1934319339
},
1934419340
{
1934519341
"view": "gitlens.views.worktrees",
19346-
"contents": "[Worktrees](https://help.gitkraken.com/gitlens/side-bar/#worktrees-view-pro) ᴾᴿᴼ — minimize context switching by allowing you to work on multiple branches simultaneously."
19342+
"contents": "[Worktrees](https://help.gitkraken.com/gitlens/side-bar/#worktrees-view-pro) ᴾᴿᴼ — minimize context switching by working on multiple branches simultaneously."
1934719343
},
1934819344
{
1934919345
"view": "gitlens.views.scm.grouped",
@@ -19392,7 +19388,7 @@
1939219388
},
1939319389
{
1939419390
"view": "gitlens.views.worktrees",
19395-
"contents": "[Upgrade to Pro](command:gitlens.plus.upgrade?%7B%22source%22%3A%22worktrees%22%7D)",
19391+
"contents": "Use on privately-hosted repos requires [GitLens Pro](https://help.gitkraken.com/gitlens/gitlens-community-vs-gitlens-pro?%7B%22source%22%3A%22worktrees%22%7D).\n\n[Upgrade to Pro](command:gitlens.plus.upgrade?%7B%22source%22%3A%22worktrees%22%7D)",
1939619392
"when": "gitlens:plus:required && gitlens:plus:state == 4"
1939719393
},
1939819394
{

src/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ export const urls = Object.freeze({
170170

171171
releaseNotes: 'https://help.gitkraken.com/gitlens/gitlens-release-notes-current/',
172172
releaseAnnouncement: `https://www.gitkraken.com/blog/gitkraken-launches-devex-platform-acquires-codesee?${utm}`,
173+
gitlensProVsCommunity: `https://help.gitkraken.com/gitlens/gitlens-community-vs-gitlens-pro/?${utm}`,
173174
});
174175

175176
export type WalkthroughSteps =

src/plus/gk/account/subscriptionService.ts

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -315,33 +315,30 @@ export class SubscriptionService implements Disposable {
315315
} = this._subscription;
316316

317317
if (account?.verified === false) {
318-
const days = getSubscriptionTimeRemaining(this._subscription, 'days') ?? proTrialLengthInDays;
319-
320318
const verify: MessageItem = { title: 'Resend Email' };
321-
const learn: MessageItem = { title: 'See Pro Features' };
319+
const learn: MessageItem | undefined = isSubscriptionPaid(this._subscription)
320+
? { title: 'See Pro Features' }
321+
: undefined;
322322
const confirm: MessageItem = { title: 'Continue', isCloseAffordance: true };
323+
323324
const result = await window.showInformationMessage(
324325
isSubscriptionPaid(this._subscription)
325326
? `You are now on the ${actual.name} plan. \n\nYou must first verify your email. Once verified, you will have full access to Pro features.`
326-
: `Welcome to your ${
327-
effective.name
328-
} Trial.\n\nYou must first verify your email. Once verified, you will have full access to Pro features for ${
329-
days < 1 ? '<1 more day' : pluralize('day', days, { infix: ' more ' })
330-
}.`,
327+
: `Welcome to GitLens.`,
331328
{
332329
modal: true,
333-
detail: `Your ${
334-
isSubscriptionPaid(this._subscription) ? 'plan' : 'trial'
335-
} also includes access to the GitKraken DevEx platform, unleashing powerful Git visualization & productivity capabilities everywhere you work: IDE, desktop, browser, and terminal.`,
330+
detail: isSubscriptionPaid(this._subscription)
331+
? `Your ${
332+
isSubscriptionPaid(this._subscription) ? 'plan' : 'trial'
333+
} also includes access to the GitKraken DevEx platform, unleashing powerful Git visualization & productivity capabilities everywhere you work: IDE, desktop, browser, and terminal.`
334+
: `Verify the email we just sent you to start your Pro trial.`,
336335
},
337-
verify,
338-
learn,
339-
confirm,
336+
...([verify, learn, confirm].filter(Boolean) as MessageItem[]),
340337
);
341338

342339
if (result === verify) {
343340
void this.resendVerification(source);
344-
} else if (result === learn) {
341+
} else if (learn && result === learn) {
345342
void this.learnAboutPro({ source: 'prompt', detail: { action: 'trial-started-verify-email' } }, source);
346343
}
347344
} else if (isSubscriptionPaid(this._subscription)) {

src/quickpicks/items/directive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export function createDirectiveQuickPickItem(
6565
break;
6666
case Directive.StartProTrial:
6767
label = 'Start Pro Trial';
68-
detail = `Start your free ${proTrialLengthInDays}-day Pro trial for full access to Pro features`;
68+
detail = `Start your free ${proTrialLengthInDays}-day GitLens Pro trial - no credit card required.`;
6969
break;
7070
case Directive.RequiresVerification:
7171
label = 'Resend Email';
@@ -74,7 +74,7 @@ export function createDirectiveQuickPickItem(
7474
case Directive.RequiresPaidSubscription:
7575
label = 'Upgrade to Pro';
7676
if (detail != null) {
77-
description ??= ' \u2014\u00a0\u00a0 a paid plan is required to use this Pro feature';
77+
description ??= ' - access Launchpad and all Pro features with GitLens Pro';
7878
} else {
7979
detail = 'Upgrading to a paid plan is required to use this Pro feature';
8080
}

src/webviews/apps/plus/shared/components/feature-gate-plus-state.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { css, html, LitElement, nothing } from 'lit';
22
import { customElement, property, query } from 'lit/decorators.js';
3+
import { urls } from '../../../../../constants';
34
import { Commands } from '../../../../../constants.commands';
45
import { proTrialLengthInDays, SubscriptionState } from '../../../../../constants.subscription';
56
import type { Source } from '../../../../../constants.telemetry';
@@ -139,31 +140,30 @@ export class GlFeatureGatePlusState extends LitElement {
139140

140141
case SubscriptionState.ProPreviewExpired:
141142
return html`
143+
<p>
144+
Use on privately-hosted repos requires <a href="${urls.gitlensProVsCommunity}">GitLens Pro</a>.
145+
</p>
142146
<gl-button
143147
appearance="${appearance}"
144148
href="${generateCommandLink(Commands.PlusSignUp, this.source)}"
145-
>Start Pro Trial</gl-button
149+
>&nbsp;Try GitLens Pro&nbsp;</gl-button
146150
>
147151
<p>
148-
Start your free ${proTrialLengthInDays}-day Pro trial to try
149-
${this.featureWithArticleIfNeeded ? `${this.featureWithArticleIfNeeded} and other ` : ''}Pro
150-
features, or
152+
Start your free ${proTrialLengthInDays}-day GitLens Pro trial - no credit card required. Or
151153
<a href="${generateCommandLink(Commands.PlusLogin, this.source)}" title="Sign In">sign in</a>.
152154
</p>
153155
`;
154156

155157
case SubscriptionState.ProTrialExpired:
156-
return html` <gl-button
158+
return html`<p>
159+
Use on privately-hosted repos requires <a href="${urls.gitlensProVsCommunity}">GitLens Pro</a>.
160+
</p>
161+
<gl-button
157162
appearance="${appearance}"
158163
href="${generateCommandLink(Commands.PlusUpgrade, this.source)}"
159164
>Upgrade to Pro</gl-button
160165
>
161-
${this.renderPromo(promo)}
162-
<p>
163-
Your Pro trial has ended. Please upgrade for full access to
164-
${this.featureWithArticleIfNeeded ? `${this.featureWithArticleIfNeeded} and other ` : ''}Pro
165-
features.
166-
</p>`;
166+
${this.renderPromo(promo)}`;
167167

168168
case SubscriptionState.ProTrialReactivationEligible:
169169
return html`

src/webviews/apps/plus/shared/components/home-account-content.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,14 @@ export class GLHomeAccountContent extends LitElement {
361361
case SubscriptionState.ProTrialExpired:
362362
return html`
363363
<div class="account">
364-
<p>Your Pro trial has ended. You can now only use Pro features on publicly-hosted repos.</p>
364+
<p>
365+
Thank you for trying <a href="${urls.gitlensProVsCommunity}">GitLens Pro</a>. <br /><br />
366+
Continue leveraging Pro features and workflows on privately-hosted repos by upgrading today.
367+
</p>
365368
<button-container>
366369
<gl-button full href="command:gitlens.plus.upgrade">Upgrade to Pro</gl-button>
367370
</button-container>
368-
${this.renderPromo(promo)} ${this.renderIncludesDevEx()}
371+
${this.renderPromo(promo)}
369372
</div>
370373
`;
371374

@@ -395,15 +398,16 @@ export class GLHomeAccountContent extends LitElement {
395398
return html`
396399
<div class="account">
397400
<p>
398-
Sign up for access to Pro features and the
399-
<a href="${urls.platform}">GitKraken DevEx platform</a>, or
400-
<a href="command:gitlens.plus.login">sign in</a>.
401+
Unlock advanced workflows and professional developer features with
402+
<a href="${urls.gitlensProVsCommunity}">GitLens Pro</a>.
401403
</p>
402404
<button-container>
403-
<gl-button full href="command:gitlens.plus.signUp">Sign Up</gl-button>
405+
<gl-button full href="command:gitlens.plus.signUp">Try GitLens Pro</gl-button>
404406
</button-container>
405-
<p>Signing up starts your free ${proTrialLengthInDays}-day Pro trial.</p>
406-
${this.renderIncludesDevEx()}
407+
<p>
408+
Get ${proTrialLengthInDays} days of GitLens Pro for free - no credit card required. Or
409+
<a href="command:gitlens.plus.login">sign in</a>.
410+
</p>
407411
</div>
408412
`;
409413
}

0 commit comments

Comments
 (0)