Skip to content

Commit bf61966

Browse files
committed
Updates promos
1 parent dea011f commit bf61966

File tree

4 files changed

+26
-25
lines changed

4 files changed

+26
-25
lines changed

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19268,23 +19268,23 @@
1926819268
},
1926919269
{
1927019270
"view": "gitlens.views.launchpad",
19271-
"contents": "Limited-time sale: Save 33% or more on your 1st seat of Pro.",
19271+
"contents": "Save 33% or more on your 1st seat of Pro.",
1927219272
"when": "!gitlens:launchpad:connect && gitlens:plus:required && gitlens:plus:state == 4 && (gitlens:promo == pro50 || !gitlens:promo)"
1927319273
},
1927419274
{
1927519275
"view": "gitlens.views.scm.grouped",
19276-
"contents": "Limited-time sale: Save 33% or more on your 1st seat of Pro.",
19276+
"contents": "Save 33% or more on your 1st seat of Pro.",
1927719277
"when": "!gitlens:launchpad:connect && gitlens:plus:required && gitlens:plus:state == 4 && (gitlens:promo == pro50 || !gitlens:promo) && gitlens:views:scm:grouped:view == launchpad"
1927819278
},
1927919279
{
1928019280
"view": "gitlens.views.launchpad",
19281-
"contents": "Limited-time sale: Save up to 80% on GitLens Pro",
19282-
"when": "!gitlens:launchpad:connect && gitlens:plus:required && gitlens:plus:state == 4 && gitlens:promo == devexdays"
19281+
"contents": "Save more than 55% during our GitLens 16 sale!",
19282+
"when": "!gitlens:launchpad:connect && gitlens:plus:required && gitlens:plus:state == 4 && gitlens:promo == gitlens16"
1928319283
},
1928419284
{
1928519285
"view": "gitlens.views.scm.grouped",
19286-
"contents": "Limited-time sale: Save up to 80% on GitLens Pro",
19287-
"when": "!gitlens:launchpad:connect && gitlens:plus:required && gitlens:plus:state == 4 && gitlens:promo == devexdays && gitlens:views:scm:grouped:view == launchpad"
19286+
"contents": "Save more than 55% during our GitLens 16 sale!",
19287+
"when": "!gitlens:launchpad:connect && gitlens:plus:required && gitlens:plus:state == 4 && gitlens:promo == gitlens16 && gitlens:views:scm:grouped:view == launchpad"
1928819288
},
1928919289
{
1929019290
"view": "gitlens.views.launchpad",
@@ -19395,23 +19395,23 @@
1939519395
},
1939619396
{
1939719397
"view": "gitlens.views.worktrees",
19398-
"contents": "Limited-time sale: Save 33% or more on your 1st seat of Pro.",
19398+
"contents": "Save 33% or more on your 1st seat of Pro.",
1939919399
"when": "gitlens:plus:required && gitlens:plus:state == 4 && (gitlens:promo == pro50 || !gitlens:promo)"
1940019400
},
1940119401
{
1940219402
"view": "gitlens.views.scm.grouped",
19403-
"contents": "Limited-time sale: Save 33% or more on your 1st seat of Pro.",
19403+
"contents": "Save 33% or more on your 1st seat of Pro.",
1940419404
"when": "gitlens:plus:required && gitlens:plus:state == 4 && (gitlens:promo == pro50 || !gitlens:promo) && gitlens:views:scm:grouped:view == worktrees"
1940519405
},
1940619406
{
1940719407
"view": "gitlens.views.worktrees",
19408-
"contents": "Limited-time sale: Save up to 80% on GitLens Pro",
19409-
"when": "gitlens:plus:required && gitlens:plus:state == 4 && gitlens:promo == devexdays"
19408+
"contents": "Save more than 55% during our GitLens 16 sale!",
19409+
"when": "gitlens:plus:required && gitlens:plus:state == 4 && gitlens:promo == gitlens16"
1941019410
},
1941119411
{
1941219412
"view": "gitlens.views.scm.grouped",
19413-
"contents": "Limited-time sale: Save up to 80% on GitLens Pro",
19414-
"when": "gitlens:plus:required && gitlens:plus:state == 4 && gitlens:promo == devexdays && gitlens:views:scm:grouped:view == worktrees"
19413+
"contents": "Save more than 55% during our GitLens 16 sale!",
19414+
"when": "gitlens:plus:required && gitlens:plus:state == 4 && gitlens:promo == gitlens16 && gitlens:views:scm:grouped:view == worktrees"
1941519415
},
1941619416
{
1941719417
"view": "gitlens.views.worktrees",

src/constants.subscription.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const proPreviewLengthInDays = 3;
22
export const proTrialLengthInDays = 7;
33

4-
export type PromoKeys = 'devexdays' | 'pro50';
4+
export type PromoKeys = 'gitlens16' | 'pro50';
55

66
export const enum SubscriptionPlanId {
77
Community = 'community',

src/plus/gk/account/promos.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export interface Promo {
2121
// Must be ordered by applicable order
2222
const promos: Promo[] = [
2323
{
24-
key: 'devexdays',
25-
code: 'DEVEXDAYS24',
24+
key: 'gitlens16',
25+
code: 'GITLENS16',
2626
states: [
2727
SubscriptionState.Community,
2828
SubscriptionState.ProPreview,
@@ -31,12 +31,12 @@ const promos: Promo[] = [
3131
SubscriptionState.ProTrialExpired,
3232
SubscriptionState.ProTrialReactivationEligible,
3333
],
34-
startsOn: new Date('2024-10-13T06:59:00.000Z').getTime(),
35-
expiresOn: new Date('2024-11-08T06:59:00.000Z').getTime(),
36-
command: { tooltip: 'Limited-Time sale: Save up to 80% off GitLens Pro' },
34+
startsOn: new Date('2024-11-11T06:59:00.000Z').getTime(),
35+
expiresOn: new Date('2024-11-22T06:59:00.000Z').getTime(),
36+
command: { tooltip: 'Save more than 55% during our GitLens 16 sale!' },
3737
locations: ['account', 'badge', 'gate'],
3838
quickpick: {
39-
detail: '$(star-full) Limited-Time sale: Save up to 80% off GitLens Pro',
39+
detail: '$(star-full) Save more than 55% during our GitLens 16 sale!',
4040
},
4141
},
4242
{
@@ -49,9 +49,10 @@ const promos: Promo[] = [
4949
SubscriptionState.ProTrialExpired,
5050
SubscriptionState.ProTrialReactivationEligible,
5151
],
52-
command: { tooltip: 'Limited-Time sale: Save 33% or more on your 1st seat of Pro. See your special price' },
52+
command: { tooltip: 'Save 33% or more on your 1st seat of Pro.' },
53+
locations: ['account', 'badge', 'gate'],
5354
quickpick: {
54-
detail: '$(star-full) Limited-Time sale: Save 33% or more on your 1st seat of Pro',
55+
detail: '$(star-full) Save 33% or more on your 1st seat of Pro',
5556
},
5657
},
5758
];

src/webviews/apps/shared/components/promo.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class GlPromo extends LitElement {
6767
if (this.type === 'link') {
6868
return html`<a
6969
class="link"
70-
href="${this.promo.command ?? 'command:gitlens.plus.upgrade'}"
70+
href="${this.promo.command?.command ?? 'command:gitlens.plus.upgrade'}"
7171
title="${ifDefined(this.promo.command?.tooltip)}"
7272
>${promoHtml}</a
7373
>`;
@@ -81,12 +81,12 @@ export class GlPromo extends LitElement {
8181
switch (promo.key) {
8282
case 'pro50':
8383
return html`<span class="content${this.type === 'link' ? nothing : ' muted'}"
84-
>Limited-Time sale: <b>Save 33% or more</b> on your 1st seat of Pro</span
84+
><b>Save 33% or more</b> on your 1st seat of Pro</span
8585
>`;
8686

87-
case 'devexdays':
87+
case 'gitlens16':
8888
return html`<span class="content${this.type === 'link' ? nothing : ' muted'}"
89-
>Limited-time sale: <b>Save up to 80%</b> on GitLens Pro</span
89+
><b>Save more than 55%</b> during our GitLens 16 sale!</span
9090
>`;
9191
}
9292
}

0 commit comments

Comments
 (0)