Skip to content

Jetpack section in My Site#15287

Merged
yaelirub merged 8 commits intodevelopfrom
task/jetpack_section
Nov 16, 2020
Merged

Jetpack section in My Site#15287
yaelirub merged 8 commits intodevelopfrom
task/jetpack_section

Conversation

@yaelirub
Copy link
Copy Markdown
Contributor

@yaelirub yaelirub commented Nov 13, 2020

Fixes #15275

This PR groups Stats, Activity log and Jetpack Settings in the Jetpack section.
Jetpack settings have been extracted from site settings and now exist in both places.

This PR also renames JetpackSecuritySettingsViewController to JetpackSettingsViewController
and groups the the related classes under a new subfolder - Jetpack Settings

New Tracks:
jetpack_settings_viewed
jetpack_manage_connection_viewed
jetpack_disconnect_tapped
jetpack_disconnect_requested - (User selected disconnect in alert)

jetpack_section

To test:

  1. Go to My Site
  2. See the Jetpack Section
  3. See Jetpack Settings row only if you have a plan
  4. Test all new events are fired correctly
  5. Test it doesn't affect Quick Start

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.

 Stats, Activity log, Jetpack settings (which include security settings and manage connection)
- Added tracks
moved jetpack settings under new folder.
@peril-wordpress-mobile
Copy link
Copy Markdown

peril-wordpress-mobile bot commented Nov 13, 2020

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

@yaelirub yaelirub requested a review from emilylaguna November 13, 2020 02:46
@yaelirub
Copy link
Copy Markdown
Contributor Author

@emilylaguna, in addition to the code review and described testing could you please also:

  • Help improve the release note 😬
  • Test Quick start is not affected
    ?
    🙏

@peril-wordpress-mobile
Copy link
Copy Markdown

peril-wordpress-mobile bot commented Nov 13, 2020

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

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.

tl;dr Works well! Great job! Left a couple comments below.


Tested on:

  • iPhone 11 Pro - 14.0
  • iPad Air - 12.4
  • iPhone 5s 11.4

Jetpack Section

  • Verified the Activity Log option Jetpack section is visible for sites that support Activity Log, Stats, or have Jetpack settings
  • Verified the Jetpack Settings does not appear for sites that don't support it
  • Verified the Jetpack section is not visible if the site doesn't support Activity Log (meetomattic)
  • Verified each item in the section works

Jetpack Settings

  • Verified each option correctly changes the value on WP.com, tested by changing each option and verifying on Calypso
  • Verified Manage Connection will disconnect your site

Quick Start

  • Tested each step in Quick Start
  • Found 1 issue not related to this PR

Events: Tested and verified the following tracks are being fired

Event When
jetpack_settings_viewed When tapping on the 'Jetpack Settings' option
jetpack_manage_connection_viewed When tapping on the 'Manage connection' option
jetpack_disconnect_tapped When tapping the 'Disconnect' button on Manage Connection
jetpack_disconnect_requested When tapping Disconnect on the confirmation alert

NSParameterAssert(blog);

JetpackSecuritySettingsViewController *settings = [[JetpackSecuritySettingsViewController alloc] initWithBlog:blog];
JetpackSettingsViewController *settings = [[JetpackSettingsViewController alloc] initWithBlog:blog];
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.

Do we still need the 'Security' and 'Manage Connection' options on the Site Settings?

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.

As described, i chose to to keep them there for now. I can imagine that in the future we will remove them

@yaelirub yaelirub added this to the 16.3 milestone Nov 14, 2020
@yaelirub yaelirub force-pushed the task/jetpack_section branch from 50f62e6 to cbe1804 Compare November 14, 2020 21:25
@yaelirub
Copy link
Copy Markdown
Contributor Author

Ready for another look

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.

Looks good to me! 🚢

@yaelirub yaelirub merged commit 29fc35b into develop Nov 16, 2020
@yaelirub yaelirub deleted the task/jetpack_section branch November 16, 2020 21:24
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.

Jetpack Section: My Site Menu Improvements

3 participants