From 876ae0f12e14476a6eeafb5d974aa20cbe88be0b Mon Sep 17 00:00:00 2001 From: Keith Daulton Date: Thu, 10 Nov 2022 17:16:33 -0500 Subject: [PATCH] updates home view status popover - opens popover on subscription changes - adds button to dismiss popover --- src/storage.ts | 3 ++ src/webviews/apps/home/components/header-card.ts | 41 ++++++++++++++++++++-- src/webviews/apps/home/home.ts | 19 ++++++++-- .../apps/shared/components/overlays/pop-over.ts | 20 ++++------- src/webviews/home/homeWebviewView.ts | 27 ++++++++++++-- src/webviews/home/protocol.ts | 4 +++ 6 files changed, 94 insertions(+), 20 deletions(-) diff --git a/src/storage.ts b/src/storage.ts index 450d44d..288852d 100644 --- a/src/storage.ts +++ b/src/storage.ts @@ -139,6 +139,9 @@ export interface GlobalStorage { sections: { dismissed?: string[]; }; + status: { + pinned?: boolean; + }; }; pendingWelcomeOnFocus?: boolean; pendingWhatsNewOnFocus?: boolean; diff --git a/src/webviews/apps/home/components/header-card.ts b/src/webviews/apps/home/components/header-card.ts index 492ecbe..02fbb8f 100644 --- a/src/webviews/apps/home/components/header-card.ts +++ b/src/webviews/apps/home/components/header-card.ts @@ -13,8 +13,23 @@ const template = html`