Skip to content

Jetpack Section: Present action sheet for backup and restore#15555

Merged
momo-ozawa merged 9 commits intodevelopfrom
feature/15191-activity-cell-action-button
Jan 6, 2021
Merged

Jetpack Section: Present action sheet for backup and restore#15555
momo-ozawa merged 9 commits intodevelopfrom
feature/15191-activity-cell-action-button

Conversation

@momo-ozawa
Copy link
Copy Markdown
Contributor

@momo-ozawa momo-ozawa commented Dec 23, 2020

Part of #15191

  • Added .jetpackBackupAndRestore feature flag
  • Updated ActivityTableViewCell
    • Updated gridicon to ellipsis
    • Present an action sheet when tapping gridicon
Activity Log Action Sheet
Screen Shot 2020-12-24 at 9 16 45 Screen Shot 2020-12-24 at 9 16 51

To test:

.jetpackBackupAndRestore feature flag ON

  1. My Site > Activity Log > rewindable activity cell
    • ✅ Rewindable activity cells should display an ellipsis icon instead of a rewind icon
  2. Tap on ellipsis icon
    • ✅ Should present action sheet
    • ⚠️ Tapping on Restore, Download Backup won't do anything atm
  3. Go back to activity log
  4. Tap on activity cell
    • ✅ Should navigate to activity detail

.jetpackBackupAndRestore feature flag OFF

  1. My Site > Activity Log > rewindable activity cell
    • ✅ Rewindable activity cells should display a rewind icon
  2. Tap on rewind icon
    • ✅ Should navigate to activity detail
  3. Go back to activity log
  4. Tap on activity cell
    • ✅ Should navigate to activity detail

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 Dec 23, 2020

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

@peril-wordpress-mobile
Copy link
Copy Markdown

peril-wordpress-mobile bot commented Dec 23, 2020

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

@momo-ozawa momo-ozawa changed the title Feature/15191 activity cell action button Jetpack Section: Update ActivityTableViewCell UI Dec 24, 2020
@momo-ozawa momo-ozawa changed the title Jetpack Section: Update ActivityTableViewCell UI Jetpack Section: Present action sheet for backup and restore Dec 24, 2020
Copy link
Copy Markdown
Contributor

@leandroalonso leandroalonso left a comment

Choose a reason for hiding this comment

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

@momo-ozawa works as described!

A question tho: styling is going to be added in a subsequent task? (the button has blue color, not grey). Also, I think we can improve two things:

  • Make the button 44x44pt
  • Add a margin on the left side of the button

This doesn't necessarily need to be done in this task, just keep that in mind for the near future. :)


func presentRewindFor(activity: Activity) {
func presentDetailsFor(activity: FormattableActivity) {
let activityStoryboard = UIStoryboard(name: "Activity", bundle: nil)
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 know this code was already here, but perhaps we can improve it by using StoryboardLoadable and removing this boilerplate code?

@leandroalonso
Copy link
Copy Markdown
Contributor

@momo-ozawa I merged develop here to make the tests pass.

I'm not going to touch #15566 because I'm not sure if you already have any local changes and I don't want to create issues for you. :)

@momo-ozawa momo-ozawa merged commit dc628bd into develop Jan 6, 2021
@momo-ozawa momo-ozawa deleted the feature/15191-activity-cell-action-button branch January 6, 2021 01:56
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