New Sync page with advanced options #3657
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the Change
Introduces a refreshed Sync page with an Advanced Options section for setting additional parameters for a sync, bringing some of the functionality from the WP CLI command to the UI.
This PR includes a number things:
SyncProvider
component to support additional arguments when syncing. Auto syncing and initial sync management have been removed so that they can be managed at the UI level.SettingsScreenProvider
component that sets a common layout for ElasticPress settings screens and provides a method for displaying toast/snackbar type notifications.SyncSettingsProvider
component for managing the state of selected sync settings across components.The only regression against the current Sync page is that the previous sync status has been removed. The sync history will be added in a separate PR, now that #3647 has been merged.
This PR updates existing E2E tests for Syncing, but tests for new options will come separately.
Closes #3640
How to test the Change
Changelog Entry
Changed - Combined the separate Sync and Delete and Sync panels into a single panel with a checkbox to perform a Delete and Sync.
Added - Added the date and time to log messages on the Sync Page.
Added - Added Clear log and Copy log to clipboard buttons to the Sync page.
Added - Added Advanced Options to the Sync page for setting Content Types, Post Types, Object IDs, and an Offset for a sync.
Credits
Props @JakePT @felipeelia Apurv Ray @brandwaffle @anjulahettige
Checklist: