Simple web app that lets citizens report cases of corruption to the appropriate authorities. Users can also report on things that needs government intervention.
2
stars
0
forks
source link
#163409554 Consumes api endpoint to update reports #43
What does this PR do?
This PR connects the edit report page with the corresponding api endpoints for the user to update the comment, location and media files of a red-flag or intervention report from the user interface.
Description of tasks
Use JavaScript fetch api to consume API endpoint PATCH api/v1/red-flags/:id/comment and PATCH api/v1/red-flags/:id/location to update the comment and location respectively of a red-flag report.
Use JavaScript fetch api to consume API endpoint PATCH api/v1/interventions/:id/comment and PATCH api/v1/interventions/:id/location to update the comment and location respectively of an intervention report.
Make minor UI adjustments and server code refactor
Click on the ellipse icon on any created reports and click the edit button
Edit the title and comment and press 'Save changes' to update the report comments and title
Edit the latitude and longitude and press 'Save changes' to update the report location
Upload images and videos to add media to the report. Remove unwanted files as desired. Press the 'Done' button to return to the user dashboard to view changes.
What are the relevant pivotal tracker stories?#163409554
What does this PR do? This PR connects the edit report page with the corresponding api endpoints for the user to update the comment, location and media files of a red-flag or intervention report from the user interface.
Description of tasks
How can this PR be tested
What are the relevant pivotal tracker stories? #163409554
Screenshot