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

[Notification Refresh] Replace the old Comment Detail header with the new Content Preview component #23083

Merged

Conversation

salimbraksa
Copy link
Contributor

@salimbraksa salimbraksa commented Apr 25, 2024

Fixes https://github.com/Automattic/wordpress-mobile/issues/29

Post Preview Comment Preview Comment Preview without avatar
image

Test Instructions

Post Reply Notification

  1. Run Jetpack and login
  2. Navigate to the Notifications screen
  3. Find a Post Reply notification and click it
  4. The header should be the same as the design
  5. Click on the header, it should keep the original behavior

Comment Reply Notification

  1. Run Jetpack and login
  2. Navigate to the Notifications screen
  3. Find a Comment Reply notification and click it
  4. The header should be the same as the design
  5. Click on the header, it should keep the original behavior

Regression Notes

  1. Potential unintended areas of impact
    The behavior when the header is tapped should be maintained.

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

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

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.

Testing checklist:

  • WordPress.com sites and self-hosted Jetpack sites.
  • Portrait and landscape orientations.
  • Light and dark modes.
  • Fonts: Larger, smaller and bold text.
  • High contrast.
  • VoiceOver.
  • Languages with large words or with letters/accents not frequently used in English.
  • Right-to-left languages. (Even if translation isn’t complete, formatting should still respect the right-to-left layout)
  • iPhone and iPad.
  • Multi-tasking: Split view and Slide over. (iPad)

@salimbraksa salimbraksa self-assigned this Apr 25, 2024
@salimbraksa salimbraksa added this to the Pending milestone Apr 25, 2024
@salimbraksa salimbraksa changed the base branch from trunk to feature/notifications_refresh_p2 April 25, 2024 09:36
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Apr 25, 2024

WordPress Alpha📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
App NameWordPress Alpha WordPress Alpha
ConfigurationRelease-Alpha
Build Numberpr23083-e8a5b25
Version24.7
Bundle IDorg.wordpress.alpha
Commite8a5b25
App Center BuildWPiOS - One-Offs #9713
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Apr 25, 2024

Jetpack Alpha📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
App NameJetpack Alpha Jetpack Alpha
ConfigurationRelease-Alpha
Build Numberpr23083-e8a5b25
Version24.7
Bundle IDcom.jetpack.alpha
Commite8a5b25
App Center Buildjetpack-installable-builds #8757
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

@salimbraksa salimbraksa marked this pull request as ready for review April 25, 2024 22:26
@salimbraksa salimbraksa force-pushed the task/update-comment-detail-header branch from 30afe1e to f15f3b2 Compare April 25, 2024 22:31
@salimbraksa salimbraksa force-pushed the task/update-comment-detail-header branch from 697f706 to cba89b4 Compare April 26, 2024 11:40
Copy link
Contributor

@justtwago justtwago left a comment

Choose a reason for hiding this comment

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

Great job, Salim! 🎸
I tested it on different notifications and found an unusual case. There is a case when a comment is opened by ReaderCommentsViewController on top of CommentDetailViewController. I assume it happens when your original comment was posted to a blog you don't have moderation permissions.
As a result such a notification has the old design:

Screenshots Screenshot 2024-04-26 at 12 49 32

In addition, I opened a PR when replaced the navigation icons: #23107
Feel free to create a follow up PR with this change if you wish.

@salimbraksa
Copy link
Contributor Author

salimbraksa commented Apr 26, 2024

There is a case when a comment is opened by ReaderCommentsViewController on top of CommentDetailViewController.

This behavior was developed in the 1st phase where we redirect the user directly to Reader Comments screen if they don't permission to moderate the comment.

Also based on the View Debugger screenshot you shared, the Reader Comments screen is a child of NotificafionCommentDetailViewController, not CommentDetailViewController, which are 2 different view controllers.

As for old header design in the Reader Comments, I intentionally avoided redesigning it because I think it's out of scope of this phase. 🤔

@justtwago
Copy link
Contributor

This behavior was developed in the 1st phase where we redirect the user directly to Reader Comments screen if they don't permission to moderate the comment.

Yeah, totally understand it, but the screen looks like a notification detail and does even have navigation buttons on the toolbar. That's why it looks confusing and not organically within the brand-new design system. 🤔

Copy link
Contributor

@justtwago justtwago left a comment

Choose a reason for hiding this comment

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

The PR looks and works good to me. We can discuss the issue from above asynchronously.

@salimbraksa salimbraksa requested a review from a team as a code owner April 29, 2024 09:22
@salimbraksa salimbraksa removed the request for review from a team April 29, 2024 09:27
@salimbraksa salimbraksa merged commit 2d235b3 into feature/notifications_refresh_p2 Apr 29, 2024
24 checks passed
@salimbraksa salimbraksa deleted the task/update-comment-detail-header branch April 29, 2024 09:49
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.

None yet

3 participants