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

Reports: implement a 'report user' button on user profiles #870

Closed
alvarocasadoc opened this Issue Mar 25, 2018 · 4 comments

Comments

4 participants
@alvarocasadoc
Copy link
Collaborator

alvarocasadoc commented Mar 25, 2018

This includes:

  • Creating a 'report user' button that shows a modal with a form for adding additional notes.
  • Submitting and saving the report to the database through a new action: allies_controller#report. (#14)
  • Mailing the reported user to notify them that they've been banned and their case is being reviewed with a new mailer. (#873)
@aSquare14

This comment has been minimized.

Copy link
Member

aSquare14 commented Jul 10, 2018

We're starting with this @alvarocasadoc @camillevilla !

@aSquare14 aSquare14 moved this from To Do to In Progress in RSGOC 2018: Team Rubies Jul 12, 2018

@aSquare14

This comment has been minimized.

Copy link
Member

aSquare14 commented Jul 12, 2018

@alvarocasadoc Can you give us some idea on how to add modal ? We are struggling with it ! :P

@alvarocasadoc

This comment has been minimized.

Copy link
Collaborator

alvarocasadoc commented Jul 13, 2018

A modal is simply an interface component that displays content and temporarily blocks interactions with the rest of the view. You can handle this by simply creating a div that toggles its visibility based on a user interaction like clicking a button or a link. This can be easily done with a div and a button that triggers this visibility toggle function.

Here you can find a basic example of this behaviour (which can be also animated, of course): https://www.w3schools.com/howto/howto_js_toggle_hide_show.asp

I've seen that you also took #786, so maybe you could take a look at https://github.com/reactjs/react-modal to see an example of a react component for a modal or maybe it can be integrated into the project.

Are you planning to implement it as a new component?

@aSquare14

This comment has been minimized.

Copy link
Member

aSquare14 commented Jul 13, 2018

Oh okayy. For now I am not making a react component. Will first figure out the back-end and how to integrate this modal form with back-end. Later on maybe make a React Component !

@prateksha prateksha referenced this issue Aug 6, 2018

Closed

New report #943

0 of 4 tasks complete

@aSquare14 aSquare14 referenced this issue Sep 2, 2018

Closed

Report feature #953

@aSquare14 aSquare14 moved this from In Progress to Done in RSGOC 2018: Team Rubies Sep 6, 2018

@julianguyen julianguyen closed this Nov 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment