Skip to content

Jetpack Section: Activity Detail Download Backup Button#15683

Merged
momo-ozawa merged 7 commits intodevelopfrom
task/15191-activity-detail-backup
Jan 28, 2021
Merged

Jetpack Section: Activity Detail Download Backup Button#15683
momo-ozawa merged 7 commits intodevelopfrom
task/15191-activity-detail-backup

Conversation

@momo-ozawa
Copy link
Copy Markdown
Contributor

@momo-ozawa momo-ozawa commented Jan 21, 2021

Part of #15191

Description:

  • Added Download backup button to Activity Detail VC for rewindable activities
  • Added button action for Download file button in Restore Complete VC

Merge instructions:

To test:

  1. My Site > Activity Log
  2. Tap on a rewindable cell to view Activity Detail
    • Restore and Download backup buttons
  3. Tap on Download backup button
    • ✅ Should navigate to Backup Options VC
  4. Tap on Create downloadable file and wait until your backup completes
  5. Tap on Download file
    • ✅ Should open Safari with download prompt
Feature Flag OFF Feature Flag ON Download file -> Safari
IMG_1136 IMG_1137 IMG_1140

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@peril-wordpress-mobile
Copy link
Copy Markdown

peril-wordpress-mobile bot commented Jan 21, 2021

You can trigger an installable build for these changes by visiting CircleCI here.

@momo-ozawa momo-ozawa changed the base branch from develop to task/15191-backup-restore-more-error-handling January 21, 2021 07:37
@peril-wordpress-mobile
Copy link
Copy Markdown

peril-wordpress-mobile bot commented Jan 21, 2021

You can trigger optional UI/connected tests for these changes by visiting CircleCI here.

// TODO
guard let url = backup.url,
let downloadURL = URL(string: url) else {
return
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if in the future we should show an alert letting the user know their download URL didn't work. Thoughts?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed! 503b56a

Copy link
Copy Markdown
Contributor

@emilylaguna emilylaguna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! Works very well for me!

I left a non blocking comment below

@momo-ozawa momo-ozawa modified the milestones: 16.6, 16.7 Jan 25, 2021
Base automatically changed from task/15191-backup-restore-more-error-handling to develop January 28, 2021 01:27
@momo-ozawa momo-ozawa merged commit 1bff2e0 into develop Jan 28, 2021
@momo-ozawa momo-ozawa deleted the task/15191-activity-detail-backup branch January 28, 2021 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants