Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: announcement modal and what's new for myinfo storage-mode #6892

Merged
merged 3 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 Singpass App-only with Myinfo or Singpass with Myinfo in your form's authentication settings.",
image: {
url: myInfoStorageMode,
alt: 'Myinfo fields for Storage mode forms',
},
},
{
// Announcement date: 2023-10-31
title: 'Introducing Folders!',
Expand Down
10 changes: 10 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,15 @@ 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 Singpass App-only with Myinfo or Singpass with Myinfo in your form's authentication 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
Loading