diff --git a/projects/packages/my-jetpack/_inc/components/onboarding-screen/wizard/connected-notice.tsx b/projects/packages/my-jetpack/_inc/components/onboarding-screen/wizard/connected-notice.tsx index e33aaea55b24..0ece11824f39 100644 --- a/projects/packages/my-jetpack/_inc/components/onboarding-screen/wizard/connected-notice.tsx +++ b/projects/packages/my-jetpack/_inc/components/onboarding-screen/wizard/connected-notice.tsx @@ -1,18 +1,15 @@ +import { useReducedMotion } from '@wordpress/compose'; import { __ } from '@wordpress/i18n'; import { check } from '@wordpress/icons'; import { Icon, Text } from '@wordpress/ui'; import clsx from 'clsx'; import styles from './styles.module.scss'; -import { useReducedMotion } from './use-reduced-motion'; /** * The arrival moment, on the step the user lands on after connecting. * - * Connecting is the hardest thing in the flow and the likeliest to fail, and - * the ones who get through it used to land back here with nothing to say it - * worked. The mark blooms once, in the finish screen's own language at a - * smaller scale, and the line stays rather than fading: a confirmation that - * disappears on a timer is not a confirmation. + * The mark blooms once, in the finish screen's own language at a smaller scale. + * The line stays rather than fading: a confirmation on a timer is not one. * * @return The rendered notice. */ @@ -23,9 +20,8 @@ export function ConnectedNotice() {
{ /* - * Not rendered at all under reduced motion, which is a different - * render rather than a shorter animation; same call as the finish - * screen's, and the same reason it has to ask in JavaScript. + * Not rendered at all under reduced motion; see `.finish-wash` in + * the stylesheet. */ } { ! reduced && ( <> @@ -43,7 +39,7 @@ export function ConnectedNotice() { } className={ styles.connected__text }> - { __( 'Connected to WordPress.com', 'jetpack-my-jetpack' ) } + { __( 'Your site is connected', 'jetpack-my-jetpack' ) }
); diff --git a/projects/packages/my-jetpack/_inc/components/onboarding-screen/wizard/data-in-art.ts b/projects/packages/my-jetpack/_inc/components/onboarding-screen/wizard/data-in-art.ts new file mode 100644 index 000000000000..6d7d60dd13c0 --- /dev/null +++ b/projects/packages/my-jetpack/_inc/components/onboarding-screen/wizard/data-in-art.ts @@ -0,0 +1,9 @@ +// Generated by `node build.mjs` in jetpack-ai-heroes/jetpack-datain. +// Do not edit: re-export from Figma, rebuild there, and copy this file across. +// +// The Figma frame, its element map and the eight flow routes all live in that +// project; this is only its output. 47 KB of markup and CSS. + +/** The composition, markup and stylesheet together, for `dangerouslySetInnerHTML`. */ +export const dataInArt = + '\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'; diff --git a/projects/packages/my-jetpack/_inc/components/onboarding-screen/wizard/data-in.tsx b/projects/packages/my-jetpack/_inc/components/onboarding-screen/wizard/data-in.tsx new file mode 100644 index 000000000000..3b54f4cb170f --- /dev/null +++ b/projects/packages/my-jetpack/_inc/components/onboarding-screen/wizard/data-in.tsx @@ -0,0 +1,22 @@ +import { dataInArt } from './data-in-art'; +import styles from './styles.module.scss'; + +/** + * The plugins feeding the screen, on the step that asks which of them to switch + * on. The flow keeps looping rather than settling. + * + * `dangerouslySetInnerHTML` because the markup is a build-time constant from this + * repository and nothing user-supplied reaches it. See `data-in-art.ts`. + * + * @return The rendered artwork. + */ +export function DataInArt() { + return ( +