Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions src/modules/whats-new/assets/survey-illustration.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 13 additions & 9 deletions src/modules/whats-new/components/whats-new-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ import cliIllustration from 'src/modules/whats-new/assets/cli-illustration.svg';
import preferredAppsIllustration from 'src/modules/whats-new/assets/preferred-apps-illustration.svg';
import pressableSyncIllustration from 'src/modules/whats-new/assets/pressable-sync-illustration.svg';
import selectiveSyncIllustration from 'src/modules/whats-new/assets/selective-sync-illustration.svg';
import surveyIllustration from 'src/modules/whats-new/assets/survey-illustration.svg';
import { useI18nLocale } from 'src/stores';

interface WhatsNewPage {
image: string;
title: string;
description: ReactNode;
learnMoreUrl?: string;
learnMoreLabel?: string;
}

interface WhatsNewModalProps {
Expand All @@ -28,6 +30,7 @@ const PageContent = ( {
title,
description,
learnMoreUrl,
learnMoreLabel,
isIntroPage = false,
}: Omit< WhatsNewPage, 'image' > & { isIntroPage?: boolean } ) => (
<div className="px-8 pt-3 pb-2 flex flex-col h-full">
Expand All @@ -46,7 +49,7 @@ const PageContent = ( {
onClick={ () => getIpcApi().openURL( learnMoreUrl ) }
className="text-a8c-blue-50 text-m leading-s cursor-pointer"
>
{ __( 'Learn more' ) }
{ learnMoreLabel || __( 'Learn more' ) }
</button>
) }
</div>
Expand All @@ -56,6 +59,15 @@ const PageContent = ( {
export default function WhatsNewModal( { showModal, onClose }: WhatsNewModalProps ) {
const locale = useI18nLocale();
const whatsNewPages: WhatsNewPage[] = [
{
image: surveyIllustration,
title: __( "Got a minute? Here's a survey." ),
description: __(
"We'd love your thoughts on Studio and what would make it even better. Your response will help us prioritize what to build next."
),
learnMoreUrl: 'https://survey.survicate.com/8498ba9db0955a20/?p=anonymous',
learnMoreLabel: __( 'Take the survey' ),
},
{
image: blueprintsIllustration,
title: __( 'Introducing Blueprints, a new way to streamline site creation.' ),
Expand All @@ -80,14 +92,6 @@ export default function WhatsNewModal( { showModal, onClose }: WhatsNewModalProp
),
learnMoreUrl: getLocalizedLink( locale, 'docsSync' ),
},
{
image: preferredAppsIllustration,
title: __( 'Choose your preferred apps' ),
description: __(
'Select your preferred code editor and terminal app in the redesigned Settings modal.'
),
learnMoreUrl: getLocalizedLink( locale, 'blogPreferredApps' ),
},
{
image: cliIllustration,
title: __( 'Introducing Studio CLI' ),
Expand Down