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

Notifications: mark individual note as read #448

Merged
merged 6 commits into from
Nov 20, 2018
Merged

Conversation

bummytime
Copy link
Member

Another quick PR which adds the mark-as-read logic to NotificationsViewController. A note will be updated as read when a user taps on a specific notification in the list screen (and the note is not already "read").

Ref: #19

Testing

Scenario 1: Send mark-as-read update when tapping on unread notif

  1. Set a breakpoint on L219 in NotificationsViewController
  2. Build and run the app
  3. On the web, review a product and wait to receive the notification
  4. In WCiOS navigate to the Notifications tab and tap on the new notification
  5. Verify the breakpoint on L219 is hit
  6. After a few moments, verify the notif is marked as read on the web

Scenario 2: Don't send update if notification is already read

  1. Set a breakpoint on L215 in NotificationsViewController
  2. Build and run the app
  3. In WCiOS navigate to the Notifications tab and tap on an already-read notification
  4. Verify the breakpoint on L215 is hit

@jleandroperez could you take a quick peek at this?

@bummytime bummytime added the feature: notifications Related to notifications or notifs. label Nov 19, 2018
@bummytime bummytime added this to the 0.12 milestone Nov 19, 2018
@bummytime bummytime self-assigned this Nov 19, 2018
@bummytime bummytime added this to MVLP Backlog in MVLP Kanban Board via automation Nov 19, 2018
@bummytime bummytime moved this from MVLP Backlog to Review/Testing in MVLP Kanban Board Nov 19, 2018
@astralbodies astralbodies mentioned this pull request Nov 19, 2018
39 tasks
Copy link
Collaborator

@jleandroperez jleandroperez left a comment

Choose a reason for hiding this comment

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

Looks PERFECT end to end!!!

:shipit:

@@ -51,7 +51,7 @@ struct StringFormatter {

// MARK: - Private
//
private extension StringFormatter {
private extension StringFormatter {
Copy link
Collaborator

Choose a reason for hiding this comment

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

THANK you!!!!

… issue/19-mark-as-read

* 'develop' of github.com:woocommerce/woocommerce-ios:
  NoteDetailsCommentTableViewCell: Fixes clipping
  NotificationsViewController: Temporary Fix
  Addressing Linter Warnings
  Don't run 'pod repo update' from 'rake dependencies'
  Bump cocoapods-repo-update to 0.0.3
  Update usage description in Info.plist
  Added last seen logic to NotificationsVC
  Update translations
  Updating version to Mark 0.11
  NotificationDetailsViewController: Adding Comments
  NoteDetailsCommentTableViewCell: Wiring Action Buttons
  Updates Project
  Implements UIButton+Animations
  Implements VerticalButton

# Conflicts:
#	WooCommerce/Classes/ViewRelated/Notifications/NotificationsViewController.swift
@wpmobilebot
Copy link
Collaborator

SwiftLint found issues

Warnings

File Line Reason
NotificationsViewController.swift 574 Lines should not have trailing whitespace.

Generated by 🚫 Danger

@bummytime bummytime merged commit a7c7bc6 into develop Nov 20, 2018
MVLP Kanban Board automation moved this from Review/Testing to Done/Merged Nov 20, 2018
@bummytime bummytime deleted the issue/19-mark-as-read branch November 20, 2018 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: notifications Related to notifications or notifs.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants