Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance/#8786 - Implement JS entry point for RRM #8948

Merged
merged 44 commits into from
Jul 3, 2024

Conversation

hussain-t
Copy link
Collaborator

@hussain-t hussain-t commented Jul 1, 2024

Summary

Addresses issue:

Relevant technical choices

  • Added test files for the SetupMain, SettingsEdit, and SettingsView component.
  • Added storybook stories for the SetupMain, SettingsEdit, and SettingsView component.
  • Registers the RRM module with registerModule only when the rrmModule feature flag is enabled.
  • Add base test files for the datastore.
  • Unable to implement basic datastore tests without providing the settingSlugs to the createModuleStore. This will be implemented as part of #8793
  • The IB states to test the HTTPS requirements and the warning message. However, we don't test the module index file.
  • This PR tests the individual validation utilities, including the HHTS requirement utility.

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.

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.

Copy link

github-actions bot commented Jul 1, 2024

Size Change: +10.3 kB (+0.66%)

Total Size: 1.56 MB

Filename Size Change
./dist/assets/js/29-********************.js 0 B -2.76 kB (removed) 🏆
./dist/assets/js/30-********************.js 2.76 kB +503 B (+22.32%) 🚨
./dist/assets/js/31-********************.js 2.25 kB -1.39 kB (-38.14%) 🎉
./dist/assets/js/32-********************.js 3.64 kB +2.71 kB (+289.73%) 🆘
./dist/assets/js/33-********************.js 935 B +43 B (+4.82%) 🔍
./dist/assets/js/34-********************.js 892 B -2.22 kB (-71.36%) 🏆
./dist/assets/js/googlesitekit-activation-********************.js 24 kB -67 B (-0.28%)
./dist/assets/js/googlesitekit-ad-blocking-recovery-********************.js 59.4 kB +3 B (+0.01%)
./dist/assets/js/googlesitekit-adminbar-********************.js 34.8 kB -12 B (-0.03%)
./dist/assets/js/googlesitekit-api-********************.js 10.2 kB -7 B (-0.07%)
./dist/assets/js/googlesitekit-components-gm2-********************.js 5.88 kB -3 B (-0.05%)
./dist/assets/js/googlesitekit-data-********************.js 2.36 kB +2 B (+0.08%)
./dist/assets/js/googlesitekit-datastore-forms-********************.js 9.13 kB -6 B (-0.07%)
./dist/assets/js/googlesitekit-datastore-location-********************.js 2.08 kB -2 B (-0.1%)
./dist/assets/js/googlesitekit-datastore-site-********************.js 19.9 kB -83 B (-0.42%)
./dist/assets/js/googlesitekit-datastore-ui-********************.js 10.1 kB -12 B (-0.12%)
./dist/assets/js/googlesitekit-datastore-user-********************.js 25.1 kB -89 B (-0.35%)
./dist/assets/js/googlesitekit-entity-dashboard-********************.js 74 kB -5 B (-0.01%)
./dist/assets/js/googlesitekit-main-dashboard-********************.js 123 kB -49 B (-0.04%)
./dist/assets/js/googlesitekit-modules-********************.js 22.2 kB -24 B (-0.11%)
./dist/assets/js/googlesitekit-modules-ads-********************.js 29.5 kB -63 B (-0.21%)
./dist/assets/js/googlesitekit-modules-adsense-********************.js 113 kB +11 B (+0.01%)
./dist/assets/js/googlesitekit-modules-analytics-4-********************.js 143 kB +115 B (+0.08%)
./dist/assets/js/googlesitekit-modules-pagespeed-insights-********************.js 22.6 kB -39 B (-0.17%)
./dist/assets/js/googlesitekit-modules-search-console-********************.js 58.4 kB -457 B (-0.78%)
./dist/assets/js/googlesitekit-modules-tagmanager-********************.js 31.9 kB -210 B (-0.65%)
./dist/assets/js/googlesitekit-settings-********************.js 61.6 kB +19 B (+0.03%)
./dist/assets/js/googlesitekit-splash-********************.js 72.8 kB -131 B (-0.18%)
./dist/assets/js/googlesitekit-user-input-********************.js 48.1 kB -3 B (-0.01%)
./dist/assets/js/googlesitekit-vendor-********************.js 317 kB +394 B (+0.12%)
./dist/assets/js/googlesitekit-widgets-********************.js 60.6 kB -294 B (-0.48%)
./dist/assets/js/googlesitekit-wp-dashboard-********************.js 61.6 kB +2 B (0%)
./dist/assets/js/runtime-********************.js 1.3 kB +3 B (+0.23%)
./dist/assets/js/35-********************.js 3.12 kB +3.12 kB (new file) 🆕
./dist/assets/js/googlesitekit-modules-reader-revenue-manager-********************.js 11.3 kB +11.3 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size
./dist/assets/css/googlesitekit-admin-css-********************.min.css 55.1 kB
./dist/assets/css/googlesitekit-adminbar-css-********************.min.css 11.2 kB
./dist/assets/css/googlesitekit-authorize-application-css-********************.min.css 770 B
./dist/assets/css/googlesitekit-wp-dashboard-css-********************.min.css 7.47 kB
./dist/assets/js/analytics-advanced-tracking-********************.js 776 B
./dist/assets/js/contact-form-7-********************.js 645 B
./dist/assets/js/easy-digital-downloads-********************.js 615 B
./dist/assets/js/googlesitekit-components-gm3-********************.js 10.1 kB
./dist/assets/js/googlesitekit-i18n-********************.js 3.92 kB
./dist/assets/js/googlesitekit-polyfills-********************.js 377 B
./dist/assets/js/mailchimp-********************.js 629 B
./dist/assets/js/ninja-forms-********************.js 727 B
./dist/assets/js/optin-monster-********************.js 673 B
./dist/assets/js/popup-maker-********************.js 634 B
./dist/assets/js/woocommerce-********************.js 652 B
./dist/assets/js/wpforms-********************.js 632 B

compressed-size-action

Copy link

github-actions bot commented Jul 2, 2024

Build files for 180e164 have been deleted.

Copy link
Collaborator

@techanvil techanvil left a comment

Choose a reason for hiding this comment

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

Thanks @hussain-t, this is most of the way there. I've left a few comments, please take a look.

assets/js/modules/reader-revenue-manager/index.js Outdated Show resolved Hide resolved
const { haveSettingsChanged, isDoingSubmitChanges, getPublicationID } =
strictSelect( MODULES_READER_REVENUE_MANAGER );

// Note: these error messages are referenced in test assertions.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This comment looks copy/pasted and doesn't seem accurate...

includes/Modules/Reader_Revenue_Manager.php Outdated Show resolved Hide resolved
Copy link
Collaborator

@techanvil techanvil left a comment

Choose a reason for hiding this comment

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

Thanks @hussain-t, just a few more minor points to address.

Copy link
Collaborator

@techanvil techanvil left a comment

Choose a reason for hiding this comment

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

LGTM, nice one @hussain-t!

@techanvil techanvil merged commit 08388e7 into develop Jul 3, 2024
29 of 30 checks passed
@techanvil techanvil deleted the enhance/#8786-add-rrm-js-entry-point branch July 3, 2024 21:58
@aaemnnosttv aaemnnosttv mentioned this pull request Jul 26, 2024
18 tasks
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.

5 participants