These changes add in the ability to submit an illegal content report per DSA. A DSA report is created when this is done.
Note that most copy and some design is still TBD.
TODO:
[ ] Update placeholder copy (pending design)
[x] Add in all validation
[x] Make additional comments create reports too
[x] Add confirmation screen after submission
[x] Address some cleanup TODO comments left throughout (adding localization, improving error handling, etc.)
[x] Add tests
These changes will impact:
[x] commenters
[x] moderators
[ ] admins
[ ] developers
What changes to the GraphQL/Database Schema does this PR introduce?
Does this PR introduce any new environment variables or feature flags?
If any indexes were added, were they added to INDEXES.md?
How do I test this PR?
Make sure you've run npm run build in common
Go to a comment in the stream. Click report. Click Report illegal content link. See the illegal content report form and fill it out. Test with/without the additional of additional comments. See that you can't submit until all required fields are completed (law broken, additional info, and bonafide belief checkbox). See that it correctly submits and creates a new DSAReport. You should see a confirmation screen with successes and errors after submit (still pending design input).
See that once you've submitted a comment as having illegal content, and return to the stream, the comment shows as Reported same as when a comment is reported for any other reason.
Where any tests migrated to React Testing Library?
Yes, reportComment.spec.tsx was migrated and a test around the illegal content report link added
What does this PR do?
These changes add in the ability to submit an illegal content report per DSA. A DSA report is created when this is done.
Note that most copy and some design is still TBD.
TODO:
These changes will impact:
What changes to the GraphQL/Database Schema does this PR introduce?
Does this PR introduce any new environment variables or feature flags?
If any indexes were added, were they added to
INDEXES.md
?How do I test this PR?
Make sure you've run
npm run build
incommon
Go to a comment in the stream. Click report. Click
Report illegal content
link. See the illegal content report form and fill it out. Test with/without the additional of additional comments. See that you can't submit until all required fields are completed (law broken, additional info, and bonafide belief checkbox). See that it correctly submits and creates a new DSAReport. You should see a confirmation screen with successes and errors after submit (still pending design input).See that once you've submitted a comment as having illegal content, and return to the stream, the comment shows as
Reported
same as when a comment is reported for any other reason.Where any tests migrated to React Testing Library?
Yes,
reportComment.spec.tsx
was migrated and a test around the illegal content report link addedHow do we deploy this PR?