-
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
Update BackupDelta to use the backup of the selected date and show the activity log #40752
Update BackupDelta to use the backup of the selected date and show the activity log #40752
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~72 bytes removed 📉 [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. |
Don't render ActivityLog if we don't have rewindable activities Adapt BackupDelta to use the last backup from the selected date - Broken down the backup details snapshot into several renders - Removed the Activity Log from this component. That block is rendered now by the BackupsPage - Removed unused props and functions - Added util function to get the activities categorized based on the activities passed to it Provide to the ActivityCard the timezone and the gmtOffset of the site
69a5ab1
to
3e72626
Compare
Branch rebased. |
@@ -106,6 +76,22 @@ class BackupDelta extends Component { | |||
? mediaCreated.slice( 0, 2 ).concat( deletedElement ) | |||
: mediaCreated.slice( 0, 3 ); | |||
|
|||
return ( | |||
<Fragment> |
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.
lets use <> instead of
PR outdated |
Changes proposed in this Pull Request
[ HUGE ]
Styles not yet applied
Update BackupDelta to use the backup of the selected date, simplify the code and doing some clean up of the component.
getCategorizedActivities
function to utils to get the activities categorized based on the activities passed to itTesting instructions