Feedback - hackforla/tdm-calculator GitHub Wiki

Feedback Form

  • Feedback page will allow a user without admin rights to log any issues/concerns or questions they have and our team will get back to you as soon as possible.
  • To access feedback page, you do not need to be a registered user. But if user is logged in with a non-admin account, the user should also be able to select one or more of their own projects that they have concerns with.

URLS

Issue label

Screen shots of page

Technical Details

The main React component is here.

The Feedback main menu item will only show if the user is not logged in as an admin user. If the user is logged in as a non-admin user, the page will execute the Web API GET request to /projects to get all the projects belonging to the user and display their projects in the grid on the page. The user may select one or more of these projects to tie their feedback to specific project(s), if appropriate.

If the user fills out the form and presses the Submit button, a POST request will be sent to the Web API server url /api/feedbacks. This will

  • Insert a record in the Feedback table,
  • Send an email to the email address specified in the configuration variable EMAIL_PUBLIC_COMMENT_LA_CITY,.
  • If the checkbox labeled Would you like your comment to also be delivered to the website team? is checked, also send an email to the email address specified in the configuration variable EMAIL_PUBLIC_COMMENT_WEB_TEAM.