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 Detail Redesign: Moderation Bar Update #19331

Conversation

alpavanoglu
Copy link
Contributor

Fixes #18999

This PR removes the old moderation bar from comments section and adds a new table-view version of it.

To test:

  1. Log in to a WP Account
  2. In My Site, select Menu
  3. Comments
  4. Select any comment
  5. Check if the old moderation bar has been removed.
  6. Validate if a new section called "STATUS" has been added below and it is responsive to selections.

Regression Notes

  1. Potential unintended areas of impact
    Comments' status may not function properly

  2. What I did to test those areas of impact (or what existing automated tests I relied on)
    Manually tested it. Follow the steps above.,

  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.

updateModerationBarVisibility()
}
}
// var hidesModerationBar: Bool = false {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Commented out snippets are addressed and will be included in next PR's.

case .content:
return nil
case .moderation:
return "STATUS"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is localized and will be updated in next PR's.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Sep 21, 2022

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 pr19331-d59b179 on your iPhone

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

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Sep 21, 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 pr19331-d59b179 on your iPhone

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

Copy link
Contributor

@wargcm wargcm left a comment

Choose a reason for hiding this comment

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

One minor thing I noticed is if you select the same status that is already selected, it flashes. Probably from a reload would be my guess.

Other than that, LGTM! :shipit:

spamComment()
case .unapproved:
trashComment()
return NSLocalizedString("Spam", comment: "Button title for Spam comment state.")
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought there was a P2 somewhere saying we needed to start adding keys to localized strings but all I could find was paNNhX-nP-p2. It doesn't say we need keys, just that the option is there.

Regardless, I don't think it's a huge deal since I can't find the post anywhere. Just wanted to point it out in case you happen to know more.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh no I saw that as well and have been doing it. These are existing strings but I can do it regardless

@wargcm wargcm assigned alpavanoglu and unassigned wargcm Sep 22, 2022
@alpavanoglu
Copy link
Contributor Author

@wargcm That blinking issue is resolved in my local branch but I added a condition to not allow a selected status to be selected regardless. So it should fix it here as well.

@alpavanoglu alpavanoglu merged commit 90d9a15 into task/comment-detail-redesign Sep 23, 2022
@alpavanoglu alpavanoglu deleted the task/comment-detail-redesign-moderation branch September 23, 2022 11:45
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