Skip to content

Conversation

@hassaanelgarem
Copy link
Contributor

Part of #19450

Description

This PR displays a menu card during phase 3.

Notes

  • Track events will be handled in a future PR.
  • The following actions will be implemented in a future PR:
    • Tapping the card should open up an overlay
    • Tapping the ellipsis button and then tapping "Remind me later" should hide the card for a while.
    • Tapping the ellipsis button and then tapping "Hide this" should hide the card indefinitely.

Screenshots

/ Light Mode Dark Mode
Portrait portrait-light portrait-dark
Landscape landscape-light landscape-dark
iPad ipad-light ipad-dark
Menu menu-light menu-dark

Testing Instructions

Not showing the card

  1. Make sure that only the "Jetpack Features Removal Phase One" flag is enabled from the debug menu
  2. Kill the app
  3. Launch the app
  4. Make sure the menu card is not displayed
  5. Repeat the same for phases Two, Four, and normal phase (all flags disabled)

Showing the card with no link

  1. Make sure that only the "Jetpack Features Removal Phase Three" flag is enabled from the debug menu
  2. Kill the app
  3. Launch the app
  4. Make sure the menu card is displayed
  5. Make sure the learn more button is not displayed
  6. Make sure the card matches the design
  7. Tap on the ellipsis button
  8. Make sure that the context menu is displayed

Showing the card with a link

  1. Go to RemoteConfig.swift line 28
  2. Change the default value from nil to https://jetpack.com
  3. Make sure that only the "Jetpack Features Removal Phase Three" flag is enabled from the debug menu
  4. Kill the app
  5. Launch the app
  6. Make sure the menu card is displayed
  7. Tap on learn more
  8. Make sure that the provided link is opened in a web view

Regression Notes

  1. Potential unintended areas of impact
    N/A

  2. What I did to test those areas of impact (or what existing automated tests I relied on)
    N/A

  3. What automated tests I added (or what prevented me from doing so)
    N/A

PR submission checklist:

  • I have completed the Regression Notes.
  • I have considered adding unit tests for my changes.
  • 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.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Dec 15, 2022

You can test the changes in WordPress from this Pull Request by:
  • Clicking here or scanning the QR code below to access App Center
  • Then installing the build number pr19782-43ba84b on your iPhone

If you need access to App Center, please ask a maintainer to add you.

@wpmobilebot
Copy link
Contributor

You can test the changes in Jetpack from this Pull Request by:
  • Clicking here or scanning the QR code below to access App Center
  • Then installing the build number pr19782-43ba84b on your iPhone

If you need access to App Center, please ask a maintainer to add you.

Copy link
Contributor

@momo-ozawa momo-ozawa left a comment

Choose a reason for hiding this comment

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

Works as described!

Comment on lines +264 to +272
var toAction: UIAction {
switch self {
case .remindLater(let handler),
.hide(let handler):
return UIAction(title: title, image: image, attributes: []) { _ in
handler()
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Slick 🤩

@hassaanelgarem hassaanelgarem merged commit 450c1e7 into trunk Dec 18, 2022
@hassaanelgarem hassaanelgarem deleted the task/19450-phase-3-card branch December 18, 2022 12:57
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.

4 participants