From d0e555e90fa37a93431d5ddaf8d7574462fe9290 Mon Sep 17 00:00:00 2001 From: Keith Daulton Date: Mon, 29 Aug 2022 10:24:13 -0400 Subject: [PATCH] Updates plan banner text on the graph --- src/webviews/apps/plus/graph/GraphWrapper.tsx | 30 +++++++-------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/src/webviews/apps/plus/graph/GraphWrapper.tsx b/src/webviews/apps/plus/graph/GraphWrapper.tsx index 023156c..02bdbbf 100644 --- a/src/webviews/apps/plus/graph/GraphWrapper.tsx +++ b/src/webviews/apps/plus/graph/GraphWrapper.tsx @@ -245,13 +245,15 @@ export function GraphWrapper({ case SubscriptionState.Paid: return; case SubscriptionState.FreeInPreview: + case SubscriptionState.FreePlusInTrial: icon = 'calendar'; modifier = 'neutral'; content = ( <> -

Trial Preview

+

GitLens+ Trial

- 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 ? ` ${fromNow(new Date(subscriptionSnapshot.previewTrial.expiresOn))}` : ''} @@ -265,14 +267,14 @@ export function GraphWrapper({ modifier = 'warning'; content = ( <> -

Extend Your Trial

-

Sign in to extend your free trial an additional 7-days.

+

Extend Your GitLens+ Trial

+

Sign in to extend your free trial by an additional 7-days.

); actions = ( <> - Try for 7-days + Extend Trial {' '} View Plans @@ -280,28 +282,12 @@ export function GraphWrapper({ ); break; - case SubscriptionState.FreePlusInTrial: - icon = 'calendar'; - modifier = 'neutral'; - content = ( - <> -

Extended Trial

-

- You're able to view the Commit Graph with any repository until your trial expires - {subscriptionSnapshot.previewTrial - ? ` ${fromNow(new Date(subscriptionSnapshot.previewTrial.expiresOn))}` - : ''} - . -

- - ); - break; case SubscriptionState.FreePlusTrialExpired: icon = 'warning'; modifier = 'warning'; content = ( <> -

Trial Expired

+

GitLens+ Trial Expired

Upgrade your account to use the Commit Graph and other GitLens+ features on private repos.