-
Notifications
You must be signed in to change notification settings - Fork 796
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
Search package: move search dashboard to package ( the base ) (1/2) #21865
Conversation
…e rest controller
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
Backup plugin:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noted things below, but nothing that cannot be fixed in follow-up PRs so I'm approving so we can move on.
@import "../../scss/calypso-colors"; | ||
@import "../../scss/color-functions"; | ||
@import "../../scss/functions/rem"; | ||
@import "../../scss/typography"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll probably want to move towards using the base-styles package instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will try to use the package in the following PR.
return successNotice( __( 'Updated settings.' ) ); | ||
} catch ( e ) { | ||
yield setJetpackSettings( oldSettings ); | ||
return errorNotice( __( 'Error Update settings…' ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return successNotice( __( 'Updated settings.' ) ); | |
} catch ( e ) { | |
yield setJetpackSettings( oldSettings ); | |
return errorNotice( __( 'Error Update settings…' ) ); | |
return successNotice( __( 'Updated settings.', 'jetpack' ) ); | |
} catch ( e ) { | |
yield setJetpackSettings( oldSettings ); | |
return errorNotice( __( 'Error Update settings…', 'jetpack' ) ); |
return setSearchPlanInfo( planInfo ); | ||
} | ||
} catch ( e ) { | ||
return errorNotice( __( 'Error fetching search plan…' ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return errorNotice( __( 'Error fetching search plan…' ) ); | |
return errorNotice( __( 'Error fetching search plan…', 'jetpack' ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeherve oops, thanks for catching this, will address in the following PR. And will see how to add the check here.
return setJetpackSettings( settings ); | ||
} | ||
} catch ( e ) { | ||
return errorNotice( __( 'Error fetching settings…' ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return errorNotice( __( 'Error fetching settings…' ) ); | |
return errorNotice( __( 'Error fetching settings…', 'jetpack' ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeherve oops, thanks for catching this, will address in the following PR.
Caution: This PR has changes that must be merged to WordPress.com |
Great news! One last step: head over to your WordPress.com diff, D70721-code, and commit it. Thank you! |
🚢 r235709-wpcom |
* master: (22 commits) Update storybook monorepo to v6.4.0 (#21897) Refresh the site's modules and settings after successful product activation (#21886) Plugin Install: Bump MC stat on success or fail. (#21893) Nav Unification: Use correct user capability for the Inbox menu item (#21882) Jetpack: Extend disconnection dialog component to handle multiple steps and accept more props (#21048) Disable CSSTidy property shorthand optimization in the editor or headstart (#21891) Connection UI: Update Composer instructions in README.md (#21890) Partner Compatibility: Adding a unique connection screen for customers who receive a coupon from a Jetpack partner (#21813) Search package: move search dashboard to package - the base (#21865) JITM: wrap CTA below text on small viewports (#21688) Licensing JS Package – fix icon positioning and width (#21878) JITM: new JS and CSS builder (#21874) Support site_intent for `/me/sites` endpoint (#21880) Don't render Critical CSS while generating CritCSS. (#21879) ConnectScreen: make button full width on small screens (#21683) Improve the copy of the license activation banner (#21876) Rename Webpack-built files back from `.min.js` and remove hashes (#21748) Search: Migrate more helper classes to package (#21751) Search: migrate/add search rest API (#21584) Add initial state to the connection package (#21864) ...
Changes proposed in this Pull Request:
The PR is a combination of #21840, #21841 and #21842, which includes the dependencies duplicated from Jetpack and a new state store. The PR doesn't touch the Jetpack the plugin (except for a dependency update) and will serve as a base to migrate the search dashboard on.
As the individual PRs were all reviewed by the search team already ( and most the team is on AFK now ), so I'm sending this for crew review straightly.
#21840 (commit)
#21841 (commit)
#21842 (commit)
Jetpack product discussion
n/a
Does this pull request change what data or activity we track or use?
no
Testing instructions:
(cd projects/packages/search && pnpm test)
(cd projects/packages/search && composer phpunit)