danielbuva / goalie

share goals with friends

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Edit a Goal

danielbuva opened this issue · comments

Users should be able to edit their own goals.

Backend:

  • PUT route that accepts title and body
  • updates db record based off of goal id in url params
  • successful response returns the goal
  • body validation for title, title is required
  • body validation for body, body is required
  • title must be at most 18 characters
  • body must be at most 500 characters

Frontend:

  • goals have a three dots button at the top right, clicking it will open a drop down menu that has options, one option is edit
  • clicking edit will open a modal pre-populated with the original goal data (see wireframe)
  • button to submit says something like "finish"