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

WEB-567: Show flagged comment UI/state when pending T&S review #1648

Merged
merged 7 commits into from Jun 23, 2022

Conversation

leighdouglas
Copy link
Contributor

@leighdouglas leighdouglas commented Jun 23, 2022

📲 What

We want to show a comment flagged state for comments that have been flagged but not yet reviewed by T&S.

🤔 Why

Comment moderation updates.

🛠 How

Specs:

  • Comment that has been flagged but not reviewed -> show flagged state
  • If current user is flagged comment author -> show original comment

Fields sustained and hasFlaggings were added to the graphQL struct.
Added a method to CommentExt that checks if hasFlaggings == true, sustained == false, deleted == false, and !currentUser.id == author.id().

This is all gated by the feature flag ANDROID_COMMENT_MODERATION

👀 See

Flagged:
Screenshot_20220623-112001 Screenshot_20220623-112004

User is author:
Screenshot_20220623-114000

📋 QA

Test all states of flagged comments:

  • Feature flag on and user is not author: Flagged comment
  • Feature flag on and user is author: Normal comment
  • Feature flag off and user is not author: Graph returns "this comment is under review" and it will not have the community guidelines link
  • Feature flag off and user is author: Normal comment

Make sure to QA both project and update comments

Story 📖

WEB-567: Show flagged comment UI/state when pending T&S review

@leighdouglas leighdouglas changed the title Leigh/web 567 flagged state WEB-567: Show flagged comment UI/state when pending T&S review Jun 23, 2022
@leighdouglas leighdouglas marked this pull request as ready for review June 23, 2022 15:47
@leighdouglas leighdouglas merged commit 076d523 into master Jun 23, 2022
@leighdouglas leighdouglas deleted the leigh/web-567-flagged-state branch June 23, 2022 18:59
Arkariang added a commit that referenced this pull request Jun 30, 2022
…tin/NTV-562

* 'master' of github.com:kickstarter/android-oss:
  WEB-567: Show flagged comment UI/state when pending T&S review (#1648)
  - Release 3.3.0
  Comments from canceled backers with no replies do not appear in the list of comments (#1645)
  NTV-561: Update dependencies  (#1646)

# Conflicts:
#	app/build.gradle
#	app/src/test/java/com/kickstarter/viewmodels/CommentsViewHolderViewModelTest.kt
Arkariang added a commit that referenced this pull request Jul 6, 2022
…tin/PAY-1693-integrate-paymentsheet

* 'master' of github.com:kickstarter/android-oss:
  WEB-605: Update string for flagged comments (#1650)
  NTV-563 : Migrate Message related viewmodels classes to Kotlin (#1649)
  WEB-567: Show flagged comment UI/state when pending T&S review (#1648)
  - Release 3.3.0
  Comments from canceled backers with no replies do not appear in the list of comments (#1645)
  NTV-561: Update dependencies  (#1646)
  WEB-566: [Android] UI for flagged comment (#1643)
  NTV-560: Updated gems (#1644)
  PAY-1716: Update stripe SDK (#1642)
  NTV-556 :  Migrate Creator Dashboard viewmodels classes to Kotlin (#1639)
  WEB-532 : [Android] Canceled backer: Remove "show comment" link from comment tombstones (#1641)
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

2 participants