Skip to content

Commit

Permalink
add changes to messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiolms committed Nov 11, 2024
1 parent 9e78c0e commit 2a92d3e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
21 changes: 6 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19207,7 +19207,7 @@
},
{
"view": "gitlens.views.drafts",
"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).",
"contents": "Preview feature - requires an account and may require [GitLens Pro](https://help.gitkraken.com/gitlens/gitlens-community-vs-gitlens-pro/) in the future.\n[Try GitLens Pro](command:gitlens.plus.signUp?%7B%22source%22%3A%22cloud-patches%22%7D)\n\nGet 14 days of GitLens Pro for free - no credit card required. Or [sign in](command:gitlens.plus.login?%7B%22source%22%3A%22cloud-patches%22%7D).",
"when": "!gitlens:plus"
},
{
Expand Down Expand Up @@ -19251,12 +19251,12 @@
},
{
"view": "gitlens.views.launchpad",
"contents": "[Start Pro Trial](command:gitlens.plus.signUp?%7B%22source%22%3A%22launchpad-view%22%7D)\n\nStart your free 7-day Pro trial to try Launchpad and other Pro features, or [sign in](command:gitlens.plus.login?%7B%22source%22%3A%22launchpad-view%22%7D).",
"contents": "[Try GitLens Pro](command:gitlens.plus.signUp?%7B%22source%22%3A%22launchpad-view%22%7D)\n\nGet 14 days of GitLens Pro for free - no credit card required. Or [sign in](command:gitlens.plus.login?%7B%22source%22%3A%22launchpad-view%22%7D).",
"when": "!gitlens:launchpad:connect && gitlens:plus:required && gitlens:plus:state == 2"
},
{
"view": "gitlens.views.scm.grouped",
"contents": "[Start Pro Trial](command:gitlens.plus.signUp?%7B%22source%22%3A%22launchpad-view%22%7D)\n\nStart your free 7-day Pro trial to try Launchpad and other Pro features, or [sign in](command:gitlens.plus.login?%7B%22source%22%3A%22launchpad-view%22%7D).",
"contents": "[Try GitLens Pro](command:gitlens.plus.signUp?%7B%22source%22%3A%22launchpad-view%22%7D)\n\nGet 14 days of GitLens Pro for free - no credit card required. Or [sign in](command:gitlens.plus.login?%7B%22source%22%3A%22launchpad-view%22%7D).",
"when": "!gitlens:launchpad:connect && gitlens:plus:required && gitlens:plus:state == 2 && gitlens:views:scm:grouped:view == launchpad"
},
{
Expand Down Expand Up @@ -19330,7 +19330,7 @@
},
{
"view": "gitlens.views.workspaces",
"contents": "[Start Pro Trial](command:gitlens.plus.signUp?%7B%22source%22%3A%22workspaces%22%7D)\n\nStart your free 7-day Pro trial to try GitKraken (GK) Workspaces and other Pro features, or [sign in](command:gitlens.plus.login?%7B%22source%22%3A%22workspaces%22%7D).",
"contents": "Use on privately-hosted repos requires [GitLens Pro](https://help.gitkraken.com/gitlens/gitlens-community-vs-gitlens-pro/).\n[Start Pro Trial](command:gitlens.plus.signUp?%7B%22source%22%3A%22workspaces%22%7D)\n\nStart your free 7-day Pro trial to try GitKraken (GK) Workspaces and other Pro features, or [sign in](command:gitlens.plus.login?%7B%22source%22%3A%22workspaces%22%7D).",
"when": "!gitlens:plus"
},
{
Expand Down Expand Up @@ -19368,7 +19368,7 @@
},
{
"view": "gitlens.views.worktrees",
"contents": "[Continue](command:gitlens.plus.startPreviewTrial?%7B%22source%22%3A%22worktrees%22%7D)\n\nContinuing gives you 3 days to preview Worktrees and other local Pro features for 3 days. [Start 7-day Pro trial](command:gitlens.plus.signUp?%7B%22source%22%3A%22worktrees%22%7D) or [sign in](command:gitlens.plus.login?%7B%22source%22%3A%22worktrees%22%7D) for full access to Pro features.",
"contents": "Use on privately-hosted repos requires [GitLens Pro](https://help.gitkraken.com/gitlens/gitlens-community-vs-gitlens-pro/).\n[Continue](command:gitlens.plus.startPreviewTrial?%7B%22source%22%3A%22worktrees%22%7D)\n\nContinuing gives you 3 days to preview Worktrees and other local Pro features for 3 days. [Start 7-day Pro trial](command:gitlens.plus.signUp?%7B%22source%22%3A%22worktrees%22%7D) or [sign in](command:gitlens.plus.login?%7B%22source%22%3A%22worktrees%22%7D) for full access to Pro features.",
"when": "gitlens:plus:required && gitlens:plus:state == 0"
},
{
Expand All @@ -19378,7 +19378,7 @@
},
{
"view": "gitlens.views.worktrees",
"contents": "[Start Pro Trial](command:gitlens.plus.signUp?%7B%22source%22%3A%22worktrees%22%7D)\n\nStart your free 7-day Pro trial to try Worktrees and other Pro features, or [sign in](command:gitlens.plus.login?%7B%22source%22%3A%22worktrees%22%7D).",
"contents": "Use on privately-hosted repos requires [GitLens Pro](https://help.gitkraken.com/gitlens/gitlens-community-vs-gitlens-pro/).\n[Start Pro Trial](command:gitlens.plus.signUp?%7B%22source%22%3A%22worktrees%22%7D)\n\nStart your free 7-day Pro trial to try Worktrees and other Pro features, or [sign in](command:gitlens.plus.login?%7B%22source%22%3A%22worktrees%22%7D).",
"when": "gitlens:plus:required && gitlens:plus:state == 2"
},
{
Expand Down Expand Up @@ -19416,11 +19416,6 @@
"contents": "Limited-time sale: Save up to 80% on GitLens Pro",
"when": "gitlens:plus:required && gitlens:plus:state == 4 && gitlens:promo == devexdays && gitlens:views:scm:grouped:view == worktrees"
},
{
"view": "gitlens.views.worktrees",
"contents": "Your Pro trial has ended. Please upgrade for full access to Worktrees and other Pro features.",
"when": "gitlens:plus:required && gitlens:plus:state == 4"
},
{
"view": "gitlens.views.scm.grouped",
"contents": "Your Pro trial has ended. Please upgrade for full access to Worktrees and other Pro features.",
Expand All @@ -19436,10 +19431,6 @@
"contents": "[Continue](command:gitlens.plus.reactivateProTrial?%7B%22source%22%3A%22worktrees%22%7D)\n\nReactivate your Pro trial and experience Worktrees and all the new Pro features — free for another 7 days!",
"when": "gitlens:plus:required && gitlens:plus:state == 5 && gitlens:views:scm:grouped:view == worktrees"
},
{
"view": "gitlens.views.worktrees",
"contents": "Pro feature — requires a paid plan for use on privately-hosted repos."
},
{
"view": "gitlens.views.scm.grouped",
"contents": "Pro feature — requires a paid plan for use on privately-hosted repos.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ export class GlFeatureGatePlusState extends LitElement {
const appearance = (this.appearance ?? 'alert') === 'alert' ? 'alert' : nothing;
const promo = this.state ? getApplicablePromo(this.state, 'gate') : undefined;

const feature = this.source?.source || '';

switch (this.state) {
case SubscriptionState.VerificationRequired:
return html`
Expand All @@ -120,6 +122,12 @@ export class GlFeatureGatePlusState extends LitElement {

case SubscriptionState.Community:
return html`
${feature !== 'graph'
? html`<p>
Use on privately-hosted repos requires
<a href="${urls.gitlensProVsCommunity}">GitLens Pro</a>.
</p>`
: nothing}
<gl-button
appearance="${appearance}"
href="${generateCommandLink(Commands.PlusStartPreviewTrial, this.source)}"
Expand Down

0 comments on commit 2a92d3e

Please sign in to comment.