Browse Source

Updates plan banner text on the graph

main
Keith Daulton 2 years ago
parent
commit
d0e555e90f
1 changed files with 8 additions and 22 deletions
  1. +8
    -22
      src/webviews/apps/plus/graph/GraphWrapper.tsx

+ 8
- 22
src/webviews/apps/plus/graph/GraphWrapper.tsx View File

@ -245,13 +245,15 @@ export function GraphWrapper({
case SubscriptionState.Paid: case SubscriptionState.Paid:
return; return;
case SubscriptionState.FreeInPreview: case SubscriptionState.FreeInPreview:
case SubscriptionState.FreePlusInTrial:
icon = 'calendar'; icon = 'calendar';
modifier = 'neutral'; modifier = 'neutral';
content = ( content = (
<> <>
<p className="alert__title">Trial Preview</p>
<p className="alert__title">GitLens+ Trial</p>
<p className="alert__message"> <p className="alert__message">
You're able to view the Commit Graph with any repository until your preview expires
You can always use the Commit Graph on local and public repos, while private repos will
required a paid plan once your trial ends
{subscriptionSnapshot.previewTrial {subscriptionSnapshot.previewTrial
? ` ${fromNow(new Date(subscriptionSnapshot.previewTrial.expiresOn))}` ? ` ${fromNow(new Date(subscriptionSnapshot.previewTrial.expiresOn))}`
: ''} : ''}
@ -265,14 +267,14 @@ export function GraphWrapper({
modifier = 'warning'; modifier = 'warning';
content = ( content = (
<> <>
<p className="alert__title">Extend Your Trial</p>
<p className="alert__message">Sign in to extend your free trial an additional 7-days.</p>
<p className="alert__title">Extend Your GitLens+ Trial</p>
<p className="alert__message">Sign in to extend your free trial by an additional 7-days.</p>
</> </>
); );
actions = ( actions = (
<> <>
<a className="alert-action" href="command:gitlens.plus.loginOrSignUp"> <a className="alert-action" href="command:gitlens.plus.loginOrSignUp">
Try for 7-days
Extend Trial
</a>{' '} </a>{' '}
<a className="alert-action" href="command:gitlens.plus.purchase"> <a className="alert-action" href="command:gitlens.plus.purchase">
View Plans View Plans
@ -280,28 +282,12 @@ export function GraphWrapper({
</> </>
); );
break; break;
case SubscriptionState.FreePlusInTrial:
icon = 'calendar';
modifier = 'neutral';
content = (
<>
<p className="alert__title">Extended Trial</p>
<p className="alert__message">
You're able to view the Commit Graph with any repository until your trial expires
{subscriptionSnapshot.previewTrial
? ` ${fromNow(new Date(subscriptionSnapshot.previewTrial.expiresOn))}`
: ''}
.
</p>
</>
);
break;
case SubscriptionState.FreePlusTrialExpired: case SubscriptionState.FreePlusTrialExpired:
icon = 'warning'; icon = 'warning';
modifier = 'warning'; modifier = 'warning';
content = ( content = (
<> <>
<p className="alert__title">Trial Expired</p>
<p className="alert__title">GitLens+ Trial Expired</p>
<p className="alert__message"> <p className="alert__message">
Upgrade your account to use the Commit Graph and other GitLens+ features on private repos. Upgrade your account to use the Commit Graph and other GitLens+ features on private repos.
</p> </p>

Loading…
Cancel
Save