Skip to content
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

Reader Comments: Follow conversation via notifications #17363

Merged
merged 6 commits into from
Oct 27, 2021

Conversation

dvdchr
Copy link
Contributor

@dvdchr dvdchr commented Oct 25, 2021

Refs: pctCYC-9x-p2
Depends on #17369

This change enables the "Follow Conversation via Notifications" feature flag for the public. Additionally, this PR also addresses #17339 (comment) regarding localization strings placements.

For now, the strings are encapsulated in an enum in Swift, and exposed to the Obj-C side. Since the feature flag is not yet removed, it only returns the titles for enabling/disabling notifications. Once the feature flag is removed, I'll add the titles for following/unfollowing conversations.

To test

  • Go to Reader, and select any unsubscribed post.
  • Verify that the "Follow" button should be visible on the navigation bar.
  • Tap the Follow button.
  • Verify that the snackbar with the "Enable" action button is shown.
  • Tap on the "Enable" button.
  • Verify that a feedback notice with an "Undo" action button is shown.
  • Tap on the "Undo" action button.
  • Verify that a feedback notice is shown.
  • Verify that the Follow button has turned into a bell icon button in the navigation bar.
  • Go to Reader, and select any subscribed post.
  • Tap on the bell icon button.
  • Verify that the bottom sheet is shown.
  • Tap on the switch.
  • Dismiss the bottom sheet.
  • Verify that a feedback notification is shown, and correctly represents the desired state.
  • Tap the bell icon button again.
  • Tap on the Unfollow Conversation button.
  • Verify that a feedback notification is shown.
  • Verify that the bell icon button has now turned back into "Follow".

Related PRs:

Regression Notes

  1. Potential unintended areas of impact
    When updating from the previous version, the "follow conversation" state may be incorrectly represented (e.g. off when it's supposed to be on). Otherwise, the feature itself is pretty isolated so it should not impact other features.

  2. What I did to test those areas of impact (or what existing automated tests I relied on)
    Manually tested the feature.

  3. What automated tests I added (or what prevented me from doing so)
    Added unit tests for the service changes related to the follow conversation feature.

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.

@dvdchr dvdchr added this to the 18.6 milestone Oct 25, 2021
@dvdchr dvdchr requested a review from ScoutHarris October 25, 2021 17:06
@dvdchr dvdchr self-assigned this Oct 25, 2021
@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Oct 25, 2021

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

@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Oct 25, 2021

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

@ScoutHarris ScoutHarris changed the base branch from develop to feature/follow-conversation-bottom-sheet October 25, 2021 19:40
Copy link
Contributor

@ScoutHarris ScoutHarris left a comment

Choose a reason for hiding this comment

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

Additionally, this PR also addresses #17339 (comment) regarding localization strings placements.

OMG it's so much better! 😄 Thank you!

And all the tests checked out.

:shipit:

RELEASE-NOTES.txt Outdated Show resolved Hide resolved
@ScoutHarris
Copy link
Contributor

Hey @dvdchr . I see a reader_toggle_follow_conversation track when following a conversation is toggled, but not when Enable or Undo is selected on the snackbar, or in-app notifications is toggled via the sheet. Maybe we should add some tracking before release?

@dvdchr dvdchr changed the base branch from feature/follow-conversation-bottom-sheet to feature/follow-conversation-notification-tracks October 26, 2021 12:08
@dvdchr
Copy link
Contributor Author

dvdchr commented Oct 26, 2021

I see a reader_toggle_follow_conversation track when following a conversation is toggled, but not when Enable or Undo is selected on the snackbar, or in-app notifications is toggled via the sheet. Maybe we should add some tracking before release?

Hey @ScoutHarris! Good catch 👍 . I've added tracks through a different PR: #17369, and changed this PR's base branch to point to that branch.

Base automatically changed from feature/follow-conversation-notification-tracks to develop October 27, 2021 05:30
@dvdchr dvdchr enabled auto-merge October 27, 2021 10:17
@dvdchr dvdchr merged commit 42881bf into develop Oct 27, 2021
@dvdchr dvdchr deleted the feature/enable-follow-conversation branch October 27, 2021 10:43
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