As a user, I should be able to enter in an event that will happen at a future date and see all my events.
Acceptance Criteria
UPDATE
GIVEN a user wants to change the details of an event
WHEN the user performs a gesture to edit an event
THEN the user should be presented with a form that has the event details pre-filled into the fields
AND there should be an affordance to save the new details
Dev Notes
create a eventsData file containing a promise to getEventsByUid via axios.get the apiKeys
Object.keys(eventsResults).forEach((eventId) => to push the object id results into a eventsarray,
and resolve the array
editEvent = eventsId => axios.put
create a events.js file to eventsBuilder = (uid) => the data from eventsData.getEventsByUid
include editbutton in the eventsBuilder with id="eventId"
add eventListeners to editEvent buttons to call eventsData.editEvent
User Story
As a user, I should be able to enter in an event that will happen at a future date and see all my events.
Acceptance Criteria
UPDATE
GIVEN a user wants to change the details of an event WHEN the user performs a gesture to edit an event THEN the user should be presented with a form that has the event details pre-filled into the fields AND there should be an affordance to save the new details
Dev Notes
create a
eventsData
file containing a promise togetEventsByUid
viaaxios.get
theapiKeys
Object.keys(eventsResults).forEach((eventId) =>
to push the object id results into aevents
array, and resolve the arrayeditEvent = eventsId => axios.put
create a
events.js
file toeventsBuilder = (uid) =>
the data fromeventsData.getEventsByUid
include
edit
button in theeventsBuilder
withid="eventId"
add eventListeners to
editEvent
buttons to calleventsData.editEvent