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

Comment details menu redesign #20944

Merged

Conversation

jarvislin
Copy link
Contributor

@jarvislin jarvislin commented Jun 6, 2024

Implements https://github.com/Automattic/wordpress-mobile/issues/44

This PR contains the implementations of the Share action and Change Status action in the comment menu.


To Test:

  1. Sign in JP app
  2. Go to Notifications tab
  3. Click on a notification with Comment type
  4. Click on the comment menu icon ...
  5. It should display a menu popup as usual
  6. Click on the Share button
  7. It should share the comment's link to other apps
  8. Open the comment menu again
  9. Click on the Change status button
  10. It should display the bottom sheet of moderation
  11. Go to My site -> More -> Comments
  12. Click on a comment
  13. Repeat step 4 - 10
  14. Done, thank you!

Regression Notes

  1. Potential unintended areas of impact

    • notification, comment
  2. What I did to test those areas of impact (or what existing automated tests I relied on)

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

    • n/a

PR Submission Checklist:

skipped


Testing Checklist (strike-out the not-applying and unnecessary ones):

skipped

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jun 6, 2024

WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr20944-78a2b09
Commit78a2b09
Direct Downloadwordpress-prototype-build-pr20944-78a2b09.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jun 6, 2024

Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr20944-78a2b09
Commit78a2b09
Direct Downloadjetpack-prototype-build-pr20944-78a2b09.apk
Note: Google Login is not supported on these builds.

@jarvislin jarvislin requested a review from antonis June 6, 2024 16:26
@jarvislin jarvislin marked this pull request as ready for review June 6, 2024 16:31
Copy link

sonarcloud bot commented Jun 6, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

codecov bot commented Jun 6, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 40.98%. Comparing base (9f6e573) to head (78a2b09).

Files Patch % Lines
...d/ui/comments/unified/CommentActionPopupHandler.kt 0.00% 2 Missing ⚠️
Additional details and impacted files
@@                        Coverage Diff                        @@
##           feature/notifications_refresh_p2   #20944   +/-   ##
=================================================================
  Coverage                             40.98%   40.98%           
=================================================================
  Files                                  1523     1523           
  Lines                                 69626    69626           
  Branches                              11513    11515    +2     
=================================================================
  Hits                                  28534    28534           
  Misses                                38504    38504           
  Partials                               2588     2588           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -195,7 +195,9 @@ class NotificationsDetailListFragment : ListFragment(), NotificationFragment {
this.footerView = footerView
}

private val mOnNoteBlockTextClickListener = NoteBlockTextClickListener(this, notification, onActionClickListener)
private val mOnNoteBlockTextClickListener by lazy {
Copy link
Contributor Author

@jarvislin jarvislin Jun 7, 2024

Choose a reason for hiding this comment

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

onActionClickListener is always null if we don't use by lazy because we create mOnNoteBlockTextClickListener when onActionClickListener has not been set value.

Copy link
Contributor

@antonis antonis left a comment

Choose a reason for hiding this comment

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

Awesome work @jarvislin 🏅
The code looks good and the app performed as described in my tests 🎉

@antonis antonis merged commit 5493500 into feature/notifications_refresh_p2 Jun 7, 2024
21 of 22 checks passed
@antonis antonis deleted the issue/Comment-Details-Menu-redesign branch June 7, 2024 08:00
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.

3 participants