Skip to content

Enhancement/12557 pdf footer#12836

Merged
aaemnnosttv merged 13 commits into
developfrom
enhancement/12557-pdf-footer
Jun 16, 2026
Merged

Enhancement/12557 pdf footer#12836
aaemnnosttv merged 13 commits into
developfrom
enhancement/12557-pdf-footer

Conversation

@eugene-manuilov

Copy link
Copy Markdown
Collaborator

Summary

Addresses issue:

Relevant technical choices

PR Author Checklist

  • My code is tested and passes existing unit tests.
  • My code has an appropriate set of unit tests which all pass.
  • My code is backward-compatible with WordPress 5.2 and PHP 7.4.
  • My code follows the WordPress coding standards.
  • My code has proper inline documentation.
  • I have added a QA Brief on the issue linked above.
  • I have signed the Contributor License Agreement (see https://cla.developers.google.com/).

Do not alter or remove anything below. The following sections will be managed by moderators only.

Code Reviewer Checklist

  • Run the code.
  • Ensure the acceptance criteria are satisfied.
  • Reassess the implementation with the IB.
  • Ensure no unrelated changes are included.
  • Ensure CI checks pass.
  • Check Storybook where applicable.
  • Ensure there is a QA Brief.
  • Ensure there are no unexpected significant changes to file sizes.

Merge Reviewer Checklist

  • Ensure the PR has the correct target branch.
  • Double-check that the PR is okay to be merged.
  • Ensure the corresponding issue has a ZenHub release assigned.
  • Add a changelog message to the issue.

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

🤖 This comment is automatically updated by CI workflows. Each section is managed independently.

📚 Storybook for 28dfad6:

  • Storybook has been deleted.

📦 Build files for 28dfad6:

  • Build files have been deleted.

🎭 Playwright reports for 28dfad6:

  • Reports have been deleted.

@aaemnnosttv aaemnnosttv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @eugene-manuilov – overall LGTM, just the one thing.

Comment thread assets/js/components/pdf-export/PDFExportOrchestrator.tsx Outdated
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Size Change: 0 B

Total Size: 2.89 MB

ℹ️ View Unchanged
Filename Size Change
dist/assets/blocks/reader-revenue-manager/block-editor-plugin/editor-styles.css 124 B 0 B
dist/assets/blocks/reader-revenue-manager/block-editor-plugin/editor-styles.js 0 B 0 B 🆕
dist/assets/blocks/reader-revenue-manager/block-editor-plugin/index.js 42.7 kB 0 B
dist/assets/blocks/reader-revenue-manager/common/editor-styles.css 307 B 0 B
dist/assets/blocks/reader-revenue-manager/common/editor-styles.js 0 B 0 B 🆕
dist/assets/blocks/reader-revenue-manager/contribute-with-google/index.js 5.8 kB 0 B
dist/assets/blocks/reader-revenue-manager/contribute-with-google/non-site-kit-user.js 5.01 kB 0 B
dist/assets/blocks/reader-revenue-manager/subscribe-with-google/index.js 5.81 kB 0 B
dist/assets/blocks/reader-revenue-manager/subscribe-with-google/non-site-kit-user.js 5 kB 0 B
dist/assets/blocks/sign-in-with-google/editor-styles.css 84 B 0 B
dist/assets/blocks/sign-in-with-google/editor-styles.js 0 B 0 B 🆕
dist/assets/blocks/sign-in-with-google/index.js 18.5 kB 0 B
dist/assets/css/googlesitekit-admin-css-********************.min.css 71 kB 0 B
dist/assets/css/googlesitekit-adminbar-css-********************.min.css 12.3 kB 0 B
dist/assets/css/googlesitekit-authorize-application-css-********************.min.css 851 B 0 B
dist/assets/css/googlesitekit-wp-dashboard-css-********************.min.css 8.9 kB 0 B
dist/assets/js/146-********************.js 960 B 0 B
dist/assets/js/201-********************.js 2.85 kB 0 B
dist/assets/js/273-********************.js 52.5 kB 0 B
dist/assets/js/314-********************.js 100 kB 0 B
dist/assets/js/315-********************.js 3.08 kB 0 B
dist/assets/js/379-********************.js 3.7 kB 0 B
dist/assets/js/397-********************.js 477 kB +3 B (0%)
dist/assets/js/590-********************.js 1.88 kB 0 B
dist/assets/js/640-********************.js 2.35 kB 0 B
dist/assets/js/909-********************.js 1.01 kB 0 B
dist/assets/js/analytics-advanced-tracking-********************.js 404 B 0 B
dist/assets/js/googlesitekit-activation-********************.js 25.1 kB 0 B
dist/assets/js/googlesitekit-ad-blocking-recovery-********************.js 60.9 kB 0 B
dist/assets/js/googlesitekit-admin-pointers-tracking-********************.js 5.36 kB 0 B
dist/assets/js/googlesitekit-adminbar-********************.js 36.3 kB 0 B
dist/assets/js/googlesitekit-api-********************.js 8.04 kB 0 B
dist/assets/js/googlesitekit-block-tracking-********************.js 5.56 kB 0 B
dist/assets/js/googlesitekit-components-********************.js 5.64 kB 0 B
dist/assets/js/googlesitekit-consent-mode-********************.js 26 kB 0 B
dist/assets/js/googlesitekit-data-********************.js 1.76 kB 0 B
dist/assets/js/googlesitekit-datastore-forms-********************.js 7.2 kB 0 B
dist/assets/js/googlesitekit-datastore-location-********************.js 1.52 kB 0 B
dist/assets/js/googlesitekit-datastore-pdf-********************.js 1.19 kB 0 B
dist/assets/js/googlesitekit-datastore-site-********************.js 18.7 kB 0 B
dist/assets/js/googlesitekit-datastore-ui-********************.js 7.35 kB 0 B
dist/assets/js/googlesitekit-datastore-user-********************.js 23.2 kB 0 B
dist/assets/js/googlesitekit-entity-dashboard-********************.js 74.2 kB 0 B
dist/assets/js/googlesitekit-events-provider-contact-form-7-********************.js 2.35 kB 0 B
dist/assets/js/googlesitekit-events-provider-easy-digital-downloads-********************.js 1.12 kB 0 B
dist/assets/js/googlesitekit-events-provider-mailchimp-********************.js 2.34 kB 0 B
dist/assets/js/googlesitekit-events-provider-ninja-forms-********************.js 2.3 kB 0 B
dist/assets/js/googlesitekit-events-provider-optin-monster-********************.js 2.22 kB 0 B
dist/assets/js/googlesitekit-events-provider-popup-maker-********************.js 2.44 kB 0 B
dist/assets/js/googlesitekit-events-provider-woocommerce-********************.js 1.08 kB 0 B
dist/assets/js/googlesitekit-events-provider-wpforms-********************.js 2.44 kB 0 B
dist/assets/js/googlesitekit-i18n-********************.js 4.43 kB 0 B
dist/assets/js/googlesitekit-key-metrics-setup-********************.js 54.5 kB 0 B
dist/assets/js/googlesitekit-main-dashboard-********************.js 177 kB 0 B
dist/assets/js/googlesitekit-metric-selection-********************.js 60 kB 0 B
dist/assets/js/googlesitekit-modules-********************.js 26.4 kB 0 B
dist/assets/js/googlesitekit-modules-ads-********************.js 47.5 kB 0 B
dist/assets/js/googlesitekit-modules-adsense-********************.js 138 kB 0 B
dist/assets/js/googlesitekit-modules-analytics-4-********************.js 205 kB 0 B
dist/assets/js/googlesitekit-modules-pagespeed-insights-********************.js 23.4 kB 0 B
dist/assets/js/googlesitekit-modules-reader-revenue-manager-********************.js 52.9 kB 0 B
dist/assets/js/googlesitekit-modules-search-console-********************.js 66 kB 0 B
dist/assets/js/googlesitekit-modules-sign-in-with-google-********************.js 34 kB 0 B
dist/assets/js/googlesitekit-modules-tagmanager-********************.js 30.8 kB 0 B
dist/assets/js/googlesitekit-notifications-********************.js 69.1 kB 0 B
dist/assets/js/googlesitekit-polyfills-********************.js 227 B 0 B
dist/assets/js/googlesitekit-settings-********************.js 136 kB 0 B
dist/assets/js/googlesitekit-splash-********************.js 80.9 kB 0 B
dist/assets/js/googlesitekit-user-input-********************.js 52.7 kB 0 B
dist/assets/js/googlesitekit-vendor-********************.js 314 kB 0 B
dist/assets/js/googlesitekit-vendor-lazy-pdf-********************.js 3.2 kB +146 B (+4.79%) 🔍
dist/assets/js/googlesitekit-widgets-********************.js 104 kB 0 B
dist/assets/js/googlesitekit-wp-dashboard-********************.js 61.7 kB 0 B
dist/assets/js/runtime-********************.js 1.95 kB 0 B

compressed-size-action

@aaemnnosttv aaemnnosttv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @eugene-manuilov – apologies for the delay.

A few quick points (one particularly important since the help center URL doesn't work as-is).

Otherwise, there are (hopefully minor) merge conflicts to address.

}
generatedAt={ generatedAt }
dashboardURL={ dashboardURL || '' }
helpCenterURL="https://sitekit.withgoogle.com/support/"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link 404s without the extra params. Let's update this to match what we use in email reports

'label' => __( 'Help Center', 'google-site-kit' ),
'url' => add_query_arg( 'doc', 'get-support', 'https://sitekit.withgoogle.com/support/' ),

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh... not sure why I missed that, but it should be fixed now. Thanks for spotting it. I also went ahead and updated support links to be hardcoded instead of being created with add_query_args for no reason.

Comment on lines +94 to +101
const props = {
dashboardURL:
'http://example.com/wp-admin/index.php?action=googlesitekit_go&to=dashboard',
helpCenterURL:
'http://example.com/wp-admin/index.php?action=googlesitekit_go&to=help-center',
privacyPolicyURL:
'http://example.com/wp-admin/index.php?action=googlesitekit_go&to=privacy-policy',
};

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize these are just for the test, but it sets the wrong expectation. Better to use obvious fake values if these tests aren't concerned about these matching the real/expected values and we just want to assert it matches the given props.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call — replaced the realistic golink-style URLs with obvious fakes (https://example.com/dashboard, etc.) so it's clear the test only asserts the props are passed through, not any real URL format.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, updated.

/**
* External dependencies
*/
import TestRenderer from 'react-test-renderer';

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason we're using this instead of the usual react testing library?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No good reason — switched to the project's standard render from @tests/js/test-utils to match the sibling tests (e.g. PDFEmailReportingNotice.test.tsx), dropping react-test-renderer and the custom collectLinks traversal in favor of container.querySelectorAll( 'pdf-link' ).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@aaemnnosttv aaemnnosttv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @eugene-manuilov

@aaemnnosttv

Copy link
Copy Markdown
Collaborator

Older E2E failure is one unrelated test.

@aaemnnosttv aaemnnosttv merged commit e413735 into develop Jun 16, 2026
42 of 43 checks passed
@aaemnnosttv aaemnnosttv deleted the enhancement/12557-pdf-footer branch June 16, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants