[🕹️] Add "report" button to document viewer to report abuse
What side quest or challenge are you solving?
Add a button to the viewer navbar that let's visitors report abuse on any document or dataroom.
Once the button is pressed, it should send the documentId, viewId, and linkId to a redis bucket. Therefore, we can count the amount of reports on a given document/link, only allow a viewId to report once.
There should be a small action panel to select what type of abuse it is
What kind of issue is it?
- Spam, Fraud, or Scam
- Malware or virus
- Copyright violation
- Harmful content
- Content is not working properly
- Other
Points
750 Points
Provide proof that you've completed the task
Open a PR with the working code and a short video showing the solution
/assign
Assigned to @RajuGangitla! Please open a draft PR linking this issue within 48h ⚠️ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically 🕹️ Excited to have you ship this 🚀
/assign
This issue is already assigned to another person. Please find more issues here.
@mfts, If for whatever reason RajuGangitla isn't able todo it, please assign it to me.
/assign
This issue is already assigned to another person. Please find more issues here.
/assign
This issue is already assigned to another person. Please find more issues here.
@mfts is there any dicord channel to discuss the doubts
@RajuGangitla what would you like to discuss? please use this thread here :)
For this issue to be solved I need to setup my env variables s3 , stripe test, upstash redis
@mfts
@RajuGangitla You don't need Stripe or S3 for it. Redis yes, but upstash let's you create a free account, alternatively you can also connect to a redis instance locally in docker.
You can test the viewer with a public notion link like this: https://mfts.notion.site/Papermark-Hacktoberfest-Side-Quests-Challenges-111d3f870f008033935efe9f7702a3dc
@mfts how can I get the viewers I need to invite someone to my team for that it's asking plan
@RajuGangitla But why do you need to invite someone to the team for solving this issue?
Also locally you can just change your account to any plan.
@mfts
@RajuGangitla just update the team plan in your local database. Or delete the account and create a fresh account locally. you don't need stripe for this task
@mfts ok
@mfts i implemented the functionality on the notion docs can you confirm me if i am going in right direction i will raise pr
do i need to store the reason for reporting also
While creating link, do we give option to toggle report button
@RajuGangitla wow that looks perfect!
do i need to store the reason for reporting also
yes, but let's give it a enum or number so that storing it is simpler
While creating link, do we give option to toggle report button
no
please open a PR so I can review the implementation :)