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
onCancel is a required prop callback invoked from the Cancel action; cancellation side effects should be handled by the integrating parent/orchestrator, not by this component.
Ensure component is presentational only (no datastore/selectors/notification registration side effects).
Add scoped styles in assets/sass/components/pdf-export/_googlesitekit-pdf-report-progress-snackbar.scss.
Import the new partial in admin.scss
Keep all visual overrides under .googlesitekit-pdf-report-progress-snackbar to avoid regressions in existing notice/toast components.
Verify progressbar is present and updates from progress prop.
Verify onCancel is called on Cancel click.
Add PDFReportProgressSnackbar.stories.js with:
Initial progress
Mid progress (we can include only this scenario to the VRT)
Near-complete progress
QA Brief
Scope: Component-only delivery. There is no integration into the PDF export flow yet, the component is verified through Storybook.
Where to find it: Storybook → Components / PDFExport / PDFReportProgressSnackbar. Three stories: Initial (5%), MidProgress (50%, included in VRT), NearComplete (90%).
Visual: Confirm each story matches the Figma design.
Feature Description
Create the component only for the Progress 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
aria-live="polite"or equivalent).Implementation Brief
assets/js/components/pdf-export/PDFReportProgressSnackbar.tsx.assets/js/components/Noticecomponentgooglesitekit-notice-snackbar--bottom-rightclass to adapt snackbar behaviourassets/js/googlesitekit/components-gm2/ProgressBar.jsas determinate (indeterminate={ false },compress,height={ 8 },progressin 0..1).Noticebelow progress bar usingNotice.TYPES.INFO_ALT_2,hideIcon, and a dismiss action labeledCancel.progress,onCancel,title,description,cancelLabel,className.onCancelis a required prop callback invoked from the Cancel action; cancellation side effects should be handled by the integrating parent/orchestrator, not by this component.assets/sass/components/pdf-export/_googlesitekit-pdf-report-progress-snackbar.scss.admin.scss.googlesitekit-pdf-report-progress-snackbarto avoid regressions in existing notice/toast components.Test Coverage
PDFReportProgressSnackbar.test.ts.title/description/cancelLabelrender.progressbaris present and updates fromprogressprop.onCancelis called on Cancel click.PDFReportProgressSnackbar.stories.jswith:QA Brief
Components / PDFExport / PDFReportProgressSnackbar. Three stories:Initial(5%),MidProgress(50%, included in VRT),NearComplete(90%).Changelog entry