Skip to content

Commit

Permalink
feat: announcement modal and what's new for myinfo storage-mode (#6892)
Browse files Browse the repository at this point in the history
* feat: add myinfo storage mode announcement

* feat: add graphic and amend copy

* fix: update copy
  • Loading branch information
wanlingt authored Nov 15, 2023
1 parent d5bbb4d commit 432ebdf
Show file tree
Hide file tree
Showing 4 changed files with 252 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/constants/localStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const LOCAL_STORAGE_EVENT = 'local-storage'
* Key to store whether a user has seen the rollout announcements before.
*/
export const ROLLOUT_ANNOUNCEMENT_KEY_PREFIX =
'has-seen-rollout-announcement-20231026-'
'has-seen-rollout-announcement-20231116-'

/**
* Key to store whether the admin has seen the feature tour in localStorage.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { GUIDE_PAYMENTS_ENTRY } from '~constants/links'

import { FeatureUpdateImage } from '~features/whats-new/FeatureUpdateList'

import myInfoStorageMode from '../../whats-new/assets/6-myinfo-storage.svg'
import foldersDashboard from '../../whats-new/assets/folders_dashboard.svg'
import PaymentsAnnouncementGraphic from '../assets/payments_announcement.svg'

Expand All @@ -14,6 +15,16 @@ export interface NewFeature {
// When updating this, remember to update the ROLLOUT_ANNOUNCEMENT_KEY_PREFIX with the new date
// so admins will see new announcements.
export const NEW_FEATURES: NewFeature[] = [
{
// Announcement date: 2023-11-16
title: 'Myinfo fields for Storage mode forms',
description:
'Get verified data from respondents by adding Myinfo fields to your Storage mode form. To enable Myinfo fields, select one of our Myinfo-enabled authentication options in your form’s settings.',
image: {
url: myInfoStorageMode,
alt: 'Myinfo fields for Storage mode forms',
},
},
{
// Announcement date: 2023-10-31
title: 'Introducing Folders!',
Expand Down
11 changes: 11 additions & 0 deletions frontend/src/features/whats-new/FeatureUpdateList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { GUIDE_PAYMENTS_ENTRY } from '~constants/links'
import Animation2 from './assets/2-payments.json'
import Animation3 from './assets/3-search-and-filter.json'
import Animation4 from './assets/4-dnd.json'
import MyInfoStorageMode from './assets/6-myinfo-storage.svg'
import foldersDashboard from './assets/folders_dashboard.svg'

// image can either be a static image (using url) or an animation (using animationData)
Expand Down Expand Up @@ -34,6 +35,16 @@ export const FEATURE_UPDATE_LIST: FeatureUpdateList = {
// Update version whenever a new feature is added.
version: 4,
features: [
{
title: 'Myinfo fields for Storage mode forms',
date: new Date('16 Nov 2023 GMT+8'),
description:
'Get verified data from respondents by adding Myinfo fields to your Storage mode form. To enable Myinfo fields, select one of our Myinfo-enabled authentication options in your form’s settings.',
image: {
url: MyInfoStorageMode,
alt: 'Myinfo fields for Storage mode forms',
},
},
{
title: 'Introducing Folders!',
date: new Date('31 Oct 2023 GMT+8'),
Expand Down
Loading

0 comments on commit 432ebdf

Please sign in to comment.