From 2c9a24d5cdef6423d76937e4a2a3e384141c8fc9 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 29 Mar 2022 01:28:28 -0400 Subject: [PATCH] Fixes update issues with the Home view Adds a GitLens features section to help avoid GitLens+ feeling like a gate --- src/storage.ts | 2 + src/webviews/apps/home/home.html | 11 +- src/webviews/apps/home/home.scss | 37 ++--- src/webviews/apps/home/home.ts | 152 ++++++++++++++------- src/webviews/apps/home/partials/links.html | 128 +++++++++-------- .../home/partials/state.free-preview-expired.html | 50 ++++--- .../apps/home/partials/state.free-preview.html | 99 +++++++------- src/webviews/apps/home/partials/state.free.html | 89 ++++++------ src/webviews/apps/home/partials/state.paid.html | 22 ++- .../home/partials/state.plus-trial-expired.html | 32 ++--- .../apps/home/partials/state.plus-trial.html | 38 +++--- .../apps/home/partials/state.verify-email.html | 10 +- src/webviews/apps/home/partials/views.html | 13 ++ src/webviews/apps/home/partials/welcome.html | 40 +++--- src/webviews/apps/shared/appBase.ts | 5 +- src/webviews/apps/shared/dom.ts | 12 +- src/webviews/home/homeWebviewView.ts | 85 ++++++++---- src/webviews/home/protocol.ts | 9 +- src/webviews/webviewViewBase.ts | 11 +- 19 files changed, 467 insertions(+), 378 deletions(-) create mode 100644 src/webviews/apps/home/partials/views.html diff --git a/src/storage.ts b/src/storage.ts index 351b066..ed683eb 100644 --- a/src/storage.ts +++ b/src/storage.ts @@ -72,6 +72,8 @@ export const enum StorageKeys { Avatars = 'gitlens:avatars', PendingWelcomeOnFocus = 'gitlens:pendingWelcomeOnFocus', PendingWhatsNewOnFocus = 'gitlens:pendingWhatsNewOnFocus', + HomeViewActionsCompleted = 'gitlens:home:actions:completed', + Version = 'gitlens:version', MigratedAuthentication = 'gitlens:plus:migratedAuthentication', diff --git a/src/webviews/apps/home/home.html b/src/webviews/apps/home/home.html index 029373e..58c076d 100644 --- a/src/webviews/apps/home/home.html +++ b/src/webviews/apps/home/home.html @@ -6,8 +6,14 @@
-
-
+
+
+
+
+
+
+ +
#{endOfBody}