papermark icon indicating copy to clipboard operation
papermark copied to clipboard

[🕹️] Add "report" button to document viewer to report abuse

Open mfts opened this issue 1 year ago • 22 comments

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

CleanShot 2024-10-12 at 19 28 08@2x

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

mfts avatar Oct 12 '24 10:10 mfts

/assign

RajuGangitla avatar Oct 12 '24 10:10 RajuGangitla

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 🚀

oss-gg[bot] avatar Oct 12 '24 10:10 oss-gg[bot]

/assign

aadarshx22 avatar Oct 12 '24 10:10 aadarshx22

This issue is already assigned to another person. Please find more issues here.

oss-gg[bot] avatar Oct 12 '24 10:10 oss-gg[bot]

@mfts, If for whatever reason RajuGangitla isn't able todo it, please assign it to me.

Khaan25 avatar Oct 12 '24 12:10 Khaan25

/assign

saniddhyaDubey avatar Oct 12 '24 22:10 saniddhyaDubey

This issue is already assigned to another person. Please find more issues here.

oss-gg[bot] avatar Oct 12 '24 22:10 oss-gg[bot]

/assign

pikachusensei avatar Oct 13 '24 11:10 pikachusensei

This issue is already assigned to another person. Please find more issues here.

oss-gg[bot] avatar Oct 13 '24 11:10 oss-gg[bot]

@mfts is there any dicord channel to discuss the doubts

RajuGangitla avatar Oct 14 '24 04:10 RajuGangitla

@RajuGangitla what would you like to discuss? please use this thread here :)

mfts avatar Oct 14 '24 06:10 mfts

For this issue to be solved I need to setup my env variables s3 , stripe test, upstash redis

RajuGangitla avatar Oct 14 '24 06:10 RajuGangitla

@mfts

RajuGangitla avatar Oct 14 '24 06:10 RajuGangitla

@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 avatar Oct 14 '24 06:10 mfts

@mfts how can I get the viewers I need to invite someone to my team for that it's asking plan

RajuGangitla avatar Oct 14 '24 07:10 RajuGangitla

@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 avatar Oct 14 '24 07:10 mfts

image

RajuGangitla avatar Oct 14 '24 07:10 RajuGangitla

@mfts

RajuGangitla avatar Oct 14 '24 07:10 RajuGangitla

@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 avatar Oct 14 '24 07:10 mfts

@mfts ok

RajuGangitla avatar Oct 14 '24 07:10 RajuGangitla

@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

screen-capture (19).webm

RajuGangitla avatar Oct 14 '24 19:10 RajuGangitla

@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 :)

mfts avatar Oct 15 '24 03:10 mfts