Repository navigation
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces the FeatureDiscoverySetupFailureNotification component and registers new notifications to handle cases where a user cancels or denies the Google consent screen during feature setup. It also updates the module activation flow to support an errorRedirectURL option, ensuring users are redirected back to the features page upon failure. One issue was identified in the features.ts datastore where getAdminURL is called without first resolving getSiteInfo, which could result in an undefined redirect URL.
| const errorRedirectURL = registry | ||
| .select( CORE_SITE ) | ||
| .getAdminURL( 'googlesitekit-features' ); |
There was a problem hiding this comment.
The getAdminURL selector on CORE_SITE depends on getSiteInfo being resolved. If getSiteInfo is not yet resolved, getAdminURL will return undefined. To ensure it always returns the correct URL, we should yield the resolution of getSiteInfo before calling getAdminURL.
yield commonActions.await(
registry.resolveSelect( CORE_SITE ).getSiteInfo()
);
const errorRedirectURL = registry
.select( CORE_SITE )
.getAdminURL( 'googlesitekit-features' );
📚 Storybook for fd6f90b: 📦 Build files for fd6f90b:
🖼️ VRT report for fd6f90b:
🎭 Playwright reports for fd6f90b: |
|
Size Change: 0 B Total Size: 3.5 MB ℹ️ View Unchanged
|
Summary
Related issue(s):
Relevant technical choices
PR Author Checklist
Do not alter or remove anything below. The following sections will be managed by moderators only.
Code Reviewer Checklist
Merge Reviewer Checklist