From b0bfd4f7e0c797bb9d9a6c382076ee077f28cc60 Mon Sep 17 00:00:00 2001 From: Jeff Daley Date: Thu, 20 Jul 2023 14:52:12 -0400 Subject: [PATCH 1/3] Announce new features --- .../dashboard/new-features-banner.hbs | 22 +++++++------------ .../dashboard/new-features-banner.ts | 18 ++++++++++----- web/app/templates/authenticated/dashboard.hbs | 2 ++ 3 files changed, 23 insertions(+), 19 deletions(-) diff --git a/web/app/components/dashboard/new-features-banner.hbs b/web/app/components/dashboard/new-features-banner.hbs index 2117c2d01..1cf70fb1a 100644 --- a/web/app/components/dashboard/new-features-banner.hbs +++ b/web/app/components/dashboard/new-features-banner.hbs @@ -1,28 +1,22 @@ -{{! @glint-nocheck: not typesafe yet }} {{#if this.isShown}} - New features available + New editor features.
    -
  • You can now create RFC, PRD, and FRD drafts!
  • -
  • Send a RFC, PRD, and FRD document for review. Hermes will - automatically email the approvers!
  • -
  • Approvers can now approve documents through Hermes.
  • -
  • Archive documents by marking them "obsolete".
  • +
  • Related resources: + Attach content to your doc such as other Hermes documents or external + links.
  • +
  • Shareable drafts: + You can now set your draft “shareable” to generate an org-friendly + link.
-
{{/if}} diff --git a/web/app/components/dashboard/new-features-banner.ts b/web/app/components/dashboard/new-features-banner.ts index 050827870..71607209c 100644 --- a/web/app/components/dashboard/new-features-banner.ts +++ b/web/app/components/dashboard/new-features-banner.ts @@ -3,7 +3,7 @@ import { tracked } from "@glimmer/tracking"; import window from "ember-window-mock"; import { action } from "@ember/object"; -let LOCAL_STORAGE_ITEM_NAME = "newFeaturesBanner"; +let LOCAL_STORAGE_ITEM_NAME = "july-20-2023-newFeatureBannerIsShown"; interface DashboardNewFeaturesBannerSignature { Args: {}; @@ -12,7 +12,12 @@ interface DashboardNewFeaturesBannerSignature { export default class DashboardNewFeaturesBanner extends Component { @tracked protected isDismissed = false; - isShown(): boolean { + /** + * Whether the banner should be shown. + * Set true on first visit to the dashboard and remains true + * until the user dismisses the banner. + */ + protected get isShown(): boolean { const storageItem = window.localStorage.getItem(LOCAL_STORAGE_ITEM_NAME); if (storageItem === null) { @@ -22,9 +27,12 @@ export default class DashboardNewFeaturesBanner extends Component + +

Welcome back, {{this.authenticatedUser.info.given_name}}

Here’s all the latest updates across the organization.

From ab093fa0eb6d55e089a57b98e6ca6d6b74170ef8 Mon Sep 17 00:00:00 2001 From: Jeff Daley Date: Thu, 20 Jul 2023 16:02:48 -0400 Subject: [PATCH 2/3] Tweak copy --- web/app/components/dashboard/new-features-banner.hbs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/web/app/components/dashboard/new-features-banner.hbs b/web/app/components/dashboard/new-features-banner.hbs index 1cf70fb1a..3297d5c42 100644 --- a/web/app/components/dashboard/new-features-banner.hbs +++ b/web/app/components/dashboard/new-features-banner.hbs @@ -10,12 +10,11 @@ New editor features.
    -
  • Related resources: - Attach content to your doc such as other Hermes documents or external +
  • Related resources + Attach content to your document such as other Hermes documents or external links.
  • -
  • Shareable drafts: - You can now set your draft “shareable” to generate an org-friendly - link.
  • +
  • Shareable drafts + You can now toggle your document draft visibility to “shareable” and generate a sharable link.
From 53b0fb8f7941a50c7189bb37c58f5c4a1752625f Mon Sep 17 00:00:00 2001 From: Jeff Daley Date: Fri, 21 Jul 2023 14:05:18 -0400 Subject: [PATCH 3/3] Add colons to strong text --- web/app/components/dashboard/new-features-banner.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/dashboard/new-features-banner.hbs b/web/app/components/dashboard/new-features-banner.hbs index 3297d5c42..0fc593958 100644 --- a/web/app/components/dashboard/new-features-banner.hbs +++ b/web/app/components/dashboard/new-features-banner.hbs @@ -10,10 +10,10 @@ New editor features.
    -
  • Related resources +
  • Related resources: Attach content to your document such as other Hermes documents or external links.
  • -
  • Shareable drafts +
  • Shareable drafts: You can now toggle your document draft visibility to “shareable” and generate a sharable link.