-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Jetpack Backup: Redirect back to main backup page when clicking on Back up now
button
#90834
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~0 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
@@ -81,15 +89,13 @@ const BackupNowButton: FunctionComponent< Props > = ( { | |||
} | |||
}, [ areBackupsStopped, backupCurrentlyInProgress, tooltipText, translate, enqueued, children ] ); | |||
|
|||
// TODO: If we want to re-enable the backup button we can set enqueue to false once we detect a backup in progress |
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.
This comment is no longer necessary.
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
Tested with Calypso and with Jetpack Cloud. It seems it only works in Jetpack Cloud, Is that expected |
@mavegaf Hmm, it should work on both. I'll take a look. Thanks! |
Removing siteSlug as a prop, and getting it from a selector inside the component. Add the logic to decide if we should show the `Copy site` button and add the onBackupNowClick inside this component.
… no longer needed
@mavegaf fixed! I did forget that we were rendering only the Could you take another look? :) |
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.
Tested in both, no errors in console 👍
Resolves https://github.com/Automattic/jetpack-backup-team/issues/482
Proposed Changes
onClick
handler onBackupNowButton
, that will give us more flexibility on adding custom logic when clicking that button.Back up now
button, so the user can monitor the progress of the backup being createdWhy are these changes being made?
Testing Instructions
Back up now
Today
and you should see the progress of the backup being created.To validate how it was working before, you can try the same steps in production.
Demo
CleanShot.2024-05-16.at.22.32.00.mp4
Pre-merge Checklist