You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update assets/js/components/Notice/index.js to pass through new dismiss props and keep current behavior as default.
Use existing Button component for icon dismiss rendering in DismissButton.
Add scoped notice styles for icon dismiss button alignment only if needed, in _googlesitekit-notice.scss, backward-compatible.
Create component at assets/js/components/pdf-export/PDFReportSuccessSnackbar.js.
Reuse Notice (assets/js/components/Notice/index.js) as the base surface with type={ Notice.TYPES.SUCCESS } and className="googlesitekit-notice-snackbar--bottom-right googlesitekit-pdf-report-success-snackbar".
Use Notice built-in success icon for the left icon.
Render description text with inline retry link via createInterpolateElement + Link, and map retry click to onRetryDownload.
Use existing Button component for icon dismiss rendering in DismissButton.
Use for eq: dismissButton={{ variant: 'icon', icon: <CloseIcon />, ariaLabel: 'Dismiss', onClick: onDismiss }}
Implement auto-dismiss in component with useEffect, default autoDismissMS=10000, cleared on unmount; call onAutoDismiss when timer elapses.
Keep component presentational: no datastore selectors, no notification API registration, no export blob handling.
Add scoped Sass partial at assets/sass/components/pdf-export/_googlesitekit-pdf-report-success-snackbar.scss.
Import Sass partial in assets/sass/admin.scss
Keep all style overrides scoped to .googlesitekit-pdf-report-success-snackbar so existing Notice/Toast components remain unaffected.
Add Storybook stories at assets/js/components/pdf-export/PDFReportSuccessSnackbar.stories.js.
Include story for default state. (Only this scenario can be added to VRT)
Include story for long-copy wrapping behavior.
QA Brief
Verify that the new component (Storybook URL once the PR is open, e.g. https://storage.googleapis.com/site-kit-github-artifacts/storybook/pull/<PR>/index.html?path=/story/components-pdfexport-pdfreportsuccesssnackbar--default) matches the referenced Figma.
Feature Description
Create the component only for the Success snack bar for the PDF generation feature.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
assets/js/components/Notice/DismissButton.jswith optional mode (if not implemented as part of Create the Error snackbar component #12510):variant: 'text' | 'icon'(default'text')icon(React node, required whenvariant='icon')ariaLabel(required whenvariant='icon')assets/js/components/Notice/index.jsto pass through new dismiss props and keep current behavior as default.Buttoncomponent for icon dismiss rendering inDismissButton._googlesitekit-notice.scss, backward-compatible.assets/js/components/pdf-export/PDFReportSuccessSnackbar.js.Notice(assets/js/components/Notice/index.js) as the base surface withtype={ Notice.TYPES.SUCCESS }andclassName="googlesitekit-notice-snackbar--bottom-right googlesitekit-pdf-report-success-snackbar".Noticebuilt-in success icon for the left icon.createInterpolateElement+Link, and map retry click toonRetryDownload.Buttoncomponent for icon dismiss rendering inDismissButton.dismissButton={{ variant: 'icon', icon: <CloseIcon />, ariaLabel: 'Dismiss', onClick: onDismiss }}useEffect, defaultautoDismissMS=10000, cleared on unmount; callonAutoDismisswhen timer elapses.assets/sass/components/pdf-export/_googlesitekit-pdf-report-success-snackbar.scss.assets/sass/admin.scss.googlesitekit-pdf-report-success-snackbarso existingNotice/Toastcomponents remain unaffected.Test Coverage
assets/js/components/pdf-export/PDFReportSuccessSnackbar.test.js.onRetryDownloadis called when retry link is clicked.onDismissis called when close icon button is clicked.onAutoDismiss.disableAutoDismissprevents timer dismissal.assets/js/components/pdf-export/PDFReportSuccessSnackbar.stories.js.QA Brief
https://storage.googleapis.com/site-kit-github-artifacts/storybook/pull/<PR>/index.html?path=/story/components-pdfexport-pdfreportsuccesssnackbar--default) matches the referenced Figma.Changelog entry